~bkerensa/ubuntu/raring/valgrind/merge-from-deb

« back to all changes in this revision

Viewing changes to coregrind/pub_core_libcsignal.h

  • Committer: Bazaar Package Importer
  • Author(s): Andrés Roldán
  • Date: 2008-06-13 02:31:40 UTC
  • mto: (1.4.1 upstream) (2.2.1 squeeze)
  • mto: This revision was merged to the branch mainline in revision 24.
  • Revision ID: james.westby@ubuntu.com-20080613023140-iwk33rz9rhvfkr96
Import upstream version 3.3.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
   This file is part of Valgrind, a dynamic binary instrumentation
8
8
   framework.
9
9
 
10
 
   Copyright (C) 2000-2006 Julian Seward
 
10
   Copyright (C) 2000-2007 Julian Seward
11
11
      jseward@acm.org
12
12
 
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 );
67
67
 
68
 
extern Int VG_(sigtimedwait)( const vki_sigset_t *, vki_siginfo_t *, 
69
 
                              const struct vki_timespec * );
70
 
 
71
 
extern Int VG_(signal)      ( Int signum, void (*sighandler)(Int) );
72
 
 
73
68
extern Int VG_(kill)        ( Int pid, Int signo );
74
69
extern Int VG_(tkill)       ( ThreadId tid, Int signo );
75
70
 
 
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 * );
76
81
 
77
82
#endif   // __PUB_CORE_LIBCSIGNAL_H
78
83