glibc/sysdeps/unix
Roland McGrath 80fd73873b Fri Sep 29 03:43:51 1995 Paul Eggert <eggert@twinsun.com>
Rewrite mktime from scratch for performance, and for correctness
	in the presence of leap seconds.

	* time/mktime.c	(ydhms_tm_diff, not_equal_tm, print_tm, check_result):
	New functions.
	(LEAP_SECONDS_POSSIBLE, CHAR_BIT, INT_MIN, INT_MAX,
	TIME_T_MIN, TIME_T_MAX, TM_YEAR_BASE, EPOCH_YEAR): New macros.
	<limits.h>, <stdlib.h>: New #includes.
	(main): Support tests with given broken-down value; support benchmarks.
	(__mon_lengths, debugging_enabled, printtm, dist_tm, doit,
	do_normalization, normalize, BAD_STRUCT_TM, SKIP_VALUE,
	<ctype.h>): Remove.

	* time/time.h, time/mktime.c (__mktime_internal): New offset arg.
	* time/mktime.c (mktime), time/timegm.c (timegm): Use it.

	* time/mktime.c (__mon_yday): New variable; replaces `__mon_lengths'.
	time/offtime.c (__offtime), time/tzset.c (compute_change): Use it.
	
	* time/offtime.c (__offtime): Remove useless assignment
	`tp->tm_isdst = -1'.

	* manual/maint.texi: Update credits.

Fri Oct  6 00:28:53 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

	* sysdeps/unix/common/readv.S: Moved to sysdeps/unix/bsd.
	* sysdeps/unix/common/writev.S: Moved to sysdeps/unix/bsd.
	* sysdeps/unix/sysv/linux/readv.c: File removed.
	* sysdeps/unix/sysv/linux/writev.c: File removed.
	* sysdeps/unix/configure.in: Check for readv and writev syscalls.

	* sysdeps/unix/configure.in: If eval doesn't set $unix_srcname,
	set it to $unix_syscall instead of $unix_function.
