Commit Graph

16 Commits

Author SHA1 Message Date
kleink a57dd5b211 Per XPG4.2:
* Change argument to type useconds_t, return an int.
* If an interval of 1,000,000 or more microseconds was requested, fail with
  -1/EINVAL.
1997-11-24 19:56:30 +00:00
mikel e9484eba42 fix overflow problem found by Rick Byers <rickb@iaw.on.ca>; fix by
<entropy@tardis.bernstein.com> in PR lib/4005.
1997-08-19 04:34:15 +00:00
jtc 43fa6fe319 If port provides __weak_alias(), provide an Standard C and POSIX pure
identifier namespace by renaming non standard functions and variables
such that they have a leading underscore.  The library will use those
names internally.  Weak aliases are used to provide the original names
to the API.

This is only the first part of this change.  It is most of the functions
which are implemented in C for all NetBSD ports.  Subsequent changes are
to add the same support to the remaining C files, to assembly files, and
to the automagically generated assembly source used for system calls.
When all of the above is done, ports with weak alias support should add
a definition for __weak_alias to <sys/cdefs.h>.
1997-07-21 14:06:24 +00:00
kleink fd8f56cb11 __RCSID() police; from jbernard@tater.mines.edu in PR lib/3890. 1997-07-19 15:58:31 +00:00
jtc 2526fda257 Implement sleep() and usleep() in terms of nanosleep(). Uses only one
syscall instead of eight, and doesn't have any interactions with alarm
or interval timers.
1997-07-19 02:42:30 +00:00
christos 3f8967b868 Add prototype for sleephandler
Fix RCSID's
1997-07-13 19:41:46 +00:00
pk 5e25a3816d Eliminate race by stopping timer before restarting it with remaining time
(one more system call).
1995-10-26 22:07:00 +00:00
pk 0a3f02bda0 Eliminate race in the "normal" case of not being interrupted by another signal. 1995-10-20 17:32:06 +00:00
pk d2c2babb9f 1) Turn off timer before resetting signal disposition.
2) Set signal mask before signal action, to avoid held SIGALRMs
   bursting in after unsetting the handler.
1995-10-16 18:58:47 +00:00
mycroft aff3578b36 Explicitly unblock SIGALRM while waiting. 1995-05-03 12:52:43 +00:00
mycroft 62648a14f0 Clone from sleep(), with the logic for returning a value removed. 1995-03-21 13:50:32 +00:00
jtc 88ba3f858c Changed <sys/signal.h> to <signal.h> 1995-02-28 01:13:50 +00:00
cgd 63de9506bf merge with Lite, keep local changes. clean up id usage 1995-02-25 15:39:01 +00:00
jtc 9c20f740a3 Declare rcsid strings so they are stored in text segment. 1993-08-26 00:43:03 +00:00
mycroft f23f94cb77 Add even more RCS frobs. 1993-07-30 08:21:41 +00:00
cgd 61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00