* on x86/darwin use -arch i386 flags in sb-grovel C compilation
* comment out failing sb-posix tests
* add -arch i386 flags to Config.x86-darwin CFLAGS and LINKFLAGS
* remove #include <ucontext.h> instances
"-D_FILE_OFFSET_BITS=64")
#+(and x86-64 darwin)
'("-arch" "x86_64")
"-D_FILE_OFFSET_BITS=64")
#+(and x86-64 darwin)
'("-arch" "x86_64")
+ #+(and x86 darwin)
+ '("-arch" "i386")
#+(and x86-64 sunos) '("-m64")
(list "-o"
(namestring tmp-a-dot-out)
#+(and x86-64 sunos) '("-m64")
(list "-o"
(namestring tmp-a-dot-out)
result)))
#.sb-posix::eacces)
\f
result)))
#.sb-posix::eacces)
\f
(deftest stat.1
(let* ((stat (sb-posix:stat *test-directory*))
(mode (sb-posix::stat-mode stat)))
(deftest stat.1
(let* ((stat (sb-posix:stat *test-directory*))
(mode (sb-posix::stat-mode stat)))
(logand mode (logior sb-posix::s-iread sb-posix::s-iwrite sb-posix::s-iexec)))
#.(logior sb-posix::s-iread sb-posix::s-iwrite sb-posix::s-iexec))
(logand mode (logior sb-posix::s-iread sb-posix::s-iwrite sb-posix::s-iexec)))
#.(logior sb-posix::s-iread sb-posix::s-iwrite sb-posix::s-iexec))
(deftest stat.2
(let* ((stat (sb-posix:stat "/"))
(mode (sb-posix::stat-mode stat)))
(deftest stat.2
(let* ((stat (sb-posix:stat "/"))
(mode (sb-posix::stat-mode stat)))
(< (- atime unix-now) 10))
t)
(< (- atime unix-now) 10))
t)
(deftest stat.4
(let* ((stat (sb-posix:stat (make-pathname :directory '(:absolute :up))))
(mode (sb-posix::stat-mode stat)))
(deftest stat.4
(let* ((stat (sb-posix:stat (make-pathname :directory '(:absolute :up))))
(mode (sb-posix::stat-mode stat)))
(sb-posix:s-isreg mode))
nil)
(sb-posix:s-isreg mode))
nil)
(deftest stat-mode.2
(with-stat-mode (mode *test-directory*)
(sb-posix:s-isdir mode))
(deftest stat-mode.2
(with-stat-mode (mode *test-directory*)
(sb-posix:s-isdir mode))
(sb-posix:s-issock mode))
nil)
(sb-posix:s-issock mode))
nil)
(deftest stat-mode.7
(let ((link-pathname (make-pathname :name "stat-mode.7"
:defaults *test-directory*)))
(deftest stat-mode.7
(let ((link-pathname (make-pathname :name "stat-mode.7"
:defaults *test-directory*)))
(ignore-errors (sb-posix:unlink link-pathname))))
t)
(ignore-errors (sb-posix:unlink link-pathname))))
t)
(deftest stat-mode.8
(let ((pathname (make-pathname :name "stat-mode.8"
:defaults *test-directory*)))
(deftest stat-mode.8
(let ((pathname (make-pathname :name "stat-mode.8"
:defaults *test-directory*)))
(sb-posix:closedir dir)))
t)
(sb-posix:closedir dir)))
t)
(deftest readdir/dirent-name
(let ((dir (sb-posix:opendir *current-directory*)))
(unwind-protect
(deftest readdir/dirent-name
(let ((dir (sb-posix:opendir *current-directory*)))
(unwind-protect
(deftest time.1
(plusp (sb-posix:time))
t)
(deftest time.1
(plusp (sb-posix:time))
t)
(deftest utimes.1
(let ((file (merge-pathnames #p"utimes.1" *test-directory*))
(atime (random (1- (expt 2 31))))
(deftest utimes.1
(let ((file (merge-pathnames #p"utimes.1" *test-directory*))
(atime (random (1- (expt 2 31))))
# provided with absolutely no warranty. See the COPYING and CREDITS
# files for more information.
# provided with absolutely no warranty. See the COPYING and CREDITS
# files for more information.
-CFLAGS = -g -Wall -O2 -fdollars-in-identifiers -mmacosx-version-min=10.4
-LINKFLAGS += -mmacosx-version-min=10.4
+CFLAGS = -arch i386 -g -Wall -O2 -fdollars-in-identifiers -mmacosx-version-min=10.4
+LINKFLAGS += -arch i386 -mmacosx-version-min=10.4
OS_SRC = bsd-os.c x86-bsd-os.c darwin-os.c x86-darwin-os.c darwin-dlshim.c darwin-langinfo.c
OS_LIBS = -lSystem -lc -ldl
ifdef LISP_FEATURE_SB_THREAD
OS_SRC = bsd-os.c x86-bsd-os.c darwin-os.c x86-darwin-os.c darwin-dlshim.c darwin-langinfo.c
OS_LIBS = -lSystem -lc -ldl
ifdef LISP_FEATURE_SB_THREAD
#include "globals.h"
#include "runtime.h"
#include <signal.h>
#include "globals.h"
#include "runtime.h"
#include <signal.h>
#include <limits.h>
#include <mach-o/dyld.h>
#include "bsd-os.h"
#include <limits.h>
#include <mach-o/dyld.h>
#include "bsd-os.h"
typedef ucontext_t os_context_t;
#endif
typedef ucontext_t os_context_t;
#endif
;;; checkins which aren't released. (And occasionally for internal
;;; versions, especially for internal versions off the main CVS
;;; branch, it gets hairier, e.g. "0.pre7.14.flaky4.13".)
;;; checkins which aren't released. (And occasionally for internal
;;; versions, especially for internal versions off the main CVS
;;; branch, it gets hairier, e.g. "0.pre7.14.flaky4.13".)