Commit Graph

574 Commits

Author SHA1 Message Date
pgoyette 2904172c27 Remove duplicated 'i' from list of numeric formats 2015-11-19 10:03:26 +00:00
mrg 20f519c75f add a bunch of functions found in <stdio.h> that weren't listed here.
(this list may still be incomplete.)
2015-09-06 04:20:50 +00:00
pgoyette 04194d2b38 English grammar nit: there's only one function described in this man page 2015-09-06 03:10:50 +00:00
dholland 110c72e16b Improve the short description. 2015-09-06 01:37:35 +00:00
dholland 87aa30da64 SEE ALSO fmemopen(3) 2015-09-06 01:36:21 +00:00
dholland eba062b188 Mention fmemopen(). 2015-09-06 01:35:34 +00:00
christos 90b9d61d73 Allow changing the default buffering policy for a stdio stream during
construction by setting environment variables.
2015-07-15 19:08:43 +00:00
riastradh b4ed92be5b Use Pq to avoid space before O_EXCL. 2015-02-11 15:19:05 +00:00
christos 20f708949a add a couple of casts. 2015-02-05 16:05:20 +00:00
christos 5988775b41 Don't try to extend the offset range on 32 bit machines by treating negative
offsets as positive. It is just confusing.
2014-11-16 20:32:52 +00:00
christos a5a71196c8 PR/49317: Henning Petersen: Fix prototypes inman page. 2014-10-26 14:19:28 +00:00
justin 7cbb46f7c6 Add negative offset checks to fseeko
These were not strictly needed before, as lseek would error on negative
arguments, but having added open_memstream we have a virtual file pointer
that assumes that it gets sane values, so we get an assertion triggered
on a negative value. Best to check in one place rather than at all the
relevant points.
2014-10-19 11:17:43 +00:00
wiz 7ed90a21cf Fix whitespace in Xr. Remove sbuf(3) Xr, we do not have that. 2014-10-13 22:41:59 +00:00
christos dfe69df4d4 PR/49279: Justin Cormack: add open_memstream 2014-10-13 00:40:36 +00:00
christos 3a55b33865 Return EOVERFLOW like FreeBSD does if the buffer size exceeds INT_MAX
(well FreeBSD documents INT_MAX + 1, but in the code it is INT_MAX).
2014-09-29 14:58:33 +00:00
wiz a1bd179106 Remove trailing whitespace. 2014-09-16 08:52:02 +00:00
apb 85013cd7a1 Rephrase the NOTE about embedded NUL characters, using "apparent length"
for what strlen(3) reports, and "true length" for what the return value
reports.
2014-09-16 08:42:20 +00:00
christos 9abd014fb5 mention what happens if the line contains NUL's. 2014-09-15 23:41:16 +00:00
christos 7a55074b17 fix markup. 2014-09-15 23:31:17 +00:00
christos 57367022db Fix documentation to reflect what happens when EOF is found before delimiter,
aligning us with POSIX.
2014-09-15 23:29:16 +00:00
christos 52e916d949 Fix incorrect example (what happens when len == 0?) 2014-06-19 14:27:50 +00:00
wiz cdfd633d25 Add all functions to NAME section. End sentences with dots.
Bump date for previous.
2014-06-19 09:30:33 +00:00
msaitoh 5edf37f383 Fix "shadows a global declaration" compile error. 2014-06-19 05:31:15 +00:00
christos 1015249915 more man pages links 2014-06-18 17:50:55 +00:00
christos 017500be43 add mkostemp, mkostemps, mkstemps from FreeBSD. 2014-06-18 17:47:58 +00:00
justin 76fd41999f gcc cannot always work out initialization here 2014-06-12 22:21:20 +00:00
seanb 0c93806c37 Handle case where a 0 length template string or a template
of all 'X' would dereference, and maybe assign to, memory
before the template.  Simplify.
2014-01-21 19:09:48 +00:00
yamt 0136449606 vfwprintf: fix error propagation
PR/47660 (Julio Merino)
2014-01-20 14:11:03 +00:00
christos cc46e26df3 "soon" is "now". Remove all __indr_reference crap. 2014-01-16 20:31:42 +00:00
njoly 115fef786a Kill unneeded paragraph macro. 2014-01-07 13:34:11 +00:00
christos ca2d95d15f avoid linker warning for compat symbols that are used internally in libc,
by introducing a hidden compat_foo() function, using that internally in
libc, and exposing foo as a strong alias to compat_foo(). I am open for
better ideas.
2013-10-04 20:49:16 +00:00
pooka f42f517708 Make compile with -DNO_FLOATING_POINT 2013-09-23 12:41:37 +00:00
christos eb9ea33272 don't cast malloc 2013-05-19 21:45:00 +00:00
christos d3a4e77c47 from kre: Don't fail if we are seeking on a pipe, clear the append bit
since we always append.
2013-05-19 17:07:04 +00:00
joerg e0ac190e1e Provide explicit LC_C_LOCALE accessor and drop the various NULL checks.
Provide LC_GLOBAL_LOCALE in a way that works with all locale functions.
Merge constant data used by the initial global locale and the C locale.
Drop function call layer for _current_locale() and directly return the
locale reference, not a pointer to it. Use protected access for global
variables, so that libc references can avoid the GOT overhead.
2013-05-17 12:55:56 +00:00
wiz 70daec796f Grammar. 2013-05-04 19:17:38 +00:00
christos b5fd8f5747 _ss improvements 2013-05-04 18:35:53 +00:00
christos a803d40076 PR/47757: Eric Radman: mktemp(3) mangles the pathname if not given an absolute
path
1. on error, gettemp() did not restore the path string
2. when emulating mktemp() it is not an error for the pattern not to represent
   a real directory structure
XXX[1]: pullup-5, pullup-6
XXX[2]: the default pattern is the simplistic <pid><X> for mktemp.
2013-04-22 20:57:36 +00:00
joerg 6353e1f897 Add new line at the end. 2013-04-22 19:33:53 +00:00
joerg 9790c07a61 Add scanf_l and wscanf_l families. 2013-04-19 23:32:16 +00:00
joerg 2561b63430 Add explicit locale versions for the printf family. Replace asprintf,
snprintf and sprintf with simple wrappers around the corresponding
va_list functions to reduce code duplication.
2013-04-19 15:22:24 +00:00
uwe 3d030c8904 Mark up occurence of printf() in text with .Fn 2013-01-20 11:01:17 +00:00
uwe dd48d6e3aa In newfmt() example one level of indentation is enough. 2013-01-20 10:57:19 +00:00
uwe ad85e477e1 Fix typo. 2013-01-19 15:25:58 +00:00
christos 42837a5b3c Add 'x' to the mode bits to specify O_EXCL, like glibc. 2012-11-15 03:50:36 +00:00
njoly 17568cd1bf Kill some extra spaces in function arguments. 2012-10-08 18:15:09 +00:00
wiz 76576e4292 Sort description of flags. 2012-07-02 20:02:43 +00:00
njoly 5b87e47d83 Consistently use major/minor for NetBSD version. 2012-06-09 22:49:18 +00:00
njoly 3956fa9ae1 Small typo. 2012-05-11 17:14:12 +00:00
christos b66595809f The flush function makes the tests fail. So undo it for now until we decide
if the tests are wrong or the flushing is wrong.
2012-03-29 14:27:33 +00:00