aboutsummaryrefslogtreecommitdiff
path: root/system/include/libc/sys
diff options
context:
space:
mode:
Diffstat (limited to 'system/include/libc/sys')
-rw-r--r--system/include/libc/sys/resource.h16
-rw-r--r--system/include/libc/sys/termios.h8
2 files changed, 23 insertions, 1 deletions
diff --git a/system/include/libc/sys/resource.h b/system/include/libc/sys/resource.h
index 37757e88..a7fbe4dd 100644
--- a/system/include/libc/sys/resource.h
+++ b/system/include/libc/sys/resource.h
@@ -9,7 +9,21 @@
struct rusage {
struct timeval ru_utime; /* user time used */
struct timeval ru_stime; /* system time used */
- int ru_maxrss; /* XXX Emscripten */
+ /* XXX Emscripten */
+ int ru_maxrss;
+ int ru_ixrss;
+ int ru_idrss;
+ int ru_isrss;
+ int ru_minflt;
+ int ru_majflt;
+ int ru_nswap;
+ int ru_inblock;
+ int ru_oublock;
+ int ru_msgsnd;
+ int ru_msgrcv;
+ int ru_nsignals;
+ int ru_nvcsw;
+ int ru_nivcsw;
};
/* XXX Emscripten */
diff --git a/system/include/libc/sys/termios.h b/system/include/libc/sys/termios.h
index 14174a43..88e8ad16 100644
--- a/system/include/libc/sys/termios.h
+++ b/system/include/libc/sys/termios.h
@@ -262,6 +262,14 @@ __END_DECLS
#endif /* !KERNEL */
+/* XXX Emscripten */
+struct winsize {
+ unsigned short ws_row;
+ unsigned short ws_col;
+ unsigned short ws_xpixel;
+ unsigned short ws_ypixel;
+};
+
/*
* END OF PROTECTED INCLUDE.
*/