Messages in this thread |  | | | Date | Wed, 17 Aug 2011 22:12:20 +0200 | | Subject | Re: [patch 05/36] Hexagon: Add syscalls | | From | Jonas Bonn <> |
| |
> + > +#define __ARCH_WANT_SYSCALL_DEPRECATED > + > +#ifndef __GLIBC__ > +/* It seems these are all needed for uClibc... > + * However, if glibc is compiled w/ these turned on, then it will > + * will fail (typically with 32/64-bit compat problems). */ > +#define __ARCH_WANT_SYSCALL_OFF_T > +#define __ARCH_WANT_SYSCALL_NO_AT > +#define __ARCH_WANT_SYSCALL_NO_FLAGS > +#endif > +
These are no longer appropriate for the mainline kernel. These definitions are mainly intended to be used during a transitional period until the necessary changes can be made in the required C library.
The recommendation is to just carry these defines as an external patch while the necessary changes are made in uClibc. I've just about got the necessary changes done and will send them to the uClibc mailing list shortly, so hopefully the need for these defines will go away really soon now.
> +asmlinkage int sys_fork(void) > +{ > + struct pt_regs *pregs = current_thread_info()->regs; > + > + return do_fork(SIGCHLD, pregs->SP, pregs, 0, NULL, NULL); > +} > + > +asmlinkage int sys_vfork(void) > +{ > + struct pt_regs *pregs = current_thread_info()->regs; > + > + return do_fork(CLONE_VFORK | CLONE_VM | SIGCHLD, > + pregs->SP, pregs, 0, NULL, NULL); > +}
These two are deprecated.
/Jonas -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|  |