summaryrefslogtreecommitdiff
path: root/src/lib/libc (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* move insque(3) and remque(3) from libcompat -> libc; they are now POSIXmillert2003-05-084-8/+209
|
* move lsearch(3) and insque(3) from libcompat -> libc; they are now POSIXmillert2003-05-083-7/+205
|
* Add support for command line args in rshprog, e.g. "ssh -C".millert2003-05-052-11/+53
|
* typo in STANDARDS (this man page is getnameinfo, not getaddrinfo);jmc2003-05-031-2/+2
| | | | from wiz@netbsd
* typos;jmc2003-05-016-16/+15
|
* typos;jmc2003-05-012-19/+19
| | | | ok itojun@
* typos;jmc2003-05-011-4/+4
| | | | ok jakob@
* always widen the imputed netmask if it is narrower than the specified octets.henning2003-04-251-3/+3
| | | | | | | | | fixes a strange behaviour where inet_net_pton would always return 4 (bits) for multicast addresses no matter how many octets were specified. negotiated with Paul Vixie, original author of this function. ok millert@
* Mention that stroul() et al *do* accept negative numbers, theymillert2003-04-211-1/+6
| | | | just (effectively) cast to unsigned. ho@ OK
* Change copyright to a less restrictive ISC-style license to encouragemillert2003-04-123-68/+35
| | | | people to bundle this code.
* make the second example valid; ok millert@jsyn2003-04-101-3/+4
|
* makeing local table static saves some bytes; idea from mickey@markus2003-04-091-2/+2
|
* Xr to strlcpy and strlcat more; ok millertderaadt2003-04-075-8/+13
|
* sprintf -> snprintftdeval2003-04-051-6/+12
| | | | ok tedu@, hints deraadt@, millert@
* strcpy/strcat -> strlcpy/strlcattdeval2003-04-051-3/+4
| | | | ok tedu@, hints by deraadt@ and millert@
* strcat -> strlcathin2003-04-041-3/+3
| | | | ok deraadt@ tedu@ tdeval@
* Use snprintf instead of a strcpy(), strncat() and strcat() sequencemillert2003-04-021-5/+4
| | | | deraadt@ OK
* fifo -> FIFOjmc2003-04-021-2/+2
| | | | ok millert@
* use strlcpy(); assumes buf is at least ndigit bytes long which is asmillert2003-04-021-4/+7
| | | | safe as we can get. deraadt@ OK
* If hostname != NULL, hostname is not a numeric string, and AI_NUMERICHOSTjason2003-03-171-3/+3
| | | | is set, return EAI_NONAME like RFC2553 specifies. millert/itojun ok.
* ANSI function headersmillert2003-03-142-12/+6
|
* a few more strlcy; ok from beck & hoderaadt2003-03-132-6/+6
|
* signed/unsigned mixup. KAME PR 469 by Olivier Courtay.itojun2003-03-071-2/+3
|
* .Xr typos;jmc2003-03-061-2/+2
|
* .Xr's;jmc2003-03-062-4/+4
| | | | | | typos in man page section ok deraadt@
* Fix a pasto. (There is no ULLONG_MIN, for hopefully obvious reasons)kjell2003-03-061-4/+2
| | | | ok millert
* date should be written formally: .Dd Month day, yeardavid2003-03-062-4/+4
| | | | ok henning@ jmc@
* missing #include in SYNOPSIS, found by Daniel Lucqhenning2003-03-041-1/+2
| | | | ok millert@
* strlcpy, check retval from sprintfitojun2003-03-043-11/+18
|
* s/strncpy/strlcpy/itojun2003-03-041-4/+4
|
* Use int32_t, not long since this deals with 32bit quantities.millert2003-02-281-20/+20
| | | | Inspired by a change in NetBSD and reported by Jan Johansson.
* Fix bogus inet_net_pton() translation example.cedric2003-02-241-2/+2
| | | | ok henning@
* of ofderaadt2003-02-241-2/+2
|
* fix a variety of missing or wrong MLINKSderaadt2003-02-201-1/+2
|
* re-stir if pid changes; markus & mederaadt2003-02-141-3/+5
|
* thread safer libc (note: safer, not safe)marc2003-01-2812-265/+348
| | | | | | | | | | Access to the global _res structure replaced by pointers to a per thread instance. If unthreaded the pointer is to the global structure. Also replaced a 64k stack array with malloc-ed memory so threaded aps (with a default 64k stack) have a chance at working. ok deraadt@
* typos;jmc2003-01-211-3/+3
| | | | ok deraadt@
* inet6 fixes from jmc@prioris.mini.pw.edu.plderaadt2003-01-182-21/+13
|
* Add sanity check to prevent int oflow for very large allocations.millert2003-01-141-3/+11
| | | | | Also fix a signed vs. unsigned issue while I am at it. Found by Jim Geovedi. OK deraadt@
* more writeable -> writable by torhhenning2002-12-151-2/+2
|
* use proper __findenv() prototype; millert@ okmickey2002-12-102-8/+8
|
* Document BSD behavior of accepting '-' within optstring as long asmillert2002-12-101-5/+25
| | | | | | | | it is not the fist character of optstring (since that would conflict with GNU semantics). Update the bit on "W;" within optstring when called as getopt (not getopt_long) to current reality.
* When doing permutation, only treat "-" as an option if it was specifiedmillert2002-12-101-4/+5
| | | | in optstring. Problem noticed by Theo.
* Fix pasto, spotted by lebel@millert2002-12-081-2/+2
|
* In BUGS section, append a warning to not use '-' as the first charactermillert2002-12-081-3/+13
| | | | of optstring to avoid a semantic conflict with GNU getopt.
* SUS (and apparently 1003.1-2001) say to check optstring for NULLmillert2002-12-082-4/+9
|
* If we are passed "-" in argv and the user didn't specify '-' in optstring,millert2002-12-081-6/+10
| | | | return -1 like POSIX requires.
* BSD getopt() supports '-' in the optstring so we should too.millert2002-12-081-8/+15
| | | | This is used by a few programs such as man and su.
* Fix pasto in last commit.millert2002-12-071-3/+3
|
* For getopt_long_only() we *do* want to match single-character optionsmillert2002-12-071-41/+36
| | | | | as shortcuts for long ones, but only if this would not conflict with a short option in optstring. Now binutils gas works.