summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorstefanf <stefanf@FreeBSD.org>2005-10-18 11:46:24 +0000
committerstefanf <stefanf@FreeBSD.org>2005-10-18 11:46:24 +0000
commite5209c56658d0173665f46b39f32b14980fd5bf6 (patch)
tree6ccc543beaffb3ef51cb3952ddc2d241260234c8
parent153abf782e100cbbde6302049d288abd03521845 (diff)
downloadFreeBSD-src-e5209c56658d0173665f46b39f32b14980fd5bf6.zip
FreeBSD-src-e5209c56658d0173665f46b39f32b14980fd5bf6.tar.gz
Const-qualify ksem_timedwait's parameter abstime as it's only passed in.
-rw-r--r--sys/kern/syscalls.master2
-rw-r--r--sys/kern/uipc_sem.c2
-rw-r--r--sys/posix4/_semaphore.h2
-rw-r--r--sys/sys/_semaphore.h2
4 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/syscalls.master b/sys/kern/syscalls.master
index 2b827a0..7e7fdf3 100644
--- a/sys/kern/syscalls.master
+++ b/sys/kern/syscalls.master
@@ -769,7 +769,7 @@
struct kse_thr_mailbox *tmbx, \
int flags); }
441 AUE_NULL MNOSTD { int ksem_timedwait(semid_t id, \
- struct timespec *abstime); }
+ const struct timespec *abstime); }
442 AUE_NULL MSTD { int thr_suspend( \
const struct timespec *timeout); }
443 AUE_NULL MSTD { int thr_wake(long id); }
diff --git a/sys/kern/uipc_sem.c b/sys/kern/uipc_sem.c
index de012b6..de0a5f6 100644
--- a/sys/kern/uipc_sem.c
+++ b/sys/kern/uipc_sem.c
@@ -680,7 +680,7 @@ ksem_wait(td, uap)
#ifndef _SYS_SYSPROTO_H_
struct ksem_timedwait_args {
semid_t id;
- struct timespec *abstime;
+ const struct timespec *abstime;
};
int ksem_timedwait(struct thread *td, struct ksem_timedwait_args *uap);
#endif
diff --git a/sys/posix4/_semaphore.h b/sys/posix4/_semaphore.h
index a7bd5d8..df3c5da 100644
--- a/sys/posix4/_semaphore.h
+++ b/sys/posix4/_semaphore.h
@@ -58,7 +58,7 @@ int ksem_close(semid_t id);
int ksem_post(semid_t id);
int ksem_wait(semid_t id);
int ksem_trywait(semid_t id);
-int ksem_timedwait(semid_t id, struct timespec *abstime);
+int ksem_timedwait(semid_t id, const struct timespec *abstime);
int ksem_init(semid_t *idp, unsigned int value);
int ksem_open(semid_t *idp, const char *name, int oflag, mode_t mode,
unsigned int value);
diff --git a/sys/sys/_semaphore.h b/sys/sys/_semaphore.h
index a7bd5d8..df3c5da 100644
--- a/sys/sys/_semaphore.h
+++ b/sys/sys/_semaphore.h
@@ -58,7 +58,7 @@ int ksem_close(semid_t id);
int ksem_post(semid_t id);
int ksem_wait(semid_t id);
int ksem_trywait(semid_t id);
-int ksem_timedwait(semid_t id, struct timespec *abstime);
+int ksem_timedwait(semid_t id, const struct timespec *abstime);
int ksem_init(semid_t *idp, unsigned int value);
int ksem_open(semid_t *idp, const char *name, int oflag, mode_t mode,
unsigned int value);
OpenPOWER on IntegriCloud