summaryrefslogtreecommitdiff
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* Add description for the 'll' modifier for long long. In essence a copyJens Schweikhardt2001-06-131-4/+24
| | | | | | | | | | | from the 'l' description with s/long/long long/g. PR: 27017 Submitted by: Guy Harris <guy@alum.mit.edu> MFC after: 2 weeks Notes: svn path=/head/; revision=78180
* Complete prototype for fts_compar.Ruslan Ermilov2001-06-131-1/+3
| | | | Notes: svn path=/head/; revision=78169
* Make the non-threaded stub for pthread_sigmask() a no-op insteadIan Dowse2001-06-111-6/+1
| | | | | | | | | | | | | | | | of calling sigprocmask(). This matches the behaviour of thr_sigsetmask() on Solaris; _pthread_sigmask_stub was added purely for compatibility with Solaris (for TI-RPC), so it might as well do the same thing. This fixes the problem where client RPC calls ignored all signals for the complete duration of the RPC. This behaviour is currently necessary in the threaded case due to locking issues, but was never intended to occur in non-threaded programs. Reviewed by: deischen Notes: svn path=/head/; revision=78117
* Fix small bogon.Jonathan Lemon2001-06-111-1/+1
| | | | | | | Submitted by: Anton Berezin <tobez@tobez.org> Notes: svn path=/head/; revision=78086
* Handle "ASCII" and "US-ASCII" aliasesAndrey A. Chernov2001-06-101-1/+2
| | | | Notes: svn path=/head/; revision=78024
* Implement EDNS0 support, as EDNS0 support will be made mandatory forHajimu UMEMOTO2001-06-106-2/+64
| | | | | | | | | | | | | | IPv6 transport-ready resolvers/DNS servers. Need careful configuration when enable it. (default config is not affected). See manpage for details. XXX visible symbol __res_opt() is added, however, it is not supposed to be called from outside, libc minor is not bumped. Obtained from: KAME/NetBSD Notes: svn path=/head/; revision=78012
* Fix cross-references:Maxim Sobolev2001-06-101-1/+1
| | | | | | | | | | | xntpd.8 --> ntpd.8 acl_delete_perms.3 --> acl_delete_perm.3 getname.2 --> getsockname.2 MFC after: 1 week Notes: svn path=/head/; revision=77973
* Xref dladdr(3).Dima Dorfman2001-06-081-0/+1
| | | | | | | Requested by: -hackers Notes: svn path=/head/; revision=77926
* Correct cross-reference:Maxim Sobolev2001-06-071-15/+15
| | | | | | | | | portmap.8 --> rpcbind.8 Submitted by: .Xr testing script Notes: svn path=/head/; revision=77878
* s/format/byte order/ (for clarity).Ruslan Ermilov2001-06-071-1/+1
| | | | Notes: svn path=/head/; revision=77877
* urandom(4) -> random(4) in comments.Dima Dorfman2001-06-072-2/+2
| | | | | | | | | | PR: 27858 Submitted by: Yoshihiro Koya <Yoshihiro.Koya@math.yokohama-cu.ac.jp> Reviewed by: md5(1) Approved by: markm Notes: svn path=/head/; revision=77851
* urandom(4) -> random(4)Dima Dorfman2001-06-072-4/+4
| | | | | | | | | PR: 27858 Submitted by: Yoshihiro Koya <Yoshihiro.Koya@math.yokohama-cu.ac.jp> Approved by: markm Notes: svn path=/head/; revision=77850
* Back out my changes describing how snprintf nul terminates. ItWarner Losh2001-06-051-9/+11
| | | | | | | | | | was from the iso standard. Keep the sentence that says it is always NUL terminated to make sure that people understand that. Requested by: bde Notes: svn path=/head/; revision=77794
* Don't mung the user's tm_sec field if we don't need to. (Belt-and-suspendersGarrett Wollman2001-06-051-1/+3
| | | | | | | | | | | | version.) PR: bin/27630 Submitted by: Arthur David Olson <ado@nci.nih.gov> Obtained from: Timezone mailing-list <tz@elsie.nci.nih.gov> MFC after: 1 month Notes: svn path=/head/; revision=77785
* I neglected to notice that the change text had already been added in aWarner Losh2001-06-051-3/+0
| | | | | | | | | different place. Back out what I added since the other text is better. Noticed by: nectar Notes: svn path=/head/; revision=77775
* Fix cross-references:Maxim Sobolev2001-06-052-3/+3
| | | | | | | | | | | ipnat.8 --> ipnat.1 environ.5 --> environ.7 isssetugid.2 --> issetugid.2 MFC after: 1 week Notes: svn path=/head/; revision=77759
* Document what happens when the real id is changed.Warner Losh2001-06-052-0/+6
| | | | | | | | I may have obtained this from NetBSD, but I don't recall. I do know that I checked FreeBSD's implementation to make sure that it matched what I wrote. Notes: svn path=/head/; revision=77747
* Minor improvements:Warner Losh2001-06-051-15/+29
| | | | | | | | | o Explain snprintf's return value better. o Document snprintf, et al, were defined in C-99 o Warn against %n. Notes: svn path=/head/; revision=77744
* Properly initialize a temporary FILE that is allocated off the stack.Daniel Eischen2001-06-042-0/+10
| | | | | | | | | | The change to reuse _up from FILE (to allow FILE to grow without changing size) overlooked FILE being allocated off the stack. Approved by: sobomax Notes: svn path=/head/; revision=77686
* Fix another unprotected instance of chdir() by extending theKris Kennaway2001-06-012-48/+24
| | | | | | | | | | fts_safe_changedir() function and using that instead for both of the chdir()s. Partially submitted by: Todd Miller <millert@OpenBSD.org>, bde Notes: svn path=/head/; revision=77599
* Copy the sockaddr from the netbuf data area, not from the netbufIan Dowse2001-06-011-1/+1
| | | | | | | | | | | data pointer. This bug has been here since the ti-rpc import; it apparently broke the clnt_control CLGET_SVC_ADDR options. PR: misc/27813 Submitted by: Jean-Luc Richier <Jean-Luc.Richier@imag.fr> Notes: svn path=/head/; revision=77588
* Remove vestiges of MFS.Ruslan Ermilov2001-06-012-25/+3
| | | | Notes: svn path=/head/; revision=77575
* Correct the documentation for snprintf() and vsprintf() which actuallyGregory Neil Shapiro2001-05-301-1/+12
| | | | | | | | | | return the number of characters that would have been in the new string. Obtained from: OpenBSD MFC after: 3 days Notes: svn path=/head/; revision=77510
* When doing the chdir("..") in the !FTS_NOCHDIR case, stat() after we getKris Kennaway2001-05-302-4/+32
| | | | | | | | | | there and compare the inode and device numbers to the values we remember, to guard against the directory having been moved around in the meantime. Reported by: Nick Cleaton <nick@cleaton.net> Notes: svn path=/head/; revision=77497
* Add warnings about trusting user-supplied data.Eric Melville2001-05-253-2/+43
| | | | | | | | | Reviewed by: ru Approved by: murray Obtained from: OpenBSD Notes: svn path=/head/; revision=77200
* Make the rcsid and FreeBSD IDs more sane in the wcs* and wmem* files.David E. O'Brien2001-05-2453-93/+223
| | | | | | | Do the same for the non-wcs*/wmem* files while I'm here. Notes: svn path=/head/; revision=77117
* This patch implements O_DIRECT about 80% of the way. It takes a patchsetMatthew Dillon2001-05-242-0/+12
| | | | | | | | | | | | | | | | | | | Tor created a while ago, removes the raw I/O piece (that has cache coherency problems), and adds a buffer cache / VM freeing piece. Essentially this patch causes O_DIRECT I/O to not be left in the cache, but does not prevent it from going through the cache, hence the 80%. For the last 20% we need a method by which the I/O can be issued directly to buffer supplied by the user process and bypass the buffer cache entirely, but still maintain cache coherency. I also have the code working under -stable but the changes made to sys/file.h may not be MFCable, so an MFC is not on the table yet. Submitted by: tegge, dillon Notes: svn path=/head/; revision=77115
* Changed the clnt_perror string in yp_all because it was saying theJim Pirzyk2001-05-231-1/+1
| | | | | | | | | | | | error came from yp_next PR: bin/13254 Submitted by: Jim Pirzyk Reviewed by: jkh MFC after: 1 week Notes: svn path=/head/; revision=77044
* Rename (after a repo-copy) some mount(8) programs:Ruslan Ermilov2001-05-232-2/+2
| | | | | | | | | | | mount_fdesc -> mount_fdescfs mount_null -> mount_nullfs mount_portal -> mount_portalfs mount_umap -> mount_umapfs mount_union -> mount_unionfs Notes: svn path=/head/; revision=77042
* Fix the range of the returned value.Ruslan Ermilov2001-05-231-1/+1
| | | | | | | | PR: docs/27446 Submitted by: Tadayuki OKADA <tadayuki@mediaone.net> Notes: svn path=/head/; revision=77039
* Correct error message of an example.Hajimu UMEMOTO2001-05-211-1/+1
| | | | | | | Obtained from: KAME Notes: svn path=/head/; revision=76925
* Document ECONNREFUSED.Archie Cobbs2001-05-201-0/+4
| | | | | | | Submitted by: Richard Hodges <rh@matriplex.com> Notes: svn path=/head/; revision=76864
* The function clnt_dg_call(), which is used for UDP RPC calls, couldIan Dowse2001-05-181-4/+2
| | | | | | | | | | | | accidentally clobber the server address if a stray packet arrived at the client port. This would result in any further retransmits going to the wrong address. For now, fix this by not saving the source address of the reply; this matches the pre-tirpc behaviour. Notes: svn path=/head/; revision=76824
* Suppress compiler warning by adding a type cast.Ruslan Ermilov2001-05-171-4/+2
| | | | Notes: svn path=/head/; revision=76748
* ... but we do provide .St -isoC-99, and it is not required to have theRuslan Ermilov2001-05-171-5/+1
| | | | | | | | | | | | | | history info as: : .Sh STANDARDS If the command, library function or file adheres to a : specific implementation such as IEEE Std 1003.2 : (``POSIX.2'') or ANSI X3.159-1989 (``ANSI C'') this : should be noted here. If the command does not adhere : to any standard, its history should be noted in the : HISTORY section. Notes: svn path=/head/; revision=76729
* Unbreak world; _DIAGASSERT macro is not available in FreeBSD.Ruslan Ermilov2001-05-1621-57/+0
| | | | Notes: svn path=/head/; revision=76683
* mdoc(7) police: fix markup.Ruslan Ermilov2001-05-161-4/+5
| | | | Notes: svn path=/head/; revision=76673
* Introduce getprogname(3) and setprogname(3) library calls. These getDima Dorfman2001-05-154-3/+123
| | | | | | | | | | | | and set __progname, respectively. Discussed on: -arch (Feb 2001), -audit Reviewed by: -audit Approved by: kris Obtained from: (mostly) NetBSD Notes: svn path=/head/; revision=76653
* adapt to FreeBSD.Takuya SHIOZAKI2001-05-152-4/+20
| | | | | | | | | | | | | - enable locale-insensitive functions of wchar.h: wcscat.c wcschr.c wcscmp.c wcscpy.c wcscspn.c wcslcat.c wcslcpy.c wcslen.c wcsncat.c wcsncmp.c wcsncpy.c wcspbrk.c wcsrchr.c wcsspn.c wcsstr.c wmemchr.c wmemcmp.c wmemcpy.c wmemmove.c wmemset.c XXX: wcswidth.c is not enabled yet. - enable wmemchr(3) man page. XXX: FreeBSD lacks .St -isoC99 and .St -isoC-amd1. Notes: svn path=/head/; revision=76637
* mdoc(7) police: sort xrefs.Ruslan Ermilov2001-05-151-1/+1
| | | | Notes: svn path=/head/; revision=76620
* Add new, from scratch implementation of hsearch() et al that actually works.Ruslan Ermilov2001-05-155-113/+395
| | | | | | | | Obtained from: NetBSD MFC after: 1 month Notes: svn path=/head/; revision=76613
* initial import of locale insensitive wcs* and wmem* functions.Takuya SHIOZAKI2001-05-1522-0/+1484
| | | | | | | Obtained from: NetBSD and Citrus. Notes: svn path=/head/; revision=76612
* mdoc(7) police: add RETURN VALUES section.Ruslan Ermilov2001-05-141-8/+13
| | | | | | | | PR: docs/27161 Submitted by: Kazuhiro KONDOU <k-fuji@za2.so-net.ne.jp> Notes: svn path=/head/; revision=76583
* Extract the path from an AF_LOCAL sockaddr_un in a way that correctlyIan Dowse2001-05-121-2/+5
| | | | | | | | | | | | | | terminates the string in all cases, based on code from netstat(1). The path in a sockaddr_un is terminated either by a '\0', or by the end of the sockaddr as defined by sun_len. Previously, the code could write the "safety" '\0' beyond the end of the sockaddr (sockaddr_un's need only be large enough to store sun_len bytes), and writing into the the supplied sockaddr is bad anyway. Notes: svn path=/head/; revision=76523
* gethostbyname2() can't do AF_INET6 lookups over NIS.Alexander Langer2001-05-081-0/+7
| | | | | | | | | getaddrinfo(3) must be used. Submitted by: ume Notes: svn path=/head/; revision=76369
* Correct prototype (entry_p -> *entry_p)Chris D. Faulhaber2001-05-071-1/+1
| | | | | | | Submitted by: Alex Zepeda <jazepeda@pacbell.net> Notes: svn path=/head/; revision=76346
* add nl_langinfo(3)Alexey Zelkin2001-05-031-2/+2
| | | | Notes: svn path=/head/; revision=76248
* Eliminate BUGS section. No one of listed bugs is applicable to FreeBSD-currentAlexey Zelkin2001-05-031-25/+0
| | | | | | | anymore. Notes: svn path=/head/; revision=76247
* add manpage for nl_langinfo(3)Alexey Zelkin2001-05-031-0/+90
| | | | | | | Reviewed by: ru Notes: svn path=/head/; revision=76246
* * include/elf.h has been repo copied to include/elf-hints.h, and it noDavid E. O'Brien2001-05-021-1/+2
| | | | | | | | | | | longer includes machine/elf.h. * consumers of elf.h now use the minimalist elf header possible. This change is motivated by Binutils 2.11.0 and too much clashing over our base elf headers and the Binutils elf headers. Notes: svn path=/head/; revision=76224