search for: __syscall

Displaying 14 results from an estimated 14 matches for "__syscall".

2013 Dec 09
2
Re: Question about setns recognising in libvirt autoconf
...fix this problem? What's the result of grep -R "setns" /usr/include/* Hi Gaofeng, The result you want is as following: root@debian:~/github/libvirt# grep -R "setns" /usr/include/* /usr/include/asm-generic/unistd.h:#define __NR_setns 268 /usr/include/asm-generic/unistd.h:__SYSCALL(__NR_setns, sys_setns) /usr/include/x86_64-linux-gnu/bits/syscall.h:#define SYS_setns __NR_setns /usr/include/x86_64-linux-gnu/asm/unistd_64.h:#define __NR_setns 308 /usr/include/x86_64-linux-gnu/asm/unistd_64.h:__SYSCALL(__NR_setns, sys_setns) /usr/include/x86_64-lin...
2006 Jun 26
0
[klibc 37/43] x86_64 support for klibc
...KLIBC_ARCHSYS_H + +/* The x86-64 syscall headers are needlessly inefficient */ + +#undef _syscall0 +#undef _syscall1 +#undef _syscall2 +#undef _syscall3 +#undef _syscall4 +#undef _syscall5 +#undef _syscall6 + +#define _syscall0(type,name) \ +type name (void) \ +{ \ +long __res; \ +__asm__ volatile (__syscall \ + : "=a" (__res) \ + : "0" (__NR_##name) \ + : __syscall_clobber); \ +__syscall_return(type,__res); \ +} + +#define _syscall1(type,name,type1,arg1) \ +type name (type1 arg1) \ +{ \ +long __res; \ +__asm__ volatile (__syscall \ + : "=a" (__...
2014 Jun 10
4
[LLVMdev] use of undeclared identifier '__NR_*' error while building clang
Hi guys, I am following this[1] tutorial to install clang. However, I have made a small change in the configure command, and I am running it with '--enable-optimized' option to avoid the debug build. I am getting the errors (given at the end) related to *undeclared identifiers '__NR_*'*. Can someone please provide some input about how to tackle this issue? On my other machine, I
2013 Dec 09
0
Re: Question about setns recognising in libvirt autoconf
...fix this problem? What's the result of grep -R "setns" /usr/include/* Hi Gaofeng, The result you want is as following: root@debian:~/github/libvirt# grep -R "setns" /usr/include/* /usr/include/asm-generic/unistd.h:#define __NR_setns 268 /usr/include/asm-generic/unistd.h:__SYSCALL(__NR_setns, sys_setns) /usr/include/x86_64-linux-gnu/bits/syscall.h:#define SYS_setns __NR_setns /usr/include/x86_64-linux-gnu/asm/unistd_64.h:#define __NR_setns 308 /usr/include/x86_64-linux-gnu/asm/unistd_64.h:__SYSCALL(__NR_setns, sys_setns) /usr/include/x86_64-lin...
2013 Dec 09
2
Question about setns recognising in libvirt autoconf
Hi experts, When I test lxc container with lxc-enter-namespace command, It reported an error as following: root@debian:~/github/libvirt# vir lxc-enter-namespace lxc --noseclabel /bin/df -hl error: Cannot get namespaces for 3145: Function not implemented It seems that setns is not supported by my kernel. But from the following info, It seemed the reason is just libvirt/autoconf doesn't
2011 Mar 30
0
(fwd) Bug#618616: arm build failure with latest binutils - usr/klibc/syscalls/_exit.S:29: Error: .size expression does not evaluate to a constant
...sembler anyway Author: Lo?c Minier <loic.minier at linaro.org> --- klibc-1.5.20.orig/usr/klibc/arch/arm/sysstub.ph +++ klibc-1.5.20/usr/klibc/arch/arm/sysstub.ph @@ -52,7 +52,7 @@ sub make_sysstub($$$$$@) { print OUT "#endif /* __thumb__*/\n"; - print OUT " .size __syscall${i},.-__syscall${i}\n"; + print OUT " .size ${fname},.-${fname}\n"; } 1; ----- End forwarded message -----
2011 Aug 08
0
[PATCH/RFC] Add initial avr32 port
...igreturn, . - __sigreturn diff --git a/usr/klibc/arch/avr32/syscall.S b/usr/klibc/arch/avr32/syscall.S new file mode 100644 index 0000000..230542f --- /dev/null +++ b/usr/klibc/arch/avr32/syscall.S @@ -0,0 +1,24 @@ +/* + * arch/avr32/syscall.S + * + * System call common handling + */ + + .type __syscall_common, at function + .globl __syscall_common + + .align 4 +__syscall_common: + ld.w r3, sp[16] + scall + cp.w r12, -4095 + brlo .Ldone + neg r12 + lddpc r3, .Lerrno + st.w r3[0], r12 +.Ldone: + ldm sp++, r3,r5,r6,pc + + .align 4 +.Lerrno: +...
2006 Jun 26
0
[klibc 22/43] arm support for klibc
...mp,.-longjmp + +#endif /* __thumb__ */ diff --git a/usr/klibc/arch/arm/syscall.S b/usr/klibc/arch/arm/syscall.S new file mode 100644 index 0000000..5bc291d --- /dev/null +++ b/usr/klibc/arch/arm/syscall.S @@ -0,0 +1,61 @@ +/* + * arch/arm/syscall.S + * + * System call common handling + */ + + .type __syscall_common,#function + .globl __syscall_common +#ifndef __thumb__ + /* ARM version - this is executed after the swi, unless + we are compiled in EABI mode */ + + .balign 4 +__syscall_common: +#ifdef __ARM_EABI__ + ldr r4, [sp,#16] + ldr r5, [sp,#20] + ldr r7, [lr] + swi 0 +#endif + cmn r0...
2013 Jul 31
29
[PATCH 0/9] tools: remove or disable old/useless/unused/unmainted stuff
depends on "autoconf: regenerate configure scripts with 4.4 version" This series removes some of the really old deadwood from the tools build and makes some other things which are on their way out configurable at build time with a default depending on how far down the slope I judge them to be. * nuke in tree copy of libaio * nuke obsolete tools: xsview, miniterm, lomount & sv *
2013 Aug 02
3
[PATCH trivial] include: uapi: standard all files' macro prefix and suffix, excluding "linux/" sub-directory
...h b/include/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...
2013 Aug 02
3
[PATCH trivial] include: uapi: standard all files' macro prefix and suffix, excluding "linux/" sub-directory
...h b/include/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...
2013 Aug 02
3
[PATCH trivial] include: uapi: standard all files' macro prefix and suffix, excluding "linux/" sub-directory
...h b/include/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...
2009 May 03
6
[RFC] The reflink(2) system call.
Hi everyone, I described the reflink operation at the Linux Storage & Filesystems Workshop last month. Originally implemented as an ocfs2-specific ioctl, the consensus was that it should be a syscall from the get-go. Here's some first-cut patches. For people who have not seen reflink, either at LSF or on the ocfs2 wiki, the first patch contains Documentation/filesystems/reflink.txt to
2006 Jun 28
35
[klibc 00/31] klibc as a historyless patchset (updated and reorganized)
I have updated the klibc patchset based on feedback received. In particular, the patchset has been reorganized so as not to break git-bisect. Additionally, this updates the patch base to 2.6.17-git12 (d38b69689c349f35502b92e20dafb30c62d49d63) and klibc 1.4.8; the main difference on the klibc side is removal of obsolete code. This is also available as a git tree at: