diff options
| author | Michal Idziorek <m.i@gmx.at> | 2014-12-04 23:30:15 +0100 |
|---|---|---|
| committer | Michal Idziorek <m.i@gmx.at> | 2014-12-04 23:30:15 +0100 |
| commit | 41c3e0bc640f570831bd6c18fbfb8c7cec23a43d (patch) | |
| tree | 487ff1379ad74fa5f610c5b18bcb573faa3f44ba /userspace/sys/sys.c | |
| parent | 53a61ec0f257930c2c5eb2ba20cac53d7862c92b (diff) | |
struggling with gcc -O , and other stuff
Diffstat (limited to 'userspace/sys/sys.c')
| -rw-r--r-- | userspace/sys/sys.c | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/userspace/sys/sys.c b/userspace/sys/sys.c index a9d54ce..fa96ba4 100644 --- a/userspace/sys/sys.c +++ b/userspace/sys/sys.c @@ -32,31 +32,36 @@ void __stack_chk_fail(void) long sysconf(int name) { - printf("SYSCONF CALLED WITH : %s",name); + printf("UNIMPL: sysconf\n"); + printf("SYSCONF CALLED WITH : %s\n",name); return 0; } // set file mode creation mask mode_t umask(mode_t mask) { + printf("UNIMPL: umask\n"); return mask; } // chmod int chmod(const char * path, mode_t mode) { + printf("UNIMPL: chmod\n"); return -1; } // manipulating file descriptor int fcntl(int fd, int cmd, ...) { + printf("UNIMPL: fcntl\n"); return -1; } // working directory char *getwd(char *buf) { + printf("UNIMPL: getwd\n"); static char wd[]="/"; buf=wd; return buf; @@ -65,6 +70,7 @@ char *getwd(char *buf) // check if access allowed int access(const char *pathname, int mode) { + printf("UNIMPL: access\n"); //TODO: at leas check if this file exists! return 0; } @@ -72,76 +78,91 @@ int access(const char *pathname, int mode) // update time int utime(const char *filename, const int *x) { + printf("UNIMPL: utime\n"); return -1; } // rmdir int rmdir (const char *pathname) { + printf("UNIMPL: rmdir\n"); return -1; } // chonw int chown(const char *path, uid_t owner, gid_t group) { + printf("UNIMPL: chown\n"); return -1; } // termios / ncurses int tcgetattr(int fd, struct termios *termios_p) { + printf("UNIMPL: tcgetattr\n"); return 0; } int tcsetattr(int fd, int optional_actions, const struct termios *termios_p){ + printf("UNIMPL: tsetattr\n"); return 0; } int mkdir(const char *pathname, mode_t mode) { + printf("UNIMPL: mkdir\n"); return -1; } int chdir (const char *pathname) { + printf("UNIMPL: chdir\n"); return -1; } speed_t cfgetospeed(const struct termios *termios_p) { + printf("UNIMPL: cfgetospeed\n"); return 1; } char *ttyname(int fd) { + printf("UNIMPL: ttyname\n"); return "foolterm"; } DIR *opendir(const char *name) { + printf("UNIMPL: opendir\n"); return 0; } int closedir(DIR *dirp) { + printf("UNIMPL: closedir\n"); return 0; } int tcflush(int fd, int queue_selector) { + printf("UNIMPL: tcflush\n"); return -1; } long fpathconf(int fd, int name) { + printf("UNIMPL: fpathconf\n"); return -1; } unsigned int sleep(unsigned int seconds) { + printf("UNIMPL: sleep\n"); return 0; } char *getlogin(void) { + printf("UNIMPL: getlogin\n"); return NULL; } |
