diff options
| author | Michal Idziorek <m.i@gmx.at> | 2014-12-02 12:39:30 +0100 |
|---|---|---|
| committer | Michal Idziorek <m.i@gmx.at> | 2014-12-02 12:39:30 +0100 |
| commit | edbcac06e490731c923ddd18d948fa76dc3ee9b7 (patch) | |
| tree | 53ae6b138f317d61caaa9f52f7fbc0ff21a933f6 /userspace/sys | |
| parent | b4e8da9b6e43366eaa7198f349ce30421c1d7bf1 (diff) | |
Adapt for ncurses
Diffstat (limited to 'userspace/sys')
| -rw-r--r-- | userspace/sys/sys.c | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/userspace/sys/sys.c b/userspace/sys/sys.c index 1ab3579..a9d54ce 100644 --- a/userspace/sys/sys.c +++ b/userspace/sys/sys.c @@ -1,6 +1,7 @@ #include <unistd.h> #include <sys/types.h> #include <sys/stat.h> +#include <sys/termios.h> // CODE FOR Stack Smashing Protector, TODO: MOVE / and do not duplicate @@ -85,3 +86,62 @@ int chown(const char *path, uid_t owner, gid_t group) { return -1; } + +// termios / ncurses +int tcgetattr(int fd, struct termios *termios_p) +{ + return 0; +} +int tcsetattr(int fd, int optional_actions, const struct termios *termios_p){ + return 0; +} +int mkdir(const char *pathname, mode_t mode) +{ + return -1; +} +int chdir (const char *pathname) +{ + return -1; +} + +speed_t cfgetospeed(const struct termios *termios_p) +{ + return 1; +} + +char *ttyname(int fd) +{ + return "foolterm"; +} + + +DIR *opendir(const char *name) +{ + return 0; +} +int closedir(DIR *dirp) +{ + return 0; +} + + +int tcflush(int fd, int queue_selector) +{ + return -1; +} +long fpathconf(int fd, int name) +{ + return -1; +} + + +unsigned int sleep(unsigned int seconds) +{ + return 0; +} + +char *getlogin(void) +{ + return NULL; +} + |
