From 37bccd4ed9e71025cd84e857f9ffca4ec8451c6b Mon Sep 17 00:00:00 2001 From: Ayushi Sharma <35501599+ais2397@users.noreply.github.com> Date: Sat, 16 May 2020 02:13:55 +0530 Subject: sys/netbsd: increase syscall support --- sys/netbsd/sys.txt | 4 ++++ sys/netbsd/sys_amd64.const | 2 ++ 2 files changed, 6 insertions(+) diff --git a/sys/netbsd/sys.txt b/sys/netbsd/sys.txt index 6e359345e..e888155c6 100644 --- a/sys/netbsd/sys.txt +++ b/sys/netbsd/sys.txt @@ -79,6 +79,10 @@ setreuid(ruid uid, euid uid) setregid(rgid gid, egid gid) getgroups(size len[list], list ptr[inout, array[gid]]) setgroups(size len[list], list ptr[in, array[gid]]) +__getlogin(buf buffer[out], size len[buf]) +getsid(pid pid) pid +#__setlogin(buf buffer[in]) #Unsure about effects on test process +#setsid() pid #Unsure about effects on test process link(old ptr[in, filename], new ptr[in, filename]) linkat(oldfd fd_dir, old ptr[in, filename], newfd fd_dir, new ptr[in, filename], flags flags[linkat_flags]) diff --git a/sys/netbsd/sys_amd64.const b/sys/netbsd/sys_amd64.const index b33a3f85b..57b60ab8f 100644 --- a/sys/netbsd/sys_amd64.const +++ b/sys/netbsd/sys_amd64.const @@ -94,6 +94,7 @@ SF_ARCHIVED = 65536 SF_IMMUTABLE = 131072 SYS___clone = 287 SYS___getcwd = 296 +SYS___getlogin = 49 SYS___vfork14 = 282 SYS_access = 33 SYS_chdir = 12 @@ -133,6 +134,7 @@ SYS_getpid = 20 SYS_getppid = 39 SYS_getrlimit = 194 SYS_getrusage = 445 +SYS_getsid = 286 SYS_getuid = 24 SYS_lchflags = 304 SYS_lchmod = 274 -- cgit mrf-deployment