TakefiveInteractive / TedkOS

Operating System - ECE 391 Takefive Interactive Team
GNU General Public License v2.0
96 stars 17 forks source link

Implement link #17

Open tengyifei opened 8 years ago

tengyifei commented 8 years ago

Establish a new name for an existing file. Minimal implementation:

#include <errno.h>
#undef errno
extern int errno;
int link(char *old, char *new) {
    errno = EMLINK;
    return -1;
}