bjh21
c9e4965681
Revert addition of mkdtemp() to libnbcompat. I don't think we need mktemp(1)
...
after all.
2002-04-01 13:59:34 +00:00
bjh21
58017a564d
Add mkdtemp to libnbcompat, since glibc doesn't have it an mktemp(1) will
...
need it.
2002-03-31 18:04:11 +00:00
yamt
ffca92c5a2
putwc and putwchar's argument is wchar_t, not wint_t.
2002-03-14 21:21:00 +00:00
christos
9588aa8fef
fully initialize the structure to avoid gcc complaints.
2002-03-12 22:56:16 +00:00
ross
814f296b77
Generate <>& symbolically.
2002-02-07 07:00:09 +00:00
wiz
38462ff661
Punctuation nit, and slight grammar improvement.
2002-02-02 10:50:52 +00:00
yamt
ec88065e0f
note that our fsetpos/fgetpos don't know about stream's state.
...
it's a bug since we now have stateful encodings like iso2022 and
wide char functions like fgetwc.
2002-02-02 08:56:53 +00:00
kleink
222fdd84c8
One pasto, one typo.
2002-01-21 11:54:15 +00:00
wiz
1f01816d38
Avoid Po/Pq.
2001-12-07 12:36:40 +00:00
wiz
69486f2d3a
Slight grammar improvement.
2001-12-07 12:36:11 +00:00
wiz
881a6c7de6
Markup getwc in one place.
2001-12-07 12:35:54 +00:00
wiz
aa5abf3731
Grammar improvements, some additional markup and a typo fix.
2001-12-07 12:35:13 +00:00
yamt
fa787c7eba
g/c #if 0.
2001-12-07 12:18:53 +00:00
yamt
a510b02e77
add files forgotten in my previous commit.
2001-12-07 12:02:07 +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
2a6842fe56
C99: Recognize %F here, too.
2001-12-02 20:53:49 +00:00
kleink
f2c0cf9cec
Fix a mis-pasting in previous; pointed out by Thomas Klausner.
2001-12-02 20:41:12 +00:00
kleink
dcf4ce2588
C99:
...
* Recognize %F.
* Convert {Infinity,NaN} to {"inf","nan"} for %[efg], and to
{"INF","NAN"} for %[EFG].
2001-12-02 20:12:03 +00:00
kleink
80f30d4de0
Since we're returned the sign of a floating-point number by __dtoa(),
...
use that to decide whether to include a minus sign in the result.
Fixes printing -0.0, and thus PR lib/3137.
2001-11-28 11:58:22 +00:00
augustss
0d3aa2aa07
Ugh, back out last commit. It makes vfprintf depend on -lm.
2001-11-27 18:05:30 +00:00
augustss
a928006fbb
Print sign of -0.0 correctly. Fixes PR 3137 (mine).
2001-11-27 18:00:55 +00:00
lukem
50f5afd52e
fix WARNS=2 (-Wshadow) warnings
2001-11-04 13:57:29 +00:00
kleink
aea3dece2d
Drop a VAX/Tahoe reference (the VAX case wasn't true with the current compiler
...
either).
2001-10-17 13:27:15 +00:00
wiz
4c99916337
va_{start,end} audit:
...
Make sure that each va_start has one and only one matching va_end,
especially in error cases.
If the va_list is used multiple times, do multiple va_starts/va_ends.
If a function gets va_list as argument, don't let it use va_end (since
it's the callers responsibility).
Improved by comments from enami and christos -- thanks!
Heimdal/krb4/KAME changes already fed back, rest to follow.
Inspired by, but not not based on, OpenBSD.
2001-09-24 13:22:25 +00:00
wiz
71bd158b54
Mainly sort SEE ALSO, but also sort sections, and some punctuation and
...
paragraph fixes.
2001-09-16 02:17:15 +00:00
wiz
72b9df9677
Boring whitespace fixes.
2001-09-16 02:08:55 +00:00
abs
185d31ea9e
Do not xref pc(1)
2001-07-06 18:15:36 +00:00
aymeric
58237d3d65
Draw attention to the fact that the created file/dir may not be readable
...
or writable due to a weird umask.
2001-06-22 20:09:05 +00:00
christos
096152524b
casts to size_t
2001-06-21 21:17:10 +00:00
kleink
a251b29d5a
Clarify C standards situation a bit.
2001-04-30 08:47:59 +00:00
kleink
fe3c9ceaf7
* Move definitions of exact-width integer types from <machine/types.h>
...
to <sys/types.h> and <sys/stdint.h>.
* Add a new C99 <stdint.h> header, which provides integer types of
explicit width, related limits and integer constant macros.
* Extend <inttypes.h> to provide <stdint.h> definitions and format
macros for printf() and scanf().
* Add C99 strtoimax() and strtoumax() functions.
* Use the latter within scanf().
* Add C99 %j, %t and %z printf()/scanf() conversions for
intmax_t, pointer-type and size_t arguments.
2001-04-28 15:41:28 +00:00
kleink
568e812267
Fix an ... interesting pasto in the description of the l length modifier
...
that's been here forever.
2001-04-26 19:25:12 +00:00
kleink
6213f73707
Document getc_unlocked(3), getchar_unlocked(3), putc_unlocked(3) and
...
putchar_unlocked(3); fixes PR lib/11340.
2001-04-25 22:06:53 +00:00
kleink
3432ed7203
Need an internal name for asprintf(3).
2001-04-13 14:18:09 +00:00
jhawk
404ef082e4
Xr printf(9)
2001-04-03 13:59:22 +00:00
lukem
fa11ebb133
apparently ansi c only required fread(3) to return 0 if size or nmembs == 0.
...
however, susv2 adds the same to fwrite(3), so add the explicit check.
document this for both fread & fwrite. move diagassert for buf!=NULL to after
the (size * nmembs) == 0 check.
this has the helpful side effect of preventing the _DIAGASSERT()ion in
fwrite() being triggered by lots of 3rdparty code that calls fwrite() with
buf=NULL count=0
2001-01-25 02:06:25 +00:00
itojun
bb0bfe5b30
initialize mbstate_t properly.
2000-12-30 04:13:25 +00:00
kleink
81ab746b71
Sprinkle some __restrict into stdio.
2000-12-29 15:22:48 +00:00
itojun
1da6122f1e
make printf-variant work with stateful encodings.
2000-12-23 13:19:31 +00:00
christos
86af4f2cf9
fix duplicate declaration of __glue.
2000-12-10 04:17:28 +00:00
christos
ebb980fc21
This is for completeness only (to make fdopen symmetric with fopen and freopen)
...
and to match the documentation. Return an error if "f" was specified and the
file descriptor does not refer to a plain file.
2000-11-29 15:36:42 +00:00
christos
8955e88e2f
Add checks for O_NDELAY [which indicates that we only want plain files],
...
and return an error if the file was not plain.
2000-11-29 15:31:10 +00:00
christos
2a213d0e9a
make sure we preserve errno.
2000-11-29 15:30:20 +00:00
kleink
78eeef4b49
Actually EINVAL fits the circumstances better.
2000-10-19 09:47:43 +00:00
kleink
20b0e10891
C99: Passing a null pointer as the buffer argument to snprintf() and
...
vsnprintf() is permitted when the size argument is zero as well; mostly
from Peter Seebach in PR standards/9603.
2000-10-19 09:45:31 +00:00
kim
6ec737498a
Make "f" standout better.
2000-10-18 15:40:52 +00:00
kleink
9c477a4e4e
XCU5 -> XSH5.
2000-07-26 08:57:34 +00:00
kleink
7d93b767c2
Oops, forgot to define weak aliases for public names.
...
Fixes PR {pkg,lib}/10655.
2000-07-26 08:52:57 +00:00
jdolecek
5451455d06
v*scanf() are hardly 'new to this release' when they have
...
been around since 386BSD-0.1 import; they have been present in 4.4BSD-Lite
at least, can't currently check if even in 4.3BSD
put note aboud eventual removing of compatibility formats to NOTES, it's
hardly a bug description
2000-07-16 11:08:53 +00:00
sommerfeld
007c516740
Attach __format__ attributes to local __sbprintf function
2000-07-08 14:57:57 +00:00