Raymond Toy pushed to branch issue-444-stat-with-64-bit-time-t at cmucl / cmucl
Commits:
-
885d88eb
by Raymond Toy at 2025-10-10T07:37:55-07:00
-
145605a0
by Raymond Toy at 2025-10-10T07:39:17-07:00
3 changed files:
Changes:
| ... | ... | @@ -69,7 +69,7 @@ |
| 69 | 69 | |
| 70 | 70 | (def-alien-type time-t
|
| 71 | 71 | #-(or bsd linux alpha) unsigned-long
|
| 72 | - #+linux long
|
|
| 72 | + #+linux int64-t
|
|
| 73 | 73 | #+(and bsd (not netbsd)) long
|
| 74 | 74 | #+(and bsd netbsd) int64-t
|
| 75 | 75 | #+alpha unsigned-int)
|
| ... | ... | @@ -136,8 +136,8 @@ |
| 136 | 136 | |
| 137 | 137 | (def-alien-type nil
|
| 138 | 138 | (struct timeval
|
| 139 | - (tv-sec #-linux time-t #+linux int) ; seconds
|
|
| 140 | - (tv-usec int))) ; and microseconds
|
|
| 139 | + (tv-sec time-t) ; seconds
|
|
| 140 | + (tv-usec long))) ; and microseconds
|
|
| 141 | 141 | |
| 142 | 142 | #+(or linux BSD)
|
| 143 | 143 | (def-alien-type nil
|
| ... | ... | @@ -1721,12 +1721,6 @@ |
| 1721 | 1721 | (void-syscall ("symlink" c-string c-string)
|
| 1722 | 1722 | (%name->file name1) (%name->file name2)))
|
| 1723 | 1723 | |
| 1724 | -(def-alien-type nil
|
|
| 1725 | - (struct timeval
|
|
| 1726 | - (tv-sec time-t) ; seconds
|
|
| 1727 | - (tv-usec #-linux int
|
|
| 1728 | - #+linux time-t))) ; and microseconds
|
|
| 1729 | - |
|
| 1730 | 1724 | (def-alien-type nil
|
| 1731 | 1725 | (struct timezone
|
| 1732 | 1726 | (tz-minuteswest int) ; minutes west of Greenwich
|
| ... | ... | @@ -4,7 +4,7 @@ include Config.x86_common |
| 4 | 4 | CFLAGS += $(COPT)
|
| 5 | 5 | CPPFLAGS += -m32
|
| 6 | 6 | CFLAGS += -rdynamic -march=pentium4 -mfpmath=sse -mtune=generic
|
| 7 | -CFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
|
|
| 7 | +CFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64
|
|
| 8 | 8 | |
| 9 | 9 | UNDEFSYMPATTERN = -Xlinker -u -Xlinker &
|
| 10 | 10 | ASSEM_SRC += linux-stubs.S
|
| ... | ... | @@ -5,11 +5,6 @@ |
| 5 | 5 | |
| 6 | 6 | */
|
| 7 | 7 | |
| 8 | -#ifdef __linux__
|
|
| 9 | -/* Want 64-bit time_t values for stat and friends */
|
|
| 10 | -#define _TIME_BITS 64
|
|
| 11 | -#endif
|
|
| 12 | - |
|
| 13 | 8 | #include <assert.h>
|
| 14 | 9 | #include <errno.h>
|
| 15 | 10 | #include <langinfo.h>
|