1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-26 07:11:34 -08:00
emacs/lib
Paul Eggert 4ebbdd6712 Handle errno and exit status a bit more carefully.
* lib/ignore-value.h: Remove this gnulib-imported file.
* lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
* admin/merge-gnulib (GNULIB_MODULES): Remove ignore-value.
* src/callproc.c (child_setup) [!DOS_NT]: Don't try to stuff an error
number into an exit status.  Instead, use EXIT_CANCELED.
(child_setup) [!MSDOS]: Avoid possible deadlock with vfork.
* src/callproc.c (relocate_fd):
* src/emacs.c (close_output_streams, main):
* src/process.c (create_process):
* src/sysdep.c (sys_subshell) [!DOS_NT || !WINDOWSNT]:
Use emacs_perror for simplicity.
* src/callproc.c (relocate_fd, main):
* src/sysdep.c (sys_subshell):
Exit with EXIT_CANCELED etc., not 1, when exec setup fails.
(shut_down_emacs): Use emacs_write, not write.
* src/emacs.c, src/sysdep.c: Don't include <ignore-value.h>.
* src/fileio.c (Fcopy_file, e_write):
* src/nsterm.m (ns_select):
* src/process.c (send_process):
* src/sound.c (vox_write):
Use emacs_write_sig, not emacs_write.
* src/lisp.h (emacs_write_sig, emacs_perror): New decls.
* src/process.h (EXIT_CANCELED), EXIT_CANNOT_INVOKE, EXIT_ENOENT):
New constants.
* src/sysdep.c (emacs_backtrace): Use emacs_write, not ignore_value
of write.
(emacs_full_write): New function.
(emacs_write): Rewrite to use it.
(emacswrite_sig, emacs_perror): New functions.
* src/xrdb.c (fatal): Don't invoke perror, since errno might be garbage.
2013-07-09 00:04:48 -07:00
..
acl-errno-valid.c Use Gnulib ACL implementation, for benefit of Solaris etc. 2013-05-07 14:34:03 -07:00
acl-internal.h Use Gnulib ACL implementation, for benefit of Solaris etc. 2013-05-07 14:34:03 -07:00
acl.h Use Gnulib ACL implementation, for benefit of Solaris etc. 2013-05-07 14:34:03 -07:00
acl_entries.c Use Gnulib ACL implementation, for benefit of Solaris etc. 2013-05-07 14:34:03 -07:00
alloca.in.h Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
allocator.c Update from gnulib. 2011-04-08 14:53:30 -07:00
allocator.h Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
at-func.c Merge from gnulib. 2013-01-02 08:37:04 -08:00
c-ctype.c Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
c-ctype.h Merge from gnulib. 2013-06-09 08:59:30 -07:00
c-strcase.h Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
c-strcasecmp.c Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
c-strncasecmp.c Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
careadlinkat.c Merge from gnulib. 2013-02-08 15:37:17 -08:00
careadlinkat.h Merge from gnulib. 2013-02-08 15:37:17 -08:00
close-stream.c Merge from gnulib. 2013-01-02 08:37:04 -08: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
dirent.in.h Use fdopendir, fstatat and readlinkat, for efficiency. 2013-01-31 22:30:51 -08:00
dosname.h Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
dtoastr.c Regenerate. 2011-01-08 17:20:28 -08:00
dtotimespec.c Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
dup2.c Merge from gnulib. 2013-01-02 08:37:04 -08:00
errno.in.h Use Gnulib ACL implementation, for benefit of Solaris etc. 2013-05-07 14:34:03 -07:00
euidaccess.c Merge from gnulib. 2013-01-02 08:37:04 -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 Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
faccessat.c Merge from gnulib. 2013-01-02 08:37:04 -08:00
fcntl.c Make file descriptors close-on-exec when possible. 2013-07-07 11:00:14 -07:00
fcntl.in.h Merge from gnulib. 2013-01-02 08:37:04 -08:00
fdatasync.c File synchronization fixes. 2013-03-13 11:42:22 -07:00
fdopendir.c Use fdopendir, fstatat and readlinkat, for efficiency. 2013-01-31 22:30:51 -08:00
file-has-acl.c Use Gnulib ACL implementation, for benefit of Solaris etc. 2013-05-07 14:34:03 -07:00
filemode.c Merge from gnulib. 2013-01-02 08:37:04 -08:00
filemode.h Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
fpending.c Merge from gnulib. 2013-01-02 08:37:04 -08:00
fpending.h Merge from gnulib. 2013-01-02 08:37:04 -08:00
fstatat.c Use fdopendir, fstatat and readlinkat, for efficiency. 2013-01-31 22:30:51 -08:00
fsync.c File synchronization fixes. 2013-03-13 11:42:22 -07:00
ftoastr.c Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
ftoastr.h Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
getdtablesize.c Make file descriptors close-on-exec when possible. 2013-07-07 11:00:14 -07:00
getgroups.c Merge from gnulib. 2013-01-02 08:37:04 -08:00
getloadavg.c Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
getopt.c Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
getopt.in.h Merge from gnulib. 2013-01-09 18:19:44 -08:00
getopt1.c Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
getopt_.h * lib/getopt_.h: Remove trailing CRs that crept in. 2013-01-11 15:28:04 -08:00
getopt_int.h Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
gettext.h Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
gettime.c Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
gettimeofday.c Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
gnulib.mk Handle errno and exit status a bit more carefully. 2013-07-09 00:04:48 -07:00
group-member.c Merge from gnulib. 2013-01-02 08:37:04 -08:00
intprops.h Merge from gnulib. 2013-04-27 12:30:33 -07:00
inttypes.in.h Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
lstat.c Merge from gnulib. 2013-01-02 08:37:04 -08:00
Makefile.am Merge from trunk, configury not fixed yet. 2013-05-15 19:15:07 +03:00
makefile.w32-in lib/makefile.w32-in (ACL_H): New macro. 2013-05-08 18:22:09 +02:00
md5.c Merge from gnulib. 2013-01-02 08:37:04 -08:00
md5.h Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
memrchr.c Tune by using memchr and memrchr. 2013-02-11 15:37:18 -08: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 Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
openat-die.c Use fdopendir, fstatat and readlinkat, for efficiency. 2013-01-31 22:30:51 -08:00
openat-priv.h Use fdopendir, fstatat and readlinkat, for efficiency. 2013-01-31 22:30:51 -08:00
openat-proc.c Use fdopendir, fstatat and readlinkat, for efficiency. 2013-01-31 22:30:51 -08:00
openat.h Use fdopendir, fstatat and readlinkat, for efficiency. 2013-01-31 22:30:51 -08:00
pathmax.h Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
pipe2.c Make file descriptors close-on-exec when possible. 2013-07-07 11:00:14 -07:00
pselect.c Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
pthread_sigmask.c Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
putenv.c Merge from gnulib: putenv: port to Solaris 10. 2013-03-13 00:15:17 -07:00
qcopy-acl.c Use Gnulib ACL implementation, for benefit of Solaris etc. 2013-05-07 14:34:03 -07:00
qset-acl.c Use Gnulib ACL implementation, for benefit of Solaris etc. 2013-05-07 14:34:03 -07:00
readlink.c Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
readlinkat.c Use fdopendir, fstatat and readlinkat, for efficiency. 2013-01-31 22:30:51 -08:00
root-uid.h Merge from gnulib. 2013-01-02 08:37:04 -08:00
save-cwd.c Use fdopendir, fstatat and readlinkat, for efficiency. 2013-01-31 22:30:51 -08:00
save-cwd.h Use fdopendir, fstatat and readlinkat, for efficiency. 2013-01-31 22:30:51 -08:00
sha1.c Merge from gnulib. 2013-01-02 08:37:04 -08:00
sha1.h Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
sha256.c Merge from gnulib. 2013-01-02 08:37:04 -08:00
sha256.h Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
sha512.c Merge from gnulib. 2013-01-02 08:37:04 -08:00
sha512.h Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
sig2str.c Merge from gnulib. 2013-05-16 00:10:39 -07:00
sig2str.h Merge from gnulib. 2013-06-09 08:59:30 -07:00
signal.in.h Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
stat-time.c Merge from gnulib. 2012-08-02 17:42:11 -07:00
stat-time.h Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
stat.c Merge from gnulib. 2013-01-02 08:37:04 -08:00
stdalign.in.h Try to fix FreeBSD 9.1 porting problem. 2013-07-07 23:15:38 -07:00
stdarg.in.h Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
stdbool.in.h Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
stddef.in.h Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
stdint.in.h Merge from gnulib. 2013-01-16 09:45:39 -08:00
stdio.in.h Merge from gnulib. 2013-05-16 00:10:39 -07:00
stdlib.in.h Merge from gnulib. 2013-02-11 15:15:46 -08:00
strftime.c Spelling fix merged from gnulib. 2013-01-09 00:25:11 -08:00
strftime.h Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
string.in.h Tune by using memchr and memrchr. 2013-02-11 15:37:18 -08:00
strtoimax.c Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
strtol.c Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
strtoll.c Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
strtoul.c Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
strtoull.c Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
strtoumax.c * Makefile.in (GNULIB_MODULES): Add strtoumax. 2011-04-21 12:12:13 -07:00
symlink.c Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
sys_select.in.h Merge from gnulib. 2013-03-23 17:49:50 -07:00
sys_stat.in.h Merge from gnulib. 2013-01-02 08:37:04 -08:00
sys_time.in.h Merge from gnulib. 2013-03-23 17:49:50 -07:00
sys_types.in.h Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
time.in.h Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
time_r.c Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
timespec-add.c Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
timespec-sub.c Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
timespec.c Merge from gnulib. 2012-08-02 17:42:11 -07:00
timespec.h Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
u64.c Merge from gnulib. 2012-08-02 17:42:11 -07:00
u64.h Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
unistd.c Merge from gnulib for 'inline'. 2012-11-30 10:25:59 -08:00
unistd.in.h Merge from gnulib. 2013-03-12 17:38:42 -07:00
unsetenv.c Merge from gnulib. 2013-02-11 15:15:46 -08:00
utimens.c Merge from gnulib. 2013-05-06 06:37:42 -07:00
utimens.h Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
verify.h Try to fix FreeBSD 9.1 porting problem. 2013-07-07 23:15:38 -07:00
xalloc-oversized.h Merge from gnulib. 2013-01-02 08:37:04 -08:00