1995-10-06 04:50:55 +00:00
..
bsd Fri Sep 29 03:43:51 1995 Paul Eggert <eggert@twinsun.com> 1995-10-06 04:50:55 +00:00
common Fri Sep 29 03:43:51 1995 Paul Eggert <eggert@twinsun.com> 1995-10-06 04:50:55 +00:00
i386 * sysdeps/unix/i386/sysdep.h [HAVE_ELF] (ASM_TYPE_DIRECTIVE): 1995-09-27 16:05:25 +00:00
inet initial import 1995-02-18 01:27:10 +00:00
mips * sysdeps/unix/mips/brk.S (__brk, __curbrk): Add .end. * sysdeps/unix/mips/fork.S (fork): Likewise. * sysdeps/unix/mips/pipe.S (fork): Likewise. * sysdeps/unix/mips/sigreturn.S (__sigreturn): Likewise. * sysdeps/unix/mips/sysdep.S (sysdep_error): Likewise. * sysdeps/unix/mips/wait.S (__handler): Likewise. * sysdeps/mips/setjmp.S (__sigsetjmp): Likewise. * sysdeps/mips/bsd-setjmp.S (setjmp): Likewise. * sysdeps/unix/bsd/ultrix4/getsysinfo.S (getsysinfo): Likewise. * sysdeps/unix/bsd/ultrix4/wait3.S (waitpid): Likewise. * sysdeps/unix/bsd/ultrix4/waitpid.S (waitpid): Likewise. * sysdeps/unix/bsd/ultrix4/mips/__handler.S (__handler): Likewise. * sysdeps/unix/bsd/ultrix4/mips/sigvec.S (__raw_sigvec): Likewise. * sysdeps/unix/bsd/ultrix4/mips/start.S (__start): Likewise. * sysdeps/unix/bsd/ultrix4/mips/vfork.S (vfork): Likewise. * sysdeps/mips/bsd-_setjmp.S (setjmp): Likewise. Use $0' instead of zero' for the li instruction. 1995-04-15 02:30:20 +00:00
mman Fri Mar 3 12:24:52 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu> 1995-03-06 00:27:08 +00:00
sparc Sun Feb 19 17:46:13 1995 Roland McGrath <roland@duality.gnu.ai.mit.edu> 1995-02-20 01:08:14 +00:00
sysv Fri Sep 29 03:43:51 1995 Paul Eggert <eggert@twinsun.com> 1995-10-06 04:50:55 +00:00
_exit.S initial import 1995-02-18 01:27:10 +00:00
acct.S initial import 1995-02-18 01:27:10 +00:00
chdir.S initial import 1995-02-18 01:27:10 +00:00
chmod.S initial import 1995-02-18 01:27:10 +00:00
chown.S initial import 1995-02-18 01:27:10 +00:00
chroot.S initial import 1995-02-18 01:27:10 +00:00
close.S initial import 1995-02-18 01:27:10 +00:00
closedir.c * sysdeps/mach/hurd/dirstream.h: Define `struct __dirstream' 1995-08-28 09:00:05 +00:00
configure * sysdeps/unix/i386/sysdep.h [HAVE_ELF] (ASM_TYPE_DIRECTIVE): 1995-09-27 16:05:25 +00:00
configure.in Fri Sep 29 03:43:51 1995 Paul Eggert <eggert@twinsun.com> 1995-10-06 04:50:55 +00:00
confstr.h initial import 1995-02-18 01:27:10 +00:00
dirfd.c Fri Mar 3 12:24:52 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu> 1995-03-06 00:27:08 +00:00
dirstream.h * sysdeps/mach/hurd/dirstream.h: Define `struct __dirstream' 1995-08-28 09:00:05 +00:00
Dist initial import 1995-02-18 01:27:10 +00:00
dup.S initial import 1995-02-18 01:27:10 +00:00
errnos-tmpl.c initial import 1995-02-18 01:27:10 +00:00
errnos.awk initial import 1995-02-18 01:27:10 +00:00
execve.S initial import 1995-02-18 01:27:10 +00:00
fcntl.S initial import 1995-02-18 01:27:10 +00:00
fork.S initial import 1995-02-18 01:27:10 +00:00
fstat.S initial import 1995-02-18 01:27:10 +00:00
fsync.S initial import 1995-02-18 01:27:10 +00:00
getdents.c initial import 1995-02-18 01:27:10 +00:00
getegid.S initial import 1995-02-18 01:27:10 +00:00
geteuid.S initial import 1995-02-18 01:27:10 +00:00
getgid.S initial import 1995-02-18 01:27:10 +00:00
getlogin.c initial import 1995-02-18 01:27:10 +00:00
getpagesize.c initial import 1995-02-18 01:27:10 +00:00
getpid.S initial import 1995-02-18 01:27:10 +00:00
getppid.S initial import 1995-02-18 01:27:10 +00:00
getuid.S initial import 1995-02-18 01:27:10 +00:00
Implies initial import 1995-02-18 01:27:10 +00:00
ioctl.S initial import 1995-02-18 01:27:10 +00:00
ioctls-tmpl.c initial import 1995-02-18 01:27:10 +00:00
ioctls.awk initial import 1995-02-18 01:27:10 +00:00
kill.S initial import 1995-02-18 01:27:10 +00:00
link.S initial import 1995-02-18 01:27:10 +00:00
lseek.S initial import 1995-02-18 01:27:10 +00:00
make_errlist.c (main): Don't generate "#ifdef HAVE_WEAK_SYMBOLS" #defns. 1995-04-18 17:59:42 +00:00
Makefile * sysdeps/unix/Makefile ($(common-objpfx)ioctls): Remove NULL from 1995-10-04 21:52:33 +00:00
mk-local_lim.c initial import 1995-02-18 01:27:10 +00:00
mkfifo.c initial import 1995-02-18 01:27:10 +00:00
mknod.S initial import 1995-02-18 01:27:10 +00:00
nlist.c initial import 1995-02-18 01:27:10 +00:00
open.S initial import 1995-02-18 01:27:10 +00:00
opendir.c * sysdeps/mach/hurd/dirstream.h: Define `struct __dirstream' 1995-08-28 09:00:05 +00:00
pipestream.c initial import 1995-02-18 01:27:10 +00:00
ptrace.S initial import 1995-02-18 01:27:10 +00:00
read.S initial import 1995-02-18 01:27:10 +00:00
readdir.c * sysdeps/mach/hurd/dirstream.h: Define `struct __dirstream' 1995-08-28 09:00:05 +00:00
reboot.S initial import 1995-02-18 01:27:10 +00:00
rewinddir.c * sysdeps/mach/hurd/dirstream.h: Define `struct __dirstream' 1995-08-28 09:00:05 +00:00
seekdir.c * sysdeps/mach/hurd/dirstream.h: Define `struct __dirstream' 1995-08-28 09:00:05 +00:00
setgid.S initial import 1995-02-18 01:27:10 +00:00
setuid.S initial import 1995-02-18 01:27:10 +00:00
siglist.c initial import 1995-02-18 01:27:10 +00:00
snarf-ioctls * stdlib/strtol.c [_LIBC]: Define STDC_HEADERS. 1995-07-25 18:36:31 +00:00
start.c * sysdeps/unix/start.c: Remove spurious decl and #endif. 1995-04-04 22:18:26 +00:00
stat.S initial import 1995-02-18 01:27:10 +00:00
sync.S initial import 1995-02-18 01:27:10 +00:00
syscall.S initial import 1995-02-18 01:27:10 +00:00
sysdep.h initial import 1995-02-18 01:27:10 +00:00
system.c initial import 1995-02-18 01:27:10 +00:00
telldir.c * sysdeps/mach/hurd/dirstream.h: Define `struct __dirstream' 1995-08-28 09:00:05 +00:00
umask.S initial import 1995-02-18 01:27:10 +00:00
unlink.S initial import 1995-02-18 01:27:10 +00:00
write.S initial import 1995-02-18 01:27:10 +00:00