Displaying 6 results from an estimated 6 matches for "__nr_fork".
2014 Jun 10
4
[LLVMdev] use of undeclared identifier '__NR_*' error while building clang
...of undeclared identifier '__NR_open'
return internal_syscall(SYSCALL(open), (uptr)filename, flags, mode);
^
--------------
/home/sandeep/llvm_clang/llvm/projects/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc:516:27:
error: use of undeclared identifier '__NR_fork'
return internal_syscall(SYSCALL(fork));
^
/home/sandeep/llvm_clang/llvm/projects/compiler-rt/lib/sanitizer_common/sanitizer_syscall_generic.inc:17:24:
note: expanded from macro 'SYSCALL'
# define SYSCALL(name) __NR_ ## name
^
<scrat...
2004 Oct 18
3
arch/ia64/pipe.c:5:23: syscommon.h: No such file or directory
Peter,
current klibc does not compile in ia64:
gcc -Wp,-MT,arch/ia64/pipe.o,-MD,arch/ia64/.pipe.o.d -Os -fomit-frame-pointer -nostdinc -iwithprefix include -D__KLIBC__ -DBITSIZE=64 -I../include/arch/ia64 -I../include/bits64 -I../include -I../linux/include -I../linux/include2 -I../linux/include -DWITH_ERRLIST -W -Wall -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Winline -c -o
2004 Mar 14
0
[PATCH] fix klibc build against current kernel headers
...86_64.
Moving one include fixes the compile.
--- klibc/fork.c
+++ klibc/fork.c 2004/03/14 15:04:51
@@ -5,8 +5,8 @@
* doesn't have sys_fork, only sys_clone...
*/
-#include <sys/syscall.h>
#include <signal.h>
+#include <sys/syscall.h>
#include <unistd.h>
#ifdef __NR_fork
--- klibc/mmap.c
+++ klibc/mmap.c 2004/03/14 15:04:55
@@ -4,8 +4,8 @@
#include <stdint.h>
#include <errno.h>
-#include <sys/syscall.h>
#include <sys/mman.h>
+#include <sys/syscall.h>
#include <asm/page.h> /* For PAGE_SHIFT */
#if defined(__sparc__)
--...
2013 Aug 02
3
[PATCH trivial] include: uapi: standard all files' macro prefix and suffix, excluding "linux/" sub-directory
...e/uapi/asm-generic/unistd.h
index a20a9b4..6e26d0a 100644
--- a/include/uapi/asm-generic/unistd.h
+++ b/include/uapi/asm-generic/unistd.h
@@ -1,3 +1,6 @@
+#ifndef _UAPI_ASM_GENERIC_UNISTD_H
+#define _UAPI_ASM_GENERIC_UNISTD_H
+
#include <asm/bitsperlong.h>
/*
@@ -902,3 +905,5 @@ __SYSCALL(__NR_fork, sys_ni_syscall)
#define __NR_lstat64 __NR3264_lstat
#endif
#endif
+
+#endif /* _UAPI_ASM_GENERIC_UNISTD_H */
diff --git a/include/uapi/drm/drm.h b/include/uapi/drm/drm.h
index 272580c..1bbf3ec 100644
--- a/include/uapi/drm/drm.h
+++ b/include/uapi/drm/drm.h
@@ -33,8 +33,8 @@
* OTHER DEALINGS...
2013 Aug 02
3
[PATCH trivial] include: uapi: standard all files' macro prefix and suffix, excluding "linux/" sub-directory
...e/uapi/asm-generic/unistd.h
index a20a9b4..6e26d0a 100644
--- a/include/uapi/asm-generic/unistd.h
+++ b/include/uapi/asm-generic/unistd.h
@@ -1,3 +1,6 @@
+#ifndef _UAPI_ASM_GENERIC_UNISTD_H
+#define _UAPI_ASM_GENERIC_UNISTD_H
+
#include <asm/bitsperlong.h>
/*
@@ -902,3 +905,5 @@ __SYSCALL(__NR_fork, sys_ni_syscall)
#define __NR_lstat64 __NR3264_lstat
#endif
#endif
+
+#endif /* _UAPI_ASM_GENERIC_UNISTD_H */
diff --git a/include/uapi/drm/drm.h b/include/uapi/drm/drm.h
index 272580c..1bbf3ec 100644
--- a/include/uapi/drm/drm.h
+++ b/include/uapi/drm/drm.h
@@ -33,8 +33,8 @@
* OTHER DEALINGS...
2013 Aug 02
3
[PATCH trivial] include: uapi: standard all files' macro prefix and suffix, excluding "linux/" sub-directory
...e/uapi/asm-generic/unistd.h
index a20a9b4..6e26d0a 100644
--- a/include/uapi/asm-generic/unistd.h
+++ b/include/uapi/asm-generic/unistd.h
@@ -1,3 +1,6 @@
+#ifndef _UAPI_ASM_GENERIC_UNISTD_H
+#define _UAPI_ASM_GENERIC_UNISTD_H
+
#include <asm/bitsperlong.h>
/*
@@ -902,3 +905,5 @@ __SYSCALL(__NR_fork, sys_ni_syscall)
#define __NR_lstat64 __NR3264_lstat
#endif
#endif
+
+#endif /* _UAPI_ASM_GENERIC_UNISTD_H */
diff --git a/include/uapi/drm/drm.h b/include/uapi/drm/drm.h
index 272580c..1bbf3ec 100644
--- a/include/uapi/drm/drm.h
+++ b/include/uapi/drm/drm.h
@@ -33,8 +33,8 @@
* OTHER DEALINGS...