1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-07 16:10:46 -08:00
emacs/lib
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
..
alloca.in.h
allocator.c
allocator.h
at-func.c Use faccessat, not access, when checking file permissions. 2012-11-13 20:55:41 -08:00
c-ctype.c
c-ctype.h
c-strcase.h
c-strcasecmp.c
c-strncasecmp.c
careadlinkat.c
careadlinkat.h
close-stream.c Fix data-loss with --batch. 2012-11-03 11:54:17 -07:00
close-stream.h Fix data-loss with --batch. 2012-11-03 11:54:17 -07:00
COPYING
dosname.h
dtoastr.c
dtotimespec.c
dup2.c
euidaccess.c Use faccessat, not access, when checking file permissions. 2012-11-13 20:55:41 -08:00
execinfo.c
execinfo.in.h
faccessat.c Use faccessat, not access, when checking file permissions. 2012-11-13 20:55:41 -08:00
fcntl.in.h Use trunk version of gnulib lib/fcntl.in.h. 2012-11-13 21:29:54 -08:00
filemode.c
filemode.h
fpending.c Fix data-loss with --batch. 2012-11-03 11:54:17 -07:00
fpending.h Fix data-loss with --batch. 2012-11-03 11:54:17 -07:00
ftoastr.c
ftoastr.h
getgroups.c Use faccessat, not access, when checking file permissions. 2012-11-13 20:55:41 -08:00
getloadavg.c
getopt.c
getopt.in.h
getopt1.c
getopt_.h
getopt_int.h
gettext.h
gettime.c
gettimeofday.c
gnulib.mk Assume POSIX 1003.1-1988 or later for fcntl.h. 2012-11-17 14:12:47 -08:00
group-member.c Use faccessat, not access, when checking file permissions. 2012-11-13 20:55:41 -08:00
ignore-value.h
intprops.h
inttypes.in.h
lstat.c
Makefile.am
makefile.w32-in lib/makefile.w32-in, src/makefile.w32-in: Trivial reordering of entries. 2012-11-06 16:29:49 +01:00
md5.c
md5.h
min-max.h
mktime-internal.h
mktime.c
pathmax.h
pselect.c Merge from gnulib. 2012-10-04 00:15:42 -07:00
pthread_sigmask.c
readlink.c
root-uid.h Use faccessat, not access, when checking file permissions. 2012-11-13 20:55:41 -08:00
sha1.c
sha1.h
sha256.c
sha256.h
sha512.c
sha512.h
signal.in.h
stat-time.c
stat-time.h
stat.c
stdalign.in.h
stdarg.in.h
stdbool.in.h
stddef.in.h
stdint.in.h
stdio.in.h
stdlib.in.h Spelling fixes. 2012-10-04 22:57:24 -07:00
strftime.c
strftime.h
strtoimax.c
strtol.c
strtoll.c
strtoul.c
strtoull.c
strtoumax.c
symlink.c
sys_select.in.h
sys_stat.in.h
sys_time.in.h
sys_types.in.h
time.in.h
time_r.c
timespec-add.c
timespec-sub.c
timespec.c
timespec.h
u64.c
u64.h
unistd.in.h
utimens.c
utimens.h
verify.h
xalloc-oversized.h Use faccessat, not access, when checking file permissions. 2012-11-13 20:55:41 -08:00