summaryrefslogtreecommitdiff
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Remove discussion of %C in the BUGS section. The limitations on validSheldon Hearn1999-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. Notes: svn path=/head/; revision=54348
* Prevent digit-gobbling for all but %l and %e, which can't be fixed.Sheldon Hearn1999-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 Notes: svn path=/head/; revision=54316
* Accept 12 for %l, because it's logical to expect "%l:%M" to work forSheldon Hearn1999-12-081-1/+1
| | | | | | | "12:00" and because strftime(3) does the same. Notes: svn path=/head/; revision=54301
* Add a cross-reference to fabs(3) man page.Chris Costello1999-12-071-0/+1
| | | | | | | | PR: docs/15337 Submitted by: Bruce A. Mah <bmah@ca.sandia.gov> Notes: svn path=/head/; revision=54274
* Add reference to netgraph(4) in the 'see also' section.Archie Cobbs1999-12-061-0/+1
| | | | Notes: svn path=/head/; revision=54235
* Fix buffer overflows.Kris Kennaway1999-12-051-2/+2
| | | | | | | Reviewed by: imp, audit@freebsd.org Notes: svn path=/head/; revision=54167
* Add RLIMIT_SBSIZE here, too.Brian Feldman1999-12-031-0/+4
| | | | Notes: svn path=/head/; revision=54102
* Replace the -q option to pwd_mkdb with a test for PW_SCAN_BIG_IDS inSheldon Hearn1999-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. Notes: svn path=/head/; revision=54034
* Separate some common sysctl code into sysctl_find_oid() and callingBrian Feldman1999-12-011-0/+4
| | | | | | | | thereof. Also, make the errno returns _correct_, and add a new one which is more appropriate. Notes: svn path=/head/; revision=53977
* %Ex -> %Ef to not conflict with POSIXAndrey A. Chernov1999-11-305-13/+53
| | | | | | | | | Add %EF (long months name / day order) Check that O and E not intermixed Add missing POSIX extension to example Notes: svn path=/head/; revision=53960
* Document %Ex and %OBAndrey A. Chernov1999-11-301-2/+4
| | | | Notes: svn path=/head/; revision=53959
* Stricter checking %A vs %aAndrey A. Chernov1999-11-301-11/+13
| | | | Notes: svn path=/head/; revision=53942
* Fix %C handlingAndrey A. Chernov1999-11-301-14/+52
| | | | | | | | | Use locale for %c Add %+ Add %Ex and %OB Notes: svn path=/head/; revision=53941
* Add %Ex extension to determine "%e %b" or "%b %e" orderAndrey A. Chernov1999-11-303-8/+22
| | | | | | | Separate alternative for O and E cases Notes: svn path=/head/; revision=53940
* style fixes, remove extra braces.Alfred Perlstein1999-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 Notes: svn path=/head/; revision=53892
* Provide a man page for Alfreds lovely readdir_r function. AlsoWes Peters1999-11-292-5/+27
| | | | | | | | fixed a minor indentation nit and added a few {}s to make readdir_r easier on old eyes. Notes: svn path=/head/; revision=53872
* Provide and document ctermid_r function.Wes Peters1999-11-282-2/+23
| | | | Notes: svn path=/head/; revision=53863
* Document the getlogin_r function.Wes Peters1999-11-281-2/+22
| | | | Notes: svn path=/head/; revision=53860
* Provide the getlogin_r function.Wes Peters1999-11-281-0/+18
| | | | Notes: svn path=/head/; revision=53859
* add pthread_cancel, obtained from OpenBSD.Alfred Perlstein1999-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 Notes: svn path=/head/; revision=53812
* General clean-up of socket.h and associated sources to synchronise upPoul-Henning Kamp1999-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 Notes: svn path=/head/; revision=53678
* Allow empty UIDs if we are processing NIS records. I am not entirelyEivind Eklund1999-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 Notes: svn path=/head/; revision=53581
* Make __sfp() even more thread-safe.Dmitrij Tejblum1999-11-211-1/+1
| | | | Notes: svn path=/head/; revision=53529
* Add (FILE *) locking.Dmitrij Tejblum1999-11-201-0/+9
| | | | Notes: svn path=/head/; revision=53460
* Make __sfp() (FILE allocator) thread-safe: added locking like in malloc().Dmitrij Tejblum1999-11-201-0/+11
| | | | Notes: svn path=/head/; revision=53459
* Fix HISTORY - the copyright header on the file of the GCC version wasDavid E. O'Brien1999-11-201-4/+4
| | | | | | | | | misleading. Submitted by: Theo de Raadt <deraadt@cvs.openbsd.org> Notes: svn path=/head/; revision=53440
* Add to the HISTORY.David E. O'Brien1999-11-191-1/+9
| | | | Notes: svn path=/head/; revision=53426
* For the TCP transport, put the listening socket in non-blockingJohn Polstra1999-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 Notes: svn path=/head/; revision=53323
* Make setproctitle(NULL) restore all of the original argumentsBrian Somers1999-11-172-30/+45
| | | | | | | (if it's able). Notes: svn path=/head/; revision=53297
* Fix a bug in the hack that protects against FTP bounce attacks.John Polstra1999-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. Notes: svn path=/head/; revision=53254
* Introduce commandline caching in the kernel.Poul-Henning Kamp1999-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. Notes: svn path=/head/; revision=53239
* Add to pwd_mkdb a -q option to silence warnings about large IDs. Add aSheldon Hearn1999-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 Notes: svn path=/head/; revision=53183
* fts_pathlen and fts_namelen are u_short, not shortKris Kennaway1999-11-151-2/+2
| | | | | | | Obtained from: OpenBSD Notes: svn path=/head/; revision=53169
* TypoKris Kennaway1999-11-151-1/+1
| | | | | | | Obtained from: OpenBSD Notes: svn path=/head/; revision=53168
* Properly document what ENOENT really means for kldfind(2).Chris Costello1999-11-141-3/+1
| | | | Notes: svn path=/head/; revision=53156
* Go to a bit more trouble to make it absolutely clear that malloc(3)Peter Wemm1999-11-121-2/+9
| | | | | | | does not zero the allocated memory. Notes: svn path=/head/; revision=53111
* Decremement by 1 the value taken for %j before assigning it to tm_yday,Sheldon Hearn1999-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) Notes: svn path=/head/; revision=53083
* Fix dead loop if locale contains / and not all categories specifiedAndrey A. Chernov1999-11-091-1/+3
| | | | | | | | PR: 14742 Submitted by: peter@wahoo.com.tw Notes: svn path=/head/; revision=53050
* Remove useless section.Alexey Zelkin1999-11-091-2/+0
| | | | | | | | PR: docs/14764 Submitted by: David Malone <dwmalone@maths.tcd.ie> Notes: svn path=/head/; revision=53040
* Flag empty UID entries as errors (to stop typos from turning intoEivind Eklund1999-11-061-1/+6
| | | | | | | alternate root accounts). Notes: svn path=/head/; revision=52921
* Add unsigned char cast to isalphaAndrey A. Chernov1999-11-042-2/+2
| | | | Notes: svn path=/head/; revision=52865
* Add unsigned char cast to isdigitAndrey A. Chernov1999-11-041-1/+1
| | | | Notes: svn path=/head/; revision=52864
* Add unsigned char cast to is[x]digitAndrey A. Chernov1999-11-042-5/+5
| | | | Notes: svn path=/head/; revision=52863