<commit_before>/* $Id$ */
/* Copyright (c) 2008 <NAME> <<EMAIL>> */
/* This file is part of DeforaOS System libc */
/* This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, version 3 of the License.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>. */



#ifndef LIBC_KERNEL_LINUX_SIGNAL_H
# define LIBC_KERNEL_LINUX_SIGNAL_H


/* types */
typedef struct
{
	int si_signo;
	int si_errno;
	int si_code;
	int _padding0[28];
	int _padding1[5];
} siginfo_t;

typedef struct { unsigned long bits[16]; } sigset_t;

struct sigaction
{
	union
	{
		void (*sa_handler)(int);
		void (*sa_sigaction)(int, siginfo_t *, void *);
	} _sa_u;
	sigset_t sa_mask;
	int sa_flags;
	void * _padding;
};
# define sa_handler _sa_u.sa_handler
# define sa_sigaction _sa_u.sa_sigaction


/* constants */
# define SIGHUP		1
# define SIGINT		2
# define SIGQUIT	3
# define SIGILL		4
# define SIGTRAP	5
# define SIGABRT	6
# define SIGIOT		6
# define SIGBUS		7
# define SIGFPE		8
# define SIGKILL	9
# define SIGUSR1	10
# define SIGSEGV	11
# define SIGUSR2	12
# define SIGPIPE	13
# define SIGALRM	14
# define SIGTERM	15
# define SIGCHLD	17
# define SIGCONT	18
# define SIGSTOP	19

# define SIG_DFL	((void (*)(int)) 0)
# define SIG_ERR	((void (*)(int)) -1)
# define SIG_HOLD	((void (*)(int)) 2)
# define SIG_IGN	((void (*)(int)) 1)

# define SIG_BLOCK	0
# define SIG_UNBLOCK	1
# define SIG_SETMASK	2

# define SA_RESTART	0
# define SA_NOCLDSTOP	1

#endif /* !LIBC_KERNEL_LINUX_SIGNAL_H */<commit_msg>Added sigfillset() and sigemptyset() on Linux<commit_after>/* $Id$ */
/* Copyright (c) 2008 <NAME> <<EMAIL>> */
/* This file is part of DeforaOS System libc */
/* This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, version 3 of the License.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>. */



#ifndef LIBC_KERNEL_LINUX_SIGNAL_H
# define LIBC_KERNEL_LINUX_SIGNAL_H


/* types */
typedef struct
{
	int si_signo;
	int si_errno;
	int si_code;
	int _padding0[28];
	int _padding1[5];
} siginfo_t;

typedef struct { unsigned int bits[2]; } sigset_t;

struct sigaction
{
	union
	{
		void (*sa_handler)(int);
		void (*sa_sigaction)(int, siginfo_t *, void *);
	} _sa_u;
	sigset_t sa_mask;
	int sa_flags;
	void * _padding;
};
# define sa_handler _sa_u.sa_handler
# define sa_sigaction _sa_u.sa_sigaction


/* constants */
# define SIGHUP		1
# define SIGINT		2
# define SIGQUIT	3
# define SIGILL		4
# define SIGTRAP	5
# define SIGABRT	6
# define SIGIOT		6
# define SIGBUS		7
# define SIGFPE		8
# define SIGKILL	9
# define SIGUSR1	10
# define SIGSEGV	11
# define SIGUSR2	12
# define SIGPIPE	13
# define SIGALRM	14
# define SIGTERM	15
# define SIGCHLD	17
# define SIGCONT	18
# define SIGSTOP	19

# define SIG_DFL	((void (*)(int)) 0)
# define SIG_ERR	((void (*)(int)) -1)
# define SIG_HOLD	((void (*)(int)) 2)
# define SIG_IGN	((void (*)(int)) 1)

# define SIG_BLOCK	0
# define SIG_UNBLOCK	1
# define SIG_SETMASK	2

# define SA_RESTART	0
# define SA_NOCLDSTOP	1


/* macros */
# define sigemptyset(s) ((s)->bits[0] = 0x00000000, (s)->bits[1] = 0x00000000)
# define sigfillset(s) ((s)->bits[0] = 0xffffffff, (s)->bits[1] = 0xffffffff)

#endif /* !LIBC_KERNEL_LINUX_SIGNAL_H */
{'fraction_non_alphanumeric': 0.10448496796451454, 'fraction_numerical': 0.030803351404632823, 'mean_word_length': 4.029739776951673, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 4, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '790749', 'n_tokens_mistral': 1528, 'n_tokens_neox': 1436, 'n_words': 512}