1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-21 18:23:59 +00:00
emacs/lib
Paul Eggert 43aac990c3 Simplify EMACS_TIME-related code.
This portability layer is no longer needed, since Emacs has been
using struct timespec as a portability layer for some time.
Merge from gnulib, incorporating:
2013-08-27 timespec: new convenience constants and function
* src/atimer.h, src/buffer.h, src/dispextern.h, src/xgselect.h:
Include <time.h> rather than "systime.h"; that's all that's needed now.
* src/dispnew.c: Include <timespec.h> rather than "systime.h";
that's all that's needed now.
* src/systime.h (EMACS_TIME): Remove.  All uses changed to struct timespec.
(EMACS_TIME_RESOLUTION): Remove.  All uses changed to
TIMESPEC_RESOLUTION.
(LOG10_EMACS_TIME_RESOLUTION): Remove.  All uses changed to
LOG10_TIMESPEC_RESOLUTION.
(EMACS_SECS, emacs_secs_addr): Remove.  All uses changed to tv_sec.
(EMACS_NSECS): Remove.  All uses changed to tv_nsec.
(make_emacs_time): Remove.  All used changed to make_timespec.
(invalid_timespec): Rename from invalid_emacs_time.  All uses changed.
(current_timespec): Rename from current_emacs_time.  All uses changed.
(add_emacs_time): Remove.  All uses changed to timespec_add.
(sub_emacs_time): Remove.  All uses change dot timespec_sub.
(EMACS_TIME_SIGN): Remove.  All uses changed to timespec_sign.
(timespec_valid_p): Rename from EMACS_TIME_VALID_P.  All uses changed.
(EMACS_TIME_FROM_DOUBLE): Remove.  All uses changed to dtotimespec.
(EMACS_TIME_TO_DOUBLE): Remove.  All uses changed to timespectod.
(current_timespec): Rename from current_emacs_time.  All uses changed.
(EMACS_TIME_EQ, EMACS_TIME_LT, EMACS_TIME_LE): Remove.  All uses
changed to timespec_cmp.
* src/xgselect.c: Include <timespec.h>, since our .h files don't.
2013-08-27 11:47:55 -07:00
..
acl_entries.c Use Gnulib ACL implementation, for benefit of Solaris etc. 2013-05-07 14:34:03 -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
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
binary-io.c Port recent close-on-exec changes to Cygwin. 2013-07-09 10:16:21 -07:00
binary-io.h Port recent close-on-exec changes to Cygwin. 2013-07-09 10:16:21 -07: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-08-11 17:52:17 -07: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
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
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
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 Fix some minor races in hosts lacking mkostemp. 2013-08-04 09:56:56 -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
mkostemp.c Fix some minor races in hosts lacking mkostemp. 2013-08-04 09:56:56 -07: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 Port recent close-on-exec changes to Cygwin. 2013-07-09 10:16:21 -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
secure_getenv.c Fix some minor races in hosts lacking mkostemp. 2013-08-04 09:56:56 -07: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-08-11 17:52:17 -07:00
sys_types.in.h Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
tempname.c Fix some minor races in hosts lacking mkostemp. 2013-08-04 09:56:56 -07:00
tempname.h Fix some minor races in hosts lacking mkostemp. 2013-08-04 09:56:56 -07:00
time_r.c 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
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 Simplify EMACS_TIME-related code. 2013-08-27 11:47:55 -07: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