summaryrefslogtreecommitdiffstats
path: root/newlib/libc/stdio/fdopen.c
Commit message (Collapse)AuthorAgeFilesLines
* 2002-09-19 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2002-09-191-1/+1
| | | | | | | | | | | | | | | * libc/posix/opendir.c (opendir): Change code to check for HAVE_FCNTL before calling fcntl. * libc/search/hash.c (hash_open): Ditto. * libc/search/hash_page.c (open_tmp): Ditto. * libc/reent/Makefile.am: Add fcntlr.c. * libc/reent/Makefile.in: Regenerated. * libc/reent/fcntlr.c: New file. * libc/stdio/fdopen.c (_fdopen_r): Change to call _fcntl_r instead of _fcntl when HAVE_FCNTL flag is set. * libc/syscalls/sysfcntl.c (fcntl): Check for HAVE_FCNTL flag to see if _fcntl or _fcntl_r should be called. If flag is not set, default to ENOSYS stub.
* 2001-02-21 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2001-02-211-3/+3
| | | | | | | * libc/stdio/fdopen.c (fdopen): Protect calls to _fcntl() with HAVE_FCNTL flag check. * configure.host: Define HAVE_FCNTL for Cygwin, go32, RTEMS, sparc64, powerpcle, x86 netware, x86 sco, x86 Linux and Vxworks.
* * libc/stdio/fdopen.c (_fdopen_r): Take explicit givenCorinna Vinschen2000-06-141-0/+5
| | | | bin/textmode into account for Cygwin.
* * libc/stdio/stdio.c (__stextmode): new, see if file is text modeDJ Delorie2000-05-231-1/+1
| | | | | | | | | | | | (__sread): always read in binary mode (__swrite): always write in binary mode * libc/include/stdio.h: no getc/putc macros for cygwin; causes compatibility issues with different dll versions * libc/stdio/fopen.c: use __stextmode * libc/stdio/fdopen.c: ditto * libc/stdio/freopen.c: ditto * libc/stdio/findfp.c: set up __SCLE for std{in,out,err} * libc/stdio/local.h: declare __stextmode
* Tue May 02 23:45:48 2000 DJ Delorie <dj@cygnus.com>Jeff Johnston2000-05-031-0/+6
| | | | | | | | | | | | * libc/include/stdio.h (FILE): define __SCLE for "convert line endings" for Cygwin. (__sgetc): convert line endings if needed (__sputc): ditto * libc/stdio/fdopen.c (_fdopen_r): Remember if we opened in text mode * libc/stdio/fopen.c (_fopen_r): ditto * libc/stdio/freopen.c (freopen): ditto * libc/stdio/fread.c (fread): perform CRLF conversions if __SCLE * libc/stdio/fvwrite.c (__sfvwrite): ditto
* import newlib-2000-02-17 snapshotChristopher Faylor2000-02-171-0/+116