Sort declaration of sem_clockwait_np
Also mention <time.h> in sem_timedwait(3), because POSIX does, and because the user will need it for clockid_t, struct timespec, and TIMER_ABSTIME. Reported by: bde MFC after: 9 days X-MFC with: r314179 Sponsored by: Dell EMC
This commit is contained in:
parent
e7eec274e1
commit
81027fa594
@ -52,6 +52,10 @@ typedef struct _sem sem_t;
|
|||||||
struct timespec;
|
struct timespec;
|
||||||
|
|
||||||
__BEGIN_DECLS
|
__BEGIN_DECLS
|
||||||
|
#if __BSD_VISIBLE
|
||||||
|
int sem_clockwait_np(sem_t * __restrict, __clockid_t, int,
|
||||||
|
const struct timespec *, struct timespec *);
|
||||||
|
#endif
|
||||||
int sem_close(sem_t *);
|
int sem_close(sem_t *);
|
||||||
int sem_destroy(sem_t *);
|
int sem_destroy(sem_t *);
|
||||||
int sem_getvalue(sem_t * __restrict, int * __restrict);
|
int sem_getvalue(sem_t * __restrict, int * __restrict);
|
||||||
@ -59,10 +63,6 @@ int sem_init(sem_t *, int, unsigned int);
|
|||||||
sem_t *sem_open(const char *, int, ...);
|
sem_t *sem_open(const char *, int, ...);
|
||||||
int sem_post(sem_t *);
|
int sem_post(sem_t *);
|
||||||
int sem_timedwait(sem_t * __restrict, const struct timespec * __restrict);
|
int sem_timedwait(sem_t * __restrict, const struct timespec * __restrict);
|
||||||
#if __BSD_VISIBLE
|
|
||||||
int sem_clockwait_np(sem_t * __restrict, __clockid_t, int,
|
|
||||||
const struct timespec *, struct timespec *);
|
|
||||||
#endif
|
|
||||||
int sem_trywait(sem_t *);
|
int sem_trywait(sem_t *);
|
||||||
int sem_unlink(const char *);
|
int sem_unlink(const char *);
|
||||||
int sem_wait(sem_t *);
|
int sem_wait(sem_t *);
|
||||||
|
@ -34,7 +34,7 @@
|
|||||||
.\"
|
.\"
|
||||||
.\" $FreeBSD$
|
.\" $FreeBSD$
|
||||||
.\"
|
.\"
|
||||||
.Dd February 23, 2017
|
.Dd February 28, 2017
|
||||||
.Dt SEM_TIMEDWAIT 3
|
.Dt SEM_TIMEDWAIT 3
|
||||||
.Os
|
.Os
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
@ -45,6 +45,7 @@
|
|||||||
.Lb libc
|
.Lb libc
|
||||||
.Sh SYNOPSIS
|
.Sh SYNOPSIS
|
||||||
.In semaphore.h
|
.In semaphore.h
|
||||||
|
.In time.h
|
||||||
.Ft int
|
.Ft int
|
||||||
.Fn sem_timedwait "sem_t * restrict sem" "const struct timespec * restrict abs_timeout"
|
.Fn sem_timedwait "sem_t * restrict sem" "const struct timespec * restrict abs_timeout"
|
||||||
.Ft int
|
.Ft int
|
||||||
|
Loading…
x
Reference in New Issue
Block a user