Main Page | Modules | Data Structures | File List | Data Fields | Globals | Related Pages

sigsafe.h File Reference

Alternate system call wrappers which provide signal safety. More...

#include <sigsafe_config.h>
#include <signal.h>
#include <ucontext.h>
#include <sys/select.h>
#include <sys/types.h>
#include <sys/resource.h>
#include <sys/wait.h>
#include <sys/time.h>
#include <sys/socket.h>
#include <unistd.h>
#include <stddef.h>
#include <setjmp.h>
#include <time.h>

Include dependency graph for sigsafe.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Typedefs

typedef void(* sigsafe_user_handler_t )(int, siginfo_t *, ucontext_t *, intptr_t)
 User-specified handler type.


Functions

int sigsafe_install_handler (int signum, sigsafe_user_handler_t handler)
 Installs a safe signal handler.

int sigsafe_install_tsd (intptr_t userdata, void(*destructor)(intptr_t))
 Installs thread-specific data.

intptr_t sigsafe_clear_received (void)
 Clears the signal received flag for this thread.

int sigsafe_read (int fd, void *buf, size_t count)
 Signal-safe read(2).

int sigsafe_readv (int d, const struct iovec *iov, int iovcnt)
 Signal-safe readv(2).

int sigsafe_write (int fd, const void *buf, size_t count)
 Signal-safe write(2).

int sigsafe_writev (int d, const struct iovec *iov, int iovcnt)
 Signal-safe writev(2).

int sigsafe_wait4 (pid_t wpid, int *status, int options, struct rusage *rusage)
 Signal-safe wait4(2).

int sigsafe_accept (int fd, struct sockaddr *addr, socklen_t *addrlen)
 Signal-safe accept(2).

int sigsafe_connect (int sockfd, const struct sockaddr *serv_addr, socklen_t addrlen)
 Signal-safe connect(2).

int sigsafe_nanosleep (const struct timespec *rqtp, struct timespec *rmtp)
 Signal-safe nanosleep(2).

int sigsafe_sigsuspend (const sigset_t *)
int sigsafe_pause (void)


Detailed Description

Alternate system call wrappers which provide signal safety.

Legal information:
Copyright © 2004 Scott Lamb <slamb@slamb.org>. This file is part of sigsafe, which is released under the MIT license.
Version:
Id
sigsafe.h 776 2004-05-19 16:32:06Z slamb
Author:
Scott Lamb <slamb@slamb.org>

Definition in file sigsafe.h.


Generated on Fri Feb 4 11:13:32 2005 for sigsafe by doxygen 1.3.5