Searched defs:trap (Results 1 - 19 of 19) sorted by relevance

/illumos-gate/usr/src/cmd/svr4pkg/pkgremove/
H A Dquit.c93 static void trap(int signo);
108 * Description: return address of this modules "signal trap" handler
111 * The address of the trap handler that can be passed to
118 return (&trap);
294 * Name: trap
297 * Integer representing the signal that caused the trap
307 trap(int signo) function
/illumos-gate/usr/src/cmd/svr4pkg/pkgrm/
H A Dquit.c68 static void trap(int signo);
91 * Description: return address of this modules "signal trap" handler
94 * The address of the trap handler that can be passed to
101 return (&trap);
289 * Name: trap
292 * Integer representing the signal that caused the trap
302 trap(int signo) function
/illumos-gate/usr/src/cmd/svr4pkg/pkgtrans/
H A Dmain.c52 static void trap(int signo);
126 func = signal(SIGINT, trap);
129 (void) signal(SIGHUP, trap);
130 (void) signal(SIGQUIT, trap);
131 (void) signal(SIGTERM, trap);
132 (void) signal(SIGPIPE, trap);
133 (void) signal(SIGPWR, trap);
217 trap(int signo) function
/illumos-gate/usr/src/cmd/svr4pkg/pkgadd/
H A Dquit.c73 static void trap(int signo);
97 * Description: return address of this modules "signal trap" handler
100 * The address of the trap handler that can be passed to
107 return (&trap);
358 * Name: trap
361 * Integer representing the signal that caused the trap
371 trap(int signo) function
/illumos-gate/usr/src/lib/libshell/common/bltins/
H A Dtrap.c22 * trap [-p] action sig...
39 static const char trapfmt[] = "trap -- %s %s\n";
113 if(arg=shp->st.trap[sig])
117 if(shp->st.trap[sig])
118 free(shp->st.trap[sig]);
119 shp->st.trap[sig] = 0;
121 shp->st.trap[sig] = strdup(action);
124 if(shp->st.trap[sig])
391 register char *trap,**trapcom; local
393 /* use parent traps if otrapcom is set (for $(trap) */
[all...]
/illumos-gate/usr/src/cmd/svr4pkg/pkginstall/
H A Dquit.c83 static void trap(int signo);
105 * Description: return address of this modules "signal trap" handler
108 * The address of the trap handler that can be passed to
115 return (&trap);
462 * Name: trap
465 * Integer representing the signal that caused the trap
475 trap(int signo) function
/illumos-gate/usr/src/lib/libshell/common/sh/
H A Dfault.c65 register char *trap; local
91 trap = shp->st.trapcom[sig];
94 if(trap && *trap)
109 if(trap && *trap==0)
112 if(!trap)
162 if(trap)
263 * Turn on trap handler for signal <sig>
308 * Free the trap string
313 register char *trap; local
358 register char *trap; local
379 register char *trap; local
435 sh_trap(const char *trap, int mode) argument
[all...]
H A Dsubshell.c193 char *trap = shp->st.trapcom[0]; local
194 if(trap)
195 trap = strdup(trap);
206 if(trap)
207 free((void*)trap);
222 shp->st.trapcom[0] = trap;
523 /* save trap table */
529 /* this nonsense needed for $(trap) */
577 /* trap o
578 char *trap=shp->st.trapcom[0]; local
[all...]
H A Djobs.c182 void job_chldtrap(Shell_t *shp, const char *trap, int unpost) argument
203 sh_trap(trap,0);
H A Dname.c291 char *trap=shp->st.trap[SH_DEBUGTRAP]; local
413 if(traceon || trap)
419 if(trap)
420 sh_debug(shp,trap,name,(char*)0,argv,(arg->argflag&ARG_APPEND)|ARG_ASSIGN);
563 if(traceon || trap)
590 if(trap)
595 sh_debug(shp,trap,name,sub,av,append);
H A Dxec.c395 int sh_debug(Shell_t *shp, const char *trap, const char *name, const char *subscript, char *const argv[], int flags) argument
445 shp->st.trap[SH_DEBUGTRAP] = 0;
446 n = sh_trap(trap,0);
705 char *trap; local
868 if(trap=shp->st.trap[SH_DEBUGTRAP])
870 int n = sh_debug(shp,trap,(char*)0,(char*)0, com, ARG_RAW);
999 !shp->st.trapcom[0] && !shp->st.trap[SH_ERRTRAP] && shp->fn_depth==0 && !nv_isattr(np,BLT_ENV))
1176 !shp->st.trapcom[0] && !shp->st.trap[SH_ERRTRAP] &&
1455 if(!shp->subshell && !shp->st.trapcom[0] && !shp->st.trap[SH_ERRTRA
1591 char *cp, *trap, *nullptr = 0; local
1799 register char *trap; local
1835 char *trap, *r = sh_macpat(shp,tt->sw.swarg,OPTIMIZE); local
2136 register char *trap; local
2553 register char *trap; local
2964 register char *trap; local
[all...]
/illumos-gate/usr/src/cmd/troff/
H A Dnii.c104 int trap; variable
/illumos-gate/usr/src/uts/sun4/os/
H A Dtrap.c33 #include <sys/trap.h>
139 * Called from the trap handler when a processor trap occurs.
143 trap(struct regs *rp, caddr_t addr, uint32_t type, uint32_t mmu_fsr) function
169 CPU_STATS_ADDQ(CPU, sys, trap, 1);
186 * Set up the current cred to use during this trap. u_cred
189 * the entire trap. If trapping from the kernel, this
242 * The instruction that got us to trap() will be reexecuted on
243 * return from the signal handler and we will trap to here again.
258 * trap() ha
[all...]
/illumos-gate/usr/src/lib/libshell/common/include/
H A Ddefs.h95 char *trap[SH_DEBUGTRAP+1]; member in struct:sh_scoped
173 char indebug; /* set when in debug trap */ \
/illumos-gate/usr/src/cmd/sa/
H A Dsa.h105 uint64_t trap; member in struct:cpu64_sysinfo
/illumos-gate/usr/src/cmd/svr4pkg/pkgmk/
H A Dmain.c168 static void trap(int n);
217 func = sigset(SIGINT, trap);
220 func = sigset(SIGHUP, trap);
689 trap(int n) function
/illumos-gate/usr/src/uts/common/sys/
H A Dsysinfo.h82 uint_t trap; /* traps */ member in struct:cpu_sysinfo
208 uint64_t trap; /* traps */ member in struct:cpu_sys_stats
/illumos-gate/usr/src/uts/i86pc/os/
H A Dtrap.c57 #include <sys/trap.h>
105 #define USER 0x10000 /* user-mode flag added to trap type */
116 "Divide error", /* trap id 0 */
117 "Debug", /* trap id 1 */
118 "NMI interrupt", /* trap id 2 */
119 "Breakpoint", /* trap id 3 */
120 "Overflow", /* trap id 4 */
121 "BOUND range exceeded", /* trap id 5 */
122 "Invalid opcode", /* trap id 6 */
123 "Device not available", /* trap i
465 trap(struct regs *rp, caddr_t addr, processorid_t cpuid) function
[all...]
/illumos-gate/usr/src/uts/common/os/
H A Dcpu.c197 kstat_named_t trap; member in struct:cpu_sys_stats_ks_data
256 { "trap", KSTAT_DATA_UINT64 },
3226 csskd->trap.value.ui64 = css->trap;
3364 cso->cpu_sysinfo.trap = CPU_STATS(cp, sys.trap);

Completed in 109 milliseconds