Deleted Added
full compact
thr_sigsuspend.c (17706) thr_sigsuspend.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

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

52
53 /* Wait for a signal: */
54 _thread_kern_sched_state(PS_SIGWAIT, __FILE__, __LINE__);
55
56 /* Restore the signal mask: */
57 _thread_run->sigmask = oset;
58 } else {
59 /* Return an invalid argument error: */
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

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

52
53 /* Wait for a signal: */
54 _thread_kern_sched_state(PS_SIGWAIT, __FILE__, __LINE__);
55
56 /* Restore the signal mask: */
57 _thread_run->sigmask = oset;
58 } else {
59 /* Return an invalid argument error: */
60 _thread_seterrno(_thread_run, EINVAL);
60 errno = EINVAL;
61 }
62
63 /* Return the completion status: */
64 return (ret);
65}
66#endif
61 }
62
63 /* Return the completion status: */
64 return (ret);
65}
66#endif