From 1dbdd7cc6dffcc8f12d5db004f73a3a4b87a458c Mon Sep 17 00:00:00 2001 From: christos Date: Mon, 20 Jan 2003 20:24:21 +0000 Subject: [PATCH] sys_ksem -> sys__ksem --- sys/kern/syscalls.master | 38 ++++++++++++++++++------------------ sys/kern/uipc_sem.c | 42 ++++++++++++++++++++-------------------- 2 files changed, 40 insertions(+), 40 deletions(-) diff --git a/sys/kern/syscalls.master b/sys/kern/syscalls.master index e6a6300b620e..ae3fa8bfa62f 100644 --- a/sys/kern/syscalls.master +++ b/sys/kern/syscalls.master @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.121 2003/01/20 20:04:28 christos Exp $ + $NetBSD: syscalls.master,v 1.122 2003/01/20 20:24:21 christos Exp $ ; @(#)syscalls.master 8.2 (Berkeley) 1/13/94 @@ -517,27 +517,27 @@ 245 UNIMPL sys_sigtimedwait 246 UNIMPL sys_sigqueue #ifdef P1003_1B_SEMAPHORE -247 STD { int sys_ksem_init(unsigned int value, semid_t *idp); } -248 STD { int sys_ksem_open(const char *name, int oflag, \ +247 STD { int sys__ksem_init(unsigned int value, semid_t *idp); } +248 STD { int sys__ksem_open(const char *name, int oflag, \ mode_t mode, unsigned int value, semid_t *idp); } -249 STD { int sys_ksem_unlink(const char *name); } -250 STD { int sys_ksem_close(semid_t id); } -251 STD { int sys_ksem_post(semid_t id); } -252 STD { int sys_ksem_wait(semid_t id); } -253 STD { int sys_ksem_trywait(semid_t id); } -254 STD { int sys_ksem_getvalue(semid_t id, \ +249 STD { int sys__ksem_unlink(const char *name); } +250 STD { int sys__ksem_close(semid_t id); } +251 STD { int sys__ksem_post(semid_t id); } +252 STD { int sys__ksem_wait(semid_t id); } +253 STD { int sys__ksem_trywait(semid_t id); } +254 STD { int sys__ksem_getvalue(semid_t id, \ unsigned int *value); } -255 STD { int sys_ksem_destroy(semid_t id); } +255 STD { int sys__ksem_destroy(semid_t id); } #else -247 EXCL sys_ksem_init -248 EXCL sys_ksem_open -249 EXCL sys_ksem_unlink -250 EXCL sys_ksem_close -251 EXCL sys_ksem_post -252 EXCL sys_ksem_wait -253 EXCL sys_ksem_trywait -254 EXCL sys_ksem_getvalue -255 EXCL sys_ksem_destroy +247 EXCL sys__ksem_init +248 EXCL sys__ksem_open +249 EXCL sys__ksem_unlink +250 EXCL sys__ksem_close +251 EXCL sys__ksem_post +252 EXCL sys__ksem_wait +253 EXCL sys__ksem_trywait +254 EXCL sys__ksem_getvalue +255 EXCL sys__ksem_destroy #endif 256 UNIMPL 257 UNIMPL diff --git a/sys/kern/uipc_sem.c b/sys/kern/uipc_sem.c index 725ff9046054..1b7656e65150 100644 --- a/sys/kern/uipc_sem.c +++ b/sys/kern/uipc_sem.c @@ -1,4 +1,4 @@ -/* $NetBSD: uipc_sem.c,v 1.1 2003/01/20 20:02:57 christos Exp $ */ +/* $NetBSD: uipc_sem.c,v 1.2 2003/01/20 20:24:22 christos Exp $ */ /* * Copyright (c) 2002 Alfred Perlstein @@ -77,8 +77,8 @@ struct ksem { }; /* - * available semaphores go here, this includes sys_ksem_init and any semaphores - * created via sys_ksem_open that have not yet been unlinked. + * available semaphores go here, this includes sys__ksem_init and any semaphores + * created via sys__ksem_open that have not yet been unlinked. */ LIST_HEAD(, ksem) ksem_head = LIST_HEAD_INITIALIZER(&ksem_head); /* @@ -217,9 +217,9 @@ ksem_create(l, name, ksret, mode, value) } int -sys_ksem_init(struct lwp *l, void *v, register_t *retval) +sys__ksem_init(struct lwp *l, void *v, register_t *retval) { - struct sys_ksem_init_args /* { + struct sys__ksem_init_args /* { unsigned int value; semid_t *idp; } */ *uap = v; @@ -246,9 +246,9 @@ sys_ksem_init(struct lwp *l, void *v, register_t *retval) } int -sys_ksem_open(struct lwp *l, void *v, register_t *retval) +sys__ksem_open(struct lwp *l, void *v, register_t *retval) { - struct sys_ksem_open_args /* { + struct sys__ksem_open_args /* { const char *name; int oflag; mode_t mode; @@ -440,9 +440,9 @@ ksem_enter(struct proc *p, struct ksem *ks) } int -sys_ksem_unlink(struct lwp *l, void *v, register_t *retval) +sys__ksem_unlink(struct lwp *l, void *v, register_t *retval) { - struct sys_ksem_unlink_args /* { + struct sys__ksem_unlink_args /* { const char *name; } */ *uap = v; char name[SEM_MAX_NAMELEN + 1]; @@ -471,9 +471,9 @@ sys_ksem_unlink(struct lwp *l, void *v, register_t *retval) } int -sys_ksem_close(struct lwp *l, void *v, register_t *retval) +sys__ksem_close(struct lwp *l, void *v, register_t *retval) { - struct sys_ksem_close_args /* { + struct sys__ksem_close_args /* { semid_t id; } */ *uap = v; struct ksem *ks; @@ -490,9 +490,9 @@ sys_ksem_close(struct lwp *l, void *v, register_t *retval) } int -sys_ksem_post(struct lwp *l, void *v, register_t *retval) +sys__ksem_post(struct lwp *l, void *v, register_t *retval) { - struct sys_ksem_post_args /* { + struct sys__ksem_post_args /* { semid_t id; } */ *uap = v; struct ksem *ks; @@ -518,9 +518,9 @@ err: } int -sys_ksem_wait(struct lwp *l, void *v, register_t *retval) +sys__ksem_wait(struct lwp *l, void *v, register_t *retval) { - struct sys_ksem_wait_args /* { + struct sys__ksem_wait_args /* { semid_t id; } */ *uap = v; @@ -528,9 +528,9 @@ sys_ksem_wait(struct lwp *l, void *v, register_t *retval) } int -sys_ksem_trywait(struct lwp *l, void *v, register_t *retval) +sys__ksem_trywait(struct lwp *l, void *v, register_t *retval) { - struct sys_ksem_trywait_args /* { + struct sys__ksem_trywait_args /* { semid_t id; } */ *uap = v; @@ -577,9 +577,9 @@ err: } int -sys_ksem_getvalue(struct lwp *l, void *v, register_t *retval) +sys__ksem_getvalue(struct lwp *l, void *v, register_t *retval) { - struct sys_ksem_getvalue_args /* { + struct sys__ksem_getvalue_args /* { semid_t id; unsigned int *value; } */ *uap = v; @@ -598,9 +598,9 @@ sys_ksem_getvalue(struct lwp *l, void *v, register_t *retval) } int -sys_ksem_destroy(struct lwp *l, void *v, register_t *retval) +sys__ksem_destroy(struct lwp *l, void *v, register_t *retval) { - struct sys_ksem_destroy_args /*{ + struct sys__ksem_destroy_args /*{ semid_t id; } */ *uap = v; struct ksem *ks;