Sprinkle restrict into timer_{create,settime}(2).
This commit is contained in:
parent
dd200bdfd4
commit
9865e7ff1d
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: time.h,v 1.31 2003/08/07 09:44:11 agc Exp $ */
|
||||
/* $NetBSD: time.h,v 1.32 2003/09/13 22:31:04 kleink Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1989, 1993
|
||||
@ -139,12 +139,13 @@ int clock_getres __P((clockid_t, struct timespec *));
|
||||
int clock_gettime __P((clockid_t, struct timespec *));
|
||||
int clock_settime __P((clockid_t, const struct timespec *));
|
||||
int nanosleep __P((const struct timespec *, struct timespec *));
|
||||
int timer_create __P((clockid_t, struct sigevent *, timer_t *));
|
||||
int timer_create __P((clockid_t, struct sigevent * __restrict,
|
||||
timer_t * __restrict));
|
||||
int timer_delete __P((timer_t));
|
||||
int timer_getoverrun __P((timer_t));
|
||||
int timer_gettime __P((timer_t, struct itimerspec *));
|
||||
int timer_settime __P((timer_t, int, const struct itimerspec *,
|
||||
struct itimerspec *));
|
||||
int timer_settime __P((timer_t, int, const struct itimerspec * __restrict,
|
||||
struct itimerspec * __restrict));
|
||||
#endif /* _POSIX_C_SOURCE >= 199309 || _XOPEN_SOURCE >= 500 || ... */
|
||||
|
||||
#if (_POSIX_C_SOURCE - 0) >= 199506L || (_XOPEN_SOURCE - 0) >= 500 || \
|
||||
|
@ -1,4 +1,4 @@
|
||||
.\" $NetBSD: timer_create.2,v 1.1 2003/09/13 22:22:30 christos Exp $
|
||||
.\" $NetBSD: timer_create.2,v 1.2 2003/09/13 22:31:04 kleink Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 2003 The NetBSD Foundation, Inc.
|
||||
.\" All rights reserved.
|
||||
@ -46,7 +46,7 @@
|
||||
.In time.h
|
||||
.In signal.h
|
||||
.Ft int
|
||||
.Fn timer_create "clockid_t clockid" "struct sigevent *evp" "timer_t *timerid"
|
||||
.Fn timer_create "clockid_t clockid" "struct sigevent * restrict evp" "timer_t * restrict timerid"
|
||||
.Sh DESCRIPTION
|
||||
The
|
||||
.Fn timer_create
|
||||
|
@ -1,4 +1,4 @@
|
||||
.\" $NetBSD: timer_settime.2,v 1.1 2003/09/13 22:22:30 christos Exp $
|
||||
.\" $NetBSD: timer_settime.2,v 1.2 2003/09/13 22:31:04 kleink Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 2003 The NetBSD Foundation, Inc.
|
||||
.\" All rights reserved.
|
||||
@ -45,7 +45,7 @@
|
||||
.Sh SYNOPSIS
|
||||
.In time.h
|
||||
.Ft int
|
||||
.Fn timer_settime "timer_t timerid" "int flags" "const struct itimerspec *tim" "struct itimerspec *otim"
|
||||
.Fn timer_settime "timer_t timerid" "int flags" "const struct itimerspec * restrict tim" "struct itimerspec * restrict otim"
|
||||
.Ft int
|
||||
.Fn timer_gettime "timer_t timerid" "struct itimerspec *tim"
|
||||
.Ft int
|
||||
|
Loading…
Reference in New Issue
Block a user