summaryrefslogtreecommitdiff
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* Remove the warning that this interface shouldn't be used yet. FixJohn Polstra2000-01-091-8/+4
| | | | | | | a typo. Clarify a sentence. Notes: svn path=/head/; revision=55685
* Correct discrepancy between definition of argument to tempnam() andKris Kennaway2000-01-091-2/+2
| | | | | | | the name by which it is referenced in the text. Notes: svn path=/head/; revision=55649
* Sync contents of struct nfsd_svrargsKris Kennaway2000-01-091-2/+2
| | | | Notes: svn path=/head/; revision=55630
* remove most of PF_INET6 description. add references only.Jun-ichiro itojun Hagino2000-01-061-138/+4
| | | | | | | Suggested by: Ruslan Ermilov <ru@FreeBSD.org> Notes: svn path=/head/; revision=55502
* bring in description for KAME IPv6 changes.Jun-ichiro itojun Hagino2000-01-061-4/+156
| | | | | | | | | XXX it looks that sysctl.3 lacks most of PF_INET items. Reviewed by: shin Obtained from: KAME (netbsd-current) Notes: svn path=/head/; revision=55493
* Make example for handling "-##" work and comply with style(9). StillTim Vanderhoek2000-01-061-5/+12
| | | | | | | | | doesn't handle nastier corner cases such as "-j3 -33" correctly. <shrug> PR: docs/12994 (James Howard <howardjp@wam.umd.edu>) Notes: svn path=/head/; revision=55490
* Fixed the type of dllockinit() (const unpoisoning).Bruce Evans2000-01-051-4/+1
| | | | | | | | Use long lines instead of lines split with backslash-newline in synopsis. My synopsis checker doesn't understand backslash-newline. Notes: svn path=/head/; revision=55475
* Fixed missing include in synopsis.Bruce Evans2000-01-052-4/+4
| | | | | | | | Use long lines instead of lines split with backslash-newline in synopsis. My synopsis checker doesn't understand backslash-newline. Notes: svn path=/head/; revision=55474
* Fixed missing include in synopsis.Bruce Evans2000-01-051-0/+1
| | | | Notes: svn path=/head/; revision=55473
* Unbreak profiling. bde says this is not the cleanest way to fix theJason Evans2000-01-044-8/+8
| | | | | | | | | problem, but that it works. Submitted by: bde Notes: svn path=/head/; revision=55375
* Grammar: "be even number" -> "be an even number"Bill Fumerola2000-01-031-1/+1
| | | | Notes: svn path=/head/; revision=55354
* Backout the prev. commit. It's a bad idea to make-up terms. I believeTim Vanderhoek1999-12-312-3/+3
| | | | | | | | | there is no good solution here. Set-on-the-straight-and-narrow by: bde Notes: svn path=/head/; revision=55287
* Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL"Peter Wemm1999-12-293-14/+19
| | | | | | | | | is an application space macro and the applications are supposed to be free to use it as they please (but cannot). This is consistant with the other BSD's who made this change quite some time ago. More commits to come. Notes: svn path=/head/; revision=55206
* Typo cops.Tim Vanderhoek1999-12-281-1/+1
| | | | Notes: svn path=/head/; revision=55187
* Add history: The reallocf() function first appeared in FreeBSD-3.0.Tim Vanderhoek1999-12-281-0/+5
| | | | | | | | See imp's 199808201619.KAA20970@harmony.village.org in freebsd-hackers (the reallocf.c cvs history mistakenly refers to freebsd-current). Notes: svn path=/head/; revision=55186
* Add ".Xref tolower 3" since its internal use is inferred in DESCRIPTION.Tim Vanderhoek1999-12-281-1/+2
| | | | Notes: svn path=/head/; revision=55185
* Avoid the potentially confusing term "a null pointer" and say "the NULLTim Vanderhoek1999-12-282-3/+3
| | | | | | | | | | pointer" instead. The potential confusion arises because the string/*.3 pages use the term "null-terminated string" (which is permissable). Moreover, this also makes these two manpages more consistent with the other string/*.3 manpages. Notes: svn path=/head/; revision=55184
* Add .Xrefs to tolower.3 and toupper.3, respectively.Tim Vanderhoek1999-12-282-0/+2
| | | | Notes: svn path=/head/; revision=55183
* Suppress vast quantities of unneeded warnings spewed by libc's gethostbydnsRobert Watson1999-12-281-3/+4
| | | | | | | | | | on encountering a real-world SIG record during a lookup of another type. PR: bin/7352 Reviewed by: peter, eivind Notes: svn path=/head/; revision=55174
* Small bug fix and improvementsYoshinobu Inoue1999-12-281-0/+7
| | | | | | | | | | | (1)added error check of if_nameindex() return value at getaddrinfo(). (2)print out more detailed information when getaddrinfo() error value is EAI_SYSTEM.(in this case system error num is kept in errno) (1) is Discovered by: jinmei@kame.net in KAME environment. Notes: svn path=/head/; revision=55167
* Work around an assert failure in the dynamic linker's default threadJohn Polstra1999-12-281-0/+4
| | | | | | | | | | | | | | | | | | | locking functions. If an application loads a shared object with dlopen() and the shared object has an init function which requires lazy binding, then _rtld_bind is called when the thread is already inside the dynamic linker. This leads to a recursive acquisition of the lock, which I was not expecting -- hence the assert failure. This work-around makes the default locking functions handle recursive locking. It is NOT the correct fix -- that should be implemented at the generic locking level rather than in the default locking functions. I will implement the correct fix in a future commit. Since the dllockinit() interface will likely need to change, warn about that in both the man page and the header file. Notes: svn path=/head/; revision=55165
* Getaddrinfo(), getnameinfo(), and etc support in libc/net.Yoshinobu Inoue1999-12-288-4/+3657
| | | | | | | | | | Several udp and raw apps IPv6 support. Reviewed by: freebsd-arch, cvs-committers Obtained from: KAME project Notes: svn path=/head/; revision=55163
* Make this compile with -Wall -WerrorPeter Wemm1999-12-271-1/+2
| | | | Notes: svn path=/head/; revision=55135
* Add a new function dllockinit() for registering thread lockingJohn Polstra1999-12-273-1/+124
| | | | | | | | | | | | | | | | | | | | | | functions to be used by the dynamic linker. This can be called by threads packages at start-up time. I will add the call to libc_r soon. Also add a default locking method that is used up until dllockinit() is called. The default method works by blocking SIGVTALRM, SIGPROF, and SIGALRM in critical sections. It is based on the observation that most user-space threads packages implement thread preemption with one of these signals (usually SIGVTALRM). The dynamic linker has never been reentrant, but it became less reentrant in revision 1.34 of "src/libexec/rtld-elf/rtld.c". Starting with that revision, multiple threads each doing lazy binding could interfere with each other. The usual symptom was that a symbol was falsely reported as undefined at start-up time. It was rare but not unseen. This commit fixes it. Notes: svn path=/head/; revision=55122
* Creating weak symbols doesn't work correctly when building an aout libc.Jason Evans1999-12-244-16/+8
| | | | | | | | | | | | | | | Doing the "right thing" here is difficult, so create two ENTRY points for each function (for example, __setjmp and setjmp are equivalent). This isn't pretty, but it works for both aout and ELF. libc symbol naming needs an overhaul in order to properly support function wrapping, specifically in the case of a real libpthread, and these duplicate entry points should be fixed as part of that overhaul. Pointed out by: bde Notes: svn path=/head/; revision=55068
* Fixed wrong #include in synopsis.Bruce Evans1999-12-231-2/+2
| | | | Notes: svn path=/head/; revision=55040
* Fixed missing `const' in synopsis.Bruce Evans1999-12-231-1/+1
| | | | Notes: svn path=/head/; revision=55039
* Fixed missing includes in synopsis.Bruce Evans1999-12-231-0/+2
| | | | Notes: svn path=/head/; revision=55038
* Fixed missing installation of a link to ctermid_r.3.Bruce Evans1999-12-231-0/+1
| | | | Notes: svn path=/head/; revision=55037
* Fixed wrong prototype and missing include for strsignal(3). strsignal()Bruce Evans1999-12-231-2/+3
| | | | | | | | | | | | | | | | | takes an int arg and is prototyped in <string.h>. It has the opposite interface botches to psignal(3) which takes a bogus unsigned arg but is prototyped in the right place. This is not the last of the interface problems for strsignal(). We obtained it from NetBSD, but NetBSD has moved its prototype to <unistd.h>. strsignal() should return const char *, but it returns char * for historical reasons. NetBSD declares it as returning __aconst char, where __aconst is normally empty but can be set to `const' to give better error checking. glibc-2.1.1 prototypes strsignal() in <string.h>. Notes: svn path=/head/; revision=55035
* Fixed missing installation of a link to getlogin_r.3. This is the firstBruce Evans1999-12-231-0/+1
| | | | | | | | example of section 2 and section 3 interfaces sharing a man page. It's probably a bad example. Notes: svn path=/head/; revision=55034
* Fixed missing installation of a link to rand_r.3.Bruce Evans1999-12-231-1/+1
| | | | Notes: svn path=/head/; revision=55032
* Fix the fixfsfile() so that it works for both block and character devicesPeter Wemm1999-12-231-1/+7
| | | | | | | | | as root. This could fix the "filesystem still dirty after fsck" problem. Submitted by: bde Notes: svn path=/head/; revision=55028
* Document the current behaviour with respect to the handling of errno.Sheldon Hearn1999-12-221-1/+8
| | | | | | | Approved by: phk Notes: svn path=/head/; revision=55006
* Fix a typo which I cannot believe I missed after rereading this textJeroen Ruigrok van der Werven1999-12-211-1/+1
| | | | | | | | | about 6-7 times prior to commit. Reported by: sheldonh Notes: svn path=/head/; revision=54958
* Properly manify this manpage.Jeroen Ruigrok van der Werven1999-12-211-5/+5
| | | | | | | | | | | Fix some spelling mistakes and typo's inspired by Nicholas' initial PR submission. PR: docs/15597 Submitted by: Nicholas Esborn <nick@flatlan.net> Notes: svn path=/head/; revision=54953
* Fix a bug where a pointer would be one character too far after puttingOllivier Robert1999-12-213-3/+3
| | | | | | | | | a '\0' at the end of a string. Submitted by: Martin Birgmeier <Martin.Birgmeier@aon.at> Notes: svn path=/head/; revision=54948
* Rewriting of flags_to_string() and string_to_flags() to use an array.Ollivier Robert1999-12-193-258/+183
| | | | | | | | PR: bin/3648 Submitted by: Martin Birgmeier <mbirg@austria.ds.philips.com> Notes: svn path=/head/; revision=54827
* Initialize a var to quiet -Wall.David E. O'Brien1999-12-181-1/+1
| | | | Notes: svn path=/head/; revision=54772
* Switch over to the OpenBSD fts.c, fixing lots of things.Brian Feldman1999-12-182-142/+250
| | | | | | | Obtained from: OpenBSD Notes: svn path=/head/; revision=54770
* Back up following macros by functions: ishexnumber, isideogram, isnumber,Alexey Zelkin1999-12-171-7/+58
| | | | | | | | | isphonogram, isrune, isspecial. Fix ordering. Reviewed by: bde Notes: svn path=/head/; revision=54746
* Fix handling of trailing :'s to match what other OSes do (spit outJordan K. Hubbard1999-12-171-2/+8
| | | | | | | | | a diagnostis). Submitted by: Guy Harris <gharris@flashcom.net> Notes: svn path=/head/; revision=54713
* KAME 4th patchYoshinobu Inoue1999-12-166-4/+1088
| | | | | | | | | | | IPv6 specific library functions addition. (getnameinfo(), getaddrinfo(), and IPv6 transport support is not yet) Reviewed by: freebsd-arch, cvs-committers Obtained from: KAME project Notes: svn path=/head/; revision=54696
* Document SA_SIGINFOMartin Cracauer1999-12-151-25/+90
| | | | | | | Reviewed by: Sheldon Hearn <sheldonh@uunet.co.za> Notes: svn path=/head/; revision=54644
* Make setjmp, longjmp, sigsetjmp, and siglongjmp weak aliases forJason Evans1999-12-144-8/+24
| | | | | | | | | | | __setjmp, __longjmp, __sigsetjmp, and __siglongjmp, respectively. This supports cancellation in the linuxthreads port. In the long run, a much more comprehensive solution will necessitate more dramatic changes to libc symbol naming, and these aliases will probably need modification at that time. Notes: svn path=/head/; revision=54607
* Commented outNik Clayton1999-12-141-1/+1
| | | | | | | | | | | | | | | | MAN8+= rstat_svc.8 The file it talks about doesn't exist on FreeBSD, so there's no point in installing the manual page. There was already a comment to this effect in this file, but the entry hadn't been commented out. rstat.1 and rstat_svc.8 can probably actually be removed. PR: docs/13767 Submitted by: Seth <seth@freebie.dp.ny.frb.org> Notes: svn path=/head/; revision=54602
* Remove x-ref to itself.Bill Fumerola1999-12-141-1/+0
| | | | | | | Reviewed by: mpp Notes: svn path=/head/; revision=54598
* Correct "standard compilance" notesAlexey Zelkin1999-12-141-2/+8
| | | | | | | Reminded by: bde Notes: svn path=/head/; revision=54596
* Add MAP_NOSYNC feature to mmap(), and MADV_NOSYNC and MADV_AUTOSYNC toMatthew Dillon1999-12-122-0/+56
| | | | | | | | | | | | | | | | | | | | madvise(). This feature prevents the update daemon from gratuitously flushing dirty pages associated with a mapped file-backed region of memory. The system pager will still page the memory as necessary and the VM system will still be fully coherent with the filesystem. Modifications made by other means to the same area of memory, for example by write(), are unaffected. The feature works on a page-granularity basis. MAP_NOSYNC allows one to use mmap() to share memory between processes without incuring any significant filesystem overhead, putting it in the same performance category as SysV Shared memory and anonymous memory. Reviewed by: julian, alc, dg Notes: svn path=/head/; revision=54467
* While comparing this with OpenBSD (ie: trying to figure out what mkstemps()Peter Wemm1999-12-111-2/+2
| | | | | | | | | | | is good for... :-)), I discovered that part of the change when mkstemps() was brought in was missed - it was missing the termination case to make sure it doesn't walk into the suffix. This isn't the same code OpenBSD has, I think this is a little better as we terminate the loop in a better spot. Notes: svn path=/head/; revision=54439