size_t os_vm_page_size;
#ifdef LISP_FEATURE_SB_THREAD
-#include <linux/unistd.h>
+#include <sys/syscall.h>
+#include <unistd.h>
#include <errno.h>
/* values taken from the kernel's linux/futex.h. This header file
#define FUTEX_FD (2)
#define FUTEX_REQUEUE (3)
-#define __NR_sys_futex __NR_futex
-
-_syscall4(int,sys_futex,
- int *, futex,
- int, op,
- int, val,
- struct timespec *, rel);
+#define sys_futex sbcl_sys_futex
+static inline int sys_futex (void *futex, int op, int val, struct timespec *rel)
+{
+ return syscall (SYS_futex, futex, op, val, rel);
+}
int
futex_wait(int *lock_word, int oldval)
#include <sys/stat.h>
#include <unistd.h>
#include <asm/ldt.h>
-#include <linux/unistd.h>
+#include <sys/syscall.h>
#include <sys/mman.h>
#include <linux/version.h>
#include "thread.h" /* dynamic_values_bytes */
#define user_desc modify_ldt_ldt_s
#endif
-_syscall3(int, modify_ldt, int, func, void *, ptr, unsigned long, bytecount );
+#define modify_ldt sbcl_modify_ldt
+static inline int modify_ldt (int func, void *ptr, unsigned long bytecount)
+{
+ return syscall (SYS_modify_ldt, func, ptr, bytecount);
+}
#include "validate.h"
size_t os_vm_page_size;
;;; 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".)
-"0.9.3.48"
+"0.9.3.49"