diff options
| author | Alfred Perlstein <alfred@FreeBSD.org> | 2002-09-19 00:43:32 +0000 |
|---|---|---|
| committer | Alfred Perlstein <alfred@FreeBSD.org> | 2002-09-19 00:43:32 +0000 |
| commit | 6d5dec35b788d3e8bd2d1293473085ad731f9598 (patch) | |
| tree | 03a4032eb3cb9c260f9b522b0e619f27dfa99d94 /sys/kern | |
| parent | efaa6588061aa252a26b40979969a85da2fb6b3a (diff) | |
Notes
Diffstat (limited to 'sys/kern')
| -rw-r--r-- | sys/kern/makesyscalls.sh | 5 | ||||
| -rw-r--r-- | sys/kern/posix4_mib.c | 13 | ||||
| -rw-r--r-- | sys/kern/syscalls.master | 15 |
3 files changed, 30 insertions, 3 deletions
diff --git a/sys/kern/makesyscalls.sh b/sys/kern/makesyscalls.sh index 53afdc28a789..d39fa291fbd5 100644 --- a/sys/kern/makesyscalls.sh +++ b/sys/kern/makesyscalls.sh @@ -115,8 +115,9 @@ s/\$//g printf " * created from%s\n */\n\n", $0 > sysarg printf "#ifndef %s\n", sysproto_h > sysarg printf "#define\t%s\n\n", sysproto_h > sysarg - printf "#include <sys/signal.h>\n\n" > sysarg - printf "#include <sys/acl.h>\n\n" > sysarg + printf "#include <sys/signal.h>\n" > sysarg + printf "#include <sys/acl.h>\n" > sysarg + printf "#include <posix4/_semaphore.h>\n\n" > sysarg printf "struct proc;\n\n" > sysarg printf "struct thread;\n\n" > sysarg printf "#define\tPAD_(t)\t(sizeof(register_t) <= sizeof(t) ? \\\n" > sysarg diff --git a/sys/kern/posix4_mib.c b/sys/kern/posix4_mib.c index 09af27d0f623..d36859398c8d 100644 --- a/sys/kern/posix4_mib.c +++ b/sys/kern/posix4_mib.c @@ -92,12 +92,23 @@ P1B_SYSCTL(CTL_P1003_1B_TIMER_MAX, timer_max); /* p31b_setcfg: Set the configuration */ -void p31b_setcfg(int num, int value) +void +p31b_setcfg(int num, int value) { + if (num >= 1 && num < CTL_P1003_1B_MAXID) facility[num - 1] = value; } +int +p31b_getcfg(int num) +{ + + if (num >= 1 && num < CTL_P1003_1B_MAXID) + return (facility[num - 1]); + return (0); +} + /* * Turn on indications for standard (non-configurable) kernel features. */ diff --git a/sys/kern/syscalls.master b/sys/kern/syscalls.master index 64efa6d50288..ab9674b63fe4 100644 --- a/sys/kern/syscalls.master +++ b/sys/kern/syscalls.master @@ -569,3 +569,18 @@ struct sf_hdtr *hdtr, off_t *sbytes, int flags); } 394 MSTD BSD { int mac_syscall(const char *policy, int call, \ void *arg); } +395 UNIMPL NOHIDE nosys +396 UNIMPL NOHIDE nosys +397 UNIMPL NOHIDE nosys +398 UNIMPL NOHIDE nosys +399 UNIMPL NOHIDE nosys +400 MNOSTD BSD { int ksem_close(semid_t id); } +401 MNOSTD BSD { int ksem_post(semid_t id); } +402 MNOSTD BSD { int ksem_wait(semid_t id); } +403 MNOSTD BSD { int ksem_trywait(semid_t id); } +404 MNOSTD BSD { int ksem_init(semid_t *idp, unsigned int value); } +405 MNOSTD BSD { int ksem_open(semid_t *idp, const char *name, \ + int oflag, mode_t mode, unsigned int value); } +406 MNOSTD BSD { int ksem_unlink(const char *name); } +407 MNOSTD BSD { int ksem_getvalue(semid_t id, int *val); } +408 MNOSTD BSD { int ksem_destroy(semid_t id); } |
