summaryrefslogtreecommitdiff
path: root/include/stdio.h
Commit message (Collapse)AuthorAgeFilesLines
* This commit was manufactured by cvs2svn to create tagrelease/4.6.2_cvscvs2svn2002-08-141-1/+1
| | | | | | | 'RELENG_4_6_2_RELEASE'. This commit was manufactured to restore the state of the 4.6.2-RELEASE image. Releases prior to 5.3-RELEASE are omitting the secure/ and crypto/ subdirs.
* MFC: revs 1.38,9 (guard fmtcheck's attribute checks for non-GCC compilers)David E. O'Brien2001-12-051-2/+6
| | | | Notes: svn path=/stable/4/; revision=87414
* MFC: fmtcheck() function and manpageKris Kennaway2001-07-051-0/+2
| | | | Notes: svn path=/stable/4/; revision=79289
* Fixed missing declaration of ctermid_r(3).Bruce Evans1999-12-231-0/+1
| | | | Notes: svn path=/head/; revision=55036
* $Id$ -> $FreeBSD$Peter Wemm1999-08-271-1/+1
| | | | Notes: svn path=/head/; revision=50473
* Added functions fseeko() and ftello() (from susv2).Dmitrij Tejblum1999-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) Notes: svn path=/head/; revision=43782
* Make this protototype of mmap return void *, like two other copies.Dmitrij Tejblum1998-12-141-2/+2
| | | | Notes: svn path=/head/; revision=41798
* Added macros __printflike() and __scanflike() to <sys/cdefs.h>.Bruce Evans1998-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. Notes: svn path=/head/; revision=37614
* New flag for internal stdio use to enable dynamic string allocation forPeter Wemm1998-07-081-1/+2
| | | | | | | | | asprintf() implementation. Obtained from: Todd Miller <Todd.Miller@courtesan.com> via OpenBSD Notes: svn path=/head/; revision=37489
* Complete the switch to using gcc-2.4 features to declare fpos_t ,Bruce Evans1998-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. Notes: svn path=/head/; revision=36981
* I have a long list of issues to address here, mostly related toJohn Birrell1998-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. Notes: svn path=/head/; revision=35758
* Format changes in an attempt to address some of Bruce's commentsJohn Birrell1998-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. Notes: svn path=/head/; revision=35163
* Add *_unlocked() macros according to POSIX. In the _THREAD_SAFE case,John Birrell1998-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. Notes: svn path=/head/; revision=35127
* Added missing caddr_t --> void * conversions for sys/mman.h functions.Alexander Langer1998-01-011-2/+2
| | | | | | | Submitted by: bde Notes: svn path=/head/; revision=32166
* Removed nonstandard #include of <sys/types.h>.Bruce Evans1997-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. Notes: svn path=/head/; revision=24897
* Merge Lite2 changesPeter Wemm1997-03-111-2/+2
| | | | | | | (Just version number) Notes: svn path=/head/; revision=23655
* increase L_cuserid because UT_NAMESIZE increasedAndrey A. Chernov1997-03-021-2/+2
| | | | Notes: svn path=/head/; revision=23260
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-231-1/+1
| | | | Notes: svn path=/head/; revision=23037
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-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. Notes: svn path=/head/; revision=21673
* improve comments for UT_NAMESIZEWolfram Schneider1996-10-271-2/+5
| | | | Notes: svn path=/head/; revision=19211
* remove zopen, zopen is not part of libc.Wolfram Schneider1996-07-021-1/+0
| | | | Notes: svn path=/head/; revision=16920
* Add an implementation of the gnu-ish asprintf() and vasprintf(). They arePeter Wemm1996-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. Notes: svn path=/head/; revision=15931
* Fix incorrect parameter types for ftell and fgets.Paul Richards1996-03-241-2/+2
| | | | Notes: svn path=/head/; revision=14791
* Fix a bunch of spelling errors in the comment fieldsMike Pritchard1996-01-301-2/+2
| | | | | | | of a bunch of system include files. Notes: svn path=/head/; revision=13771
* Remove trailing whitespace.Rodney W. Grimes1995-05-301-1/+1
| | | | Notes: svn path=/head/; revision=8858
* make sys_nerr __const.Poul-Henning Kamp1995-03-041-1/+1
| | | | | | | | Reviewed by: phk Submitted by: ollivier Notes: svn path=/head/; revision=6895
* BSD 4.4 Lite Include SourcesRodney W. Grimes1994-05-241-0/+378
Notes: svn path=/head/; revision=1539