diff options
author | dufault <dufault@FreeBSD.org> | 1998-03-28 11:51:01 +0000 |
---|---|---|
committer | dufault <dufault@FreeBSD.org> | 1998-03-28 11:51:01 +0000 |
commit | 8ed0defc6e5c9d291026302e0d45357454484c5d (patch) | |
tree | 805e852c0dbabdcdb6254773c9023caa32928e3a /include/time.h | |
parent | cd450d67141a2e84500ff624dc9d39c255a7de77 (diff) | |
download | FreeBSD-src-8ed0defc6e5c9d291026302e0d45357454484c5d.zip FreeBSD-src-8ed0defc6e5c9d291026302e0d45357454484c5d.tar.gz |
Finish _POSIX_PRIORITY_SCHEDULING. Needs P1003_1B and
_KPOSIX_PRIORITY_SCHEDULING options to work. Changes:
Change all "posix4" to "p1003_1b". Misnamed files are left
as "posix4" until I'm told if I can simply delete them and add
new ones;
Add _POSIX_PRIORITY_SCHEDULING system calls for FreeBSD and Linux;
Add man pages for _POSIX_PRIORITY_SCHEDULING system calls;
Add options to LINT;
Minor fixes to P1003_1B code during testing.
Diffstat (limited to 'include/time.h')
-rw-r--r-- | include/time.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/time.h b/include/time.h index 29cae4c..3ef8360 100644 --- a/include/time.h +++ b/include/time.h @@ -42,6 +42,7 @@ #define _TIME_H_ #include <machine/ansi.h> +#include <sys/_posix.h> #ifndef _ANSI_SOURCE /* @@ -73,7 +74,10 @@ typedef _BSD_SIZE_T_ size_t; #undef _BSD_SIZE_T_ #endif -#if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE) +/* XXX I'm not sure if _ANSI_SOURCE is playing properly + * with the setups in _posix.h: + */ +#if !defined(_ANSI_SOURCE) && defined(_P1003_1B_VISIBLE_HISTORICALLY) /* * New in POSIX 1003.1b-1993. */ @@ -140,7 +144,9 @@ char *timezone __P((int, int)); void tzsetwall __P((void)); time_t timelocal __P((struct tm * const)); time_t timegm __P((struct tm * const)); +#endif /* neither ANSI nor POSIX */ +#if !defined(_ANSI_SOURCE) && defined(_P1003_1B_VISIBLE_HISTORICALLY) /* Introduced in POSIX 1003.1b-1993, not part of 1003.1-1990. */ int clock_getres __P((clockid_t, struct timespec *)); int clock_gettime __P((clockid_t, struct timespec *)); |