summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* This commit was manufactured by cvs2svn to create branch 'RELENG_4_7'.cvs2svn2002-10-051-9/+0
| | | | Notes: svn path=/releng/4.7/; revision=104537
* MFC: 1.61: Reincarnate HTTP authentication code.Ruslan Ermilov2002-10-041-4/+4
| | | | | | | Approved by: re (jhb) Notes: svn path=/stable/4/; revision=104447
* 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
* MFC 1.23: mark file descriptors close-on-exec.Jacques Vidrine2002-09-131-0/+12
| | | | | | | Approved by: re (jhb) Notes: svn path=/stable/4/; revision=103291
* This commit was manufactured by cvs2svn to create branch 'RELENG_4'.cvs2svn2002-09-131-0/+98
| | | | Notes: svn path=/stable/4/; revision=103286
* Fix screwup in previous MFC that broke the build.Archie Cobbs2002-09-011-16/+16
| | | | | | | Pointy hat to: me Notes: svn path=/stable/4/; revision=102749
* 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: Remove much of the dereferencing of the fd table entries to look atArchie Cobbs2002-08-3121-39/+66
| | | | | | | file flags and replace it with functions that will avoid null pointer checks. Notes: svn path=/stable/4/; revision=102743
* MFC: (rev. 1.42) Check for POLLERR, POLLHUP, and POLLNVAL from poll(2).Archie Cobbs2002-08-311-2/+6
| | | | Notes: svn path=/stable/4/; revision=102742
* MFC: (rev. 1.21) Make select() set the readable/writable bits when poll()Archie Cobbs2002-08-311-4/+6
| | | | | | | returns POLLERR, POLLHUP, or POLLNVAL. Notes: svn path=/stable/4/; revision=102741
* MFC: (rev. 1.20, 1.21) Remove (int) file descriptor locking.Archie Cobbs2002-08-301-0/+48
| | | | | | | PR: bin/42100 Notes: svn path=/stable/4/; revision=102601
* MFC 1.37: Don't fail needlessly on unsuccessful hostname lookups.John Polstra2002-08-261-5/+5
| | | | Notes: svn path=/stable/4/; revision=102442
* MFC: &x is not a format stringKris Kennaway2002-08-241-1/+1
| | | | Notes: svn path=/stable/4/; revision=102352
* 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: handle the escaped colon \: in a capability.Ruslan Ermilov2002-08-151-2/+4
| | | | | | | PR: bin/30778 Notes: svn path=/stable/4/; revision=101909
* 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
* When testing if a user is in a group, check the user's primary groupIan Dowse2002-08-121-1/+6
| | | | | | | | | | | too. This is not an MFC, as the code is no longer present in -current. PR: bin/22212 Submitted by: Cyrille Lefevre <clefevre@citeweb.net> Approved by: markm (in principle) Notes: svn path=/stable/4/; revision=101753
* 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: Drop support for COPY.Ruslan Ermilov2002-08-0711-14/+14
| | | | Notes: svn path=/stable/4/; revision=101469
* 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: 1.19, don't use "term" if TERM env variable presentAndrey A. Chernov2002-08-061-10/+11
| | | | Notes: svn path=/stable/4/; revision=101413
* Updated a.out libc/libc_r that fixes the FreeBSD-SA-02:28.resolv resolver bug.David E. O'Brien2002-08-043-9633/+5
| | | | | | | Submitted by: Trevor Johnson <trevor@jpj.net> Notes: svn path=/stable/4/; revision=101301
* This commit was manufactured by cvs2svn to create branch 'RELENG_4'.cvs2svn2002-08-042-0/+7149
| | | | Notes: svn path=/stable/4/; revision=101300
* MFC: v1.36 (strncpy -> strlcpy, fix out of bounds indexing)Andrey A. Chernov2002-08-021-14/+10
| | | | Notes: svn path=/stable/4/; revision=101237
* Fix an inverted test that, instead of checking for a null password, checkedDag-Erling Smørgrav2002-08-021-23/+18
| | | | | | | | | | | | | for a null response. This caused pam_sm_authenticate() to always succeed if the user's password was null (which in itself isn't so bad, except it didn't honor the PAM_DISALLOW_NULL_AUTHTOK flag). Merge some more code from -CURRENT that adds the "nullok" option and checks both that and the PAM_DISALLOW_NULL_AUTHTOK flag before allowing a user with a null password to log in. Notes: svn path=/stable/4/; revision=101212
* Fix botched MFC (rev 1.6.2.2): __sys_close -> _thread_sys_closeJonathan Mini2002-08-021-1/+1
| | | | | | | PR: kern/41251 Notes: svn path=/stable/4/; revision=101198
* 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
* MFC: Duplicate file descriptors with the correct flags, whenRobert Drehmel2002-08-011-13/+24
| | | | | | | | | the destination is a standard file descriptor. PR: misc/39377 Notes: svn path=/stable/4/; revision=101145
* 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: use __BEGIN_DECLS / __END_DECLS + diff reduction against -CURRENT.Dag-Erling Smørgrav2002-07-261-20/+28
| | | | | | | PR: misc/40399 Notes: svn path=/stable/4/; revision=100708
* MFC: Cope with 2292bis-01 getaddrinfo (no NI_WITHSCOPEID, always attachHajimu UMEMOTO2002-07-251-0/+1
| | | | | | | | | | scope identifier). lib/libftpio/ftpio.c: 1.42 libexec/ftpd/ftpd.c: 1.104 Notes: svn path=/stable/4/; revision=100674