summaryrefslogtreecommitdiff
path: root/userspace/sys
diff options
context:
space:
mode:
Diffstat (limited to 'userspace/sys')
-rw-r--r--userspace/sys/sys.c60
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;
+}
+