summaryrefslogtreecommitdiff
path: root/lib/libc/stdio
Commit message (Collapse)AuthorAgeFilesLines
* Commit the forward compat stuff. We add aliases for __sF[0123] asWarner Losh2001-03-051-0/+20
| | | | | | | | __stdin, __stdout and __stderr. Note, we don't generate references to them (yet). That will be done in 6.0, so don't panic just yet. Notes: svn path=/stable/4/; revision=73580
* MFC: Remove freelists managed by Balloc/Bfree. Change __dtoa internal API.Tor Egge2001-02-191-5/+19
| | | | | | | PR: 15070 Notes: svn path=/stable/4/; revision=72711
* MFC: Use a denser encoding to obtain a larger file namespace in mktemp()Kris Kennaway2001-01-202-33/+50
| | | | | | | and family. Notes: svn path=/stable/4/; revision=71296
* MFC: (rev. 1.23) fix bugs in the handling of > 8 positional arguments.Archie Cobbs2001-01-101-14/+18
| | | | Notes: svn path=/stable/4/; revision=70893
* MFC: clarify how asprintf returns its allocated pointer.Ben Smithurst2001-01-011-4/+3
| | | | Notes: svn path=/stable/4/; revision=70554
* MFC: Prepare for mdoc(7)NG.Ruslan Ermilov2000-12-292-67/+67
| | | | Notes: svn path=/stable/4/; revision=70483
* MFC: use canonical form of .Dd macro.Ruslan Ermilov2000-12-121-1/+1
| | | | Notes: svn path=/stable/4/; revision=69898
* MFC: recent mdoc(7) fixes.Ruslan Ermilov2000-12-083-4/+5
| | | | Notes: svn path=/stable/4/; revision=69764
* More information around append modeEivind Eklund2000-09-211-0/+4
| | | | Notes: svn path=/stable/4/; revision=66170
* MFC: Use strtok instead of strsep. Handle links explicitly in remove.Jordan K. Hubbard2000-09-202-7/+26
| | | | | | | Check additional failure case in getopt. Notes: svn path=/stable/4/; revision=66103
* MFC: various fixes:Jeroen Ruigrok van der Werven2000-05-161-8/+8
| | | | | | | | - some sentencebreaks - typo Notes: svn path=/stable/4/; revision=60637
* MFC: Use `Er' variable to define first column width in ERRORS section.Alexey Zelkin2000-05-068-8/+8
| | | | Notes: svn path=/stable/4/; revision=60084
* MFC: introduce .Lb macro to libc manpagesAlexey Zelkin2000-04-2220-0/+40
| | | | Notes: svn path=/stable/4/; revision=59521
* Remove more single-space hard sentence breaks.Sheldon Hearn2000-03-021-1/+2
| | | | Notes: svn path=/head/; revision=57695
* Remove single-space hard sentence breaks. These degrade the qualitySheldon Hearn2000-03-024-7/+14
| | | | | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc. Notes: svn path=/head/; revision=57686
* Simplify sytem call renaming. Instead of _foo() <-- _libc_foo <-- foo(),Jason Evans2000-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 Notes: svn path=/head/; revision=56698
* Improve the explanation on the (in)security of mktemp(3).Sheldon Hearn2000-01-251-3/+6
| | | | Notes: svn path=/head/; revision=56589
* We no longer care about the VAX and Tahoe compilers :-)Kris Kennaway2000-01-171-6/+1
| | | | Notes: svn path=/head/; revision=56131
* Add three-tier symbol naming in support of POSIX thread cancellationJason Evans2000-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(). Notes: svn path=/head/; revision=55837
* 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
* 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
* 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
* Add unsigned char cast to isdigitAndrey A. Chernov1999-11-041-1/+1
| | | | Notes: svn path=/head/; revision=52864
* Remove UNSAFE_WARN ifdef for mktemp warning (never defined)Andrey A. Chernov1999-10-243-6/+6
| | | | | | | Use _mktemp internally Notes: svn path=/head/; revision=52466
* $Id$ -> $FreeBSD$Peter Wemm1999-08-2879-79/+79
| | | | Notes: svn path=/head/; revision=50476
* Add warnings, ala mktemp, to tempnam and tmpnam as a reminder thatWarner Losh1999-08-212-3/+13
| | | | | | | | | these are inherently unsafe interfaces. Do not allow TMPDIR to override path for setuid/setgid programs. Notes: svn path=/head/; revision=50121
* Treat an attempt to read from a write-only stream more consistently.Robert Nordier1999-08-101-1/+2
| | | | | | | | Submitted by: Anton Berezin <tobez@plab.ku.dk> PR : 12852 Notes: svn path=/head/; revision=49613
* Fixed missing "G" in the list item for the main description of %g andBruce Evans1999-08-081-2/+2
| | | | | | | %G formats. Notes: svn path=/head/; revision=49518
* asprintf() does use realloc() internally, but saying so in the manpage can beTim Vanderhoek1999-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). Notes: svn path=/head/; revision=49082
* Add $Id$, to make it simpler for members of the translation teams toNik Clayton1999-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 Notes: svn path=/head/; revision=48794
* Add a note that when a stream opened via fdopen() is closed via fclose(),Archie Cobbs1999-05-171-0/+4
| | | | | | | | the underlying file descriptor is also closed. To me at least this wasn't immediately obvious. Notes: svn path=/head/; revision=47281
* Various language and style concerns fixed.Warner Losh1999-04-091-11/+18
| | | | | | | Noted by: bde Notes: svn path=/head/; revision=45518
* Add mkstemps to the man page, and create a link for it.Warner Losh1999-04-042-2/+14
| | | | | | | | Obtained from: OpenBSD Poked in the eye about committing new functions without a manpage: obrien Notes: svn path=/head/; revision=45308
* Add mkstemps from OpenBSD. This has been in my tree for months andWarner Losh1999-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. Notes: svn path=/head/; revision=45303
* Add support for long long modifier (e.g. %llx, %lld).Doug Rabson1999-03-111-3/+9
| | | | | | | Reviewed by: bde Notes: svn path=/head/; revision=44674
* Fixed disordering and incoinsistent style in previous commit.Bruce Evans1999-03-051-3/+3
| | | | Notes: svn path=/head/; revision=44482
* The pseudocode in the synopsis didn't come close to actuallyBruce Evans1999-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. Notes: svn path=/head/; revision=44481
* Decapitalize function name by prepending with word "The".Tim Vanderhoek1999-02-261-3/+6
| | | | | | | PR: docs/10247 Notes: svn path=/head/; revision=44286
* Added functions fseeko() and ftello() (from susv2).Dmitrij Tejblum1999-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) Notes: svn path=/head/; revision=43782
* Note that dying on NULL is an implementation detail.Eivind Eklund1998-12-171-5/+7
| | | | Notes: svn path=/head/; revision=41902
* Check for a zero-length as well as a NULL string argument.Robert Nordier1998-10-291-1/+1
| | | | Notes: svn path=/head/; revision=40731
* Revert last change. mkstemp() wasn't to blame, it's nvi. However,Peter Wemm1998-10-201-21/+5
| | | | | | | mkstemp() is not behaving as documented. Notes: svn path=/head/; revision=40540
* Stop mk*temp() from being pathologically stupid in the face of a umask(0);Peter Wemm1998-10-201-5/+21
| | | | | | | | | | There are other ways to fix this than wrapping _gettemp(), but this was the most convenient. Discovered by: bde Notes: svn path=/head/; revision=40539
* Remove the description of EBADF (that's an implementation detail if IEivind Eklund1998-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) Notes: svn path=/head/; revision=40178
* program written under FreeBSD -> programs written under FreeBSDEivind Eklund1998-10-031-2/+2
| | | | | | | Noticed by: Alex Nash <nash@mcs.net> Notes: svn path=/head/; revision=39923
* Document that we will core-dump on getting a NULL pointer.Eivind Eklund1998-09-281-0/+4
| | | | Notes: svn path=/head/; revision=39716