symlink.c 255 B

123456789101112
  1. #include <unistd.h>
  2. #include <errno.h>
  3. #include <syscall.h>
  4. #include <syscall_nums.h>
  5. DEFN_SYSCALL2(symlink, SYS_SYMLINK, const char *, const char *);
  6. int symlink(const char *target, const char *name) {
  7. __sets_errno(syscall_symlink(target, name));
  8. }