Searched refs:sig (Results 1 - 25 of 98) sorted by relevance

1234

/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/lib/libast/comp/
H A Dsigflag.c32 #include <sig.h>
35 sigflag(int sig, int flags, int set)
40 if (sigaction(sig, NiL, &sa))
46 return sigaction(sig, &sa, NiL);
H A Dexecve.c32 #include <sig.h>
39 execsig(int sig)
41 kill(childpid, sig);
42 signal(sig, execsig);
H A Dkillpg.c32 #include <sig.h>
H A Dsigunblock.c32 #include <sig.h>
H A Dwaitpid.c69 #include <sig.h>
76 catch(sig)
77 int sig;
79 NoP(sig);
/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/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/ksh93/sh/
H A Dfault.c40 #define abortsig(sig) (sig==SIGABRT || sig==SIGBUS || sig==SIGILL || sig==SIGSEGV)
63 void sh_fault(register int sig) argument
71 if(!(sig&SH_TRAP))
72 signal(sig, sh_fault);
73 sig &= ~SH_TRAP;
75 if(sig
228 register int sig, n; local
276 sh_sigtrap(register int sig) argument
307 register int flag, sig = shgd->sigmax; local
325 register int flag, sig=sh.st.trapmax; local
366 sh_sigclear(register int sig) argument
389 register int sig=shp->st.trapmax; local
514 register int sig=0; local
603 sh_done(void *ptr, register int sig) argument
664 kill(getpid(),sig); local
[all...]
/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...]
/ast/src/lib/libast/misc/
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 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 Dsigdata.c30 #include <sig.h>
H A Dproclib.h36 #include <sig.h>
50 Sig_mask_t mask; /* original blocked sig mask */ \
/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...]
/ast/src/cmd/tests/sfio/
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 Dtbadargs.c31 void handler(int sig) argument
33 void handler(sig)
34 int sig;
/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/lib/libvcodex/Vcwindow/
H A Dvcwfile.c43 #define ACCEPT(sig) (sig > (1<<24) ? .05 : \
44 sig > (1<<20) ? .06 : \
45 sig > (1<<16) ? .07 : .08)
109 vcwf->sig = NIL(Grint_t*);
127 { if(vcwf->sig)
128 free(vcwf->sig);
145 Grint_t *sig, *esig, **ssig; local
153 if(!(vcwf->sig = (Grint_t*)malloc(nsig*sizeof(Grint_t))) ||
164 for(esig = (sig
[all...]
/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/cmd/tests/
H A Ddate.c64 int sig; member in struct:__anon235
119 if (state.sig)
121 sfprintf(sfstdout, " %s", fmtsignal(state.sig));
122 state.sig = 0;
220 gotcha(int sig) argument
222 signal(sig, gotcha);
225 state.sig = sig;
226 sigunblock(sig);
/ast/src/cmd/ksh93/tests/
H A Dcoprocess.sh188 for sig in IOT ABRT
189 do if ( trap - $sig ) 2> /dev/null
190 then if [[ $( { sig=$sig $SHELL 2> /dev/null <<- ++EOF++
193 trap "print TRAP" \$sig
196 kill -\$sig \$\$
198 kill -\$sig \$\$
/ast/src/cmd/ksh93/include/
H A Djobs.h155 int sig; \
156 if (!--job.in_critical && (sig = job.savesig)) \
159 job_reap(sig); \
/ast/src/cmd/mailx/
H A Dcollect.c91 collint(int sig) argument
104 longjmp(state.collect.work, sig);
109 longjmp(state.collect.abort, sig);
114 collhup(int sig) argument
130 collstop(int sig) argument
132 sig_t old_action = signal(sig, SIG_DFL);
134 kill(getpid(), sig); local
135 signal(sig, old_action);
139 longjmp(state.collect.work, sig);
349 int sig; local
[all...]

Completed in 37 milliseconds

1234