Commit Graph

630 Commits

Author SHA1 Message Date
jtc 45da58c78f Changed signal prototype to be more like ANSI C 1996-03-26 02:05:55 +00:00
christos 0ded611f77 Add missing documentation for TTY_MDMBUF. 1996-03-17 19:36:53 +00:00
neil c276195bf7 Fixed SEE ALSO section. Closes PR # 2049 1996-02-11 16:15:40 +00:00
phil 7b194ded98 Rewrite the description of alarm(3) to match reality. 1996-02-01 20:11:48 +00:00
mycroft 99374f84f7 Add missing argument to warnx(). 1996-01-22 16:34:08 +00:00
thorpej 535abd80a2 Add a net.inet.ip.directed-broadcast sysctl as suggested by
Darren Reed <darrenr@vitruvius.arbld.unimelb.edu.au> in PR #1227.
This change is slightly different than the one submitted by Darren in
that the DIRECTED_BROADCAST compile-time option will behave like it used
to so that existing configurations utilizing it won't have to change.
1996-01-16 04:17:30 +00:00
thorpej 4b359df8c4 Add net.inet.ip.forwsrcrt: if zero, the system will not forward
source-routed packets.  Note this value is protected by kernel security
level; it can only be changed if securelevel < 1.
1996-01-15 21:11:46 +00:00
thorpej 6dda330ef6 New-style RCS ids. 1995-12-28 08:51:55 +00:00
jtc bdb00bc144 Changed to use alloca() instead of malloc() to allocate argument vectors.
Programs that don't use malloc()/free() (ie. provide their own allocation
scheme atop sbrk()) should still be able to use exec*.
1995-12-14 16:51:27 +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
jtc 0e3da40dbe Manpage fixes from Jochen Pohl. Aligns the prototypes in the SYNOPSIS
section with the actual function declarations.  Also fixes decription
of _SC_CLK_TCK in sysconf(3).  See PR #1587 and PR #1589 for details.
1995-10-12 15:39:23 +00:00
thorpej 07db43dc14 Document new RFC1323 sysctl variable. 1995-09-30 07:03:54 +00:00
cgd c178576bae add hack-ish support for ecoff nlists (used only on the Alpha).
It's hack-ish, but it appears to work well enough for all/most
programs that use libkvm, e.g. ps, w, netstat, dmesg, etc.
1995-09-29 04:19:59 +00:00
mycroft 23de03812d Clean up a little, and fix a fencepost error. 1995-08-31 16:28:01 +00:00
jtc aa8fc243af Don't overflow fixed sized buffers. Parts of this patch come from
Perry Metzger, Charles Hannum and Paul Kranenburg.
1995-08-30 21:20:36 +00:00
mycroft ce6374e6be Do not terminate the search on errors other than ENOENT. 1995-08-24 05:26:35 +00:00
jtc cb188d3b35 fix typo 1995-08-12 05:02:46 +00:00
jtc a6751cc939 Updated for LOG_FTP (PR #1312).
Edited the examples section so that they are all separated by a single
blank line, since they're unrelated.  SunOS' syslog(3) has a sentance
or two describing each line.  We'll either have to come up with our
own text or ignore it.  I'm ignoring it for now.
1995-08-11 00:34:34 +00:00
thorpej 0f77910137 Add and document a `kern.rawpartition' sysctl. 1995-08-04 18:36:08 +00:00
jtc 29308d7d0d stdio.h -> unistd.h 1995-07-30 06:05:35 +00:00
phil e69d413643 Improvements to YP support from Jason Downs. 1995-07-28 05:43:01 +00:00
jtc 3b6cda53f9 add setlocale(3) and strsignal(3) cross references 1995-07-03 22:48:08 +00:00
cgd 3d113b326b don't assume f_fstypename is larger than MFSNAMELEN or is nul-terminated 1995-06-18 10:58:06 +00:00
jtc 9c87841ac4 Change return type of {get,set}{domain,host}name() from long to int. 1995-06-16 07:36:03 +00:00
jtc edbbf562ba <sys/termios.h> -> <termios.h> 1995-06-16 07:20:35 +00:00
jtc bd3ac90048 getsubopt() uses strcmp(), so include <string.h> 1995-06-16 07:15:18 +00:00
jtc ed7060c4a6 Use standard conditional for rcsid definition. 1995-06-16 07:12:41 +00:00
jtc 915b76dd9f Don't cast void functions to void. 1995-06-16 07:05:27 +00:00
jtc a646349d2b Open with O_NONBLOCK, in case someone tries to open a blocking device
or a non-open fifo instead of a directory.
1995-06-12 19:38:02 +00:00
cgd 85ab28f7aa eliminate the need for some (fatal) casts. 1995-06-07 13:14:09 +00:00
mycroft ac1e0f5127 Don't set the rgid or egid. Document this behavior. This is compatible with
SunOS and SysV.
1995-06-03 02:27:17 +00:00
mycroft 19755ba159 We must do setgid() explicitly now. 1995-06-02 21:25:09 +00:00
jtc 4cb508307a Don't duplicate the primary group. The first member of the groups list
no longer serves as effective group id.
1995-06-01 22:51:17 +00:00
mycroft be21323869 Modify getpwent() to use __ypparse(). 1995-05-17 17:36:43 +00:00
mycroft 5eb65c6b09 Use the new ps_strings format. 1995-05-16 14:23:06 +00:00
jtc 3ba2c075cf #include appropriate header files to bring prototypes into scope 1995-05-13 06:58:18 +00:00
jtc 9ae90685f2 Winning Strategies has placed this code in the public domain. 1995-05-11 23:03:44 +00:00
mycroft aff3578b36 Explicitly unblock SIGALRM while waiting. 1995-05-03 12:52:43 +00:00
mycroft 66f0c16f14 Use POSIX tty semantics. 1995-05-02 01:40:14 +00:00
jtc 02788519a9 termios code has been moved to new libc/termios directory. 1995-04-25 00:06:17 +00:00
ragge db0c9cd300 Removed VAX specific definitions. 1995-04-17 12:28:29 +00:00
cgd 76a6b7c3b3 fix operator precedence error (pr 951 from Ted Lemon) 1995-04-11 02:57:52 +00:00
jtc f86410093b Changed name of __weak_reference() to __indr_reference(). They really
are indirect references, and I want to add a real __weak_reference()
macro to <machine/cdefs.h> soon.
1995-03-23 19:58:48 +00:00
jtc 7870f9f542 removed unnecessary #include <stddef.h> 1995-03-23 19:51:13 +00:00
mycroft 62648a14f0 Clone from sleep(), with the logic for returning a value removed. 1995-03-21 13:50:32 +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
pk a63744d63c Speed up getgrnam() and getgrpid() by using yp_match(). 1995-03-16 11:48:01 +00:00
jtc 016bb710d9 ctime.3 and tzset.3 manpages have been moved to libc/time. 1995-03-10 06:29:15 +00:00
jtc 20d50456cc Removed references to ctime.3 and tzset.3 manpages and associated manpage
links (they have been moved to libc/time).
1995-03-10 06:15:10 +00:00
jtc 57274dc48e date and time functions have been moved 1995-03-09 23:31:07 +00:00
cgd ee38224d2e fix up some RCS Id's i botched. 1995-03-04 01:55:49 +00:00
mycroft 4c34be6b52 Clean up deleted files. 1995-03-01 00:00:00 +00:00
jtc 88ba3f858c Changed <sys/signal.h> to <signal.h> 1995-02-28 01:13:50 +00:00
cgd 1e1bba23c7 make lint/SCCS Id if more standard. 1995-02-27 15:47:03 +00:00
cgd c18290a117 delete wordexp reference 1995-02-27 06:25:38 +00:00
cgd fecf194677 oops; we do need errno.h 1995-02-27 06:21:23 +00:00
cgd 9060ff0dc7 merge with 4.4-Lite, keeping local changes. clean up Ids 1995-02-27 05:50:11 +00:00
cgd f9f97c4fab merge with Lite, keeping local changes. Fix up Id format, etc. 1995-02-27 04:34:47 +00:00
cgd 5a21812615 oops; since i kept the writev() trick, still need uio.h 1995-02-27 04:34:44 +00:00
cgd d7ab506f38 merge with Lite, keeping local changes. Fix up Id format, etc. 1995-02-27 04:34:25 +00:00
cgd b585e843ca update from Lite, with local changes. fix Ids, etc. 1995-02-27 04:12:15 +00:00
cgd 72c46b1cdc merge with Lite, keeping local changes. Also use new Id format. 1995-02-27 03:42:42 +00:00
cgd 516f67f7c9 re-order things the way they'd like to be ordered 1995-02-25 17:19:26 +00:00
cgd 714c54bd02 fix prototype that i botched. 1995-02-25 17:18:31 +00:00
cgd db638fe19d typo 1995-02-25 17:17:33 +00:00
cgd 4145a97c7f oops; biffed path 1995-02-25 17:08:29 +00:00
cgd a87693f257 update from Lite, clean up a bit, seperate arch-specific file list. 1995-02-25 17:05:19 +00:00
cgd 63de9506bf merge with Lite, keep local changes. clean up id usage 1995-02-25 15:39:01 +00:00
cgd 5d6d569765 update to 4.4-Lite and/or clean up Id 1995-02-25 14:09:35 +00:00
cgd 6e6a4e85b0 update to 4.4-Lite where appropriate, clean up Id format, etc. 1995-02-25 13:40:51 +00:00
cgd 97d9d67a27 from lite, with minor name rearrangement to fit. 1995-02-25 09:11:37 +00:00
cgd 2c4d3c4c4a clean up Id's on files previously imported... 1995-02-25 08:50:56 +00:00
cgd b380b015d1 make this 64-bit-safe. 1995-02-10 18:15:05 +00:00
cgd b42e80ba75 list the files needed on the alpha. 1995-02-10 17:46:48 +00:00
mycroft 44525cd591 Clean up deleted files. 1995-02-05 06:09:30 +00:00
jtc 94da0b5da5 Merged with 4.4lite, with hopes that it would fix the bug where mktime()
would spin in an infinate loop when passed a tm struct with all fields
set to INT_MIN.  It isn't a complete fix, the loop now terminates but
mktime() does not return (time_t) -1.

I sent mail to bostic about this, who replied that the changes in 4.4BSD
were to fix this exact problem.  My next step is to send mail to Arthur
David Olson, the original author and maintainer of this code.
1995-02-01 18:09:39 +00:00
cgd dc70e3ae1b document sysctl variable kern.maxpartitions 1995-01-25 06:09:12 +00:00
cgd 26099b453e note KERN_DOMAINNAME, the addition of tickadj to KERN_CLOCKINFO. 1995-01-24 23:55:48 +00:00
pk a64c43edd8 Add sigsetjmp() for sparc. 1995-01-11 20:23:59 +00:00
jtc f34d1ed7d1 Password databases live in /etc, not /var/db. (PR #685) 1995-01-03 15:57:32 +00:00
mycroft 31146ca7e8 Format police, and a small patch for 64-bitness. 1994-12-28 03:34:37 +00:00
mycroft 0121eacdc1 Repair a couple of things. 1994-12-28 03:22:37 +00:00
mycroft 05fe3ff1f7 Mostly sync with CSRG. 1994-12-28 03:06:05 +00:00
jtc 7141eb20ba 4.4lite's C language sigsetjmp() implementation is bogus, restore
machine dependant versions.
1994-12-23 22:25:48 +00:00
cgd ae9172d6cd specify man pages the new way. 1994-12-22 09:57:51 +00:00
cgd 2eed827e82 make libc work again, on systems that don't support __warn_reference 1994-12-18 11:32:37 +00:00
cgd b70de87ec8 make type-size safe. 1994-12-18 09:09:48 +00:00
cgd 02ae34d854 add #include description, from Jim Jegers 1994-12-18 04:26:06 +00:00
pk 26a352d1dd Provide backwards compatibility with previous "doubly-underscored"
symbols. Avoids updating libc's major version number for this internal change.
1994-12-17 16:27:03 +00:00
pk 7c93bbccb8 Refer to _sys_siglist with just one underscore. 1994-12-17 16:18:10 +00:00
pk c0aee44a2f Correct number of underscores on internal function calls. 1994-12-17 16:16:00 +00:00
jtc 37d79a5d9d Fixed cross reference: sysctl(1) -> sysctl(8). 1994-12-15 08:44:35 +00:00
mycroft e4db9f8bda Clean up deleted files. 1994-12-12 22:42:14 +00:00
jtc 3c98cdcd84 Rework indirect reference support as outlined by my recent message to
the tech-userlevel mailing list.
1994-12-12 22:41:50 +00:00
christos cc23e692fb Return null for empty strings in triplets, not the empty string.
Fix memory corruption with double-freeing ng_copy. (From Jason Downs)
1994-12-12 19:05:31 +00:00
christos b69aa4831d NIS -> YP changes and other typos fixed (From Jason Thorpe) 1994-12-11 22:47:06 +00:00
christos 9cc12a55d4 - Changed all internal libc references of {v,}err{x,} and {v,}warn{x,} to
__{v,}err{x,} and __{v,}warn{x,}
- moved err.c to __err.c and added err.c which contains weak references for
  the above functions.
- Reordered the functions in __err.c to avoid redeclarations and changed
  the varargs declarations to conform with the K&R style.
1994-12-11 20:43:48 +00:00
mycroft f6a8ef8452 Fix spelling error. 1994-12-11 17:50:52 +00:00
mycroft 9440ca7539 Clean this up a little. No functional changes. 1994-12-11 17:34:10 +00:00
jtc 912b8b6429 Use 44lite's clever sigsetjmp()/siglongjmp() implementation I just imported. 1994-12-10 11:29:03 +00:00
jtc cb010fc468 Changed to conform to NetBSD's new RCS Id convention. 1994-12-10 11:23:43 +00:00
jtc 362fb60ac0 imported from 4.4lite 1994-12-10 11:20:54 +00:00
deraadt 3dffaf5ef4 remove duplicate infinity.c 1994-12-07 14:52:59 +00:00
phil 6adbfc3390 Adding sigsetjmp.S for ns32k. 1994-12-07 04:47:23 +00:00
christos 4f0c59b986 New netgroup implementation; replaces Rick's old one that did not
expand recursively or handle YP.
1994-12-04 18:12:12 +00:00
jtc 8e2c0fe739 Unconditionally call tzset() in internal function localsub(), so that
localtime() and mktime() conform to POSIX.1.
1994-11-17 08:47:21 +00:00
dean a7d9360c57 Include files for pmax 1994-11-14 23:46:52 +00:00
mycroft 18ff56020d Avoid extra stat()s if a link count of 1 is returned for directories but the
d_type field is filled in.
1994-10-26 20:25:50 +00:00
cgd 08ef3b378e typo 1994-10-25 03:41:32 +00:00
mycroft e7a6fa4989 Clean up deleted files. 1994-10-20 04:17:01 +00:00
cgd ac8938c341 make the sysv functions real syscalls. 1994-10-20 04:16:58 +00:00
cgd cab251d528 beware cast & variable types. 1994-10-19 03:14:12 +00:00
cgd 09349637c8 beware cast type. 1994-10-19 03:13:42 +00:00
cgd a71924beb6 needs stdlib.h 1994-10-19 03:13:22 +00:00
cgd fb0e5b3009 pointer type. 1994-10-19 03:13:09 +00:00
cgd 32e7357c0f either change or update references to sigvec(), as appropriate 1994-10-17 23:49:08 +00:00
cgd 078237de11 oops; fix that. 1994-10-13 19:55:27 +00:00
cgd 2c979dcde5 check bounds properly. 1994-10-13 19:47:10 +00:00
mycroft 54e2c82954 Clean up deleted files. 1994-10-10 04:46:46 +00:00
jtc c50384799a Renamed sys_errlist[] and sys_nerr to __sys_errlist[] and __sys_nerr.
The traditional API of sys_errlist[] and sys_nerr is provided by weak
references if they are supported.  Otherwise, we're forced to have to
have two copies of the error message string table in the library.
Fortunately, unless a program uses both sys_errlist[] and strerror(),
only one of the copies will be linked into the executable.

This is all to provide an clean namespace as required by ANSI.  I've
done the same for sys_siglist[], even though it is not required, to
be consistant.
1994-10-10 04:46:39 +00:00
jtc d9c2e7b590 Change size of array passed to __strsignal() from 128 to NL_TEXTMAX. 1994-10-06 18:16:18 +00:00
jtc f5e46c89f4 Call __strsignal() instead of accessing sys_siglist[] directly. 1994-10-06 18:07:45 +00:00
mycroft 1ac05a7acc Fix oversight in last change. 1994-09-19 23:46:29 +00:00
mycroft fedcc257c7 Update to 4.4-Lite version. 1994-09-19 07:50:52 +00:00
mycroft 2c009d6038 Remove the #define KERNEL, now that we don't need it. Too bad we need FREAD and
FWRITE at all.  Sigh.
1994-09-19 07:38:27 +00:00
mycroft 485773b00a Fix null pointer dereference, per Rolf Grossman. 1994-09-19 04:32:45 +00:00
mycroft 3270e71a99 Stylistic changes. 1994-09-18 04:32:35 +00:00
pk 9c216a1fb2 Cache pagesize. 1994-09-15 10:49:53 +00:00
pk 07dce62879 Use getpagesize() in stead of CLBYTES. 1994-09-15 10:48:51 +00:00
mycroft 9116e142b9 Clean up deleted files. 1994-08-29 04:47:33 +00:00
mycroft 4bdad03539 Fix broken import of Lite directory code. 1994-08-29 04:47:31 +00:00
mycroft a295767a9e Correct first arg in synopsis. 1994-08-29 03:27:36 +00:00
cgd bcf72fa869 frexp.? is machine-dependent, as suggested by phil. 1994-08-19 20:57:43 +00:00
mycroft f8ee12b11b Use writev(2) when reporting errors. 1994-08-13 09:41:50 +00:00
pk 9a16044f94 Allow a `#' to appear on line by itself (without spitting out errors). 1994-08-13 09:03:21 +00:00
jtc 1623a70fdf Updated to reflect the fact that these functions now detect errors
and that only sigemptyset() and sigfillset() have macro implementations.
1994-08-12 05:01:23 +00:00
deraadt 8b4fd14bfb be lenient; let a few other forms of + activate YP 1994-08-02 05:15:25 +00:00
deraadt 02fe919c29 avoid core dump 1994-07-29 18:54:17 +00:00
jtc 699331c73f Add RCS Id's 1994-07-27 14:39:44 +00:00
jtc b0cd982f44 Return NULL and set errno to ENOTDIR if opening a non-directory (POSIX.1,
Section 5.1.2.4).  Rename _seekdir to __seekdir, as former is in the
user's namespace.
1994-07-27 14:37:39 +00:00
jtc ad1d3832de Sync with 4.4 lite 1994-07-27 05:37:08 +00:00
jtc 409e85d379 opendir() & friends from 4.4lite. 1994-07-27 05:26:23 +00:00
jtc e954ff817b opendir() & friends from 4.4lite. 1994-07-27 05:26:13 +00:00
jtc b03f43b105 install getnetgrent() manpage 1994-06-28 04:34:24 +00:00
jtc c9f8f01b96 Moved RCS ID into static variable rcsid 1994-06-26 16:27:34 +00:00
jtc 288ce51d32 Ftok() routine, needed by most programs that use SysV IPC. 1994-06-26 16:24:55 +00:00
jtc 619eb60761 Avoid core dump when using NULL message string. 1994-06-26 16:13:06 +00:00
cgd 747476fd42 fix up includes for new FS code 1994-06-12 22:52:01 +00:00
jtc 59ad910d74 Note that confstr() is POSIX.2 compliant. 1994-06-11 16:44:28 +00:00
jtc fbb595cc94 Replace my version of confstr() with 4.4 lite's, which gets its values
with sysctl().
1994-06-11 16:40:46 +00:00
jtc 5e8c28642a from 44lite 1994-06-11 15:28:19 +00:00
hpeyerl 610896d9a0 (blush). They didn't *ALL* have to be changed. 1994-05-29 00:35:59 +00:00
hpeyerl 1da03a4d37 If we're going to re-activate these guys; we better make sure they
compile.
1994-05-28 23:37:53 +00:00
mycroft 63962a5c5e We have shm again. 1994-05-28 23:16:48 +00:00
jtc 241ecab4d2 Describe POSIX behavior of sleep.
More could be added, especially describing the effects of scheduling and/or
blocking SIGALRM outside of a sleep().  Also, using longjmp() in a signal
handler.  But this will do until someone gets inspired to fill in the
grotty details.
1994-05-28 16:11:27 +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
deraadt 7433140cea need sys/param.h 1994-05-24 08:17:37 +00:00
cgd 1dc033755e clean up import 1994-05-23 00:55:25 +00:00
chopps 79ae46e57f no more lsearch.3. 1994-05-21 09:17:49 +00:00
mycroft cf8aad3231 Clean up deleted files. 1994-05-19 06:27:13 +00:00
jtc 44aaa7fd0d cuserid() was moved to libcompat w/4.4 lite. 1994-05-19 06:27:11 +00:00
mycroft 66f3291923 Clean up deleted files. 1994-05-19 06:09:13 +00:00
jtc 69fbb0938f 4.4lite's libcompat provided a lsearch() and lfind() implementation which
has been already integrated into NetBSD, so we don't need/want mine anymore.
1994-05-19 06:09:10 +00:00
mycroft be4f78724b Add {set,get,end}netgrent(). 1994-05-17 13:32:31 +00:00
mycroft 6bb037ec32 From 4.4-Lite. 1994-05-17 13:30:51 +00:00
mycroft 1c98b23af1 New from 4.4-Lite. Needed for some 4.4 FS utilities. 1994-05-17 12:42:30 +00:00
cgd 725ed31e82 copyright foo 1994-05-17 04:13:48 +00:00
cgd b55fd24a8e new assert helper 1994-05-17 00:07:23 +00:00
cgd acdc4b7e70 shm sources won't compile; no more shm.h 1994-05-11 04:45:13 +00:00
jtc 3cb178ff70 merge in our POSIX.2 changes (again) 1994-05-09 16:28:27 +00:00
cgd e23e45bcfc new nlist routines 1994-05-09 03:14:43 +00:00
cgd 8b8a31862e update for present reality. shlib version number bump (last for a bit) 1994-05-07 04:11:08 +00:00
cgd 3580a0da69 domainname stuff 1994-05-07 03:09:19 +00:00
cgd eb985c6d35 clean up conflicts 1994-05-07 03:03:09 +00:00
cgd 060d0e3d1a various sysctl-related libc functions 1994-05-07 02:52:59 +00:00
cgd cd45651c63 devname() routine 1994-05-06 22:48:31 +00:00
jtc e8ed9b3ab8 merge our changes into 4.4lite 1994-05-06 18:44:23 +00:00
cgd ec3c28bf59 add getgrouplist 1994-05-05 23:12:53 +00:00
cgd bbec950385 POSIXification and bostic's official fix for the missing relative path problem 1994-04-17 02:21:02 +00:00
cgd 6e0cf55f61 setproctitle(); no reason to have this code spread into N utils... 1994-04-14 03:13:39 +00:00
cgd d7bb411a87 re-POSIXIFICATION. should have been punted back to bostic... 1994-04-12 04:41:17 +00:00
cgd 1bf99f645f oops, restore bug fix that wasn't fed back to bostic... 1994-04-12 04:35:04 +00:00
cgd 92bb6b9feb minor fixes 1994-04-12 03:21:35 +00:00
mycroft 886ad6373f And strunvis(3), too. 1994-04-09 01:31:24 +00:00
mycroft bb3b5f1606 There's a big difference between NULL and NUL. 1994-04-09 01:29:31 +00:00
mycroft 3f8fdc7ebf Add links for strvis(3) and strvisx(3). 1994-04-09 01:26:25 +00:00
mycroft a8735bf4ab Clean up deleted files. 1994-04-06 23:29:16 +00:00
cgd a2770ef528 M-x shuffle-functions-and-documentation
basically, move things around so documentation is in the correct place,
and bump appropriate functions into the 'compat' section.
1994-04-06 23:28:36 +00:00
cgd a1fcdedb9d oops! 1994-03-30 08:22:07 +00:00
cgd e4e4ac83f6 typo 1994-03-30 06:31:02 +00:00
cgd f67d02e52c gid_t is your friend! 1994-03-30 03:51:32 +00:00
cgd abc6222e32 update based on some work i did for 4.4BSD 1994-03-29 10:50:28 +00:00
cgd e075c679c6 don't ever extern lseek... 1994-03-28 02:34:45 +00:00
cgd eac55eb1b3 slight mod 1994-03-26 02:51:45 +00:00
cgd 7fe62dc1b8 don't forget section number; from Luke Mewburn <lm@rmit.edu.au> 1994-03-19 08:02:51 +00:00
cgd ed556c22a5 update for new flag 1994-03-18 04:14:27 +00:00
cgd 2df62691cf add some new flags for /etc/ttys' status field 1994-03-12 06:38:48 +00:00
deraadt 00f04ee544 __initdb() should only warn about spwd.db errors once, fix from
Cornelis van der Laan <nils@merlin.ims.uni-stuttgart.de>
1994-03-09 10:10:29 +00:00
deraadt 46703c8a4d better, more forgiving solution to previous problem. 1994-03-07 00:58:10 +00:00
deraadt 90250ee80b fix small obscure YP buglet, and properly terminate gr_mem 1994-03-06 09:04:11 +00:00
cgd 6fbe299b0e fix for lib/156: cgetent does access free'd memory,
from Thomas Eberhardt
1994-03-06 07:54:35 +00:00
cgd 25766cfbcb fix unclear man page; better is coming (later) 1994-02-25 03:42:51 +00:00
cgd f70e42e2ee hopefully last one; more corner cases. Thanks to Mark Weaver for
inspiration, for demanding that i put one of these fixes in, and
for double-checking.
1994-02-11 05:55:45 +00:00
cgd e5b8be437f fix -[ugo] and =[ugo] 1994-02-10 23:42:09 +00:00
cgd 29270058b2 clean up, reorganize, etc. 1994-02-10 23:36:59 +00:00
proven 628d7fa69f 0 is not a valid signal, in the current scheme. The header signal.h does
#define sigmask(m)      (1 << ((m)-1))

Also sigismember is supposed to return 1 if the signal is a member of the
mask, and 0 is it isn't.
1994-02-07 04:47:49 +00:00
jtc b9db1b67a7 Fix spelling error in Copyright notice 1994-01-28 20:40:54 +00:00
jtc c56a353509 Fix printf formatting directive %02.2d -> %02d 1994-01-28 20:40:07 +00:00
jtc 5150659b0c More spelling errors 1994-01-28 20:14:54 +00:00
cgd 9d0477578c get rid of bogus comment 1994-01-28 05:43:35 +00:00
cgd f770281201 better way to get the load average 1994-01-28 04:49:23 +00:00
cgd 22d6d0d419 patch from sms@WLV.IIPO.GTEGSC.COM (Steven M. Schultz) to kill mem leak 1994-01-28 01:19:11 +00:00
cgd 919f4adecb note requirement of linking with -lkvm if you use this routine. 1994-01-28 00:19:40 +00:00
cgd 227ad953f9 add two man pages 1994-01-27 23:58:34 +00:00
cgd 73eee0505b stuff moved into libc 1994-01-27 23:51:33 +00:00
cgd b7a2e44720 kill force. 1994-01-25 21:03:26 +00:00
cgd 985686cfed kill the 'prog' arg to getbsize(); it's unneeded. minor rev bump. 1994-01-25 20:06:03 +00:00
jtc e304028c04 Fix off by one bug in pwcashe routine group_from_gid(). 1994-01-19 21:15:46 +00:00
jtc 02ae14d50f Fix obscure bug where the working directory would not be restored to its
proper place (occurs if one of fts_open()'s arguments is a relative path
to a empty directory).
1994-01-14 01:53:57 +00:00
mycroft ab823015e9 Clean up deleted files. 1994-01-12 23:11:41 +00:00
cgd a839e5389d moved to libcompat, where they belong. 1994-01-12 23:11:24 +00:00
jtc 584ac8448e Fix spelling errors. 1994-01-10 23:32:20 +00:00
jtc 38bdf5186b Fix typos & formatting. 1994-01-10 23:09:09 +00:00
jtc aa0356b56a Set errno to EINVAL and return -1 if the argument to sigaddset(), sigdelset(),
or sigismember() is out of range.  POSIX.1 allowed the old behavior, but
detecting the errors is a more reasonable course of action.
1994-01-10 23:02:09 +00:00
deraadt 2d1eff419c glob_t not GLOB_t. pointed out by <lm@rmit.edu.au> 1994-01-06 13:24:09 +00:00
jtc 672f7a6292 Use _PATH_TTY constant instead of "/dev/tty". 1994-01-04 18:27:08 +00:00
cgd f45b975fa5 rename fgetline() 1994-01-04 05:36:22 +00:00
cgd fdacf1c630 DTRT if op is = 1994-01-04 05:05:36 +00:00
jtc b64dadb1ac #include <string.h> to bring function prototypes into scope. 1993-12-28 19:45:46 +00:00
jtc 3f5672d010 Explicitly declare function return types to silence "gcc -Wall". 1993-12-23 23:14:43 +00:00
cgd fc5a16e0c4 add file eaten by crash 1993-12-23 14:00:07 +00:00
jtc d486fccc08 Add explicit "int" return types to silence gcc -Wall. 1993-12-22 18:59:39 +00:00
jtc 892c4f7549 #include <string.h> to bring prototypes into scope. 1993-12-22 18:52:58 +00:00
cgd 6039a60bb3 don't squish newline at end of fgetline()... from bostic 1993-12-22 07:10:58 +00:00
pk 47b4886a7f Return a well-known constant after becoming a daemon. 1993-12-19 08:44:42 +00:00
jtc eeb1800b0e Fix bug #24 by renaming _logname_valid to __logname_valid. 1993-12-18 01:16:18 +00:00
jtc 412e7d5328 More manpage tweaks. 1993-12-15 20:32:47 +00:00
deraadt 6401f7c13a speed up getpwnam/getpwuid for standard cases 1993-12-10 12:46:29 +00:00
pk 49d5ac06cc Added some Sparc sources. 1993-12-08 13:31:01 +00:00
mycroft 565cec3fcc Add a `const' to shut up gcc. 1993-12-06 21:47:38 +00:00
cgd f00e1cfe6a get pc532 moved into ns32k; that's is MACHINE_ARCH 1993-12-05 02:20:58 +00:00
cgd 0ada107897 update for .S and MACHINE_ARCH 1993-12-04 02:33:35 +00:00
cgd 39496a6bca get rid of extra RCS Id in header 1993-12-03 23:02:05 +00:00
jtc c2a2e6a126 Add common definition of errno back to the C library. One notable program
uses its own crt0.c, so it can't pick it up from there.
1993-12-03 19:40:23 +00:00
mycroft ded6c495f2 Remove hack for errlst.o. 1993-12-02 19:48:08 +00:00
mycroft 504c62c073 Add `const's to sys_siglist and sys_signame decls. 1993-12-02 09:50:34 +00:00
mycroft 03b753a0dd Get rid of dated MLINKS for regexp man pages.
Reported by Mark_Weaver@brown.edu.
1993-12-02 07:18:57 +00:00
mycroft e14697d8f2 Add `const's to sys_errlist decl to match 4.4. 1993-12-02 04:45:32 +00:00
jtc 17585e0f6d Manpage formatting tweaks. 1993-12-01 18:49:52 +00:00
cgd 62b6693299 fix typo; from Louis A. Mamakos <louie@TransSys.COM> 1993-12-01 02:26:50 +00:00
jtc ed9ab81fcc Use ".Va" macro when formatting "errno". 1993-11-30 21:52:46 +00:00
jtc fa8cf50620 Renamed _sigintr to __sigintr. _sigintr is in the user's namespace. 1993-11-30 21:21:42 +00:00
jtc d3b6c3481b "errno" was not being formatted with the .Va macro. 1993-11-30 00:50:58 +00:00
jtc 691ded4519 Use "Er" for argument to -width in the lists in the ERROR sections so that
formatting is consistant.
Other misc. tweaks.
1993-11-29 21:40:55 +00:00
jtc f5edebac02 Cuserid() is specified in such a way that it can overwrite the buffer used
by getpwent(), getpwnam() & getpwuid() --- but not the other way around.
This requires that cuserid() have its own static buffer.
1993-11-29 19:39:44 +00:00
jtc 2b67bcc1b6 Make it clear that ctermid's argument is a pointer to an array. 1993-11-29 19:30:32 +00:00
jtc 0e817b67bc install cuserid(3) manpage. 1993-11-29 19:22:31 +00:00
jtc fe57b6e1e6 A manpage for cuserid(3) (hacked up from ctermid(3)). 1993-11-29 19:22:00 +00:00
jtc 9c4ad8fbd4 Misc manpage fixes. 1993-11-25 02:48:32 +00:00
jtc 9bd83209f0 Change C library functions to use strchr() and strrchr() instead of index()
and rindex().  This will allow (strict {ANSI, POSIX, XOPEN}) applications
to redefine index() and rindex() without effecting the library internals.
1993-11-24 19:43:49 +00:00
cgd 553e6a15d4 finish cleanup 1993-11-19 05:25:40 +00:00
mycroft ce351a47d2 Clean up after Brezak. 1993-11-19 03:18:24 +00:00
jtc 653d8ef24c If _CS_PATH is defined in <unistd.h>, the latest bash assumes that confstr()
will be present as well.  Here is a quick implementation based on my online
copy of 1003.2 (D11.2).  I'll confirm that nothing has been changed in the
final standard and write up a manual page soon.
1993-11-17 18:15:32 +00:00
cgd 5e9b346b27 Add the System V message queue and semaphore facilities. Implemented
by Daniel Boulet <danny@BouletFermat.ab.ca>
1993-11-14 12:40:23 +00:00
jtc a054c6582a First pass at getting a clean compile with "gcc -Wall", mostly explictly
declaring function return values, etc.
1993-11-11 19:04:04 +00:00
mycroft a06a8e88ff Clean up deleted files. 1993-11-11 03:33:53 +00:00
jtc bc692825ee Implement the FNM_PERIOD flag. 1993-11-11 03:21:21 +00:00
mycroft 24bc204201 Clean up deleted files. 1993-11-11 01:22:45 +00:00
jtc 3f40c24bb3 Enable Henry Spencer's POSIX.2 compatible regular expression routines.
Disable his earlier V8-style routines.
1993-11-11 01:22:33 +00:00
jtc 14925245d3 Fixed the most major defect in fnmatch(): backslash-escape processing in
bracket expressions.  Still need to implement FNM_PERIOD...
1993-11-09 18:22:05 +00:00
jtc ce4f97eb24 I've been informed that the fts family of functions is being considered
for a _future_ edition of 1003.1.
I recovered the STANDARDS section, and reworded it slightly so it is
clear that we are talking about a future edition instead of 1003.1-88.
1993-11-09 00:29:57 +00:00
cgd 6270d348a1 update to latest version. 1993-11-06 01:10:15 +00:00
cgd f95d2e2869 update to latest version; va_list specification changes. 1993-11-06 00:55:23 +00:00
cgd affc13c674 just berkeley copyright/version # changes. 1993-11-06 00:52:40 +00:00
cgd dcabc1d9b5 nuke comments re: posix, per jtc. this isn't spec'd by posix. 1993-11-06 00:51:28 +00:00
cgd 95c898787c update to latest version; no *significant* changes. 1993-11-06 00:33:23 +00:00
jtc 344059bc2d Remove extra "eval" variables in warn() & warnx() function definitions;
these variables were probably introduced by copying the definitions of
err() & errx() when the functions were first implemented.
1993-11-06 00:27:23 +00:00
jtc 71afdb430b Update source and manual pages to match X/Open 1170 specification.
Updated setpassent() to understand YP (a bug), and changed setpwent()
to simply be a call to setpassent(0) (to remove duplicated code).
1993-10-25 23:36:51 +00:00
jtc 92ba83edfc X/Open 1170 defines the return type of setpwent() to be void -- a trival
change since our setpwent() allways succeeded.
1993-10-25 22:21:36 +00:00
pk 33e72d8f40 In execvp(): `eacces' did not get initialized when path name contains a '/'.
This causes the wrong error to be reported when execve() fails.
1993-10-22 19:13:42 +00:00
jtc 3e8ba8c7b5 Add my lsearch & lfind implementations. 1993-10-22 17:51:51 +00:00
jtc 57c5f16709 #include <search.h> to ensure that the public function declarations match
the implementation.
Use old-style function definitions so functions can be compiled with non-ansi
compilers.
Functions are specified to take void * arguments, so they must be cast to
a struct qelem * before they are used.
1993-10-21 21:08:55 +00:00
jtc f97d1797c8 Use i386 sigsetjmp()/siglongjmp() implementation.
Install sigsetjmp()/siglongjmp() links to setjmp manpage.
Note that sigsetjmp() and siglongjmp() are 1003.1 compliant.
1993-10-19 21:00:46 +00:00
jtc 4072b7fbd0 Grammar and formatting fixes. 1993-10-18 20:04:00 +00:00
jtc a6c78ff19b Make sure all items in SEE ALSO list are comma separated.
Add cross references to isblank().
1993-10-15 00:58:52 +00:00
jtc 981beb6413 Use .Xr for SEE ALSO cross references. 1993-10-15 00:05:44 +00:00
jtc d20a30ce29 Change SYNOPSIS section to use "unsigned" instead of "u_int". 1993-10-14 23:25:28 +00:00
jtc af384ef2d9 Remove "errno" definition.
Errno should be defined in the c start up code, crt0.c (It is in most
ports) otherwise the sys_errlst table will be linked into binaries
where it is not used.
1993-10-13 23:41:02 +00:00
jtc e4da5d66a6 Use __dead instead of volatile. 1993-10-13 18:42:31 +00:00
jtc 91ebf777c7 Moved cuserid() from getlogin.c to its own file, cuserid.c.
getlogin() and cuserid() do very different things, getlogin() is POSIX,
while cuserid() is not (it was removed in the 1990 revision).
1993-10-11 19:45:52 +00:00
mycroft a2d8842cae Clean up deleted files. 1993-10-07 01:37:03 +00:00
cgd eb29ed3995 always create libcrypt, and link with it where necessary. this will
make life with shared libraries happier.  also, get dummy crypt out
of libc.
1993-10-07 01:36:21 +00:00
cgd 0b9f50897e make an arch directory in libc, and move all machine dirs into it 1993-10-07 00:17:24 +00:00
jtc b23776a8de Due to an 8-bit attribute table and 9 bits of attributes, I've had to
remove the _B attribute from the "horizontal tab" position, and change
the isblank function to explicitly test against space and tab.

When I finish merging the 4.4 runes code, this table will have to grow
to 16 bit entries, as several more attributes have been introduced.
I'm making this change so existing libraries will continue working
for the next (little) while.
1993-10-05 17:05:43 +00:00
jtc de34450455 Add #include <utime.h> to SYNOPSIS. 1993-10-05 16:39:28 +00:00
jtc a3dec8ddd3 Changed SYNOPSIS, to use time(), you are supposed to include <time.h>,
not <sys/types.h>.
1993-10-05 16:35:19 +00:00
jtc b12b0398ac Consistantly cross reference the other functions/programs in the vis/unvis
"family".
1993-10-04 22:47:53 +00:00