Commit Graph

533 Commits

Author SHA1 Message Date
fvdl 1ed7a0186a Check for both the filesystem name and the filesystem flags to determine
whether a directory is a union mount, and thus needs to have double
entries filtered out.
1997-02-25 13:16:39 +00:00
lukem a3fc812065 man page for stringlist functions 1997-02-24 11:47:10 +00:00
mikel 28acf64f40 clarify what is printed; from Arne Henrik Juul in PR 3242, with some
minor editing by myself.
1997-02-21 07:44:50 +00:00
scottr 48b6b629bf getdiskbyname() was broken by previous change, adversely affecting
newfs(8) and disklabel(8).  Back this out, and note instead that all
instances of strcpy() here are safe.
1997-02-14 08:30:32 +00:00
christos 50c92675a9 I ``who'' was not specified, set the appropriate bits as the manual page
states. chmod +s foo  and chmod +t . now work.
1997-02-07 22:21:06 +00:00
mrg 9cd5492c02 - convert unsafe strcpy(), strcat() and sprintf() to the `n' versions.
- some KNF.
1997-01-23 14:01:45 +00:00
thorpej 30ec3e8a63 Don't transfer the entire YP database using yp_{first,next}(); instead
use yp_match(), which is much more efficient.

From Michael.Eriksson@era-t.ericsson.se, PR #3114.
1997-01-22 01:21:06 +00:00
lukem f694f3b120 Add stringlist implementation
Convert getnetgrent from private stringlist to public version
1997-01-17 07:26:18 +00:00
perry 44f0373a13 change sigpause(2) to sigsuspend(2) or sigpause(3), depending
Also try to fix other bad references to sig* man pages.
Fixes pr-2885 from Jonathan Stone
These SEE ALSO sections are still bloody messes (sigh)
1997-01-17 03:44:59 +00:00
perry 0ec29f87c1 add setitimer (mentioned in text) to SEE ALSO 1997-01-17 03:14:02 +00:00
perry 4023eb8dfd close 2885 -- sigpause->sigsuspend 1997-01-17 03:12:24 +00:00
thorpej 2e0f6cf5bb Document CTL_DDB MIB nodes. 1997-01-09 05:39:26 +00:00
mikel d40586fc26 there is no sysctl(2); reference sysctl(3) instead. 1997-01-03 06:43:56 +00:00
cgd 22eee680d6 ifdef YP, needs rpcsvc/ypclnt.h for protos 1996-12-20 20:46:19 +00:00
cgd c97004a9b9 string.h for prototypes 1996-12-20 20:44:55 +00:00
sommerfe f218af3428 Longer login name support: use MAXLOGNAME, not UT_NAMESIZE 1996-12-20 20:16:05 +00:00
cgd a1971a18d9 pull in unistd.h, const poisoning 1996-12-20 19:38:57 +00:00
cgd 7edc9015ae grscan()'s last arg has to be a const char *, not just a char * 1996-12-20 19:38:16 +00:00
lukem 64af799db3 fix example, from bgrayson@ece.utexas.edu (Brian C. Grayson) in [misc/2735] 1996-11-09 08:41:46 +00:00
jtc a13179edf1 Declare global errno 1996-11-08 00:27:35 +00:00
jtc 8610f496a7 New __errno() function, returns the address of the errno variable. 1996-11-07 05:37:34 +00:00
lukem d7578a89cf man page is "toupper" not "tolower". from msaitoh@spa.is.uec.ac.jp [misc/2902] 1996-10-29 05:49:04 +00:00
perry 90dac65cbf Nuked tahoe machine specific conditionals. 1996-10-16 17:53:44 +00:00
cgd 61dc0e200c fix pasto: Elf_{Off,Word} rather than Elf32_{Off,Word} 1996-10-03 04:55:31 +00:00
cgd e5629b37cc clone from nlist_elf32.c (with ECOFF mods). Adds comments,
optimization, cleanup.
1996-10-01 13:37:05 +00:00
cgd 802cbd1ba7 clean up comments a bit. 1996-10-01 13:35:34 +00:00
cgd 561e189aaa "do over." Rewrite from scratch, or, more precisely, based on a high-speed
merge of libc's ECOFF nlist support (written by me, a while ago), and the
(relatively new, but again written by me) kvm_mkdb ELF support.
1996-10-01 00:32:52 +00:00
cgd 571692b849 fix a thinko in the check-removal changes 1996-10-01 00:27:38 +00:00
cgd e5699c2fe3 kill recently added 'check' functions, since they only add code to be more
expensive, i.e. they save nothing and add code.  also, beat it with the
style stick.
1996-09-30 23:51:05 +00:00
cgd 80fde3aab4 kill recently added 'check' functions, since they only add code to be more
expensive, i.e. they save nothing and add code.
1996-09-30 23:49:27 +00:00
cgd 9a5eb71903 slightly tune what gets compiled in: On the Alpha, we need ECOFF and
ELF64.  On other architectures only include a.out support, since we don't
know whether or not they'll have the headers necessary for ECOFF and/or
ELF, and since they only want a.out for now (execpt the mips archs, but
they do Special things).  There should be a better way to select which
bits of nlist code get compiled in, but currently there is not.
1996-09-27 22:41:59 +00:00
cgd d1bae5c5d5 rename rcsid to e64rcsid, so it doesn't conflict with the one in nlist_elf32.c 1996-09-27 22:38:06 +00:00
cgd c8365a76b4 Seriously revamp libc's nlist()/__fdnlist() support:
(1) split nlist() into multiple files, for clarity and to make
	    ELF 32/64 support easier,
	(2) support multiple executable types at the same time, and
	(3) add support for 32- and 64-bit ELF (32-bit ELF support
	    originally from OpenBSD, but with several bug fixes so
	    that it actually handles symbols types more correctly
	    (and therefore _works_ for some of the more tricky uses
	    of the nlist routines) and changes for 64-bit ELF support).
1996-09-27 22:23:03 +00:00
thorpej 95c870f69b Update for the new internal name for __getlogin(). 1996-09-23 02:43:11 +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
explorer 24ff249a08 document AUTONICETIME and AUTONICEVAL sysctls 1996-07-17 18:06:36 +00:00
jtc a0d2fe2548 Thanks to the calling conventions used by some cpus, the argument lists
passed to the execl(), execle(), and execlp() functions are in the form
of the argument vector to be passed to execve().  On these architectures,
it is unnecessary to count the number of arguments, allocate space on
the stack, copy the arguments, etc.  The vector already on the stack
can be used instead.

When some arguments are passed in registers (like most RISC CPU's), it
should be possible to allocate stack space adjacent such that the
registers can be copied to that memory.  After that, the same
approach described above can be used.

This change takes advantage of this on the i386, m68k, and ns32k.  It
is probably true on the vax, but I am unable to check.  RISC CPU's
probably need assembly language implementations to ensure everything
is placed exactly as needed when registers are copied to the stack...
1996-07-04 07:18:56 +00:00
jtc 614420255a Split all exec*() functions out of exec.c into their own files. 1996-07-03 21:41:46 +00:00
jtc a174b58e2c Added a new VA_START macro to hide the differences between varargs.h
and stdargs.h.  This cleans up a lot of conditionals throughout this
file.
1996-07-03 19:53:46 +00:00
jtc b021f209c3 Changed to conform to POSIX.2 B.3.2.2 "popen() shall ensure that any streams
from previous popen() calls that remain open in the parent process are closed
in the new child process."  Fixes PR #2575.
1996-06-29 00:51:49 +00:00
jtc 9647f42d70 Signal mask was not restored correctly.
Fix from James Chacon <jmc@pobox.com> in PR #2442.
1996-05-20 06:13:07 +00:00
cgd 85b3fc5c34 update for ecoff header changes. Most changes taken from PR 2413,
submitted by Jason Thorpe.
1996-05-16 20:49:20 +00:00
christos b2459dacce Use the POSIX signal mask interface 1996-05-16 19:39:13 +00:00
mycroft c2102b50ad Slight simplification. 1996-05-11 11:04:51 +00:00
christos e904bb0ffc Close PR 2376 1996-05-06 13:45:44 +00:00
christos b078384e49 - grab prototypes from netgroup.h
- added _ng_print, netgroup pretty printing function
1996-04-27 18:59:05 +00:00
scottr 7fde8d9997 comprised -> composed. Closes PR 2345. 1996-04-23 05:18:06 +00:00
cgd 4e82cb0a0a fix a couple of typesetting and grammatical errors in GLOB_BRACE's description 1996-04-19 00:12:16 +00:00
cgd 67d51cc7b5 #define _verr* to verr*, to make these use prototypes correctly
and compile in the "no indr_references" case.
1996-04-17 23:05:44 +00:00
jtc ec081115f9 Split each function in err.c out into its own file. This is needed
for systems without weak or indirect references.
1996-04-15 23:44:53 +00:00
thorpej 6779689463 Document that "<sys/sysctl.h>" isn't enough ... suggest including
<sys/param.h>, too.  Suggested my Kevin M. Lahey <kml@nas.nasa.gov>
in PR #1999.
1996-04-13 02:07:15 +00:00
jtc 20779dadd6 Add proper punctuation; Reported by Mike Long <mike.long@analog.com> in PR #2302. 1996-04-08 20:56:38 +00:00
jtc af07dd15d4 Add explict function return types 1996-04-03 19:48:56 +00:00
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