sys/dev/scsi/sd.c
/* dev_t is short, must use prototype syntax */
dev_t is short, must use prototype syntax
dev_t is short must use prototype syntax
int
sdopen(dev_t dev, int flags, int ifmt, struct proc *p)
{
	register int unit = sdunit(dev);
	register struct sd_softc *sc;
	if (unit >= sdcd.cd_ndevs || (sc = sdcd.cd_devs[unit]) == NULL)
		return (ENXIO);
	if ((sc->sc_flags & SDF_ALIVE) == 0 && suser(p->p_ucred, &p->p_acflag))
		return (ENXIO);
	return (0);
}
int sdopen ( dev_t dev , int flags , int ifmt , struct proc * p ) { register int unit = sdunit ( dev ) ; register struct sd_softc * sc ; if ( unit >= sdcd . cd_ndevs || ( sc = sdcd . cd_devs [ unit ] ) == NULL ) return ( ENXIO ) ; if ( ( sc -> sc_flags & SDF_ALIVE ) == 0 && suser ( p -> p_ucred , & p -> p_acflag ) ) return ( ENXIO ) ; return ( 0 ) ; }
dev_t is short, must use prototype syntax
dev_t is short must use prototype syntax