Searched defs:mask (Results 1 - 9 of 9) sorted by relevance

/lxc/src/lxc/tools/
H A Dlxc_init.c82 sigset_t mask, omask; local
121 * mask all the signals so we are safe to install a
124 if (sigfillset(&mask) ||
125 sigdelset(&mask, SIGILL) ||
126 sigdelset(&mask, SIGSEGV) ||
127 sigdelset(&mask, SIGBUS) ||
128 sigprocmask(SIG_SETMASK, &mask, &omask)) {
129 SYSERROR("failed to set signal mask");
180 SYSERROR("failed to set signal mask");
194 SYSERROR("failed to set signal mask");
[all...]
/lxc/src/lxc/bdev/
H A Dlxcnbd.c175 sigset_t mask; local
180 sigemptyset(&mask);
181 sigaddset(&mask, SIGHUP);
182 sigaddset(&mask, SIGCHLD);
187 if (sigprocmask(SIG_BLOCK, &mask, NULL) == -1) {
192 sfd = signalfd(-1, &mask, 0);
228 if (sigprocmask(SIG_UNBLOCK, &mask, NULL) == -1)
/lxc/src/lxc/
H A Dconsole.c112 sigset_t mask; local
128 sigemptyset(&mask);
129 sigaddset(&mask, SIGWINCH);
130 if (sigprocmask(SIG_BLOCK, &mask, &ts->oldmask)) {
136 ts->sigfd = signalfd(-1, &mask, 0);
H A Dlxc_monitord.c349 sigset_t mask; local
375 if (sigfillset(&mask) ||
376 sigdelset(&mask, SIGILL) ||
377 sigdelset(&mask, SIGSEGV) ||
378 sigdelset(&mask, SIGBUS) ||
379 sigdelset(&mask, SIGTERM) ||
380 sigprocmask(SIG_BLOCK, &mask, NULL)) {
381 SYSERROR("Failed to set signal mask.");
H A Dutils.h160 static inline int signalfd(int fd, const sigset_t *mask, int flags) argument
164 retval = syscall (__NR_signalfd4, fd, mask, _NSIG / 8, flags);
166 retval = syscall (__NR_signalfd, fd, mask, _NSIG / 8);
190 /* popen(command, "re") replacement that restores default signal mask
H A Dstart.c247 sigset_t mask; local
251 if (sigfillset(&mask) ||
252 sigdelset(&mask, SIGILL) ||
253 sigdelset(&mask, SIGSEGV) ||
254 sigdelset(&mask, SIGBUS) ||
255 sigdelset(&mask, SIGWINCH) ||
256 sigprocmask(SIG_BLOCK, &mask, oldmask)) {
257 SYSERROR("Failed to set signal mask.");
261 fd = signalfd(-1, &mask, 0);
555 /* Reset mask se
[all...]
H A Dconfile.c1576 static struct { const char *token; int mask; int flag; } allowed_auto_mounts[] = { member in struct:__anon9
1593 * no options: keep mask and flag identical and just define the
1629 lxc_conf->auto_mounts &= ~allowed_auto_mounts[i].mask;
H A Dutils.c517 sigset_t mask; local
518 sigfillset(&mask);
519 sigprocmask(SIG_UNBLOCK, &mask, NULL);
H A Dlxccontainer.c968 mode_t mask = umask(0002); local
971 umask(mask);

Completed in 43 milliseconds