X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fruntime%2Fbsd-os.c;h=eeaf7550714341d9e680a34efac3d888e87ec11e;hb=6d9e2243954872457115bbb9ac1ecb1d161acced;hp=1b1db92e3f72a37f2b04ba3aadfe3702b278eb65;hpb=3257c25015012253a096c990d5809daee974d057;p=sbcl.git diff --git a/src/runtime/bsd-os.c b/src/runtime/bsd-os.c index 1b1db92..eeaf755 100644 --- a/src/runtime/bsd-os.c +++ b/src/runtime/bsd-os.c @@ -22,6 +22,7 @@ #include #include #include +#include #include #include #include "sbcl.h" @@ -82,7 +83,7 @@ static void openbsd_init(); void os_init(char *argv[], char *envp[]) { - os_vm_page_size = getpagesize(); + os_vm_page_size = BACKEND_PAGE_BYTES; #ifdef __NetBSD__ netbsd_init(); @@ -90,6 +91,8 @@ os_init(char *argv[], char *envp[]) freebsd_init(); #elif defined(__OpenBSD__) openbsd_init(); +#elif defined(LISP_FEATURE_DARWIN) + darwin_init(); #endif } @@ -238,7 +241,7 @@ os_install_interrupt_handlers(void) memory_fault_handler); #endif -#ifdef LISP_FEATURE_SB_THREAD +#ifdef THREADS_USING_GCSIGNAL undoably_install_low_level_interrupt_handler(SIG_STOP_FOR_GC, sig_stop_for_gc_handler); #endif @@ -340,6 +343,12 @@ _readdir(DIR *dirp) return readdir(dirp); } +int +_utime(const char *file, const struct utimbuf *timep) +{ + return utime(file, timep); +} + /* Used in sb-bsd-sockets. */ int _socket(int domain, int type, int protocol) @@ -383,8 +392,8 @@ static void freebsd_init() #endif /* LISP_FEATURE_X86 */ } -#if defined(LISP_FEATURE_SB_THREAD) && !defined(LISP_FEATURE_SB_PTHREAD_FUTEX) \ - && !defined(LISP_FEATURE_SB_LUTEX) +#if defined(LISP_FEATURE_SB_THREAD) && defined(LISP_FEATURE_SB_FUTEX) \ + && !defined(LISP_FEATURE_SB_PTHREAD_FUTEX) int futex_wait(int *lock_word, long oldval, long sec, unsigned long usec) {