#
f9447cd1 |
| 24-Jan-2001 |
Daniel Eischen <deischen@FreeBSD.org> |
Add a lock to DIR to make telldir and friends MT-safe.
Clean up stdio.h a bit and remove _THREAD_SAFE. Some of the usual macros getc, putc, getchar, putchar are no longer macros.
Approved by: -arch
|
Revision tags: release/4.2.0, release/4.1.1_cvs, release/4.1.0, release/3.5.0_cvs, release/4.0.0_cvs |
|
#
de7067ac |
| 23-Dec-1999 |
Bruce Evans <bde@FreeBSD.org> |
Fixed missing declaration of ctermid_r(3).
|
Revision tags: release/3.4.0_cvs, release/3.3.0_cvs |
|
#
a4add9a9 |
| 28-Aug-1999 |
Peter Wemm <peter@FreeBSD.org> |
$Id$ -> $FreeBSD$
|
Revision tags: release/3.2.0, release/3.1.0 |
|
#
7307d07d |
| 08-Feb-1999 |
Dmitrij Tejblum <dt@FreeBSD.org> |
Added functions fseeko() and ftello() (from susv2). Fixed fgetpos() and fsetpos() for offsets > 2GB.
PR: 8637 Submitted by: Dan Nelson <dnelson@emsphone.com> (adjusted by me a little)
|
Revision tags: release/3.0.0, release/2.2.8 |
|
#
c1b7af8a |
| 14-Dec-1998 |
Dmitrij Tejblum <dt@FreeBSD.org> |
Make this protototype of mmap return void *, like two other copies.
|
Revision tags: release/2.2.7 |
|
#
748993b8 |
| 13-Jul-1998 |
Bruce Evans <bde@FreeBSD.org> |
Added macros __printflike() and __scanflike() to <sys/cdefs.h>. Use them to `make gcc -Wformat' check formats for all printf-like and scanf-like functions in /usr/src except for the err()/warn() fami
Added macros __printflike() and __scanflike() to <sys/cdefs.h>. 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.
show more ...
|
#
b5fe8fab |
| 08-Jul-1998 |
Peter Wemm <peter@FreeBSD.org> |
New flag for internal stdio use to enable dynamic string allocation for asprintf() implementation.
Obtained from: Todd Miller <Todd.Miller@courtesan.com> via OpenBSD
|
#
ed9c0390 |
| 14-Jun-1998 |
Bruce Evans <bde@FreeBSD.org> |
Complete the switch to using gcc-2.4 features to declare fpos_t , 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
Complete the switch to using gcc-2.4 features to declare fpos_t , 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.
show more ...
|
#
351c800a |
| 05-May-1998 |
John Birrell <jb@FreeBSD.org> |
I have a long list of issues to address here, mostly related to namespace and revision levels of ANSI and POSIX. This change only removes the leading underscrore from the FILE locking functions that
I have a long list of issues to address here, mostly related to namespace and revision levels of ANSI and POSIX. This change only removes the leading underscrore from the FILE locking functions that POSIX defines.
show more ...
|
#
297263b0 |
| 12-Apr-1998 |
John Birrell <jb@FreeBSD.org> |
Format changes in an attempt to address some of Bruce's comments 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
Format changes in an attempt to address some of Bruce's comments 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.
show more ...
|
#
7d0026cd |
| 11-Apr-1998 |
John Birrell <jb@FreeBSD.org> |
Add *_unlocked() macros according to POSIX. In the _THREAD_SAFE case, test for __isthreaded before calling the lock/unlock functions to try to save some performance. The _THREAD_SAFE case should beco
Add *_unlocked() macros according to POSIX. In the _THREAD_SAFE case, 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.
show more ...
|
Revision tags: release/2.2.6 |
|
#
de17eb59 |
| 01-Jan-1998 |
Alexander Langer <alex@FreeBSD.org> |
Added missing caddr_t --> void * conversions for sys/mman.h functions.
Submitted by: bde
|
Revision tags: release/2.2.5_cvs, release/2.2.2_cvs |
|
#
15aa51b0 |
| 13-Apr-1997 |
Bruce Evans <bde@FreeBSD.org> |
Removed nonstandard #include of <sys/types.h>.
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/type
Removed nonstandard #include of <sys/types.h>.
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.
show more ...
|
Revision tags: release/2.2.1_cvs, release/2.2.0 |
|
#
161f948d |
| 11-Mar-1997 |
Peter Wemm <peter@FreeBSD.org> |
Merge Lite2 changes (Just version number)
|
#
dee7a427 |
| 11-Mar-1997 |
Peter Wemm <peter@FreeBSD.org> |
Import CSRG 4.4BSD-Lite2 includes onto vendor branch
|
Revision tags: release/2.1.7_cvs |
|
#
3b96d4d9 |
| 02-Mar-1997 |
Andrey A. Chernov <ache@FreeBSD.org> |
increase L_cuserid because UT_NAMESIZE increased
|
#
79403fe3 |
| 23-Feb-1997 |
Peter Wemm <peter@FreeBSD.org> |
Revert $FreeBSD$ to $Id$
|
Revision tags: release/2.1.6_cvs, release/2.1.6.1 |
|
#
1130b656 |
| 14-Jan-1997 |
Jordan K. Hubbard <jkh@FreeBSD.org> |
Make the long-awaited change from $Id$ to $FreeBSD$
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
Make the long-awaited change from $Id$ to $FreeBSD$
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.
show more ...
|
#
8c372bd8 |
| 27-Oct-1996 |
Wolfram Schneider <wosch@FreeBSD.org> |
improve comments for UT_NAMESIZE
|
Revision tags: release/2.1.5_cvs |
|
#
ad7076c9 |
| 03-Jul-1996 |
Wolfram Schneider <wosch@FreeBSD.org> |
remove zopen, zopen is not part of libc.
|
#
15aa00d5 |
| 27-May-1996 |
Peter Wemm <peter@FreeBSD.org> |
Add an implementation of the gnu-ish asprintf() and vasprintf(). They are not based on gpl'ed code, just prototype and usage. I'm not 100% certain they behave the same while the system is in troubl
Add an implementation of the gnu-ish asprintf() and vasprintf(). They are 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.
show more ...
|
#
65bfae76 |
| 24-Mar-1996 |
Paul Richards <paul@FreeBSD.org> |
Fix incorrect parameter types for ftell and fgets.
|
#
71d9c781 |
| 31-Jan-1996 |
Mike Pritchard <mpp@FreeBSD.org> |
Fix a bunch of spelling errors in the comment fields of a bunch of system include files.
|
Revision tags: release/2.1.0_cvs, release/2.0.5_cvs |
|
#
4399be3c |
| 30-May-1995 |
Rodney W. Grimes <rgrimes@FreeBSD.org> |
Remove trailing whitespace.
|
#
dd8723c2 |
| 04-Mar-1995 |
Poul-Henning Kamp <phk@FreeBSD.org> |
make sys_nerr __const.
Reviewed by: phk Submitted by: ollivier
|