Lely core libraries  2.3.4
sigset.c File Reference
#include "io.h"
#include "../sigset.h"
#include "fd.h"
#include <lely/io2/ctx.h>
#include <lely/io2/posix/poll.h>
#include <lely/io2/sys/sigset.h>
#include <lely/util/diag.h>
#include <lely/util/util.h>
#include <assert.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <pthread.h>
#include <sched.h>
#include <unistd.h>
Include dependency graph for sigset.c:

Go to the source code of this file.

Data Structures

struct  io_sigset_node
 
struct  io_sigset_impl
 

Functions

io_sigset_tio_sigset_create (io_poll_t *poll, ev_exec_t *exec)
 Creates a new system signal handler. More...
 
void io_sigset_destroy (io_sigset_t *sigset)
 Destroys a system signal handler. More...
 

Detailed Description

This file is part of the I/O library; it contains the system signal handler implementation for POSIX platforms.

See also
lely/io2/sys/sigset.h
Author
J. S. Seldenthuis jseld.nosp@m.enth.nosp@m.uis@l.nosp@m.ely..nosp@m.com

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Definition in file sigset.c.

Function Documentation

◆ io_sigset_create()

io_sigset_t* io_sigset_create ( io_poll_t poll,
ev_exec_t exec 
)

Creates a new system signal handler.

Parameters
polla pointer to the I/O polling instance used to monitor signal events.
execa pointer to the executor used to execute asynchronous tasks.
Returns
a pointer to a new signal handler, or NULL on error. In the latter case, the error number can be obtained with get_errc().

Definition at line 303 of file sigset.c.

◆ io_sigset_destroy()

void io_sigset_destroy ( io_sigset_t sigset)

Destroys a system signal handler.

See also
io_sigset_create()

Definition at line 330 of file sigset.c.