Use the constants for the syscall names from syscall.h rather than
hardcoding the numbers for the SYSVIPC syscalls.
This commit is contained in:
parent
591862f3fe
commit
2cc06a19bc
@ -59,6 +59,7 @@ __FBSDID("$FreeBSD$");
|
||||
#include <sys/socket.h>
|
||||
#include <sys/socketvar.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/syscall.h>
|
||||
#include <sys/syscallsubr.h>
|
||||
#include <sys/sysctl.h>
|
||||
#include <sys/sysent.h>
|
||||
@ -927,7 +928,7 @@ freebsd32_semsys(struct thread *td, struct freebsd32_semsys_args *uap)
|
||||
/*
|
||||
* Vector through to semsys if it is loaded.
|
||||
*/
|
||||
return sysent[169].sy_call(td, uap);
|
||||
return sysent[SYS_semsys].sy_call(td, uap);
|
||||
}
|
||||
|
||||
int
|
||||
@ -936,7 +937,7 @@ freebsd32_msgsys(struct thread *td, struct freebsd32_msgsys_args *uap)
|
||||
/*
|
||||
* Vector through to msgsys if it is loaded.
|
||||
*/
|
||||
return sysent[170].sy_call(td, uap);
|
||||
return sysent[SYS_msgsys].sy_call(td, uap);
|
||||
}
|
||||
|
||||
int
|
||||
@ -945,7 +946,7 @@ freebsd32_shmsys(struct thread *td, struct freebsd32_shmsys_args *uap)
|
||||
/*
|
||||
* Vector through to shmsys if it is loaded.
|
||||
*/
|
||||
return sysent[171].sy_call(td, uap);
|
||||
return sysent[SYS_shmsys].sy_call(td, uap);
|
||||
}
|
||||
|
||||
int
|
||||
|
Loading…
x
Reference in New Issue
Block a user