Commit Graph

19 Commits

Author SHA1 Message Date
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
897349ed1e __RCSID() police, typo in variable name; from jbernard@tater.mines.edu in
PR lib/3889.
1997-07-19 16:02:05 +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
918197d3b3 Prototype sleephandler
Fix RCSID's
1997-07-13 19:31:25 +00:00
phil
8bcbf9b3bb Make it correctly return unslept seconds if interrupted for any other
reason than SIGALRM.  (Was ALWAYS returning 0.)
1996-08-02 17:52:50 +00:00
mycroft
c2102b50ad Slight simplification. 1996-05-11 11:04:51 +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
d53dfd3d3c Minor changes. 1995-03-21 13:44:40 +00:00
mycroft
f75ba16b09 Update to use timer{add,sub}(). 1995-03-21 13:33:34 +00:00
cgd
ee38224d2e fix up some RCS Id's i botched. 1995-03-04 01:55:49 +00:00
cgd
9060ff0dc7 merge with 4.4-Lite, keeping local changes. clean up Ids 1995-02-27 05:50:11 +00:00
mycroft
9440ca7539 Clean this up a little. No functional changes. 1994-12-11 17:34:10 +00:00
jtc
5ab3d5f30a Changed to be POSIX.1 complian; now sleep can be interrupted, and it returns
the amount of time left "unslept" when it is.
1994-05-28 06:25:04 +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