Searched defs:sig (Results 1 - 25 of 56) sorted by relevance

123

/ast/src/lib/libast/string/
H A Dfmtsignal.c27 * if sig>=0 then return signal text for signal sig
28 * otherwise return signal name for signal -sig
32 #include <sig.h>
35 fmtsignal(register int sig) argument
40 if (sig >= 0)
42 if (sig <= sig_info.sigmax)
43 buf = sig_info.text[sig];
47 sfsprintf(buf, z, "Signal %d", sig);
52 sig
[all...]
/ast/src/cmd/3d/
H A Dkill3d.c29 kill3d(pid_t pid, int sig) argument
35 if (KILL(pid, sig))
40 fscall(mp, MSG_kill, 0, pid, sig);
/ast/src/cmd/tests/sfio/
H A Dtbadargs.c31 void handler(int sig) argument
33 void handler(sig)
34 int sig;
H A Dtpkrd.c25 void alarmhandler(int sig) argument
27 void alarmhandler(sig)
28 int sig;
H A Dtalarm.c27 void alrmhandler(int sig) argument
29 void alrmhandler(sig)
30 int sig;
36 signal(sig,alrmhandler);
39 signal(sig,alrmhandler);
H A Dtpipe.c27 void alrmf(int sig) argument
29 void alrmf(sig)
30 int sig;
H A Dtmtsafe.c99 void sighandler(int sig) argument
101 void sighandler(sig)
102 int sig;
105 tmesg("\tSignal %d.\n", sig);
/ast/src/lib/libcoshell/
H A Dcokill.c25 * if co==0 then kill all coshell jobs with sig
26 * elif cj==0 then kill co jobs with sig
27 * else kill cj with sig
29 * if sig==0 then cause all CO_SERVICE jobs to fail
35 * kill job cj in shell co with signal sig
39 cokilljob(register Coshell_t* co, register Cojob_t* cj, int sig) argument
44 errormsg(state.lib, 2, "coshell %d kill co=%d cj=%d sig=%d", co->index, co->pid, cj->pid, sig);
54 cj->status = EXIT_TERM(sig);
57 if (sig
73 cokillshell(register Coshell_t* co, register Cojob_t* cj, int sig) argument
95 cokill(register Coshell_t* co, register Cojob_t* cj, int sig) argument
[all...]
H A Dcoclose.c35 hung(int sig) argument
37 NoP(sig);
H A Dcoopen.c55 hung(int sig) argument
57 NoP(sig);
78 stop(int sig) argument
80 cokill(NiL, NiL, sig);
81 signal(sig, SIG_DFL);
82 sigunblock(sig);
83 kill(getpid(), sig); local
85 signal(sig, stop);
/ast/src/lib/libast/misc/
H A Dsigcrit.c31 #include <sig.h>
35 int sig; member in struct:__anon293
77 interrupt(int sig) argument
79 signal(sig, interrupt);
80 hold |= sigmask(sig);
123 sigaddset(&nmask, signals[i].sig);
130 mask |= sigmask(signals[i].sig);
135 if ((op & signals[i].op) && (handler[i] = signal(signals[i].sig, interrupt)) == SIG_IGN)
137 signal(signals[i].sig, handler[i]);
138 hold &= ~sigmask(signals[i].sig);
[all...]
H A Dsignal.c37 #include <sig.h>
75 signal(int sig, Sig_handler_t fun) argument
84 if (sig < 0)
86 sig = -sig;
92 flags = sig & ~SIGNO_MASK;
93 sig &= SIGNO_MASK;
98 switch (sig)
125 if (sigaction(sig, &na, &oa))
128 sigunblock(sig);
[all...]
H A Dprocopen.c143 * catch but ignore sig
148 ignoresig(int sig) argument
150 signal(sig, ignoresig);
/ast/src/lib/libast/uwin/
H A Dgetpass.c45 static void handler(int sig) argument
/ast/src/cmd/coshell/
H A Djob.c119 jp->sig = SIGKILL;
140 jp->sig = SIGKILL;
188 * kill job with sig
192 jobkill(Cojob_t* jp, int sig) argument
199 jp->sig = sig;
203 n = sfsprintf(buf, sizeof(buf), "kill -%s -%d\n", fmtsignal(-sig), jp->pid);
205 message((-2, "killpg -%s %s.%d", fmtsignal(-sig), jp->shell->name, jp->pid));
207 if (sig == SIGKILL) jobdone(jp);
246 if (state.disable && (jp->sig
[all...]
/ast/src/lib/libcs/
H A Dcslocal.c40 child(int sig) argument
42 NoP(sig);
H A Dcss.c57 interrupt(int sig) argument
60 if (sig != SIGCHLD)
62 signal(sig, interrupt);
66 cs.interrupt = sig;
615 int sig; local
707 sig = (err == EINTR) ? cs.interrupt : 0;
714 sig = 0;
764 if ((css->disc->flags & CSS_INTERRUPT) && (sig || err == EINTR))
766 if (!sig)
768 else if ((*css->disc->exceptf)(css, CSS_INTERRUPT, sig, cs
[all...]
/ast/src/lib/libpp/
H A Dpptrace.c199 #include <sig.h>
203 * sig==0 registers the handler
207 pptrace(int sig) argument
214 if (!sig)
228 s = fmtsignal(sig);
238 handling = sig;
257 signal(sig, SIG_DFL);
258 sigunblock(sig);
259 kill(getpid(), sig); local
/ast/src/cmd/mailx/
H A Dmain.c163 hdrstop(int sig) argument
166 longjmp(state.jump.header, sig);
231 int sig; local
508 if (sig = setjmp(state.jump.header))
509 resume(sig);
/ast/src/lib/libvcodex/Vcwindow/
H A Dvcwhdr.h55 Grint_t* sig; /* signatures of each file index */ member in struct:_vcwfile_s
H A Dvcwngram.c186 Grint_t sig, key; local
190 for(sig = 0, NGINIT(data,key), data += 1; data < endd; ++data)
191 { sig += NGVALUE(key);
195 return sig;
/ast/src/lib/libast/sfio/
H A Dsfmode.c54 #include <sig.h>
203 static void ignoresig(int sig) argument
205 static void ignoresig(sig)
206 int sig;
209 signal(sig, ignoresig);
/ast/src/cmd/ksh93/bltins/
H A Dtrap.c22 * trap [-p] action sig...
23 * kill [-l] [sig...]
24 * kill [-s sig] pid...
47 register int sig, clear = 0, dflag = 0, pflag = 0; local
50 while (sig = optget(argv, sh_opttrap)) switch (sig)
96 sig = sig_number(shp,arg);
97 if(sig<0)
103 if(sig&SH_TRAP)
106 sig
170 register int sig=SIGTERM, flag=0, n; local
243 register int n,o,sig=0; local
318 sig_name(Shell_t *shp,int sig, char* buf, int pfx) argument
363 register int sig; local
[all...]
/ast/src/cmd/ksh93/sh/
H A Dtimers.c23 #include <sig.h>
87 static void sigalrm(int sig) argument
92 NOT_USED(sig);
/ast/src/cmd/nmake/
H A Dtrap.c30 #include <sig.h>
92 interrupt(register int sig) argument
94 signal(sig, sig == SIGPIPE ? SIG_IGN : interrupt);
95 trap.caught[sig] = 1;
250 register int sig; local
263 for (sig = 1; sig <= sig_info.sigmax; sig++)
264 if (trap.caught[sig])
[all...]

Completed in 44 milliseconds

123