Commit Graph

631 Commits

Author SHA1 Message Date
Joseph Myers 7071ad79db Remove __STDC__ conditionals from installed headers. 2012-01-26 20:49:22 +00:00
Marek Polacek e0a309cf2a Don't always provide definition of gets checking version 2012-01-13 12:45:02 -05:00
Ulrich Drepper a784e50247 Remove pre-ISO C support
No more __const.
2012-01-07 23:57:22 -05:00
Ulrich Drepper c3a8723670 Do not declare gets in _GNU_SOURCE mode at all 2012-01-07 10:41:00 -05:00
Joseph Myers 8ecd6b2a12 Fix C11 header changes for C++. 2012-01-06 18:11:50 +00:00
Ulrich Drepper 16578fa7b3 Better gets prototype and fallout from removal 2012-01-01 07:17:22 -05:00
Ulrich Drepper 03a718297d Remove gets declaration 2012-01-01 07:17:20 -05:00
Marek Polacek aaddc98c25 Remove unused variables 2011-11-11 13:27:59 -05:00
Andreas Schwab 7583a88d1c Fix locking in _IO_flush_all_lockp 2011-11-07 15:20:59 +01:00
Ulrich Drepper 9beb233493 Mark a few more functions with __THROWNL. 2011-10-29 15:56:44 -04:00
Roland McGrath 94d44d9f4d Remove mention of open_obstack_stream, which has never existed in libio. 2011-10-26 16:53:02 -07:00
Ulrich Drepper ab6737ffd0 Avoid warning in iofwide 2011-10-15 09:52:26 -04:00
Ulrich Drepper f22e10748f Don't lock string streams in stream cleanup code 2011-09-09 16:15:25 -04:00
Andreas Jaeger a101b025af Fix fopen (non-existing-file, "re") errno 2011-08-20 09:12:49 -04:00
Ulrich Drepper 798be72d12 Define SEEK_DATA and SEEK_HOLE 2011-07-23 21:45:57 -04:00
Ulrich Drepper aec84f5395 Set stream errors in more cases
Also avoid unnecessarily setting errno when testing for TTY.
2011-05-21 00:42:06 -04:00
Ulrich Drepper ed690b2f24 Cleanup namespace use. 2011-05-19 21:09:29 -04:00
H.J. Lu 0a197a9dfe Fix fileops.c build for old kernels 2011-05-17 01:45:49 -04:00
Ulrich Drepper 94b7cc3711 Fix a few problems in fopen and freopen
fopen should set the FD_CLOEXEC flag if requested evenif the kernel does
not support an aotmic operation.

freopen should reuse the file descriptor for the stream.  This is
especially important for calls to change the standard streams (stin,
stdout, stderr).
2011-05-15 15:28:46 -04:00
Ulrich Drepper ca408c157c Initialize variable in _IO_new_file_close_it
The last change left a variable in some situations uninitialized.
2011-05-14 10:59:54 -04:00
Ulrich Drepper 20030ae6d7 Fix error messages in test. 2011-05-13 21:10:29 -04:00
Ulrich Drepper fcabc0f8b1 Fix file descriptor position after fclose
fclose should leave the file descriptor position after the last read
or written byte.
2011-05-13 21:08:45 -04:00
Eric Blake b722481ac2 Use al possible bytes from fopen mode string. 2011-04-22 23:40:57 -04:00
Jim Meyering ded5b9b7c7 Remove doubled words. 2011-04-22 21:34:32 -04:00
Ulrich Drepper 4c1423edfb Fix typos in comments. 2011-04-01 10:39:30 -04:00
Ulrich Drepper 13a804de8f Optimize fmemopen a bit. 2011-03-04 00:49:46 -05:00
Andreas Schwab 9d25c392ba Don't read past end of buffer in fmemopen 2011-03-04 00:48:00 -05:00
Andreas Schwab 817328eea7 Remove undefined operations 2010-09-05 13:55:08 +02:00
Jakub Jelinek f32f28695d Fix a couple of __REDIRECT () __THROW occurrences
This patch fixes some cases which fail to parse with C++.
2010-06-14 08:18:26 -07:00
Ulrich Drepper 7ca890b88e Fix reporting of I/O errors in *dprintf functions. 2010-02-24 16:07:57 -08:00
Ulrich Drepper cd2f000c07 Fix standalone stdio.h inclusion. 2010-01-10 00:39:22 -08:00
Ulrich Drepper df1934daa7 Fix getwc* and putwc* on non-wide streams. 2009-11-19 10:29:16 -08:00
Ulrich Drepper 7f3146e789 Implement mkstemps and mkstemps64. 2009-10-30 00:11:07 -07:00
Ulrich Drepper cc88b371a5 Fix return value of puts for very long strings. 2009-10-29 16:03:07 -07:00
Roland McGrath 487a6d7735 Remove some unused variables. 2009-09-19 17:19:41 -07:00
Andreas Schwab 5d2e69766a Fix fsetpos on wide stream. 2009-09-02 19:45:33 -07:00
Andreas Schwab d840539e12 Cleanup _IO_wfile_seekoff.
This reformulates the in-buffer optimisation check to match the code in
_IO_new_file_seekoff.  No functional changes, but easier to understand.
2009-09-01 15:36:22 -07:00
Andreas Schwab 5182cbc5ab Add hidden alias for fflush. 2009-09-01 15:31:09 -07:00
Ulrich Drepper eae3208e24 Run tst-fgetwc with necessary envvar. 2009-06-16 07:48:27 -07:00
Bruce Dubbs 4155d92633 (do_test): Use de_DE.UTF-8 as locale name. 2009-06-15 17:27:48 -07:00
Ulrich Drepper 0d74e04361 (_IO_new_file_fopen): Don't prematurely stop parsing mode string. 2009-06-09 06:59:02 -07:00
Jim Meyering edeabc047e remove subsumed .gitignore entries and files 2009-05-16 10:41:40 +02:00
Jim Meyering 8636153326 remove mpn-copy.mk from .gitignore files 2009-05-16 10:38:54 +02:00
Jim Meyering bb87237534 remove COPYING* from .gitignore files 2009-05-16 10:38:53 +02:00
Jim Meyering 2e180a2622 rename each .cvsignore file to .gitignore 2009-05-15 18:13:37 +02:00
Ulrich Drepper f521be31b9 * sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init):
Avoid warning by using may_alias attribute on ptrhack.
2009-04-26 18:06:47 +00:00
Ulrich Drepper 1332704275 * libio/tst-widetext.input: Remove surrogates. 2009-04-25 08:39:43 +00:00
Ulrich Drepper a99e59d771 * include/stdio.h (fmemopen): Add libc_hidden_proto.
* libio/fmemopen.c (fmemopen): Add libc_hidden_def.

	* elf/sprof.c: Avoid warning about multi-line comment.
2009-03-10 15:26:57 +00:00
Ulrich Drepper f503060bbb * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
open_memstream, and vdprintf are in POSIX 2008.
2009-02-26 15:44:18 +00:00
Ulrich Drepper a71433e7fd * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
Add _tid slot to maintain consistency with kernel.
2009-02-05 00:21:43 +00:00