1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-29 07:58:28 +00: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 Merge from gnulib. 2012-07-04 01:35:34 -07:00
allocator.c Update from gnulib. 2011-04-08 14:53:30 -07:00
allocator.h Merge from gnulib. 2012-05-26 16:14:36 -07:00
at-func.c Use faccessat, not access, when checking file permissions. 2012-11-13 20:55:41 -08:00
c-ctype.c Add gnulib files for Bug#11786 fix. 2012-07-06 15:19:44 -07:00
c-ctype.h Add gnulib files for Bug#11786 fix. 2012-07-06 15:19:44 -07:00
c-strcase.h Add gnulib files for Bug#11786 fix. 2012-07-06 15:19:44 -07:00
c-strcasecmp.c Add gnulib files for Bug#11786 fix. 2012-07-06 15:19:44 -07:00
c-strncasecmp.c Add gnulib files for Bug#11786 fix. 2012-07-06 15:19:44 -07:00
careadlinkat.c Merge from gnulib. 2012-05-26 16:14:36 -07:00
careadlinkat.h Merge from gnulib. 2012-05-26 16:14:36 -07:00
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 * lib/COPYING: New file, a copy of COPYING. 2011-01-08 23:43:55 -08:00
dosname.h Merge from gnulib. 2012-05-26 16:14:36 -07:00
dtoastr.c Regenerate. 2011-01-08 17:20:28 -08:00
dtotimespec.c Add gnulib files to support higher-resolution time stamps. 2012-06-22 14:26:37 -07:00
dup2.c Merge from gnulib. 2012-05-26 16:14:36 -07:00
euidaccess.c Use faccessat, not access, when checking file permissions. 2012-11-13 20:55:41 -08:00
execinfo.c * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4: New files. 2012-08-24 21:27:32 -07:00
execinfo.in.h * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4: New files. 2012-08-24 21:27:32 -07:00
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 Merge from gnulib. 2012-05-26 16:14:36 -07:00
filemode.h Merge from gnulib. 2012-06-22 10:20:00 -07:00
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 Merge from gnulib. 2012-05-26 16:14:36 -07:00
ftoastr.h Merge from gnulib. 2012-05-26 16:14:36 -07:00
getgroups.c Use faccessat, not access, when checking file permissions. 2012-11-13 20:55:41 -08:00
getloadavg.c Remove "#define unix" that is no longer needed (Bug#11905). 2012-07-10 17:01:21 -07:00
getopt1.c Merge from gnulib. 2012-05-26 16:14:36 -07:00
getopt_.h Fix the MS-Windows build broken by 1995-02-25T20:57:45Z!rms@gnu.org. 2012-05-27 15:11:23 +03:00
getopt_int.h Merge from gnulib. 2012-05-26 16:14:36 -07:00
getopt.c Merge from gnulib. 2012-05-26 16:14:36 -07:00
getopt.in.h Merge from gnulib. 2012-05-26 16:14:36 -07:00
gettext.h Merge from gnulib. 2012-07-15 11:18:37 -07:00
gettime.c Add gnulib files to support higher-resolution time stamps. 2012-06-22 14:26:37 -07:00
gettimeofday.c Add gnulib files to support higher-resolution time stamps. 2012-06-22 14:26:37 -07:00
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 Merge from gnulib. 2012-05-26 16:14:36 -07:00
intprops.h Merge from gnulib. 2012-05-26 16:14:36 -07:00
inttypes.in.h Merge from gnulib. 2012-05-26 16:14:36 -07:00
lstat.c Merge from gnulib. 2012-05-26 16:14:36 -07:00
Makefile.am * lib/Makefile.am (DEFAULT_INCLUDES): Add -I$(top_srcdir)/lib for out-of-tree build. 2012-08-02 19:39:47 +09:00
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 Merge from gnulib. 2012-05-26 16:14:36 -07:00
md5.h Merge from gnulib. 2012-05-26 16:14:36 -07:00
min-max.h [ChangeLog] 2011-02-21 15:22:34 -08:00
mktime-internal.h Regenerate. 2011-01-08 22:57:07 -08:00
mktime.c Merge from gnulib. 2012-08-19 16:31:24 -07:00
pathmax.h Merge from gnulib. 2012-05-26 16:14:36 -07:00
pselect.c Merge from gnulib. 2012-10-04 00:15:42 -07:00
pthread_sigmask.c Merge from gnulib. 2012-07-15 11:18:37 -07:00
readlink.c Merge from gnulib. 2012-05-26 16:14:36 -07:00
root-uid.h Use faccessat, not access, when checking file permissions. 2012-11-13 20:55:41 -08:00
sha1.c Merge from gnulib. 2012-05-26 16:14:36 -07:00
sha1.h Merge from gnulib. 2012-05-26 16:14:36 -07:00
sha256.c Merge from gnulib. 2012-05-26 16:14:36 -07:00
sha256.h Merge from gnulib. 2012-05-26 16:14:36 -07:00
sha512.c Merge from gnulib. 2012-05-26 16:14:36 -07:00
sha512.h Merge from gnulib. 2012-05-26 16:14:36 -07:00
signal.in.h Merge from gnulib. 2012-06-22 10:20:00 -07:00
stat-time.c Merge from gnulib. 2012-08-02 17:42:11 -07:00
stat-time.h Merge from gnulib, for extern-inline. 2012-08-01 21:46:10 -07:00
stat.c Merge from gnulib. 2012-06-22 10:20:00 -07:00
stdalign.in.h Merge from gnulib. 2012-05-26 16:14:36 -07:00
stdarg.in.h Merge from gnulib. 2012-05-26 16:14:36 -07:00
stdbool.in.h Merge from gnulib. 2012-09-03 02:26:56 -07:00
stddef.in.h Merge from gnulib. 2012-05-26 16:14:36 -07:00
stdint.in.h Merge from gnulib. 2012-06-22 10:20:00 -07:00
stdio.in.h Merge from gnulib. 2012-05-26 16:14:36 -07:00
stdlib.in.h Spelling fixes. 2012-10-04 22:57:24 -07:00
strftime.c Merge from gnulib. 2012-05-26 16:14:36 -07:00
strftime.h Merge from gnulib. 2012-05-26 16:14:36 -07:00
strtoimax.c Merge from gnulib. 2012-05-26 16:14:36 -07:00
strtol.c Merge from gnulib. 2012-05-26 16:14:36 -07:00
strtoll.c Merge from gnulib. 2012-05-26 16:14:36 -07:00
strtoul.c Merge from gnulib. 2012-05-26 16:14:36 -07:00
strtoull.c Merge from gnulib. 2012-05-26 16:14:36 -07:00
strtoumax.c * Makefile.in (GNULIB_MODULES): Add strtoumax. 2011-04-21 12:12:13 -07:00
symlink.c Merge from gnulib. 2012-05-26 16:14:36 -07:00
sys_select.in.h Merge from gnulib. 2012-08-19 16:31:24 -07:00
sys_stat.in.h Merge from gnulib. 2012-05-26 16:14:36 -07:00
sys_time.in.h Add gnulib files to support higher-resolution time stamps. 2012-06-22 14:26:37 -07:00
sys_types.in.h Merge from gnulib. 2012-05-26 16:14:36 -07:00
time_r.c Merge from gnulib. 2012-05-26 16:14:36 -07:00
time.in.h Merge from gnulib. 2012-05-26 16:14:36 -07:00
timespec-add.c Add gnulib files to support higher-resolution time stamps. 2012-06-22 14:26:37 -07:00
timespec-sub.c timespec-sub: avoid duplicate include 2012-07-06 10:53:26 -07:00
timespec.c Merge from gnulib. 2012-08-02 17:42:11 -07:00
timespec.h Merge from gnulib, for extern-inline. 2012-08-01 21:46:10 -07:00
u64.c Merge from gnulib. 2012-08-02 17:42:11 -07:00
u64.h Merge from gnulib, for extern-inline. 2012-08-01 21:46:10 -07:00
unistd.in.h Merge from gnulib. 2012-06-22 10:20:00 -07:00
utimens.c Merge from gnulib, for extern-inline. 2012-08-01 21:46:10 -07:00
utimens.h Merge from gnulib, for extern-inline. 2012-08-01 21:46:10 -07:00
verify.h Merge from gnulib (comment changes only). 2012-07-21 21:16:53 -07:00
xalloc-oversized.h Use faccessat, not access, when checking file permissions. 2012-11-13 20:55:41 -08:00