1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-30 12:21:25 -08:00
emacs/lib-src
Paul Eggert 49cdacdad3 Assume POSIX 1003.1-1988 or later for fcntl.h.
* admin/CPP-DEFINES (O_RDONLY, O_RDWR, HAVE_FCNTL_H): Remove.
* admin/merge-gnulib (GNULIB_MODULES): Add fcntl-h.
* configure.ac: Do not check for fcntl.h.
* lib/gnulib.mk: Regenerate.
* lib-src/movemail.c, lib-src/update-game-score.c: Assume <fcntl.h> exists.
* nt/inc/sys/socket.h (O_NONBLOCK): Rename from O_NDELAY, since the
POSIX name for this flag is O_NONBLOCK.  All uses changed.
* nt/inc/unistd.h (O_RDWR, O_NOCTTY): New macros.  Like AT_FDCWD etc.
these really should be moved to a replacement <fcntl.h> if and
when that gets implemented.  In the meantime, include <fcntl.h>
to make sure we don't override its definitions.
* src/callproc.c (relocate_fd): Assume F_DUPFD.
* src/emacs.c, src/term.c (O_RDWR): Remove.
* src/keyboard.c (tty_read_avail_input): Use O_NONBLOCK rather than
O_NDELAY, since O_NONBLOCK is the standard name for this flag.
* src/nsterm.m: Assume <fcntl.h> exists.
* src/process.c (NON_BLOCKING_CONNECT, allocate_pty, create_process)
(create_pty, Fmake_network_process, server_accept_connection)
(wait_reading_process_output, init_process_emacs):
Assume O_NONBLOCK.
(wait_reading_process_output): Put in a special case for WINDOWSNT
to mimick the older behavior where it had O_NDELAY but not O_NONBLOCK.
It's not clear this is needed, but it's a more-conservative change.
(create_process): Assume FD_CLOEXEC.
(create_process, create_pty): Assume O_NOCTTY.
* src/sysdep.c (init_sys_modes, reset_sys_modes): Assume F_SETFL.
(reset_sys_modes): Use O_NONBLOCK rather than O_NDELAY.
Omit if not DOS_NT, since F_GETFL is not defined there.
(serial_open): Assume O_NONBLOCK and O_NOCTTY.
* src/term.c: Include <fcntl.h>, for flags like O_NOCTTY.
(O_NOCTTY): Remove.
(init_tty): Assume O_IGNORE_CTTY is defined to 0 on platforms that
lack it, since gnulib guarantees this.
* src/w32.c (fcntl): Test for O_NONBLOCK rather than O_NDELAY.

Fixes: debbugs:12881
2012-11-17 14:12:47 -08:00
..
.gitignore Don't ignore files that are no longer generated 2011-02-13 19:35:05 +01:00
ChangeLog Assume POSIX 1003.1-1988 or later for fcntl.h. 2012-11-17 14:12:47 -08:00
COPYING Change to GPLv3. 2007-07-25 07:00:38 +00:00
ebrowse.c Reduce the number of versioned files storing the short copyright string 2012-09-16 17:56:08 -07:00
emacsclient.c Detect window-system from display name 2012-09-17 03:55:05 -08:00
etags.c Reduce the number of versioned files storing the short copyright string 2012-09-16 17:56:08 -07:00
grep-changelog Add 2012 to FSF copyright years for Emacs files 2012-01-05 01:46:05 -08:00
hexl.c Clean out last vestiges of the old HAVE_CONFIG_H stuff. 2012-06-25 18:05:39 -07:00
make-docfile.c Recognize that cp51932.el and eucjp-ms.el are loaded during dumping 2012-10-20 18:19:46 -07:00
Makefile.in * Makefile.in (uninstall): No INSTALLABLES live in archlibdir. 2012-10-26 00:40:51 -07:00
makefile.w32-in Update lib-src/makefile.w32-in to follow 2012-10-21T01:19:46Z!rgm@gnu.org. 2012-10-23 19:09:55 +02:00
movemail.c Assume POSIX 1003.1-1988 or later for fcntl.h. 2012-11-17 14:12:47 -08:00
ntlib.c Avoid compiler warnings in lib-src/ntlib.c 2012-10-17 23:13:20 +02:00
ntlib.h Add 2012 to FSF copyright years for Emacs files 2012-01-05 01:46:05 -08:00
pop.c Prefer assignment to memcpy when either will do. 2012-09-11 15:59:50 -07:00
pop.h Add 2012 to FSF copyright years for Emacs files 2012-01-05 01:46:05 -08:00
profile.c Use C99-style 'extern inline' if available. 2012-08-02 00:31:34 -07:00
rcs2log Add 2012 to FSF copyright years for Emacs files 2012-01-05 01:46:05 -08:00
README
test-distrib.c Add 2012 to FSF copyright years for Emacs files 2012-01-05 01:46:05 -08:00
testfile
update-game-score.c Assume POSIX 1003.1-1988 or later for fcntl.h. 2012-11-17 14:12:47 -08:00

This directory contains the source code for the architecture-dependent
files that go in ${archlibdir}.  At present, these are mostly utility
programs used by GNU Emacs.