Raymond Toy pushed to branch issue-130-file-author-in-c at cmucl / cmucl
Commits:
ec14c5b1 by Raymond Toy at 2022-08-29T14:07:02-07:00
Include stdlib.h and unistd.h
stdlib.h is needed for malloc and friends. unistd.h is needed for
sysconf.
- - - - -
1 changed file:
- src/lisp/os-common.c
Changes:
=====================================
src/lisp/os-common.c
=====================================
@@ -11,8 +11,10 @@
#include <pwd.h>
#include <stdbool.h>
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
+#include <unistd.h>
#include <time.h>
#include "os.h"
View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/-/commit/ec14c5b16fc37e56023f069…
--
View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/-/commit/ec14c5b16fc37e56023f069…
You're receiving this email because of your account on gitlab.common-lisp.net.
Raymond Toy pushed to branch master at cmucl / cmucl
Commits:
8b9a14fc by Raymond Toy at 2022-08-23T21:39:02-07:00
Add docstring for unix:unix-uname
Update pot file too since the docstring changed.
No functional changes.
- - - - -
2 changed files:
- src/code/unix.lisp
- src/i18n/locale/cmucl-unix.pot
Changes:
=====================================
src/code/unix.lisp
=====================================
@@ -2726,6 +2726,14 @@
(domainname (array char 65))))
(defun unix-uname ()
+ _N"Unix-uname returns information from the uname(2) system call.
+ The return values are
+
+ Name of the operating system
+ Name of this node within some implementation-defined network, if any
+ Release level of this operating system
+ Version level of this operating system release
+ Name of the hardware type on which the system is running"
(with-alien ((names (struct utsname)))
(syscall* (#-(or freebsd (and x86 solaris)) "uname"
#+(and x86 solaris) "nuname" ; See /usr/include/sys/utsname.h
=====================================
src/i18n/locale/cmucl-unix.pot
=====================================
@@ -1365,6 +1365,18 @@ msgid ""
" and its children."
msgstr ""
+#: src/code/unix.lisp
+msgid ""
+"Unix-uname returns information from the uname(2) system call.\n"
+" The return values are\n"
+"\n"
+" Name of the operating system\n"
+" Name of this node within some implementation-defined network, if any\n"
+" Release level of this operating system\n"
+" Version level of this operating system release\n"
+" Name of the hardware type on which the system is running"
+msgstr ""
+
#: src/code/unix.lisp
msgid ""
"Get the value of the environment variable named Name. If no such\n"
View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/-/commit/8b9a14fc3a2c684a538e68a…
--
View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/-/commit/8b9a14fc3a2c684a538e68a…
You're receiving this email because of your account on gitlab.common-lisp.net.
Raymond Toy pushed to branch issue-125-unix-stat-wrong at cmucl / cmucl
Commits:
834ff140 by Raymond Toy at 2022-08-23T15:29:31-07:00
Disable debugging prints
- - - - -
1 changed file:
- src/lisp/os-common.c
Changes:
=====================================
src/lisp/os-common.c
=====================================
@@ -614,7 +614,7 @@ os_stat(const char* path, u_int64_t *dev, u_int64_t *ino, unsigned int *mode, u_
return rc;
}
-#if 1
+#if 0
/*
* Useful prints to see the actual size of the various
* fields. Helpful for porting this to other OSes that we haven't
View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/-/commit/834ff140fb6080c2a7008d4…
--
View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/-/commit/834ff140fb6080c2a7008d4…
You're receiving this email because of your account on gitlab.common-lisp.net.
Raymond Toy pushed to branch issue-125-unix-stat-wrong at cmucl / cmucl
Commits:
bf5b52fa by Carl S. Shapiro at 2022-08-23T22:28:11+00:00
Keep include files sorted
- - - - -
1 changed file:
- src/lisp/os-common.c
Changes:
=====================================
src/lisp/os-common.c
=====================================
@@ -10,8 +10,8 @@
#include <netdb.h>
#include <stdio.h>
#include <string.h>
-#include <time.h>
#include <sys/stat.h>
+#include <time.h>
#include "os.h"
#include "internals.h"
View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/-/commit/bf5b52faf340040fa9a53a8…
--
View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/-/commit/bf5b52faf340040fa9a53a8…
You're receiving this email because of your account on gitlab.common-lisp.net.
Raymond Toy pushed to branch issue-125-unix-stat-wrong at cmucl / cmucl
Commits:
164bd106 by Raymond Toy at 2022-08-20T15:18:05-07:00
Update pot file
The docstrings for unix-stat and friends have changed, so the pot file
needs updating.
- - - - -
1 changed file:
- src/i18n/locale/cmucl-unix.pot
Changes:
=====================================
src/i18n/locale/cmucl-unix.pot
=====================================
@@ -556,27 +556,6 @@ msgid ""
""
msgstr ""
-#: src/code/unix.lisp
-msgid ""
-"Unix-stat retrieves information about the specified\n"
-" file returning them in the form of multiple values.\n"
-" See the UNIX Programmer's Manual for a description\n"
-" of the values returned. If the call fails, then NIL\n"
-" and an error number is returned instead."
-msgstr ""
-
-#: src/code/unix.lisp
-msgid ""
-"Unix-lstat is similar to unix-stat except the specified\n"
-" file must be a symbolic link."
-msgstr ""
-
-#: src/code/unix.lisp
-msgid ""
-"Unix-fstat is similar to unix-stat except the file is specified\n"
-" by the file descriptor fd."
-msgstr ""
-
#: src/code/unix.lisp
msgid "The calling process."
msgstr ""
View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/-/commit/164bd106c8aed710af34a30…
--
View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/-/commit/164bd106c8aed710af34a30…
You're receiving this email because of your account on gitlab.common-lisp.net.
Raymond Toy pushed to branch issue-125-unix-stat-wrong at cmucl / cmucl
Commits:
fdec8705 by Raymond Toy at 2022-08-14T08:34:55-07:00
Set _LARGEFILE_SOURCE and _FILE_OFFSET_BITS here
Enable large file support by setting the c flags. Needed by
os-common.c to support large files for os_stat and friends.
- - - - -
2 changed files:
- src/lisp/Config.x86_linux
- src/lisp/Config.x86_linux_clang
Changes:
=====================================
src/lisp/Config.x86_linux
=====================================
@@ -4,6 +4,7 @@ include Config.x86_common
CFLAGS += $(COPT)
CPPFLAGS += -m32 -D__NO_CTYPE
CFLAGS += -rdynamic -march=pentium4 -mfpmath=sse -mtune=generic
+CFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
UNDEFSYMPATTERN = -Xlinker -u -Xlinker &
ASSEM_SRC += linux-stubs.S
=====================================
src/lisp/Config.x86_linux_clang
=====================================
@@ -9,6 +9,7 @@ CFLAGS += $(COPT)
# (-mtune=pentium4), the first chip to have sse2; and finally generate
# code assuming instructions can trap (-ftrapping-math).
CFLAGS += -msse2 -mtune=pentium4 -ftrapping-math
+CFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
UNDEFSYMPATTERN = -Xlinker -u -Xlinker &
ASSEM_SRC += linux-stubs.S
View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/-/commit/fdec87055478c8f2d10a6c3…
--
View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/-/commit/fdec87055478c8f2d10a6c3…
You're receiving this email because of your account on gitlab.common-lisp.net.