X-Git-Url: https://granicus.if.org/sourcecode?a=blobdiff_plain;f=defs.h;h=7271280ca2046617ac81ab084c676bc45af20281;hb=3138213bc9a827a372ad9f8009ebcc5d8797ce2d;hp=0f516b6e7ac9eb590f8adbcc59a667bb95ec52df;hpb=696381ec63ec200c5211643e4a4324d58b3031c4;p=strace diff --git a/defs.h b/defs.h index 0f516b6e..7271280c 100644 --- a/defs.h +++ b/defs.h @@ -488,6 +488,7 @@ extern const struct xlat open_access_modes[]; #define TRACE_PROCESS 010 /* Trace process-related syscalls. */ #define TRACE_SIGNAL 020 /* Trace signal-related syscalls. */ #define TRACE_DESC 040 /* Trace file descriptor-related syscalls. */ +#define SYSCALL_NEVER_FAILS 0100 /* Syscall is always successful. */ typedef enum { CFLAG_NONE = 0, @@ -549,6 +550,7 @@ extern void sprint_timespec(char *, struct tcb *, long); #ifdef HAVE_SIGINFO_T extern void printsiginfo(siginfo_t *, int); #endif +extern void printfd(struct tcb *, int); extern void printsock(struct tcb *, long, int); extern void print_sock_optmgmt(struct tcb *, long, int); extern void printrusage(struct tcb *, long); @@ -588,6 +590,7 @@ extern int stream_ioctl(struct tcb *, int, int); #ifdef LINUX 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 extern int tv_nz(struct timeval *); @@ -601,7 +604,8 @@ extern void tv_div(struct timeval *, struct timeval *, int); #ifdef SUNOS4 extern int fixvfork(struct tcb *); #endif -#if !(defined(LINUX) && !defined(SPARC) && !defined(SPARC64) && !defined(IA64)) +#if !(defined(LINUX) && !defined(SPARC) && !defined(SPARC64) && !defined(IA64) \ + && !defined(SH)) extern long getrval2(struct tcb *); #endif #ifdef USE_PROCFS @@ -616,12 +620,11 @@ extern int proc_open(struct tcb *tcp, int attaching); #define printtv_special(tcp, addr) \ printtv_bitness((tcp), (addr), BITNESS_CURRENT, 1) -#ifdef __GNUC__ extern void tprintf(const char *fmt, ...) - __attribute__ ((format (printf, 1, 2))); -#else -extern void tprintf(const char *fmt, ...); +#ifdef __GNUC__ + __attribute__ ((format (printf, 1, 2))) #endif + ; #ifndef HAVE_STRERROR const char *strerror(int);