summaryrefslogtreecommitdiff
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* MFC rev. 1.21: fix vsnprintf(3) memory leak for size == 0.Maxim Konovalov2002-09-231-0/+6
| | | | | | | Approved by: re (jhb) Notes: svn path=/stable/4/; revision=103848
* Fix a typo in previous MFC.Jacques Vidrine2002-09-221-1/+1
| | | | | | | | Reported by: many folks Not exactly approved by: re Notes: svn path=/stable/4/; revision=103803
* MFC 1.19: Limit UDP payload size for EDNS0 to 0xffff.Jacques Vidrine2002-09-201-0/+2
| | | | | | | Approved by: re (jhb) Notes: svn path=/stable/4/; revision=103672
* MFC getaddrinfo.c 1.32, 1.33;Jacques Vidrine2002-09-195-50/+126
| | | | | | | | | | | | | | gethostbydns.c 1.39; getnetbydns.c 1.24, 1.25; name6.c 1.27, 1.28; res_update.c 1.7: Check for truncation in calls to res_send/res_query/res_search. Increase resolver buffer size. Approved by: re (jhb) Notes: svn path=/stable/4/; revision=103640
* MFC: POSIX compatability, fixes sftpMike Heffner2002-09-182-60/+67
| | | | | | | | | | | | glob.h 1.7 glob.3 1.21 glob.c 1.19-1.20 PR: bin/42275 Approved by: re Notes: svn path=/stable/4/; revision=103541
* MFC: (rev. 1.14) Update to reflect reality.Archie Cobbs2002-09-151-29/+5
| | | | | | | Approved by: re Notes: svn path=/stable/4/; revision=103334
* MFC: (rev. 1.19) Adjust to reflect reality: sigaltstack() takes stack_t *'s.Archie Cobbs2002-09-151-6/+6
| | | | | | | Approved by: re Notes: svn path=/stable/4/; revision=103333
* MFC: (rev. 1.38) Update to reflect reality.Archie Cobbs2002-09-151-2/+3
| | | | | | | Approved by: re Notes: svn path=/stable/4/; revision=103332
* MFC: Add ucontext(3) man page.Archie Cobbs2002-09-152-15/+12
| | | | | | | Approved by: re Notes: svn path=/stable/4/; revision=103331
* This commit was manufactured by cvs2svn to create branch 'RELENG_4'.cvs2svn2002-09-131-0/+98
| | | | Notes: svn path=/stable/4/; revision=103286
* MFC 1.22: Use a union to access the words of a double.David Malone2002-08-311-4/+8
| | | | | | | PR: 40209 Notes: svn path=/stable/4/; revision=102745
* MFC 1.37: Don't fail needlessly on unsuccessful hostname lookups.John Polstra2002-08-261-5/+5
| | | | Notes: svn path=/stable/4/; revision=102442
* Fix the forward compatibility problem with older 4.x releases,Alexander Kabaev2002-08-221-0/+1
| | | | | | | | | | | | | | | | introduced by me in rev. 1.7.2.1. Binaries compiled on fresh STABLE would not run on older versions due to malloc always returning NULL. Make sure that we provide 'end' symbol in generated binaries because sbrk in older libc depends on its existence to work properly. Reported by: Ian West <ian@niw.com.au> Reviewed by: jdp Approved by: obrien Notes: svn path=/stable/4/; revision=102282
* MFC: collate.c 1.28, collate.h 1.13 - eliminate static bufferAndrey A. Chernov2002-08-172-13/+19
| | | | Notes: svn path=/stable/4/; revision=102019
* MFC: 1.31: Fix fd leak.Bosko Milekic2002-08-131-1/+3
| | | | | | | | | | | Additional note: fstat() call in RELENG_4 isn't underscored. In HEAD it is. Threads people/maintainer should glance this way. PR: bin/37717 Submitted by: Fred Clift <fred@clift.org> Notes: svn path=/stable/4/; revision=101830
* MFC 1.11: Use '_end' symbol instead of 'end' to initialize minbrkAlexander Kabaev2002-08-121-3/+3
| | | | | | | | | and curbrk variables. Approved by: obrien Notes: svn path=/stable/4/; revision=101735
* MFC: 1.43, close descriptor on loading error, errno fixesAndrey A. Chernov2002-08-121-9/+16
| | | | Notes: svn path=/stable/4/; revision=101726
* MFC: 1.24, styleAndrey A. Chernov2002-08-121-11/+9
| | | | Notes: svn path=/stable/4/; revision=101725
* MFC: properly implement locale cache, eliminate memory leak, versions up toAndrey A. Chernov2002-08-1211-244/+333
| | | | | | | | | collate.c: 1.26, collate.h 1.12, euc.c 1.11, ldpart.c 1.11, ldpart.h 1.5, lmessages.c 1.12, lmonetary.c 1.15, lnumeric.c 1.13, rune.c 1.10, setlocale.c 1.41, setrunelocale.c 1.25 Notes: svn path=/stable/4/; revision=101724
* MFC: (rev. 1.12) Correct an inaccuracy regarding detecting empty fields.Archie Cobbs2002-08-091-4/+5
| | | | Notes: svn path=/stable/4/; revision=101593
* MFC: msgcat.c 1.40Andrey A. Chernov2002-08-071-312/+347
| | | | | | | Better "lang" check as path component, errno fixes, style reformatting. Notes: svn path=/stable/4/; revision=101449
* MFC: setlocale.c up to 1.39, setrunelocale.c up to 1.22, ldpart.c up to 1.9Andrey A. Chernov2002-08-075-98/+169
| | | | | | | | | | setlocale.3 up to 1.23, rune.3 1.17 Better checks for "encoding" validity as pathname component. Errno fixes. Fallback fixes. Remove macro, style, whitespace. Notes: svn path=/stable/4/; revision=101448
* MFC: v1.36 (strncpy -> strlcpy, fix out of bounds indexing)Andrey A. Chernov2002-08-021-14/+10
| | | | Notes: svn path=/stable/4/; revision=101237
* MFC 1.6: sysctl(NET_RT_IFLIST) up to several (currently 5) times.Hajimu UMEMOTO2002-08-011-8/+28
| | | | | | | | This will make the behavior robuster if many addresses are added after the size estimation of storage at the first sysctl. Notes: svn path=/stable/4/; revision=101178
* The fix applied to the XDR decoder in revision 1.8.2.1 was incorrect.Jacques Vidrine2002-08-011-1/+1
| | | | Notes: svn path=/stable/4/; revision=101148
* Add missing header <limits.h> for UINT_MAX introducedJacques Vidrine2002-07-311-0/+1
| | | | | | | | | in previous commit. Noticed by: bsd Notes: svn path=/stable/4/; revision=101061
* Patch to fix bounds checking/overflowDarren Reed2002-07-311-3/+4
| | | | | | | Obtained From: OpenBSD Notes: svn path=/stable/4/; revision=101046
* MFC 1.12:Hajimu UMEMOTO2002-07-311-59/+56
| | | | | | | | | | | | | | - ntohs() returns unsigned value. - use strlcpy. - snprintf can return negative value, so cope with it. - tweak interface index on interface locals (ff01::/16). - removed unused macros. - removed a macro that uses only once (in a trivial context). - explicitly say goodbye to ENI_xxx. - constify struct afd. Notes: svn path=/stable/4/; revision=101032
* MFC:Mike Silbersack2002-07-302-2/+2
| | | | | | | | | | | | | | | | Update docs to reflect change in count of procs reserved for root from 1 to 10. PR: kern/40515 Submitted by: David Schultz <dschultz@uclink.Berkeley.EDU> MFC after: 1 day Revision Changes Path 1.16 +1 -1 src/lib/libc/sys/fork.2 1.24 +1 -1 src/lib/libc/sys/rfork.2 Notes: svn path=/stable/4/; revision=100963
* MFC: Use BSDi derived if_nametoindex(), if_indextoname(), if_nameindex()Hajimu UMEMOTO2002-07-293-307/+86
| | | | | | | and if_freenameindex(). Notes: svn path=/stable/4/; revision=100883
* MFC 1.11: Make NI_WITHSCOPEID a default (always on), to synchronizeHajimu UMEMOTO2002-07-251-30/+20
| | | | | | | with recent 2553bis. Notes: svn path=/stable/4/; revision=100672
* Fixed a missing line in the MFC of rev.1.37 (PR 12723).Bruce Evans2002-07-221-4/+5
| | | | | | | | | Submitted by: Peter Jeremy <peter.jeremy@alcatel.com.au> MFC (1.29 (parts), 1.31, 1.32: fildes -> fd). Notes: svn path=/stable/4/; revision=100504
* This commit was manufactured by cvs2svn to create branch 'RELENG_4'.cvs2svn2002-07-173-0/+318
| | | | Notes: svn path=/stable/4/; revision=100250
* MFC: Quick grammar fix to signal.3:Tom Rhodes2002-07-161-2/+2
| | | | | | | | | PR: 39395 Submitted by: Rich Neswold <rneswold@ameritech.net> Not Completed by: keramida Notes: svn path=/stable/4/; revision=100178
* MFC: s/unavilable/unavailable/Daniel Harris2002-07-081-1/+1
| | | | Notes: svn path=/stable/4/; revision=99591
* Fix builds with LIBC_SCCS defined.Robert Drehmel2002-07-072-2/+2
| | | | | | | PR: bin/40202 Notes: svn path=/stable/4/; revision=99528
* Fix typo (SIGEV_EVENT -> SIGEV_KEVENT).Mark Peek2002-07-021-1/+1
| | | | Notes: svn path=/stable/4/; revision=99282
* MFC: (rev. 1.28) Grammar nit: treat "contents" as plural.Archie Cobbs2002-07-021-1/+1
| | | | Notes: svn path=/stable/4/; revision=99269
* MFC: (rev. 1.16) Grammar fix: "contents" is plural.Archie Cobbs2002-07-021-2/+2
| | | | Notes: svn path=/stable/4/; revision=99268
* Correct some dumb behaviour in clnt_broadcast(), where it wouldIan Dowse2002-06-301-4/+8
| | | | | | | | | | | | | | | | give up and return an error if sending to any interface failed. If an interface that comes early in the list is in a state where all sends fail, clnt_broadcast() might never get to the interfaces that matter. Instead, only fail if all sends are unsuccessful. This is not an MFC; -CURRENT uses the TI-RPC code, which does not have this bug. PR: misc/34842 Submitted by: Per Hedeland <per@bluetail.com> Notes: svn path=/stable/4/; revision=99172
* Add xref to readpassphrase(3).Dag-Erling Smørgrav2002-06-301-1/+2
| | | | Notes: svn path=/stable/4/; revision=99140
* getpass.c is OBE (moved into readpassphrase.c)Dag-Erling Smørgrav2002-06-302-98/+1
| | | | Notes: svn path=/stable/4/; revision=99139
* Unbreak world.Dag-Erling Smørgrav2002-06-301-2/+0
| | | | | | | Pointy hat to: des Notes: svn path=/stable/4/; revision=99138
* MFC: readpassphrase(3) from OpenBSD.Dag-Erling Smørgrav2002-06-301-3/+3
| | | | Notes: svn path=/stable/4/; revision=99136
* MFC rev 1.8/1.9:Mike Silbersack2002-06-281-2/+6
| | | | | | | | | | | Modify bcopy (and memcpy/memmove) so that the length value is not re-read from the stack mid copy. This may help mitigate the recent Apache buffer overrun and future overruns of the sort. Also add a $FreeBSD$, as required by commit_prep. Notes: svn path=/stable/4/; revision=98980
* MFC: adjust buflen properlyWarner Losh2002-06-261-1/+3
| | | | Notes: svn path=/stable/4/; revision=98861
* MFC: Fix last fix.Warner Losh2002-06-261-1/+1
| | | | Notes: svn path=/stable/4/; revision=98859
* MFC: Fix remove overflowWarner Losh2002-06-262-1/+4
| | | | | | | Approved by: nectar Notes: svn path=/stable/4/; revision=98856
* MFC 1.26,1.27: Cleanup, mostly to conform to style(9).Robert Drehmel2002-06-181-19/+17
| | | | Notes: svn path=/stable/4/; revision=98394
* MFC 1.25: Avoid buffer underflow.Robert Drehmel2002-06-181-1/+1
| | | | Notes: svn path=/stable/4/; revision=98393