Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add uksignal compatibility #4

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion generated/runtime_sysinfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -2408,7 +2408,8 @@ const __POSIX_SYNCHRONIZED_IO = 200809
const _SYS_close = ___NR_close
const _PR_SET_UNALIGN = 6
const _SYS_brk = ___NR_brk
const __NSIG = (___SIGRTMAX + 1)
// FIXME : const __NSIG=(___SIGRTMAX + 1) when RT signals are added to uksignal
const __NSIG = 32
const __POSIX_FD_SETSIZE = __POSIX_OPEN_MAX
const _ENOTTY = 25
const _RTA_PRIORITY = 6
Expand Down
67 changes: 34 additions & 33 deletions generated/sigtab.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,37 +35,38 @@ var sigtable = [...]sigTabT{
_SIGSTKFLT: {_SigThrow + _SigUnblock, "SIGSTKFLT: stack fault"},
_SIGPWR: {_SigNotify, "SIGPWR: power failure restart"},
_SIGPOLL: {_SigNotify, "SIGPOLL: pollable event occurred"},
32: {_SigSetStack + _SigUnblock, "signal 32"}, /* SIGCANCEL; see issue 6997 */
33: {_SigSetStack + _SigUnblock, "signal 33"}, /* SIGSETXID; see issues 3871, 9400, 12498 */
34: {_SigNotify, "signal 34"},
35: {_SigNotify, "signal 35"},
36: {_SigNotify, "signal 36"},
37: {_SigNotify, "signal 37"},
38: {_SigNotify, "signal 38"},
39: {_SigNotify, "signal 39"},
40: {_SigNotify, "signal 40"},
41: {_SigNotify, "signal 41"},
42: {_SigNotify, "signal 42"},
43: {_SigNotify, "signal 43"},
44: {_SigNotify, "signal 44"},
45: {_SigNotify, "signal 45"},
46: {_SigNotify, "signal 46"},
47: {_SigNotify, "signal 47"},
48: {_SigNotify, "signal 48"},
49: {_SigNotify, "signal 49"},
50: {_SigNotify, "signal 50"},
51: {_SigNotify, "signal 51"},
52: {_SigNotify, "signal 52"},
53: {_SigNotify, "signal 53"},
54: {_SigNotify, "signal 54"},
55: {_SigNotify, "signal 55"},
56: {_SigNotify, "signal 56"},
57: {_SigNotify, "signal 57"},
58: {_SigNotify, "signal 58"},
59: {_SigNotify, "signal 59"},
60: {_SigNotify, "signal 60"},
61: {_SigNotify, "signal 61"},
62: {_SigNotify, "signal 62"},
63: {_SigNotify, "signal 63"},
64: {_SigNotify, "signal 64"},
// FIXME: uncomment when RT signals support is added to uksignal
// 32: {_SigSetStack + _SigUnblock, "signal 32"}, /* SIGCANCEL; see issue 6997 */
// 33: {_SigSetStack + _SigUnblock, "signal 33"}, /* SIGSETXID; see issues 3871, 9400, 12498 */
// 34: {_SigNotify, "signal 34"},
// 35: {_SigNotify, "signal 35"},
// 36: {_SigNotify, "signal 36"},
// 37: {_SigNotify, "signal 37"},
// 38: {_SigNotify, "signal 38"},
// 39: {_SigNotify, "signal 39"},
// 40: {_SigNotify, "signal 40"},
// 41: {_SigNotify, "signal 41"},
// 42: {_SigNotify, "signal 42"},
// 43: {_SigNotify, "signal 43"},
// 44: {_SigNotify, "signal 44"},
// 45: {_SigNotify, "signal 45"},
// 46: {_SigNotify, "signal 46"},
// 47: {_SigNotify, "signal 47"},
// 48: {_SigNotify, "signal 48"},
// 49: {_SigNotify, "signal 49"},
// 50: {_SigNotify, "signal 50"},
// 51: {_SigNotify, "signal 51"},
// 52: {_SigNotify, "signal 52"},
// 53: {_SigNotify, "signal 53"},
// 54: {_SigNotify, "signal 54"},
// 55: {_SigNotify, "signal 55"},
// 56: {_SigNotify, "signal 56"},
// 57: {_SigNotify, "signal 57"},
// 58: {_SigNotify, "signal 58"},
// 59: {_SigNotify, "signal 59"},
// 60: {_SigNotify, "signal 60"},
// 61: {_SigNotify, "signal 61"},
// 62: {_SigNotify, "signal 62"},
// 63: {_SigNotify, "signal 63"},
// 64: {_SigNotify, "signal 64"},
}
24 changes: 0 additions & 24 deletions glue.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,30 +100,6 @@ int settimeofday(const struct timeval *tv __unused, const struct timezone *tz __
return 0;
}

#undef sigaddset
int sigaddset(sigset_t *set __unused, int signum __unused)
{
return 0;
}

#undef sigdelset
int sigdelset(sigset_t *set __unused, int signum __unused)
{
return 0;
}

#undef sigemptyset
int sigemptyset(sigset_t *set __unused)
{
return 0;
}

#undef sigfillset
int sigfillset(sigset_t *set __unused)
{
return 0;
}

ssize_t sendfile64(int out_fd __unused, int in_fd __unused, off_t *offset __unused, size_t count __unused)
{
return 1;
Expand Down