summaryrefslogtreecommitdiff
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* Use collate for national [a-z]-like rangesAndrey A. Chernov1997-01-161-8/+13
| | | | | | | Should go in 2.2 Notes: svn path=/head/; revision=21757
* The following patch to lib/libc/stdio implements positional arguments inJordan K. Hubbard1997-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> Notes: svn path=/head/; revision=21674
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-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. Notes: svn path=/head/; revision=21673
* When attempting to load a `lastditch' timezone (e.g., because the loadGarrett Wollman1997-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. Notes: svn path=/head/; revision=21659
* Add missing RETURN VALUES/ERRORS sections.Mike Pritchard1997-01-126-13/+69
| | | | Notes: svn path=/head/; revision=21579
* Rename the DIAGNOSTICS sections in several man pagesMike Pritchard1997-01-126-7/+7
| | | | | | | to RETURN VALUES like they should be. Notes: svn path=/head/; revision=21573
* Remove the EINVAL error from the ERRORS sections thatMike Pritchard1997-01-1127-70/+10
| | | | | | | | say is means that a pathname had the high-order bit set, since this is no longer an error. Notes: svn path=/head/; revision=21570
* Minor mdoc fixes in msync.2 and munmap.2.Mike Pritchard1997-01-113-6/+31
| | | | | | | | | Add RETURN VALUES and ERRORS sections to mincore. Closes PR# 1493. Notes: svn path=/head/; revision=21565
* Forgot a .El macro.Mike Pritchard1997-01-111-0/+1
| | | | Notes: svn path=/head/; revision=21564
* Add RETURN VALUES and ERRORS sections.Mike Pritchard1997-01-111-3/+28
| | | | Notes: svn path=/head/; revision=21563
* Some mdoc cleanup. Also added a RETURN VALUES and ERRORSMike Pritchard1997-01-111-22/+45
| | | | | | | | | section. Part of PR# 1493. Notes: svn path=/head/; revision=21562
* Remove the comment about file names having toMike Pritchard1997-01-111-2/+1
| | | | | | | | | be 7 bit clean, since it isn't true anymore. Part of PR# 1493. Notes: svn path=/head/; revision=21560
* Bring stat(2) into line with what is now actually inMike Pritchard1997-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. Notes: svn path=/head/; revision=21555
* Add a couple of additional xrefs.Mike Pritchard1997-01-111-1/+3
| | | | Notes: svn path=/head/; revision=21548
* Correct logic braino when attempting to exclude loopback addresses onPeter Wemm1997-01-091-2/+2
| | | | | | | | | the first pass. Submitted by: Greg Lehey <grog@lemis.de> Notes: svn path=/head/; revision=21460
* Two minor changes to try and make it more robust in the face of manyPeter Wemm1997-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? Notes: svn path=/head/; revision=21459
* The error returned when F_SETLK collides with an existing lock isJohn Polstra1997-01-081-3/+3
| | | | | | | | EAGAIN, not EACCES. POSIX says that either one is OK. 2.2 candidate. Notes: svn path=/head/; revision=21445
* Fix fake failures on the short names which looks like hexadecimal numbersAndrey A. Chernov1997-01-081-8/+4
| | | | | | | Submitted by: paul@vix.com Notes: svn path=/head/; revision=21433
* Document the various reasons for EINVAL.Joerg Wunsch1997-01-081-11/+21
| | | | | | | | Document the flaw that `offset' is required to be page-aligned, in the BUGS section. Notes: svn path=/head/; revision=21430
* Disable isxdigit block until proper solution will be foundAndrey A. Chernov1997-01-051-2/+7
| | | | | | | | isxdigit(name[0]) gives false failures on short names which looks like hexadecimal digits, f.e. "fade", "babe", "d133", etc. Notes: svn path=/head/; revision=21343
* Added group= facility to /etc/ttys for tty grouping for moreDavid Nugent1997-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. Notes: svn path=/head/; revision=21189
* Remove bogus weak reference.Jordan K. Hubbard1997-01-011-3/+1
| | | | Notes: svn path=/head/; revision=21168
* Eliminate unnecessary warning introduced by a missing forward declaration.Jordan K. Hubbard1997-01-011-1/+3
| | | | Notes: svn path=/head/; revision=21165
* prototype of shared function now in include filePeter Wemm1996-12-311-3/+1
| | | | Notes: svn path=/head/; revision=21128
* use svc_maxfd + 1 in the select() call.Peter Wemm1996-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 Notes: svn path=/head/; revision=21127
* Spelling/mdoc police.Mike Pritchard1996-12-301-6/+6
| | | | Notes: svn path=/head/; revision=21111
* Oops! Bad Idea! (TM)Peter Wemm1996-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) Notes: svn path=/head/; revision=21103
* - make wire protocol 64 bit type safePeter Wemm1996-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. Notes: svn path=/head/; revision=21092
* - prototypes now in include filePeter Wemm1996-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. Notes: svn path=/head/; revision=21091
* - canonical function declarationPeter Wemm1996-12-301-7/+6
| | | | | | | | | | - prototypes now in common include file - use standard functions Obtained from: a diff of FreeBSD vs. OpenBSD/NetBSD rpc code. Notes: svn path=/head/; revision=21090
* - overhaul for unlimited file descriptorsPeter Wemm1996-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. Notes: svn path=/head/; revision=21089
* - make wire protocol 64 bit type safePeter Wemm1996-12-301-4/+4
| | | | | | | | | - use standard functions Obtained from: a diff of FreeBSD vs. OpenBSD/NetBSD rpc code. Notes: svn path=/head/; revision=21088
* - major overhaul to make this deal with unlimited fd's.Peter Wemm1996-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. Notes: svn path=/head/; revision=21087
* - make wire protocol 64 bit type safePeter Wemm1996-12-301-10/+10
| | | | | | | Obtained from: a diff of FreeBSD vs. OpenBSD/NetBSD rpc code. Notes: svn path=/head/; revision=21086
* Remove our code that clamped the max select() fd number to FD_SETSIZE (256)Peter Wemm1996-12-301-16/+3
| | | | | | | This function is now unused. Notes: svn path=/head/; revision=21085
* - kill non-FD_SETSIZE codePeter Wemm1996-12-301-5/+2
| | | | | | | Obtained from: a diff of FreeBSD vs. OpenBSD/NetBSD rpc code. Notes: svn path=/head/; revision=21083
* - 64 bit type safe on-the-wire protocolPeter Wemm1996-12-301-17/+15
| | | | | | | | | | - use standard functions - prototype now in include file Obtained from: a diff of FreeBSD vs. OpenBSD/NetBSD rpc code. Notes: svn path=/head/; revision=21082
* - prototype now in include file, plus no longer needed anywayPeter Wemm1996-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. Notes: svn path=/head/; revision=21081
* - dont close an unopen socketPeter Wemm1996-12-301-2/+3
| | | | | | | Obtained from: a diff of FreeBSD vs. OpenBSD/NetBSD rpc code. Notes: svn path=/head/; revision=21080
* - Don't close an unopened socketPeter Wemm1996-12-301-2/+3
| | | | | | | Obtained from: a diff of FreeBSD vs. OpenBSD/NetBSD rpc code. Notes: svn path=/head/; revision=21079
* - don't close unopen socketPeter Wemm1996-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. Notes: svn path=/head/; revision=21078
* - missing prototype from include filePeter Wemm1996-12-301-5/+5
| | | | | | | | | | - canconical function declaration (ctags safe) - use standard functions Obtained from: a diff of FreeBSD vs. OpenBSD/NetBSD rpc code. Notes: svn path=/head/; revision=21077
* - OpenBSD's strncpy fixes to ensure NULL terminationPeter Wemm1996-12-301-8/+11
| | | | | | | | | - missed endrpcent() in some cases. Obtained from: a diff of FreeBSD vs. OpenBSD/NetBSD rpc code. Notes: svn path=/head/; revision=21076
* - prototypes now in include filePeter Wemm1996-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) Notes: svn path=/head/; revision=21075
* - prototypes now in standard include filePeter Wemm1996-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). Notes: svn path=/head/; revision=21074
* - update return type of an "internal but documented" functionPeter Wemm1996-12-301-2/+10
| | | | | | | | | - warn about FD_SETSIZE in certain internal functions Obtained from: a diff of FreeBSD vs. OpenBSD/NetBSD rpc code. Notes: svn path=/head/; revision=21073
* - tags in correct orderPeter Wemm1996-12-301-4/+6
| | | | | | | | | | - list missing functions - list missing args Obtained from: a diff of FreeBSD vs. OpenBSD/NetBSD rpc code. Notes: svn path=/head/; revision=21072
* - canonical function declarationPeter Wemm1996-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. Notes: svn path=/head/; revision=21071
* - don't close an unopen socketPeter Wemm1996-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. Notes: svn path=/head/; revision=21070
* - prototype moved to include filePeter Wemm1996-12-301-3/+1
| | | | | | | Obtained from: a diff of FreeBSD vs. OpenBSD/NetBSD rpc code. Notes: svn path=/head/; revision=21069