Home
last modified time | relevance | path

Searched refs:nsig (Results 1 – 14 of 14) sorted by relevance

/illumos-gate/usr/src/lib/krb5/ss/
H A Dlist_rqs.c50 struct sigaction nsig, osig; local
70 nsig.sa_handler = SIG_IGN;
71 sigemptyset(&nsig.sa_mask);
72 nsig.sa_flags = 0;
73 sigaction(SIGINT, &nsig, &osig);
H A Dlisten.c149 struct sigaction isig, csig, nsig, osig; local
208 nsig.sa_handler = listen_int_handler;
209 sigemptyset(&nsig.sa_mask);
210 nsig.sa_flags = 0;
211 sigaction(SIGINT, &nsig, &isig);
240 nsig.sa_handler = listen_int_handler; /* fgets is not signal-safe */
242 sigaction(SIGCONT, &nsig, &csig);
/illumos-gate/usr/src/cmd/mail/
H A Dmain.c69 struct sigaction nsig; in main() local
70 nsig.sa_handler = SIG_DFL; in main()
71 sigemptyset(&nsig.sa_mask); in main()
72 nsig.sa_flags = SA_RESTART; in main()
73 (void) sigaction(SIGCONT, &nsig, (struct sigaction *)0); in main()
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/
H A Dsubshell.c478 int jmpval,nsig=0,duped=0; in sh_subshell() local
580 if((nsig=shp->st.trapmax*sizeof(char*))>0 || shp->st.trapcom[0]) in sh_subshell()
582 nsig += sizeof(char*); in sh_subshell()
583 memcpy(savsig=malloc(nsig),(char*)&shp->st.trapcom[0],nsig); in sh_subshell()
737 if(nsig) in sh_subshell()
739 memcpy((char*)&shp->st.trapcom[0],savsig,nsig); in sh_subshell()
809 nsig = shp->savesig; in sh_subshell()
811 if(nsig>0) in sh_subshell()
812 kill(getpid(),nsig); in sh_subshell()
H A Dxec.c1996 int nsig,jmpval; in sh_exec() local
1999 if((nsig=shp->st.trapmax*sizeof(char*))>0 || shp->st.trapcom[0]) in sh_exec()
2001 nsig += sizeof(char*); in sh_exec()
2002 memcpy(savsig=malloc(nsig),(char*)&shp->st.trapcom[0],nsig); in sh_exec()
3339 register int nsig; in sh_funscope() local
3396 if((nsig=shp->st.trapmax*sizeof(char*))>0 || shp->st.trapcom[0]) in sh_funscope()
3398 nsig += sizeof(char*); in sh_funscope()
3399 memcpy(savstak=stakalloc(nsig),(char*)&shp->st.trapcom[0],nsig); in sh_funscope()
3465 if(nsig) in sh_funscope()
3466 memcpy((char*)&shp->st.trapcom[0],savstak,nsig); in sh_funscope()
[all …]
/illumos-gate/usr/src/cmd/krb5/kadmin/cli/
H A Dkadmin.c1634 struct sigaction nsig, osig; local
1659 nsig.sa_handler = SIG_IGN;
1660 sigemptyset(&nsig.sa_mask);
1661 nsig.sa_flags = 0;
1662 sigaction(SIGINT, &nsig, &osig);
1925 struct sigaction nsig, osig; local
1954 if (sigemptyset(&nsig.sa_mask) == -1) {
1966 nsig.sa_handler = SIG_IGN;
1967 nsig.sa_flags = 0;
1968 if (sigaction(SIGINT, &nsig, &osig) == -1) {
/illumos-gate/usr/src/cmd/mailx/
H A Dcollect.c755 struct sigaction nsig; in resetsigs() local
756 nsig.sa_handler = (void (*)())savecont; in resetsigs()
757 sigemptyset(&nsig.sa_mask); in resetsigs()
758 nsig.sa_flags = SA_RESTART; in resetsigs()
759 (void) sigaction(SIGCONT, &nsig, (struct sigaction*)0); in resetsigs()
/illumos-gate/usr/src/uts/common/fs/proc/
H A Dprioctl.c150 int nsig = PROC_IS_BRANDED(curproc)? BROP(curproc)->b_nsig : NSIG; in prioctl64() local
261 thingsize = (nsig-1) * sizeof (struct sigaction); in prioctl64()
892 int n = nsig-1; in prioctl64()
906 for (sig = 1; sig < nsig; sig++) in prioctl64()
909 if (copyout(sap, cmaddr, (nsig-1) * sizeof (struct sigaction))) in prioctl64()
911 kmem_free(sap, (nsig-1) * sizeof (struct sigaction)); in prioctl64()
1798 thingsize = (nsig-1) * sizeof (struct sigaction32); in prioctl32()
2486 int n = nsig-1; in prioctl32()
2503 for (sig = 1; sig < nsig; sig++) in prioctl32()
2508 copyout(sap, cmaddr, (nsig-1)*sizeof (struct sigaction32))) in prioctl32()
[all …]
H A Dprcontrol.c1522 int nsig = PROC_IS_BRANDED(curproc)? BROP(curproc)->b_nsig : NSIG; in pr_setsig() local
1533 if (sig < 0 || sig >= nsig) in pr_setsig()
1651 int nsig = PROC_IS_BRANDED(curproc)? BROP(curproc)->b_nsig : NSIG; in pr_kill() local
1656 if (sig <= 0 || sig >= nsig) in pr_kill()
1675 int nsig = PROC_IS_BRANDED(curproc)? BROP(curproc)->b_nsig : NSIG; in pr_unkill() local
1680 if (sig <= 0 || sig >= nsig || sig == SIGKILL) in pr_unkill()
H A Dprvnops.c1098 int nsig = PROC_IS_BRANDED(curproc)? BROP(curproc)->b_nsig : NSIG; in pr_read_sigact() local
1111 sap = kmem_alloc((nsig-1) * sizeof (struct sigaction), KM_SLEEP); in pr_read_sigact()
1118 if (uiop->uio_offset >= (nsig-1)*sizeof (struct sigaction)) { in pr_read_sigact()
1124 for (sig = 1; sig < nsig; sig++) in pr_read_sigact()
1130 kmem_free(sap, (nsig-1) * sizeof (struct sigaction)); in pr_read_sigact()
2266 if (uiop->uio_offset >= (nsig-1) * sizeof (struct sigaction32)) { in pr_read_sigact_32()
2272 for (sig = 1; sig < nsig; sig++) in pr_read_sigact_32()
2278 kmem_free(sap, (nsig-1) * sizeof (struct sigaction32)); in pr_read_sigact_32()
3025 int nsig; in prgetattr() local
3324 nsig = PROC_IS_BRANDED(curproc)? BROP(curproc)->b_nsig : NSIG; in prgetattr()
[all …]
H A Dprsubr.c1355 int nsig = PROC_IS_BRANDED(curproc)? BROP(curproc)->b_nsig : NSIG; in prgetaction() local
1359 if (sig != 0 && (unsigned)sig < nsig) { in prgetaction()
1385 int nsig = PROC_IS_BRANDED(curproc)? BROP(curproc)->b_nsig : NSIG; in prgetaction32() local
1389 if (sig != 0 && (unsigned)sig < nsig) { in prgetaction32()
/illumos-gate/usr/src/lib/libc/port/fp/
H A Ddouble_decim.c83 __big_binary_to_big_decimal(_big_float *pb, int nsig, _big_float **ppd, in __big_binary_to_big_decimal() argument
150 __big_float_times_power(pd, 2, pb->bexponent, nsig, ppd); in __big_binary_to_big_decimal()
H A Ddecimal_bin.c52 __big_decimal_to_big_binary(_big_float *pd, int nsig, _big_float **ppb, in __big_decimal_to_big_binary() argument
135 __big_float_times_power(pb, 10, pd->bexponent, nsig, ppb); in __big_decimal_to_big_binary()
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Dgcore.c1120 int nsig = NSIG; in gcore_prgetaction() local
1124 if (sig != 0 && (unsigned)sig < nsig) { in gcore_prgetaction()