From 48a5e34fcd07852b4a68825ce8e37feb6f6d04d7 Mon Sep 17 00:00:00 2001 From: Mole Shang <135e2@135e2.dev> Date: Sun, 11 Feb 2024 14:41:35 +0800 Subject: lab traps: finish --- user/user.h | 2 ++ user/usys.pl | 2 ++ 2 files changed, 4 insertions(+) (limited to 'user') 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"); -- cgit v1.2.3