summaryrefslogtreecommitdiff
path: root/lib/libc/stdio
Commit message (Collapse)AuthorAgeFilesLines
* Use `Er' variable to define first column width in ERRORS section.Alexey Zelkin2000-05-068-8/+8
| | | | Notes: svn path=/head/; revision=60078
* Introduce ".Lb" macro to libc manpages.Alexey Zelkin2000-04-2120-0/+40
| | | | | | | More libraries manpages updates following. Notes: svn path=/head/; revision=59460
* Fix typo, reported by George Cox.Jeroen Ruigrok van der Werven2000-04-121-8/+8
| | | | | | | | | Fix hard sentence breaks. Submitted by: George Cox <gjvc@sophos.com> Notes: svn path=/head/; revision=59176
* 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
* Apply patch to properly sscanf(3) when there is whitespace in the formatDavid E. O'Brien1998-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 Notes: svn path=/head/; revision=39644
* Replace memory leaking instances of realloc with non-leaking reallocf.Warner Losh1998-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... Notes: svn path=/head/; revision=39327
* Replace my original asprintf() and vasprintf() hacks with somethingPeter Wemm1998-07-084-142/+99
| | | | | | | | | | | more cleanly integrated with stdio. This should be faster and cleaner since it doesn't memcpy() the data into a seperate buffer. This lets stdio allocate and manage the buffer and then hand it over to the user. Obtained from: Todd Miller <Todd.Miller@courtesan.com> via OpenBSD Notes: svn path=/head/; revision=37487
* Spelling corrections.Joseph Koshy1998-06-061-1/+1
| | | | | | | | PR: 6868 Submitted by: Josh Gilliam <josh@quick.net> Notes: svn path=/head/; revision=36692
* Remote the NetBSD kludge for vfprintf.cJohn Birrell1998-05-081-9/+2
| | | | Notes: svn path=/head/; revision=35836
* Don't assign the va_list variable 'ap' directly to the argtable becauseJohn Birrell1998-05-081-19/+18
| | | | | | | | va_list is not a pointer on alpha. Instead, use the va_arg() macro to return the address that is stored in the argtable. Notes: svn path=/head/; revision=35835
* Remove leading underscores for the functions (weak symbols here) thatJohn Birrell1998-05-051-4/+7
| | | | | | | POSIX defines. Notes: svn path=/head/; revision=35757
* Fix a nasty flaw as a result of using the arc4random() pre-seeding ofPeter Wemm1998-04-141-2/+4
| | | | | | | | | | | leading XXX's. It could wrap an uppercase character through chars like: [ \ ] ^ _ ` in between Z and a. The backslash and back tick might be particularly nasty in a shell script context. Also, since we've been using upper-case generated values for a while now, go with the flow and use them in the pathname search rotation. Notes: svn path=/head/; revision=35191
* Add FILE locking stubs for libc.John Birrell1998-04-1128-337/+211
| | | | | | | | | | | Change the FILE locking to support kernel threads when linked with libpthread (which you haven't see yet). This requires that libc become thread-safe and thread-aware, testing __isthreaded before attempting to do lock/unlock calls. The impact on non-threaded programs is minor. This change works with libc_r, so it's the best compromise. Notes: svn path=/head/; revision=35129
* Fixed disordering and inconsistent style in previous commit.Bruce Evans1998-03-121-3/+2
| | | | Notes: svn path=/head/; revision=34511