SCCS-vsn: sys/kern/kern_sig.c 7.46
SCCS-vsn: sys/kern/kern_resource.c 7.18
SCCS-vsn: sys/kern/kern_descrip.c 7.35
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)kern_descrip.c 7.34 (Berkeley) %G%
+ * @(#)kern_descrip.c 7.35 (Berkeley) %G%
return (closef(fp, p));
}
return (closef(fp, p));
}
+#if defined(COMPAT_43) || defined(COMPAT_SUNOS)
/*
* Return status information about a file descriptor.
*/
/*
* Return status information about a file descriptor.
*/
/*NOTREACHED*/
}
cvtstat(&ub, &oub);
/*NOTREACHED*/
}
cvtstat(&ub, &oub);
error = copyout((caddr_t)&oub, (caddr_t)uap->sb, sizeof (oub));
return (error);
}
error = copyout((caddr_t)&oub, (caddr_t)uap->sb, sizeof (oub));
return (error);
}
+#endif /* COMPAT_43 || COMPAT_SUNOS */
/*
* Return status information about a file descriptor.
/*
* Return status information about a file descriptor.
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)kern_resource.c 7.17 (Berkeley) %G%
+ * @(#)kern_resource.c 7.18 (Berkeley) %G%
+#if defined(COMPAT_43) || defined(COMPAT_SUNOS)
/* ARGSUSED */
setrlimit(p, uap, retval)
struct proc *p;
/* ARGSUSED */
setrlimit(p, uap, retval)
struct proc *p;
olim.rlim_max = 0x7fffffff;
return (copyout((caddr_t)&olim, (caddr_t)uap->rlp, sizeof(olim)));
}
olim.rlim_max = 0x7fffffff;
return (copyout((caddr_t)&olim, (caddr_t)uap->rlp, sizeof(olim)));
}
+#endif /* COMPAT_43 || COMPAT_SUNOS */
/* ARGSUSED */
__setrlimit(p, uap, retval)
/* ARGSUSED */
__setrlimit(p, uap, retval)
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)kern_sig.c 7.45 (Berkeley) %G%
+ * @(#)kern_sig.c 7.46 (Berkeley) %G%
*/
#define SIGPROP /* include signal properties table */
*/
#define SIGPROP /* include signal properties table */
return (error);
#ifdef COMPAT_SUNOS
/*
return (error);
#ifdef COMPAT_SUNOS
/*
- * SunOS uses this bit (SA_NOCLDSTOP) as SV_RESETHAND,
- * `reset to SIG_DFL on delivery'. We have no such
- * option now or ever!
+ * SunOS uses this bit (4, aka SA_DISABLE) as SV_RESETHAND,
+ * `reset to SIG_DFL on delivery'. We have no such option
+ * now or ever!
- if (sv->sv_flags & SA_NOCLDSTOP)
+ if (sv->sv_flags & SA_DISABLE)
return (EINVAL);
sv->sv_flags |= SA_USERTRAMP;
#endif
return (EINVAL);
sv->sv_flags |= SA_USERTRAMP;
#endif
(void) spl0();
return (0);
}
(void) spl0();
return (0);
}
+#endif /* COMPAT_43 || COMPAT_SUNOS */
/*
* Suspend process until signal, providing mask to be set
/*
* Suspend process until signal, providing mask to be set
+#if defined(COMPAT_43) || defined(COMPAT_SUNOS)
/* ARGSUSED */
osigstack(p, uap, retval)
struct proc *p;
/* ARGSUSED */
osigstack(p, uap, retval)
struct proc *p;
+#endif /* COMPAT_43 || COMPAT_SUNOS */
/* ARGSUSED */
sigaltstack(p, uap, retval)
/* ARGSUSED */
sigaltstack(p, uap, retval)
return (EINVAL);
return (killpg1(p, uap->signo, uap->pgid, 0));
}
return (EINVAL);
return (killpg1(p, uap->signo, uap->pgid, 0));
}
+#endif /* COMPAT_43 || COMPAT_SUNOS */
/*
* Common code for kill process group/broadcast kill.
/*
* Common code for kill process group/broadcast kill.