summaryrefslogtreecommitdiffstats
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* KAME 4th patchshin1999-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
* Document SA_SIGINFOcracauer1999-12-151-25/+90
| | | | Reviewed by: Sheldon Hearn <sheldonh@uunet.co.za>
* Make setjmp, longjmp, sigsetjmp, and siglongjmp weak aliases forjasone1999-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.
* Commented outnik1999-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>
* Remove x-ref to itself.billf1999-12-141-1/+0
| | | | Reviewed by: mpp
* Correct "standard compilance" notesphantom1999-12-141-2/+8
| | | | Reminded by: bde
* Add MAP_NOSYNC feature to mmap(), and MADV_NOSYNC and MADV_AUTOSYNC todillon1999-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
* While comparing this with OpenBSD (ie: trying to figure out what mkstemps()peter1999-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.
* Remove discussion of %C in the BUGS section. The limitations on validsheldonh1999-12-091-4/+0
| | | | | centuries are much more serious than those mentioned and this is not the place to discuss the limitations of time_t.
* Prevent digit-gobbling for all but %l and %e, which can't be fixed.sheldonh1999-12-082-12/+85
| | | | | | | | Discuss in the BUGS section of the manpage, problems involved with the use of %C, %e, %l, %p, %U and %W. PR: 13901 Reported by: scott@chronis.pobox.com
* Accept 12 for %l, because it's logical to expect "%l:%M" to work forsheldonh1999-12-081-1/+1
| | | | "12:00" and because strftime(3) does the same.
* Add a cross-reference to fabs(3) man page.chris1999-12-071-0/+1
| | | | | PR: docs/15337 Submitted by: Bruce A. Mah <bmah@ca.sandia.gov>
* Add reference to netgraph(4) in the 'see also' section.archie1999-12-061-0/+1
|
* Fix buffer overflows.kris1999-12-051-2/+2
| | | | Reviewed by: imp, audit@freebsd.org
* Add RLIMIT_SBSIZE here, too.green1999-12-031-0/+4
|
* Replace the -q option to pwd_mkdb with a test for PW_SCAN_BIG_IDS insheldonh1999-12-021-1/+8
| | | | | | | | | | | the environment. This allows big ID warnings to be suppressed for vipw and chpass as well. Since the environment variable test is only performed for callers of pw_scan() that do not set pw_big_ids_warning, the test can still be overriden. Currently, chpass and pwd_mkdb are the only users of pw_scan() and neither of them overrides the environment variable test.
* Separate some common sysctl code into sysctl_find_oid() and callinggreen1999-12-011-0/+4
| | | | | thereof. Also, make the errno returns _correct_, and add a new one which is more appropriate.
* %Ex -> %Ef to not conflict with POSIXache1999-11-305-13/+53
| | | | | | Add %EF (long months name / day order) Check that O and E not intermixed Add missing POSIX extension to example
* Document %Ex and %OBache1999-11-301-2/+4
|
* Stricter checking %A vs %aache1999-11-301-11/+13
|
* Fix %C handlingache1999-11-301-14/+52
| | | | | | Use locale for %c Add %+ Add %Ex and %OB
* Add %Ex extension to determine "%e %b" or "%b %e" orderache1999-11-303-8/+22
| | | | Separate alternative for O and E cases
* style fixes, remove extra braces.alfred1999-11-291-17/+20
| | | | | | | | | | | | readdir_r is not POSIX according to POSIX_SOURCE, bruce says: > readdir_r() is in the _POSIX_SOURCE section, but is not a POSIX.1-1990 > function. It's POSIX.1-1996 so it should be under a different feature > test which we don't support yet. make sure errno is saved so that its contents are cleared unless necessary. Submitted by: bde
* Provide a man page for Alfreds lovely readdir_r function. Alsowes1999-11-292-5/+27
| | | | | fixed a minor indentation nit and added a few {}s to make readdir_r easier on old eyes.
* Provide and document ctermid_r function.wes1999-11-282-2/+23
|
* Document the getlogin_r function.wes1999-11-281-2/+22
|
* Provide the getlogin_r function.wes1999-11-281-0/+18
|
* add pthread_cancel, obtained from OpenBSD.alfred1999-11-281-0/+44
| | | | | | | | | | | | | | eischen (Daniel Eischen) added wrappers to protect against cancled threads orphaning internal resources. the cancelability code is still a bit fuzzy but works for test programs of my own, OpenBSD's and some examples from ORA's books. add readdir_r to both libc and libc_r add some 'const' attributes to function parameters Reviewed by: eischen, jasone
* General clean-up of socket.h and associated sources to synchronise upphk1999-11-249-21/+48
| | | | | | | | | | | | with NetBSD and the Single Unix Specification v2. This updates some structures with other, almost equivalent types and effort is under way to get the whole more consistent. Also removes a double definition of INET6 and some other clean-ups. Reviewed by: green, bde, phk Some part obtained from: NetBSD, SUSv2 specification
* Allow empty UIDs if we are processing NIS records. I am not entirelyeivind1999-11-221-2/+4
| | | | | | | | happy with how this end up and will re-visit the entire empty field problem, but this patch solves the NIS problem for now. Submitted by: Dan Nelson <dan@emsphone.com> PR: 14865,14984
* Make __sfp() even more thread-safe.dt1999-11-211-1/+1
|
* Add (FILE *) locking.dt1999-11-201-0/+9
|
* Make __sfp() (FILE allocator) thread-safe: added locking like in malloc().dt1999-11-201-0/+11
|
* Fix HISTORY - the copyright header on the file of the GCC version wasobrien1999-11-201-4/+4
| | | | | | misleading. Submitted by: Theo de Raadt <deraadt@cvs.openbsd.org>
* Add to the HISTORY.obrien1999-11-191-1/+9
|
* For the TCP transport, put the listening socket in non-blockingjdp1999-11-181-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | mode. This addresses a well-known race condition that can cause servers to hang in accept(). The relevant case is when somebody connects to the server and then immediately kills the connection by sending a TCP reset. On the server this causes select to report a ready condition on the socket, after which the accept call blocks because there is no longer any pending connection to accept. In -current there is already a work-around for this in the kernel. It was merged into -stable some time ago, but then David Greenman reverted it because it seemed to be causing a socket leak in some cases. (See uipc_socket.c revision 1.51.2.3.) Hence this userland fix is needed in -stable, and I plan to merge it into that branch soon because it fixes a potential DoS attack. It may also be needed in -current if the suspected socket leak turns out to be real. In any case, after thinking it over I believe the fix belongs in userland. An application shouldn't assume that a ready return from select guarantees that the subsequent I/O operation cannot block. A lot can happen between the select and the accept. A similar fix should most likely be applied to the Unix domain socket transport too. Submitted by: peter Reviewed by: jdp
* Make setproctitle(NULL) restore all of the original argumentsbrian1999-11-172-30/+45
| | | | (if it's able).
* Fix a bug in the hack that protects against FTP bounce attacks.jdp1999-11-171-3/+2
| | | | | | | | | It used to loop back up to the accept() call and block there, shutting out all other transports until a new connection came in. Now it returns instead after dropping the connection. That will take it back to the select() loop where all transports can be serviced. I intend to MFC this within a day or two since it fixes a DoS vulnerability.
* Introduce commandline caching in the kernel.phk1999-11-161-0/+9
| | | | | | | | | | | This fixes some nasty procfs problems for SMP, makes ps(1) run much faster, and makes ps(1) even less dependent on /proc which will aid chroot and jails alike. To disable this facility and revert to previous behaviour: sysctl -w kern.ps_arg_cache_limit=0 For full details see the current@FreeBSD.org mail-archives.
* Add to pwd_mkdb a -q option to silence warnings about large IDs. Add asheldonh1999-11-152-4/+15
| | | | | | | | | suitably ominous warning in the manual page. The diff applied is not the one provided in the attributed PR. PR: 13344 Reviewed by: bde
* fts_pathlen and fts_namelen are u_short, not shortkris1999-11-151-2/+2
| | | | Obtained from: OpenBSD
* Typokris1999-11-151-1/+1
| | | | Obtained from: OpenBSD
* Properly document what ENOENT really means for kldfind(2).chris1999-11-141-3/+1
|
* Go to a bit more trouble to make it absolutely clear that malloc(3)peter1999-11-121-2/+9
| | | | does not zero the allocated memory.
* Decremement by 1 the value taken for %j before assigning it to tm_yday,sheldonh1999-11-101-6/+50
| | | | | | | | | | | | | | | | | which is zero-based. Correct the range checking for the value taken for %S. Add %w for the day of the week (0-6). Accept (but do nothing with) %U and %W. The comment for this change was taken from NetBSD. These changes were made after several failed attempts to contact the author of our strptime.c . PR: 10131 Submitted by: tadf@kt.rim.or.jp (Tadayoshi Funaba)
* Fix dead loop if locale contains / and not all categories specifiedache1999-11-091-1/+3
| | | | | PR: 14742 Submitted by: peter@wahoo.com.tw
* Remove useless section.phantom1999-11-091-2/+0
| | | | | PR: docs/14764 Submitted by: David Malone <dwmalone@maths.tcd.ie>
* Flag empty UID entries as errors (to stop typos from turning intoeivind1999-11-061-1/+6
| | | | alternate root accounts).
* Add unsigned char cast to isalphaache1999-11-042-2/+2
|
* Add unsigned char cast to isdigitache1999-11-041-1/+1
|
OpenPOWER on IntegriCloud