7
7
This file is part of Valgrind, a dynamic binary instrumentation
10
Copyright (C) 2000-2006 Julian Seward
10
Copyright (C) 2000-2007 Julian Seward
13
13
This program is free software; you can redistribute it and/or
65
65
const struct vki_sigaction* act,
66
66
struct vki_sigaction* oldact );
68
extern Int VG_(sigtimedwait)( const vki_sigset_t *, vki_siginfo_t *,
69
const struct vki_timespec * );
71
extern Int VG_(signal) ( Int signum, void (*sighandler)(Int) );
73
68
extern Int VG_(kill) ( Int pid, Int signo );
74
69
extern Int VG_(tkill) ( ThreadId tid, Int signo );
71
/* A cut-down version of POSIX sigtimedwait: poll for pending signals
72
mentioned in the sigset_t, and if any are present, select one
73
arbitrarily, return its number (which must be > 0), and put
74
auxiliary info about it in the siginfo_t, and make it
75
not-pending-any-more. If none are pending, return zero. The _zero
76
refers to the fact that there is zero timeout, so if no signals are
77
pending it returns immediately. Perhaps a better name would be
78
'sigpoll'. Returns -1 on error, 0 if no signals pending, and n > 0
79
if signal n was selected. */
80
extern Int VG_(sigtimedwait_zero)( const vki_sigset_t *, vki_siginfo_t * );
77
82
#endif // __PUB_CORE_LIBCSIGNAL_H