link.c 161 B

123456789
  1. #include <unistd.h>
  2. #include <errno.h>
  3. // TODO:
  4. // We have a system call for this?
  5. int link(const char *old, const char *new) {
  6. errno = EMLINK;
  7. return -1;
  8. }