thorpej
42320e8223
* Move the prototype of __svfscanf from <stdio.h> to libc/stdio/local.h.
...
* Add prototype for vfscanf to <stdio.h>.
* Remove #define of vfscanf to __svfscanf from <stdio.h>.
* Include local.h in libc files which need __svfscanf.
* Add vfscanf weak alias to __svfscanf.
Fixes standards/16997.
NOTE: libc minor not bumped -- ride on the bump to 12.84 made by
itojun today.
2002-05-24 22:17:20 +00:00
thorpej
aa676fc0b2
Parameterize the vfscanf macro's arguments. Without them, 3rd party
...
software can become greatly confused.
This fixes 4 GCC 3.2 testsuite failures.
This is a stop-gap measure which can be easily applied to the 1.6
release branch. A different fix for the trunk is forthcoming.
2002-05-24 21:07:44 +00:00
thorpej
b57df3dd9d
Add a scanf format attribute to __svfscanf().
2002-05-24 06:17:29 +00:00
yamt
17f3654a64
- make FILE structure extensible without breaking binary-compatibility.
...
- add fputwc, fgetwc, fwide and related functions.
- add hooks needed to maintain the orientation of file stream.
2001-12-07 11:47:40 +00:00
kleink
81ab746b71
Sprinkle some __restrict into stdio.
2000-12-29 15:22:48 +00:00
christos
8939b770e2
protect against multiple declarations.
2000-12-18 21:22:00 +00:00
briggs
e4bb13f3cd
Move fmtcheck() prototype to stdio.h. It makes more sense to declare it
...
with the formatting functions with which it is meant to be used. Thanks
to Klaus Klein for "encouraging" me to make this change.
2000-11-15 15:44:05 +00:00
kleink
11ecb446f3
Avoid recursion with traditional cpp.
2000-07-28 09:33:28 +00:00
mycroft
0e7e8472b5
This is a HACK so that libc can compile with -ansi.
2000-07-23 19:25:58 +00:00
enami
081e8d717c
- Fix couple of typos.
...
- Protect some func. decls. added recently with __{BEGIN,END}_DECLS.
2000-07-16 12:46:17 +00:00
drochner
7f13342022
fix obvious typo
2000-07-15 18:04:38 +00:00
kleink
dae360611f
XCU5: Add fseeko() and ftello() functions which provide the functionality of
...
fseek() and ftell(), respectively, but operate on file offsets of type off_t.
2000-07-08 13:46:33 +00:00
kleink
9a0205287d
Get rid of the inclusion of <sys/types.h> and define fpos_t using __off_t.
2000-06-26 15:52:36 +00:00
kleink
1bba558e50
Move <null.h> to <sys/null.h> for the purpose of avoiding conflicts due to
...
std C headers including it, and a kernel module written in C++ would benfit
as well.
2000-01-10 16:58:38 +00:00
kleink
c07f17e8d9
For the benefit of G++'s null pointer constant implementation, #define NULL
...
as __null with egcs 1.0 (GCC 2.90) and above. As several headers are affected
by this change, move the definition into a new header file, <null.h>, to ease
maintenance.
1999-12-22 21:26:15 +00:00
kleink
048353ddfd
* Bring *_unlocked() declarations in scope if _REENTRANT is defined, too; add
...
similar protection for the definitions of the macro versions.
* Don't define a macro version of fileno() in a _REENTRANT environment.
1998-11-20 14:39:38 +00:00
kleink
cc46a13dac
Move 1003.1c-1995 declarations inside the appropriate name space protection
...
wrapper, and make sure we won't use these decl's as such with C++ linkage(!).
Also, make _XOPEN_SOURCE protection of popen()/pclose() decl's a bit more
restrictive.
1998-09-28 17:47:58 +00:00
tv
9f9b9c1b0a
Use __format__, __printf__ for consistency
1998-08-28 22:55:50 +00:00
perry
253ef37df2
add asprintf and vasprintf, originally written by Todd Miller for OpenBSD
1998-08-28 21:33:10 +00:00
mycroft
f886615650
__Namespace__ __protection__.
1998-07-30 00:44:15 +00:00
mycroft
ef9e0500ba
Nuke tmpnam() as well.
1998-07-27 13:35:00 +00:00
mycroft
ab22ce8def
If __AUDIT__ is defined, remove some traditional interfaces: gets, sprintf,
...
vsprintf, tempnam, mktemp, getwd.
1998-07-27 09:58:49 +00:00
drochner
2d422e9c9e
add missing backslash
1998-05-11 15:49:15 +00:00
kleink
ff08122ed4
Reorganize name space protection.
1998-05-11 12:00:27 +00:00
kleink
5d431855e2
If standards-compliance is requested by defining the preprocessor symbols
...
_POSIX_SOURCE or _XOPEN_SOURCE at compile time, use __RENAME() to call
__posix_rename() instead of rename() in order to remove the requirement of
linking against libposix.
1998-02-14 20:33:21 +00:00
perry
b7b7322c68
merge lite-2
1998-02-02 21:07:13 +00:00
jtc
397b763df8
Added function declarations for flockfile(), ftrylockfile(), funlockfile(),
...
getc_unlocked(), getchar_unlocked(), putc_unlocked(), & putchar_unlocked().
Added macro definitions for the latter four functions.
Changed so that getc(), putc(), clearerr(), feof() and ferror() macros
are not defined if _REENTRANT is defined so that thread-safe function
versions will be used instead.
1998-01-19 07:35:06 +00:00
jtc
07ebdf3729
Fix typo, __STRICT_ANSI_ -> __STRICT_ANSI__
1996-04-25 18:29:21 +00:00
jtc
35cb421bc0
Removed declarations for sys_nerr & sys_errlist (moved to errno.h)
1996-01-20 01:36:30 +00:00
jtc
2ef4abe78f
change second arg of fgets() from size_t to int
1995-03-25 02:50:04 +00:00
jtc
4255068068
Removed const qualifier from ftell's FILE * argument. It's not ANSI,
...
and the recent change to flush output causes it to be changed.
1995-03-22 18:17:24 +00:00
cgd
4d2cbfce0a
new RCS ID format.
1994-10-26 00:55:40 +00:00
cgd
26fc33ba8d
_VA_LIST_ -> _BSD_VA_LIST_
1994-05-22 23:14:07 +00:00
cgd
2922de7461
add _BSD's to ansi types
1994-05-21 09:41:59 +00:00
cgd
754311881f
fpos_t is now a 64-bit quantity
1994-04-03 01:26:42 +00:00
cgd
d543667048
rename fgetline() and sharpen axe for bostic...
1994-01-04 05:14:14 +00:00
mycroft
e14697d8f2
Add `const's to sys_errlist decl to match 4.4.
1993-12-02 04:45:32 +00:00
jtc
d3c28f5857
Use GCC's format attribute (for bug detection with -Wformat).
1993-12-01 23:59:27 +00:00
jtc
9a6746f2ce
Restore define for L_cuserid and add cuserid prototype.
...
It was provided, but not documented.
1993-10-11 18:01:45 +00:00
jtc
6212a186a0
cuserid() was removed by 1990's revision of 1003.1, and we never provided it
...
so don't define the L_cuserid constant.
1993-10-06 18:41:55 +00:00
jtc
75e26868bb
fread and fwrite both return size_t, not int.
1993-10-04 18:50:23 +00:00
cgd
4e3d39b234
sscanf takes a const char * as the first arg; the man page was (already)
...
correct.
1993-10-04 04:49:17 +00:00
mycroft
e9d867ef50
Add RCS identifiers.
1993-08-01 17:54:45 +00:00
sef
7e852bb789
`inline' is not present in gcc when -ansi is given; use __inline instead.
1993-04-17 02:13:22 +00:00
cgd
61f282557f
initial import of 386bsd-0.1 sources
1993-03-21 09:45:37 +00:00