Commit Graph

533 Commits

Author SHA1 Message Date
mycroft
7b360ef2b7 Make _sys_nerr const. 1997-10-09 11:31:05 +00:00
pk
98cfb5140f Restore the NAPPEND macro, as it existed until revision 1.13, that deals
with roots consisting of a single slash. This special case of special
cases cannot be dealt with in fts_open() by simply chopping of a
trailing slash.

All this to avoid the occasional doubling of slashes. Oh well..
1997-10-08 19:56:59 +00:00
mycroft
5ae3044c2d Make sure the command list is properly terminated when parsing an
octal mode.  From Alasdair Baird in PR 4232.
1997-10-08 17:19:13 +00:00
kleink
8a7cd68e8b getcwd(3) is not defined by ANSI C but by 1003.1; pointed out by Alan Curry
in PR lib/4238.
1997-10-08 09:28:01 +00:00
pk
3beb1a70cf In fts_alloc() copy the trailing 0 character explicitly, instead of
relying on the passed input string having a 0 character at the right spot.
Takes care of PR#4234.
1997-10-07 23:02:17 +00:00
enami
9512162b01 Delete `: %m' from a format string passed to err(). 1997-09-29 06:52:40 +00:00
enami
16602dcb61 Use warn() instead of err() as an example of ``Warn of an error''. 1997-09-29 05:33:03 +00:00
pk
4c956be8c9 The change in revision 1.13 to avoid doubling slashes in path names
messes up the internal administrations of the fts engine.

Do this differently by simply stripping one trailing slash (if any)
from root paths passed to fts_open().
1997-09-27 22:53:07 +00:00
hubertf
8b3a21aeca Fix some typos reported by entropy@tardis.bernstein.com.
Fixed PR lib/4154.
1997-09-27 19:39:26 +00:00
mikel
1ff7d5da2e crib text from sleep(3) to document response to signals; fixes PR 4008 1997-09-20 04:52:36 +00:00
leo
a539aec784 Commit userland part of pr-1891. 1997-09-19 19:17:17 +00:00
thorpej
4ccbd4b430 Make this safe in environments that have a Real vfork(2). Bug pointed
out by Chuck Cranor <chuck@netbsd.org>
1997-09-16 00:35:47 +00:00
jtc
5b466bef97 Changed order of STANDARDS and HISTORY subheads to conform with
specification in mdoc(7).
1997-09-09 07:26:02 +00:00
kleink
66105c37fc Lseek(2) usage cleanup: the use of L_SET/L_INCR/L_XTND is deprecated,
use SEEK_SET/SEEK_CUR/SEEK_END instead.
1997-08-25 19:31:43 +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
mikel
7f65a4ecfc don't forget d_type when copying dirent structure; from Giles Lean in
PR lib/3913.  also, replace d_ino with d_fileno.
1997-08-03 06:19:40 +00:00
jtc
990a11b9c6 Fix files using old TNF copyright notice 1997-07-30 23:53:32 +00:00
thorpej
5780269849 Document new UDP and TCP tunables. 1997-07-28 22:24:01 +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
d77864a270 Substitute a `2' with STDERR_FILENO for clarity; minor KNF. 1997-07-19 19:43:59 +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
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
thorpej
2d0f14c527 "Fix" the non-__indr_reference verions of the user-callable versions
of these functions.  This is somewhat of a kludge, but there is not
much else we can do for this case.

Because of how the callable versions are created, by CPP trickery
and inclusion of another .c file, we cannot allow the included .c
file to pull in "namespace.h", since it undoes the CPP trickery we
have performed.  Introduce a CPP macro that prevents the included .c
file from pulling in "namespace.h".
1997-07-17 21:33:14 +00:00
thorpej
c1109ff89e - Don't deref a bad pointer in the event the object has no symbol
section header.  Instead, treat the object as stripped.
- Add a "default" case to the symbol type switch to calm GCC's jets.
1997-07-17 00:54:27 +00:00
mikel
ab18bfe1bf add toascii(3) 1997-07-16 06:22:07 +00:00
mikel
bd37c10e9d add NetBSD RCSid 1997-07-16 06:20:20 +00:00
mikel
b797d3b1e5 import 4.4BSD-Lite2 version 1997-07-16 06:18:11 +00:00
kleink
c213a3af8b Add missing `STANDARDS' compliance statements. As we #define _POSIX_VERSION
to 199009L, bump existing statements to 1003.1-1990.
1997-07-14 23:19:39 +00:00
kleink
b9ae69fdae KNF. 1997-07-14 19:40:49 +00:00
mikel
e6f7684f2a xref getlogin(2) not getlogin(3) 1997-07-14 02:07:10 +00:00
christos
26cc2d4f50 Fix RCSID's 1997-07-13 19:45:36 +00:00
christos
3e24b5bccd Use "namespace.h"
Fix RCSID's
1997-07-13 19:43:28 +00:00
christos
7df7f83e92 Fix RCSID's
Fix gcc warnings.
1997-07-13 19:43:00 +00:00
christos
464fdb2e8e Fix RCSID's
Use "namespace.h"
1997-07-13 19:42:37 +00:00
christos
28db57eb43 Fix RCSID's
Use "namespace.h"
1997-07-13 19:42:12 +00:00
christos
3f8967b868 Add prototype for sleephandler
Fix RCSID's
1997-07-13 19:41:46 +00:00
christos
bcc1cc51d6 Fix gcc warning
Fix RCSID's
1997-07-13 19:41:13 +00:00
christos
f4e2b6ec66 Fix RCSID's
Fix gcc warnings
1997-07-13 19:35:36 +00:00
christos
615413beb6 Include "extern.h" to get prototype for _tztab
Fix gcc warnings.
Fix RCSID's
1997-07-13 19:35:08 +00:00
christos
129c9a2b53 Pacify gcc
Fix RCSID's
1997-07-13 19:34:16 +00:00
christos
68c8f13fd6 Include "extern.h" to pick up prototype for sysctl.
Fix RCSID's
1997-07-13 19:33:49 +00:00
christos
f01d533d35 Fix RCSID's
Remove unused variable
1997-07-13 19:32:15 +00:00
christos
47d1af8a89 Fix RCSID's
Use namespace.h
1997-07-13 19:31:49 +00:00
christos
918197d3b3 Prototype sleephandler
Fix RCSID's
1997-07-13 19:31:25 +00:00
christos
1200f6cd80 Fix RCSID's
pacify gcc
1997-07-13 19:18:39 +00:00
christos
5ea18919c4 Fix RCSID's
Add missing unistd.h include
1997-07-13 19:18:05 +00:00
christos
6ca98be503 Fix RCSID's
Add missing unistd.h unclude
1997-07-13 19:17:41 +00:00
christos
28af8b8ef8 Fix RCSID's
Parenthesize
1997-07-13 19:17:13 +00:00
christos
7febd1ef31 Fix RCSID's
Use extern.h don't make local prototypes
1997-07-13 19:16:45 +00:00