Deleted Added
full compact
thr_sigaction.c (13546) thr_sigaction.c (22315)
1/*
2 * Copyright (c) 1995 John Birrell <jb@cimlogic.com.au>.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 31 unchanged lines hidden (view full) ---

40sigaction(int sig, const struct sigaction * act, struct sigaction * oact)
41{
42 int ret = 0;
43 int status;
44
45 /* Check if the signal number is out of range: */
46 if (sig < 1 || sig > NSIG) {
47 /* Return an invalid argument: */
1/*
2 * Copyright (c) 1995 John Birrell <jb@cimlogic.com.au>.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 31 unchanged lines hidden (view full) ---

40sigaction(int sig, const struct sigaction * act, struct sigaction * oact)
41{
42 int ret = 0;
43 int status;
44
45 /* Check if the signal number is out of range: */
46 if (sig < 1 || sig > NSIG) {
47 /* Return an invalid argument: */
48 _thread_seterrno(_thread_run, EINVAL);
48 errno = EINVAL;
49 ret = -1;
50 } else {
51 /*
52 * Check if the existing signal action structure contents are
53 * to be returned:
54 */
55 if (oact != NULL) {
56 /* Return the existing signal action contents: */

--- 26 unchanged lines hidden ---
49 ret = -1;
50 } else {
51 /*
52 * Check if the existing signal action structure contents are
53 * to be returned:
54 */
55 if (oact != NULL) {
56 /* Return the existing signal action contents: */

--- 26 unchanged lines hidden ---