summaryrefslogtreecommitdiffstats
path: root/include/stdio.h
Commit message (Collapse)AuthorAgeFilesLines
* $Id$ -> $FreeBSD$peter1999-08-271-1/+1
|
* Added functions fseeko() and ftello() (from susv2).dt1999-02-081-1/+3
| | | | | | | Fixed fgetpos() and fsetpos() for offsets > 2GB. PR: 8637 Submitted by: Dan Nelson <dnelson@emsphone.com> (adjusted by me a little)
* Make this protototype of mmap return void *, like two other copies.dt1998-12-141-2/+2
|
* Added macros __printflike() and __scanflike() to <sys/cdefs.h>.bde1998-07-131-7/+10
| | | | | | | | Use them to `make gcc -Wformat' check formats for all printf-like and scanf-like functions in /usr/src except for the err()/warn() family. err() isn't quite printf-like since its format arg can legitimately be NULL. syslog() isn't quite printf-like, but gcc already accepts %m, even for plain printf() when it shouldn't.
* New flag for internal stdio use to enable dynamic string allocation forpeter1998-07-081-1/+2
| | | | | | asprintf() implementation. Obtained from: Todd Miller <Todd.Miller@courtesan.com> via OpenBSD
* Complete the switch to using gcc-2.4 features to declare fpos_t ,bde1998-06-141-18/+1
| | | | | | | | | | as threatened in the 4-5 year old comment. Most of the change is in <machine/ansi.h>; this commit just removes cruft for the strict ANSI case. 64-bit types couldn't actually be defined using __attribute__(()) in gcc-2.4, since attribute names in the implementation namespace only became available in gcc-2.7. I've probably just broken gcc-2.6 support by using the gcc-2.7 names unconditionally.
* I have a long list of issues to address here, mostly related tojb1998-05-051-6/+4
| | | | | | namespace and revision levels of ANSI and POSIX. This change only removes the leading underscrore from the FILE locking functions that POSIX defines.
* Format changes in an attempt to address some of Bruce's commentsjb1998-04-121-18/+26
| | | | | | | | about spaces and tabs. The externs in the static inline functions remain 'cause (a) they're required; and (b) I can't find any gcc -W* cases where they generate warnings.
* Add *_unlocked() macros according to POSIX. In the _THREAD_SAFE case,jb1998-04-111-9/+59
| | | | | | | | test for __isthreaded before calling the lock/unlock functions to try to save some performance. The _THREAD_SAFE case should become the default, but since it tests for a global variable in libc, people won't be able to build -current on pre-3.0 systems unless the default leaves it out. Such is life.
* Added missing caddr_t --> void * conversions for sys/mman.h functions.alex1998-01-011-2/+2
| | | | Submitted by: bde
* Removed nonstandard #include of <sys/types.h>.bde1997-04-131-8/+29
| | | | | | | Use _BSD_OFF_T_ instead of off_t so that we're still self-sufficent. Copied the ftruncate/lseek()/mmap()/truncate() redeclaration hacks from <sys/types.h> so that things depending on them don't break.
* Merge Lite2 changespeter1997-03-111-2/+2
| | | | (Just version number)
* increase L_cuserid because UT_NAMESIZE increasedache1997-03-021-2/+2
|
* Revert $FreeBSD$ to $Id$peter1997-02-231-1/+1
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* improve comments for UT_NAMESIZEwosch1996-10-271-2/+5
|
* remove zopen, zopen is not part of libc.wosch1996-07-021-1/+0
|
* Add an implementation of the gnu-ish asprintf() and vasprintf(). They arepeter1996-05-271-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | not based on gpl'ed code, just prototype and usage. I'm not 100% certain they behave the same while the system is in trouble (eg: malloc() failing) but in those circumstances all bets would be off anyway. These routines work like sprintf() and vsprintf(), except that instead of using a fixed buffer, they allocate memory and return it to the user and it's the user's responsibility to free() it. They have allocate as much memory as they need (and can get), so the size of strings it can deal with is limited only by the amount of memory it can malloc() on your behalf. There are a few gpl'ed programs starting to use this interface, and it's becoming more common with the scares about security risks with sprintf(). I dont like the look of the code that the various programs (including cvs, gdb, libg++, etc) provide if configure can't find it on the system. It should be possible to modify the stdio core code to provide this interface more efficiently, I was more worried about having something that worked and was secure. :-) (I noticed that there was once intended to be a smprintf() routine when our stdio was written for 4.4BSD, but it looks pretty stillborn, and it's intended interface is not clear). Since Linux and gnu libc have this interface, it seemed silly to bring yet another one onto the scene.
* Fix incorrect parameter types for ftell and fgets.paul1996-03-241-2/+2
|
* Fix a bunch of spelling errors in the comment fieldsmpp1996-01-301-2/+2
| | | | of a bunch of system include files.
* Remove trailing whitespace.rgrimes1995-05-301-1/+1
|
* make sys_nerr __const.phk1995-03-041-1/+1
| | | | | Reviewed by: phk Submitted by: ollivier
* BSD 4.4 Lite Include Sourcesrgrimes1994-05-241-0/+378
OpenPOWER on IntegriCloud