export TAR_OPTIONS = --owner=0 --group=0 --numeric-owner --mode=go-w,go+rX
-if LINUX
-
IOCTLDIR = /usr/include
IOCTLASM = asm
ioctldefs.h: ioctls.h ;
endif
-endif
-
-if LINUX
ioctlent_h = $(builddir)/$(OS)/ioctlent.h
BUILT_SOURCES += $(ioctlent_h)
cat $(ioctlent_h_deps) | \
$(COMPILE) -E -P - | \
LC_ALL=C sort -u -k3,3 -k2,2 > $@
-
-endif
/* Maximum number of args to a syscall.
*
- * Make sure that all entries in all syscallent.h files
- * have nargs <= MAX_ARGS!
+ * Make sure that all entries in all syscallent.h files have nargs <= MAX_ARGS!
* linux/<ARCH>/syscallent.h: all have nargs <= 6.
*/
#ifndef MAX_ARGS
extern int term_ioctl(struct tcb *, long, long);
extern int sock_ioctl(struct tcb *, long, long);
extern int proc_ioctl(struct tcb *, int, int);
-extern int stream_ioctl(struct tcb *, int, int);
extern int rtc_ioctl(struct tcb *, long, long);
extern int scsi_ioctl(struct tcb *, long, long);
extern int block_ioctl(struct tcb *, long, long);
}
#endif
-
/* directory */
int
sys_chdir(struct tcb *tcp)
return term_ioctl(tcp, code, arg);
case 0x89:
return sock_ioctl(tcp, code, arg);
-#ifdef HAVE_SYS_STREAM_H
- case 'S':
- return stream_ioctl(tcp, code, arg);
-#endif /* HAVE_SYS_STREAM_H */
case 'p':
return rtc_ioctl(tcp, code, arg);
case 0x03:
return buf;
}
-# if defined POWERPC64 || defined X86_64
+# if defined(POWERPC64) || defined(X86_64)
static void
print_rlimit32(struct tcb *tcp)
{
else {
if (syserror(tcp) || !verbose(tcp))
tprintf("%#lx", tcp->u_arg[1]);
-# if defined POWERPC64 || defined X86_64
+# if defined(POWERPC64) || defined(X86_64)
else if (current_personality == 1)
print_rlimit32(tcp);
# endif
tprints(", ");
if (!verbose(tcp))
tprintf("%#lx", tcp->u_arg[1]);
-# if defined POWERPC64 || defined X86_64
+# if defined(POWERPC64) || defined(X86_64)
else if (current_personality == 1)
print_rlimit32(tcp);
# endif
# define NSIG 32
#endif
-
-
#ifdef HAVE_SIGACTION
-#if defined I386 || defined X86_64
+#if defined(I386) || defined(X86_64)
/* The libc headers do not define this constant since it should only be
used by the implementation. So we define it here. */
# ifndef SA_RESTORER
return 0;
}
-
-
#if !defined SS_ONSTACK
#define SS_ONSTACK 1
#define SS_DISABLE 2
#ifdef HAVE_SYS_CONF_H
#include <sys/conf.h>
#endif
-#ifdef HAVE_SYS_STREAM_H
-#include <sys/stream.h>
-#endif
-#ifdef HAVE_SYS_TIHDR_H
-#include <sys/tihdr.h>
-#endif
-
#ifndef HAVE_STROPTS_H
#define RS_HIPRI 1
#define MOREDATA 2
#endif /* !HAVE_STROPTS_H */
-#ifdef HAVE_SYS_TIUSER_H
-#include <sys/tiuser.h>
-#include <sys/sockmod.h>
-#include <sys/timod.h>
-#endif /* HAVE_SYS_TIUSER_H */
-
static const struct xlat msgflags[] = {
{ RS_HIPRI, "RS_HIPRI" },
{ 0, NULL },
int
printllval(struct tcb *tcp, const char *format, int llarg)
{
-# if defined X86_64 || defined POWERPC64
+# if defined(X86_64) || defined(POWERPC64)
if (current_personality == 0) {
tprintf(format, tcp->u_arg[llarg]);
llarg++;