summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio
Commit message (Collapse)AuthorAgeFilesLines
* mdoc(7) police: use canonical form of .Dd macro.ru2000-12-111-1/+1
|
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-201-2/+2
|
* Update the documentation to describe the new mktemp() family behaviour.kris2000-11-191-8/+33
| | | | | | | Also notes that mkstemp() first appeared in 4.4BSD (change obtained from OpenBSD) Reviewed by: sheldonh
* Use Fx macro wherever possible.ru2000-11-141-1/+3
|
* Increase the size of the mktemp() filename space by dropping the PID fromkris2000-11-101-25/+17
| | | | | | | | | | | | | the encoding and using the character set [a-zA-Z0-9]. This gives a total of 62^6 = 56800235584 possible temporary filenames for the usual default invocation of 6 X's (compared to as few as 52 possibilities for the previous algorithm where up to 5 characters were wasted by the PID). Update some apparently bitrotten comments to reflect reality. Audited by: eivind, freebsd-audit Reviewed by: freebsd-current (a while ago) Originally submitted by: Peter Jeremy <Peter.Jeremy@alcatel.com.au>
* Avoid use of direct troff requests in mdoc(7) manual pages.ru2000-11-101-1/+0
|
* Better documentation of append mode. This should have gone in -currenteivind2000-09-221-0/+8
| | | | | | directly. Now also .Xr fseek reference. Prodded by: sheldonh
* According to the susv2 man pages I have, remove(3) should act asdwmalone2000-08-282-7/+26
| | | | | | | | | rmdir(2) on directories and unlink(2) otherwise. This modification, and most of the man page update has been obtined from OpenBSD. This was spotted by someone on a mailing lists a few months ago, but I've lost their mail. Reviewed by: sheldonh
* Use `Er' variable to define first column width in ERRORS section.phantom2000-05-068-8/+8
|
* Introduce ".Lb" macro to libc manpages.phantom2000-04-2120-0/+40
| | | | More libraries manpages updates following.
* Fix typo, reported by George Cox.asmodai2000-04-121-8/+8
| | | | | | Fix hard sentence breaks. Submitted by: George Cox <gjvc@sophos.com>
* Remove more single-space hard sentence breaks.sheldonh2000-03-021-1/+2
|
* Remove single-space hard sentence breaks. These degrade the qualitysheldonh2000-03-024-7/+14
| | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc.
* Simplify sytem call renaming. Instead of _foo() <-- _libc_foo <-- foo(),jasone2000-01-277-11/+11
| | | | | | | | | | | | | | | | | just use _foo() <-- foo(). In the case of a libpthread that doesn't do call conversion (such as linuxthreads and our upcoming libpthread), this is adequate. In the case of libc_r, we still need three names, which are now _thread_sys_foo() <-- _foo() <-- foo(). Convert all internal libc usage of: aio_suspend(), close(), fsync(), msync(), nanosleep(), open(), fcntl(), read(), and write() to _foo() instead of foo(). Remove all internal libc usage of: creat(), pause(), sleep(), system(), tcdrain(), wait(), and waitpid(). Make thread cancellation fully POSIX-compliant. Suggested by: deischen
* Improve the explanation on the (in)security of mktemp(3).sheldonh2000-01-251-3/+6
|
* We no longer care about the VAX and Tahoe compilers :-)kris2000-01-171-6/+1
|
* Add three-tier symbol naming in support of POSIX thread cancellationjasone2000-01-127-11/+17
| | | | | | points. For library functions, the pattern is __sleep() <-- _libc_sleep() <-- sleep(). The arrows represent weak aliases. For system calls, the pattern is _read() <-- _libc_read() <-- read().
* Correct discrepancy between definition of argument to tempnam() andkris2000-01-091-2/+2
| | | | the name by which it is referenced in the text.
* 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.
* 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
|
* Add unsigned char cast to isdigitache1999-11-041-1/+1
|
* Remove UNSAFE_WARN ifdef for mktemp warning (never defined)ache1999-10-243-6/+6
| | | | Use _mktemp internally
* $Id$ -> $FreeBSD$peter1999-08-2879-79/+79
|
* Add warnings, ala mktemp, to tempnam and tmpnam as a reminder thatimp1999-08-212-3/+13
| | | | | | these are inherently unsafe interfaces. Do not allow TMPDIR to override path for setuid/setgid programs.
* Treat an attempt to read from a write-only stream more consistently.rnordier1999-08-101-1/+2
| | | | | Submitted by: Anton Berezin <tobez@plab.ku.dk> PR : 12852
* Fixed missing "G" in the list item for the main description of %g andbde1999-08-081-2/+2
| | | | %G formats.
* asprintf() does use realloc() internally, but saying so in the manpage can behoek1999-07-251-4/+2
| | | | | misinterpreted to mean that the pointer passed to asprintf() must be suitable for passing to realloc() as-is (ie. either a NULL pointer or a valid pointer).
* Add $Id$, to make it simpler for members of the translation teams tonik1999-07-1219-0/+19
| | | | | | | | | | | | | | | | | track. The $Id$ line is normally at the bottom of the main comment block in the man page, separated from the rest of the manpage by an empty comment, like so; .\" $Id$ .\" If the immediately preceding comment is a @(#) format ID marker than the the $Id$ will line up underneath it with no intervening blank lines. Otherwise, an additional blank line is inserted. Approved by: bde
* Add a note that when a stream opened via fdopen() is closed via fclose(),archie1999-05-171-0/+4
| | | | | the underlying file descriptor is also closed. To me at least this wasn't immediately obvious.
* Various language and style concerns fixed.imp1999-04-091-11/+18
| | | | Noted by: bde
* Add mkstemps to the man page, and create a link for it.imp1999-04-042-2/+14
| | | | | Obtained from: OpenBSD Poked in the eye about committing new functions without a manpage: obrien
* Add mkstemps from OpenBSD. This has been in my tree for months andimp1999-04-041-7/+24
| | | | | | hasn't caused any problems until the egcs import. This fix breaks the world build, but my very next commit will remove mkstemps from the egcs build.
* Add support for long long modifier (e.g. %llx, %lld).dfr1999-03-111-3/+9
| | | | Reviewed by: bde
* Fixed disordering and incoinsistent style in previous commit.bde1999-03-051-3/+3
|
* The pseudocode in the synopsis didn't come close to actuallybde1999-03-051-4/+6
| | | | | | | | | compiling, since <stdio.h> correctly doesn't declare off_t although the pseudo-prototypes for the new fseeko() and ftello() functions use it. Handle this like the corresponding problem for va_list versus the vprintf() family. Fixed some English errors.
* Decapitalize function name by prepending with word "The".hoek1999-02-261-3/+6
| | | | PR: docs/10247
* Added functions fseeko() and ftello() (from susv2).dt1999-02-086-15/+83
| | | | | | | Fixed fgetpos() and fsetpos() for offsets > 2GB. PR: 8637 Submitted by: Dan Nelson <dnelson@emsphone.com> (adjusted by me a little)
* Note that dying on NULL is an implementation detail.eivind1998-12-171-5/+7
|
* Check for a zero-length as well as a NULL string argument.rnordier1998-10-291-1/+1
|
* Revert last change. mkstemp() wasn't to blame, it's nvi. However,peter1998-10-201-21/+5
| | | | mkstemp() is not behaving as documented.
* Stop mk*temp() from being pathologically stupid in the face of a umask(0);peter1998-10-201-5/+21
| | | | | | | There are other ways to fix this than wrapping _gettemp(), but this was the most convenient. Discovered by: bde
* Remove the description of EBADF (that's an implementation detail if Ieivind1998-10-101-11/+6
| | | | | | | | ever saw one), and move the description of NULL behaviour out to a 'NOTES' section, with an extra note that programs should not rely up on it. Kinda-approve-by: bde (by not replying to the mail with the diff)
* program written under FreeBSD -> programs written under FreeBSDeivind1998-10-031-2/+2
| | | | Noticed by: Alex Nash <nash@mcs.net>
* Document that we will core-dump on getting a NULL pointer.eivind1998-09-281-0/+4
|
* Apply patch to properly sscanf(3) when there is whitespace in the formatobrien1998-09-251-7/+2
| | | | | | | | | | | | | string. From the submitted patch: Credit for patch: Chris Torek <torek@bsdi.com> Tod Miller <millert@openbsd.org> This makes us in line with SunOS 4.1.3_U1, Solaris 2.6, OpenBSD 2.3, HP-UX 10.20, Irix 5.3. The previous behavior was in line with Ultrix 4.4. PR: bin/7970 Submitted by: Niall Smart nialls@euristix.ie
* Replace memory leaking instances of realloc with non-leaking reallocf.imp1998-09-164-8/+8
| | | | | | | | | | | In some cases replace if (a == null) a = malloc(x); else a = realloc(a, x); with simple reallocf(a, x). Per ANSI-C, this is guaranteed to be the same thing. I've been running these on my system here w/o ill effects for some time. However, the CTM-express is at part 6 of 34 for the CAM changes, so I've not been able to do a build world with the CAM in the tree with these changes. Shouldn't impact anything, but...
OpenPOWER on IntegriCloud