summaryrefslogtreecommitdiffstats
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* Add missing ;.nork2006-07-231-1/+1
| | | | | Pointy hat to: myself Approved by: deischen (implicitly)
* do not overload the port number on to the return value ofume2006-07-231-8/+9
| | | | | | | str2number(). this could result in an unexpected code path. Obtained from: KAME MFC after: 1 week
* Add missing syscalls.nork2006-07-231-0/+12
| | | | | Reviewed by: deischen Approved by: deischen
* stop use of mutex lock in ICMP lookup.ume2006-07-231-18/+5
| | | | MFC after: 1 week
* remove obsolete comments.ume2006-07-221-8/+0
| | | | MFC after: 3 days
* simplification in explore_numeric: unified the post-process withume2006-07-211-32/+22
| | | | | | | GET_AI and GET_PORT. Commented on an impossible case. Obtained from: KAME MFC after: 1 week
* RFC3493 requires use of inet_aton for AF_INET.ume2006-07-211-3/+7
| | | | | Obtained from: KAME MFC after: 1 week
* clean-up: rewrote explore_null and explore_numeric without using sentinel.ume2006-07-211-35/+20
| | | | | | | | we do not need it since we make (at most) a single addrinfo entry in these cases. Obtained from: KAME MFC after: 1 week
* - draft-ietf-ipngwg-icmp-namelookups-09ume2006-07-211-79/+164
| | | | | | | | | - make it compilable It still requires root privilege and is experimental. Obtained from: KAME MFC after: 1 week
* Use a prototype for res_init().stefanf2006-07-171-1/+1
| | | | MFC after: 3 days
* o compat_group() and files_group() are more complicated than I thoughtmaxim2006-07-141-4/+6
| | | | | | | | | | | | | | | | in rev. 1.34. Mainly I missed the fact that the buffer is used for two purposes: 1) storing a group line from the group file; 2) __gr_parse_entry() parses the buffer and tries to put the group members to the remaining part of the buffer and can fail if there is no enough room for them. Re-arrange the buffer size checks to account the latter case. Submitted by: Kirk R Webb MFC after: 2 weeks
* Following repo-copy of mac_is_present_np.3 to mac_is_present.3, removerwatson2006-07-076-93/+6
| | | | | | | old file, update references, etc. The C function is already named mac_is_present(). Obtained from: TrustedBSD Project
* Use some math tricks in arena_run_reg_dalloc() to avoid actual division, asjasone2006-07-011-83/+90
| | | | | | | | | | | | | | | | | well as avoiding a switch statement. This change has no significant impact to performance when branch prediction is successful at predicting the sizes of objects passed to free(), but in the case that the object sizes are semi-random, this change has the potential to prevent many branch prediction misses, thus improving performance substantially. Take advantage of alignment guarantees in ipalloc(), and pad object sizes to something less than a power of two when possible. This has the potential to substantially reduce internal fragmentation for objects allocated via posix_memalign(). Avoid an unnecessary pow2_ceil() call in arena_ralloc(). Submitted by: djam8193ah@hotmail.com
* Make the behavior of malloc(0) standards-compliant by getting rid of nil,jasone2006-06-301-48/+46
| | | | | | | | | and instead creating a small allocation for each malloc(0) call. The optional SysV compatibility behavior remains unchanged. Add a couple of assertions. Fix a couple of typos in error message strings.
* twalk() expects an `action' function not a comparison function.keramida2006-06-231-1/+1
| | | | | | | | | The text is correct in the "DESCRIPTION" section, so fix "SYNOPSIS" to use the correct name. PR: docs/90498 Submitted by: Vasil Dimov MFC after: 3 days
* Make the mincore(2) return ENOMEM when requested range is not fully mapped.kib2006-06-211-2/+2
| | | | | | | Requested by: Bruno Haible <bruno at clisp org> Reviewed by: alc Approved by: pjd (mentor) MFC after: 1 month
* Add a missing case for the switch statement in arena_run_reg_dalloc(). [1]jasone2006-06-201-8/+20
| | | | | | | Fix a leak in chunk_dealloc(). [2] Reported by: [1] djam8193ah@hotmail.com, [2] Ville-Pertti Keinonen <will@exomi.com>
* o Make grep ^strlcpy work: put a return value type on separate line.maxim2006-06-151-1/+2
|
* o Sort .Xrs.maxim2006-06-131-1/+1
|
* Add xref to statfs(2)phk2006-06-131-0/+1
|
* - ANSIfy.delphij2006-06-051-69/+26
| | | | | | - Remove two unnecessary casts. These changes would help gcc4 compile.
* Replace absolute addressing in the call instructions with position-independendkib2006-06-051-2/+3
| | | | | | | | calls. This eliminates TEXTREL from libc, making its text segment relocatable. PR: i386/85242 Approved by: kan (mentor) MFC after: 1 month
* o Record a file offset for a last successfully parsed group file line.maxim2006-06-011-0/+8
| | | | | | | | | | | If the initial buffer size (1KB) for the given group line is not big enough, reset the offset. It helps to do not miss this line when getrg() reallocates the larger buffer and tries to parse the line again. PR: bin/52433, kern/55031, bin/83696, misc/97640, misc/98111 Submitted by: bsw71@mail.ru, Philip M. Gollucci, Justin Erenkrantz Glanced at: nectar MFC after: 1 month
* o Document the fact truncate(2) has no effect for !VDIR or !VREG files.maxim2006-06-011-1/+5
| | | | Submitted by: ceri
* Fix the output.ru2006-05-271-0/+1
| | | | Noticed by: rodrigc
* GC old a.out and K&R support.imp2006-05-231-9/+0
|
* Reflect int -> size_t changes in glob.hache2006-05-221-3/+3
|
* Reflect size_t changes in glob.hache2006-05-221-22/+23
| | | | Obtained from: NetBSD (mostly)
* Remove pending actions asked in comments for SHLIB_MAJOR bump, done.ache2006-05-221-2/+0
| | | | Reviewed by: ume
* Remove the kludge, as asked in the Makefile:ache2006-05-221-3/+0
| | | | | | # If you bump SHLIB_MAJOR, remove the kluge from gen/gethostname.c. Reviewed by: ume
* Bump library majro version for gethostbyaddr(3).ume2006-05-211-1/+1
|
* Nuke some compatibility crufts of resolver for 6.X and earlier.ume2006-05-213-15/+0
| | | | X-MFC after: never
* Fix gethostbyaddr() prototype to conform to IEEE Std 1003.1 on 64 bitume2006-05-211-25/+22
| | | | | | arch. X-MFC after: never
* Return EAI_OVERFLOW instead of EAI_MEMORY when the supplied buffer isume2006-05-213-4/+7
| | | | | | too short. This conforms to RFC3493, POSIX and XPG6. Obtained from: NetBSD
* Upgrade res_update(3) and the friends to BIND9's one excluding TSIGume2006-05-2112-943/+69
| | | | | | support. X-MFC after: never
* This commit was generated by cvs2svn to compensate for changes in r158782,ume2006-05-214-0/+2201
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Vendor import of BIND 9.3.2ume2006-05-214-0/+2201
| |
| * Oops, remove the file I imported into wrong place.ume2006-03-211-47/+0
| |
* | Remove reference to "System call restart" in intro(2). intro(2) does notrodrigc2006-05-201-3/+4
| | | | | | | | | | have such a reference. Add a reference instead to SA_RESTART in sigaction(2).
* | o .Xr strtonum(3).maxim2006-05-202-0/+2
| | | | | | | | MFC after: 1 week
* | Correct decoding a string containing '/'.jkim2006-05-191-1/+1
| | | | | | | | | | PR: 97485 Submitted by: Mikko Tyolajarvi < mbsd at pacbell dot net >
* | * Document the fact that non-superusers cannot change file flags forkeramida2006-05-161-2/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | objects with SF_IMMUTABLE, SF_APPEND, or SF_NOUNLINK. * Document that non-superusers cannot set or clear any SF_* flag (setting fails with EPERM, clearing is silently ignored). * Document that superusers cannot change any flag if one of SF_IMMUTABLE, SF_APPEND, SF_NOUNLINK is set and securelevel is greater than 0. * Document SF_SNAPSHOT and note that it is maintained by the system and is, for this reason, impossible to set to clear by any user. PR: docs/33877 Submitted by: harti Help by: George Marsellis <gam9478@njit.edu> MFC after: 1 week
* | Fix gethostbyaddr() prototype to conform to IEEE Std 1003.1:ume2006-05-126-22/+36
| | | | | | | | | | | | | | | | | | | | http://www.opengroup.org/onlinepubs/009695399/functions/gethostbyaddr.html gethostbyaddr_r() is changed as well. It breaks ABI backward compatibility on 64 bit arch. So, we fix it on 32 bit arch only for now. Reported by: Rostislav Krasny <rosti.bsd@gmail.com>
* | Save errno before calling pthread_mutex_lock because pthread_mutex_lockdavidxu2006-05-111-2/+2
| | | | | | | | may change errno unexpectly.
* | Increase the minimum chunk size by a power of two (32kB --> 64kB, assumingjasone2006-05-101-2/+2
| | | | | | | | | | | | | | | | 4kB pages), in order to avoid dangerous rounding error when calculating fullness limits during run promotion/demotion. Convert a structure bitfield to a normal field in areana_run_t. This should have been changed along with the other fields in revision 1.120.
* | A few minor wording changes and a clarification about error conditions.bsd2006-05-031-10/+10
| |
* | Fix alignment problem on AMD64.ume2006-05-021-4/+4
| | | | | | | | | | | | Reported by: Pascal Hofstee <caelian__at__gmail.com> Submitted by: Michael Bushkov <bushman__at__rsu.ru> Tested by: Pascal Hofstee <caelian__at__gmail.com>
* | `cache' couldn't co-exist with `compat'.ume2006-04-301-2/+3
| | | | | | | | Submitted by: "Michael Bushkov" <bushman__at__rsu.ru>
* | - Extend the nsswitch to support Services, Protocols and Rpcume2006-04-2821-737/+5438
| | | | | | | | | | | | | | | | databases. - Make nsswitch support caching. Submitted by: Michael Bushkov <bushman__at__rsu.ru> Sponsored by: Google Summer of Code 2005
* | Change the semantics of brk_max to dynamically deal with data segmentjasone2006-04-271-71/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bounds. [1] Modify logic for utilizing the data segment, such that it is possible to create huge allocations there. Shrink the data segment when deallocating a chunk, if it is at the end of the data segment. Rename chunk_size to csize in huge_malloc(), in order to avoid masking a static variable of the same name. [1] Reported by: Paul Allen <nospam@ugcs.caltech.edu>
OpenPOWER on IntegriCloud