summaryrefslogtreecommitdiffstats
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* Use collate for national [a-z]-like rangesache1997-01-161-8/+13
| | | | Should go in 2.2
* The following patch to lib/libc/stdio implements positional arguments injkh1997-01-142-22/+414
| | | | | | | | | a manner consistent with other implementations. Its done in a way that adds only a tiny amount of overhead when positional arguments are not used. I also have a test program to go with this, but don't know where it belongs in the tree. Submitted-By: Bill Fenner <fenner@FreeBSD.ORG>
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-14317-397/+397
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* When attempting to load a `lastditch' timezone (e.g., because the loadwollman1997-01-131-7/+8
| | | | | | | | | of the user's timezone failed), don't bail if the specified timezone doesn't have an offset; in this case it isn't going to. (Perhaps it would be better to change the caller to always supply one, but this is quick and clean and fixes the bug in the easiest possible way.) Should be in 2.2. Fixes (properly) PR#1740.
* Add missing RETURN VALUES/ERRORS sections.mpp1997-01-126-13/+69
|
* Rename the DIAGNOSTICS sections in several man pagesmpp1997-01-126-7/+7
| | | | to RETURN VALUES like they should be.
* Remove the EINVAL error from the ERRORS sections thatmpp1997-01-1127-70/+10
| | | | | say is means that a pathname had the high-order bit set, since this is no longer an error.
* Minor mdoc fixes in msync.2 and munmap.2.mpp1997-01-113-6/+31
| | | | | | Add RETURN VALUES and ERRORS sections to mincore. Closes PR# 1493.
* Forgot a .El macro.mpp1997-01-111-0/+1
|
* Add RETURN VALUES and ERRORS sections.mpp1997-01-111-3/+28
|
* Some mdoc cleanup. Also added a RETURN VALUES and ERRORSmpp1997-01-111-22/+45
| | | | | | section. Part of PR# 1493.
* Remove the comment about file names having tompp1997-01-111-2/+1
| | | | | | be 7 bit clean, since it isn't true anymore. Part of PR# 1493.
* Bring stat(2) into line with what is now actually inmpp1997-01-111-13/+34
| | | | | | stat.h. Also add a little blurb regarding st_mtime & friends clarifiying how they are defined in a non-_POSIX_SOURCE envorinment. Closes PR# 1089.
* Add a couple of additional xrefs.mpp1997-01-111-1/+3
|
* Correct logic braino when attempting to exclude loopback addresses onpeter1997-01-091-2/+2
| | | | | | the first pass. Submitted by: Greg Lehey <grog@lemis.de>
* Two minor changes to try and make it more robust in the face of manypeter1997-01-091-2/+4
| | | | | | | | | interfaces, until it's redone to use sysctl(). - bump the SIOCGIFCONF buffer size from 1K to 8K - if we didn't find a suitable address, return a failure. Previously if it didn't find anything it left the return address uninitialised. Perhaps it would be better to return AF_INET/111/127.0.0.1 rather than failing?
* The error returned when F_SETLK collides with an existing lock isjdp1997-01-081-3/+3
| | | | | EAGAIN, not EACCES. POSIX says that either one is OK. 2.2 candidate.
* Fix fake failures on the short names which looks like hexadecimal numbersache1997-01-081-8/+4
| | | | Submitted by: paul@vix.com
* Document the various reasons for EINVAL.joerg1997-01-081-11/+21
| | | | | Document the flaw that `offset' is required to be page-aligned, in the BUGS section.
* Disable isxdigit block until proper solution will be foundache1997-01-051-2/+7
| | | | | isxdigit(name[0]) gives false failures on short names which looks like hexadecimal digits, f.e. "fade", "babe", "d133", etc.
* Added group= facility to /etc/ttys for tty grouping for moredavidn1997-01-022-1/+9
| | | | | | | | more manageable and convenient referencing by login.conf (login class database) and (e.g.) login.access. This is the first of a group of commits which implements the login class capabilities database.
* Remove bogus weak reference.jkh1997-01-011-3/+1
|
* Eliminate unnecessary warning introduced by a missing forward declaration.jkh1997-01-011-1/+3
|
* prototype of shared function now in include filepeter1996-12-311-3/+1
|
* use svc_maxfd + 1 in the select() call.peter1996-12-311-3/+3
| | | | | | | | (There may be a behavior difference between the 2.1 and 2.2/3.0 kernels in this area, it seemed to work for me but I have a horribly hacked select() that might have a bug in the handling of this) Submitted by: wpaul
* Spelling/mdoc police.mpp1996-12-301-6/+6
|
* Oops! Bad Idea! (TM)peter1996-12-301-3/+13
| | | | | | | | Restore the clamp on the return value from rpc_dtablesize().. Some programs (eg: ypserv) use this as an indication of how large svc_fdset is in their hand-rolled svc_run() loops. The svc_fdset table is maintained by the rpc library explicitly for compatability with such programs. (It uses a different variable-sized bitmap itself internally)
* - make wire protocol 64 bit type safepeter1996-12-301-11/+9
| | | | | | | | - extern prototypes now in include file - fix local prototypes - use standard functions Obtained from: a diff of FreeBSD vs. OpenBSD/NetBSD rpc code.
* - prototypes now in include filepeter1996-12-301-26/+48
| | | | | | | | - overhaul for unlimited fd's - OpenBSD's ftp port bounce attack fix - fix timeouts Obtained from: a diff of FreeBSD vs. OpenBSD/NetBSD rpc code.
* - canonical function declarationpeter1996-12-301-7/+6
| | | | | | | - prototypes now in common include file - use standard functions Obtained from: a diff of FreeBSD vs. OpenBSD/NetBSD rpc code.
* - overhaul for unlimited file descriptorspeter1996-12-301-15/+24
| | | | | | | | | | - prototypes now in include files Obtained from: a diff of FreeBSD vs. OpenBSD/NetBSD rpc code. Note: potential bug here, It looks like there could be a null pointer dereference depending on what has already been called to initialise some shared data.
* - make wire protocol 64 bit type safepeter1996-12-301-4/+4
| | | | | | - use standard functions Obtained from: a diff of FreeBSD vs. OpenBSD/NetBSD rpc code.
* - major overhaul to make this deal with unlimited fd's.peter1996-12-301-56/+68
| | | | | | | | | | | | - kill non-FD_SETSIZE code Obtained from: a diff of FreeBSD vs. OpenBSD/NetBSD rpc code. Note, there was a nasty bug with our old code here. It would trash the stack if a fd > 31 was passed in. It was using a "long" as though it was an "fd_set", ie: it was assuming that a long was 256 bits wide. :-( This has been lurking here for a while, since the FD_SETSIZE #ifdef's were first implemented.
* - make wire protocol 64 bit type safepeter1996-12-301-10/+10
| | | | Obtained from: a diff of FreeBSD vs. OpenBSD/NetBSD rpc code.
* Remove our code that clamped the max select() fd number to FD_SETSIZE (256)peter1996-12-301-16/+3
| | | | This function is now unused.
* - kill non-FD_SETSIZE codepeter1996-12-301-5/+2
| | | | Obtained from: a diff of FreeBSD vs. OpenBSD/NetBSD rpc code.
* - 64 bit type safe on-the-wire protocolpeter1996-12-301-17/+15
| | | | | | | - use standard functions - prototype now in include file Obtained from: a diff of FreeBSD vs. OpenBSD/NetBSD rpc code.
* - prototype now in include file, plus no longer needed anywaypeter1996-12-301-37/+44
| | | | | | | | | | | - fix timeout code - better sequence number generation (for long running daemons) - dont close an unopen socket - use standard functions - 64 bit type safe for wire protocols - unlimited file descriptors Obtained from: a diff of FreeBSD vs. OpenBSD/NetBSD rpc code.
* - dont close an unopen socketpeter1996-12-301-2/+3
| | | | Obtained from: a diff of FreeBSD vs. OpenBSD/NetBSD rpc code.
* - Don't close an unopened socketpeter1996-12-301-2/+3
| | | | Obtained from: a diff of FreeBSD vs. OpenBSD/NetBSD rpc code.
* - don't close unopen socketpeter1996-12-301-7/+12
| | | | | | | | - ensure we're not spoofed/confused while trying to talk to the portmapper - handle new get_myaddress failure cases - prototype now in include file Obtained from: a diff of FreeBSD vs. OpenBSD/NetBSD rpc code.
* - missing prototype from include filepeter1996-12-301-5/+5
| | | | | | | - canconical function declaration (ctags safe) - use standard functions Obtained from: a diff of FreeBSD vs. OpenBSD/NetBSD rpc code.
* - OpenBSD's strncpy fixes to ensure NULL terminationpeter1996-12-301-8/+11
| | | | | | - missed endrpcent() in some cases. Obtained from: a diff of FreeBSD vs. OpenBSD/NetBSD rpc code.
* - prototypes now in include filepeter1996-12-301-49/+64
| | | | | | | | | | | - fix timeout code - better "random" initial transaction id for long running daemons - unlimited number of file descriptors to select(). - 64 bit type safe wire protocol Obtained from: a diff of FreeBSD vs. OpenBSD/NetBSD rpc code. - typo (spelling police :-) - dont die on select() that returns time remaining (on my systems)
* - prototypes now in standard include filepeter1996-12-301-23/+43
| | | | | | | | | | - improve initial "random" sequence number, to make it harder to guess in long running daemons. - fix timeout code. - unlimited number of fd's in select. Obtained from: a diff of FreeBSD vs. OpenBSD/NetBSD rpc code. - Protect against select() that returns time remaining (on my systems).
* - update return type of an "internal but documented" functionpeter1996-12-301-2/+10
| | | | | | - warn about FD_SETSIZE in certain internal functions Obtained from: a diff of FreeBSD vs. OpenBSD/NetBSD rpc code.
* - tags in correct orderpeter1996-12-301-4/+6
| | | | | | | - list missing functions - list missing args Obtained from: a diff of FreeBSD vs. OpenBSD/NetBSD rpc code.
* - canonical function declarationpeter1996-12-301-9/+21
| | | | | | | | - don't exit. It's bad form for libc to exit() or abort() instead of returning an error. - only use loopback addresses after checking the real interfaces. Obtained from: a diff of FreeBSD vs. OpenBSD/NetBSD rpc code.
* - don't close an unopen socketpeter1996-12-301-5/+8
| | | | | | | | - canonical function declaration - use constants from includes, not magic numbers - use standard functions Obtained from: a diff of FreeBSD vs. OpenBSD/NetBSD rpc code.
* - prototype moved to include filepeter1996-12-301-3/+1
| | | | Obtained from: a diff of FreeBSD vs. OpenBSD/NetBSD rpc code.
OpenPOWER on IntegriCloud