summaryrefslogtreecommitdiff
path: root/user
diff options
context:
space:
mode:
authorMole Shang <[email protected]>2024-02-11 14:41:35 +0800
committerMole Shang <[email protected]>2024-02-11 14:41:35 +0800
commit48a5e34fcd07852b4a68825ce8e37feb6f6d04d7 (patch)
treeb6ec41ca1889db0122d754b0083c7d1d87cb0818 /user
parent3673a2cdfb30e1e3936e695a3fb8adee74488d6b (diff)
downloadxv6-labs-48a5e34fcd07852b4a68825ce8e37feb6f6d04d7.tar.gz
xv6-labs-48a5e34fcd07852b4a68825ce8e37feb6f6d04d7.tar.bz2
xv6-labs-48a5e34fcd07852b4a68825ce8e37feb6f6d04d7.zip
lab traps: finishtraps
Diffstat (limited to 'user')
-rw-r--r--user/user.h2
-rwxr-xr-xuser/usys.pl2
2 files changed, 4 insertions, 0 deletions
diff --git a/user/user.h b/user/user.h
index a076f37..34591fd 100644
--- a/user/user.h
+++ b/user/user.h
@@ -33,6 +33,8 @@ int ugetpid(void);
#endif
int trace(int);
int sysinfo(struct sysinfo*);
+int sigalarm(int ticks, void (*handler)());
+int sigreturn(void);
// ulib.c
int stat(const char*, struct stat*);
diff --git a/user/usys.pl b/user/usys.pl
index f084c63..33af0ad 100755
--- a/user/usys.pl
+++ b/user/usys.pl
@@ -40,3 +40,5 @@ entry("trace");
entry("sysinfo");
entry("connect");
entry("pgaccess");
+entry("sigalarm");
+entry("sigreturn");