Changed %n to %r in devfs name format strings. %n has almost gone away.
This commit is contained in:
parent
19111ad381
commit
18da528d41
@ -27,7 +27,7 @@
|
||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id: cy.c,v 1.62 1998/03/18 20:52:28 dg Exp $
|
||||
* $Id: cy.c,v 1.63 1998/06/07 17:10:16 dfr Exp $
|
||||
*/
|
||||
|
||||
#include "opt_compat.h"
|
||||
@ -597,27 +597,27 @@ cyattach_common(cy_iobase, cy_align)
|
||||
#ifdef DEVFS
|
||||
com->devfs_token_ttyd = devfs_add_devswf(&sio_cdevsw,
|
||||
unit, DV_CHR,
|
||||
UID_ROOT, GID_WHEEL, 0600, "ttyc%n%n", adapter,
|
||||
UID_ROOT, GID_WHEEL, 0600, "ttyc%r%r", adapter,
|
||||
unit % CY_MAX_PORTS);
|
||||
com->devfs_token_ttyi = devfs_add_devswf(&sio_cdevsw,
|
||||
unit | CONTROL_INIT_STATE, DV_CHR,
|
||||
UID_ROOT, GID_WHEEL, 0600, "ttyic%n%n", adapter,
|
||||
UID_ROOT, GID_WHEEL, 0600, "ttyic%r%r", adapter,
|
||||
unit % CY_MAX_PORTS);
|
||||
com->devfs_token_ttyl = devfs_add_devswf(&sio_cdevsw,
|
||||
unit | CONTROL_LOCK_STATE, DV_CHR,
|
||||
UID_ROOT, GID_WHEEL, 0600, "ttylc%n%n", adapter,
|
||||
UID_ROOT, GID_WHEEL, 0600, "ttylc%r%r", adapter,
|
||||
unit % CY_MAX_PORTS);
|
||||
com->devfs_token_cuaa = devfs_add_devswf(&sio_cdevsw,
|
||||
unit | CALLOUT_MASK, DV_CHR,
|
||||
UID_UUCP, GID_DIALER, 0660, "cuac%n%n", adapter,
|
||||
UID_UUCP, GID_DIALER, 0660, "cuac%r%r", adapter,
|
||||
unit % CY_MAX_PORTS);
|
||||
com->devfs_token_cuai = devfs_add_devswf(&sio_cdevsw,
|
||||
unit | CALLOUT_MASK | CONTROL_INIT_STATE, DV_CHR,
|
||||
UID_UUCP, GID_DIALER, 0660, "cuaic%n%n", adapter,
|
||||
UID_UUCP, GID_DIALER, 0660, "cuaic%r%r", adapter,
|
||||
unit % CY_MAX_PORTS);
|
||||
com->devfs_token_cual = devfs_add_devswf(&sio_cdevsw,
|
||||
unit | CALLOUT_MASK | CONTROL_LOCK_STATE, DV_CHR,
|
||||
UID_UUCP, GID_DIALER, 0660, "cualc%n%n", adapter,
|
||||
UID_UUCP, GID_DIALER, 0660, "cualc%r%r", adapter,
|
||||
unit % CY_MAX_PORTS);
|
||||
#endif
|
||||
}
|
||||
|
@ -27,7 +27,7 @@
|
||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id: cy.c,v 1.62 1998/03/18 20:52:28 dg Exp $
|
||||
* $Id: cy.c,v 1.63 1998/06/07 17:10:16 dfr Exp $
|
||||
*/
|
||||
|
||||
#include "opt_compat.h"
|
||||
@ -597,27 +597,27 @@ cyattach_common(cy_iobase, cy_align)
|
||||
#ifdef DEVFS
|
||||
com->devfs_token_ttyd = devfs_add_devswf(&sio_cdevsw,
|
||||
unit, DV_CHR,
|
||||
UID_ROOT, GID_WHEEL, 0600, "ttyc%n%n", adapter,
|
||||
UID_ROOT, GID_WHEEL, 0600, "ttyc%r%r", adapter,
|
||||
unit % CY_MAX_PORTS);
|
||||
com->devfs_token_ttyi = devfs_add_devswf(&sio_cdevsw,
|
||||
unit | CONTROL_INIT_STATE, DV_CHR,
|
||||
UID_ROOT, GID_WHEEL, 0600, "ttyic%n%n", adapter,
|
||||
UID_ROOT, GID_WHEEL, 0600, "ttyic%r%r", adapter,
|
||||
unit % CY_MAX_PORTS);
|
||||
com->devfs_token_ttyl = devfs_add_devswf(&sio_cdevsw,
|
||||
unit | CONTROL_LOCK_STATE, DV_CHR,
|
||||
UID_ROOT, GID_WHEEL, 0600, "ttylc%n%n", adapter,
|
||||
UID_ROOT, GID_WHEEL, 0600, "ttylc%r%r", adapter,
|
||||
unit % CY_MAX_PORTS);
|
||||
com->devfs_token_cuaa = devfs_add_devswf(&sio_cdevsw,
|
||||
unit | CALLOUT_MASK, DV_CHR,
|
||||
UID_UUCP, GID_DIALER, 0660, "cuac%n%n", adapter,
|
||||
UID_UUCP, GID_DIALER, 0660, "cuac%r%r", adapter,
|
||||
unit % CY_MAX_PORTS);
|
||||
com->devfs_token_cuai = devfs_add_devswf(&sio_cdevsw,
|
||||
unit | CALLOUT_MASK | CONTROL_INIT_STATE, DV_CHR,
|
||||
UID_UUCP, GID_DIALER, 0660, "cuaic%n%n", adapter,
|
||||
UID_UUCP, GID_DIALER, 0660, "cuaic%r%r", adapter,
|
||||
unit % CY_MAX_PORTS);
|
||||
com->devfs_token_cual = devfs_add_devswf(&sio_cdevsw,
|
||||
unit | CALLOUT_MASK | CONTROL_LOCK_STATE, DV_CHR,
|
||||
UID_UUCP, GID_DIALER, 0660, "cualc%n%n", adapter,
|
||||
UID_UUCP, GID_DIALER, 0660, "cualc%r%r", adapter,
|
||||
unit % CY_MAX_PORTS);
|
||||
#endif
|
||||
}
|
||||
|
@ -1166,10 +1166,10 @@ rp_pciattach(pcici_t tag, int unit)
|
||||
rp_table(line) = rp;
|
||||
/* devfs_add_devswf(&rp_cdevsw,
|
||||
port, DV_CHR, UID_ROOT, GID_WHEEL, 0600,
|
||||
"ttyR%n", port);
|
||||
"ttyR%r", port);
|
||||
devfs_add_devswf(&rp_cdevsw,
|
||||
port | CONTROL_INIT_STATE, DV_CHR, UID_ROOT,
|
||||
GID_WHEEL, 0600, "ttyRi%n", port);
|
||||
GID_WHEEL, 0600, "ttyRi%r", port);
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)com.c 7.5 (Berkeley) 5/16/91
|
||||
* $Id: sio.c,v 1.207 1998/06/16 11:05:59 bde Exp $
|
||||
* $Id: sio.c,v 1.208 1998/06/24 09:23:32 phk Exp $
|
||||
*/
|
||||
|
||||
#include "opt_comconsole.h"
|
||||
@ -1085,22 +1085,22 @@ determined_type: ;
|
||||
#ifdef DEVFS
|
||||
com->devfs_token_ttyd = devfs_add_devswf(&sio_cdevsw,
|
||||
unit, DV_CHR,
|
||||
UID_ROOT, GID_WHEEL, 0600, "ttyd%n", unit);
|
||||
UID_ROOT, GID_WHEEL, 0600, "ttyd%r", unit);
|
||||
com->devfs_token_ttyi = devfs_add_devswf(&sio_cdevsw,
|
||||
unit | CONTROL_INIT_STATE, DV_CHR,
|
||||
UID_ROOT, GID_WHEEL, 0600, "ttyid%n", unit);
|
||||
UID_ROOT, GID_WHEEL, 0600, "ttyid%r", unit);
|
||||
com->devfs_token_ttyl = devfs_add_devswf(&sio_cdevsw,
|
||||
unit | CONTROL_LOCK_STATE, DV_CHR,
|
||||
UID_ROOT, GID_WHEEL, 0600, "ttyld%n", unit);
|
||||
UID_ROOT, GID_WHEEL, 0600, "ttyld%r", unit);
|
||||
com->devfs_token_cuaa = devfs_add_devswf(&sio_cdevsw,
|
||||
unit | CALLOUT_MASK, DV_CHR,
|
||||
UID_UUCP, GID_DIALER, 0660, "cuaa%n", unit);
|
||||
UID_UUCP, GID_DIALER, 0660, "cuaa%r", unit);
|
||||
com->devfs_token_cuai = devfs_add_devswf(&sio_cdevsw,
|
||||
unit | CALLOUT_MASK | CONTROL_INIT_STATE, DV_CHR,
|
||||
UID_UUCP, GID_DIALER, 0660, "cuaia%n", unit);
|
||||
UID_UUCP, GID_DIALER, 0660, "cuaia%r", unit);
|
||||
com->devfs_token_cual = devfs_add_devswf(&sio_cdevsw,
|
||||
unit | CALLOUT_MASK | CONTROL_LOCK_STATE, DV_CHR,
|
||||
UID_UUCP, GID_DIALER, 0660, "cuala%n", unit);
|
||||
UID_UUCP, GID_DIALER, 0660, "cuala%r", unit);
|
||||
#endif
|
||||
com->id_flags = isdp->id_flags; /* Heritate id_flags for later */
|
||||
return (1);
|
||||
|
@ -25,7 +25,7 @@
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id: syscons.c,v 1.265 1998/07/06 06:29:07 imp Exp $
|
||||
* $Id: syscons.c,v 1.266 1998/07/14 11:42:05 bde Exp $
|
||||
*/
|
||||
|
||||
#include "sc.h"
|
||||
@ -812,7 +812,7 @@ scattach(struct isa_device *dev)
|
||||
#ifdef DEVFS
|
||||
for (vc = 0; vc < MAXCONS; vc++)
|
||||
sc_devfs_token[vc] = devfs_add_devswf(&scdevsw, vc, DV_CHR,
|
||||
UID_ROOT, GID_WHEEL, 0600, "ttyv%n", vc);
|
||||
UID_ROOT, GID_WHEEL, 0600, "ttyv%r", vc);
|
||||
sc_vga_devfs_token = devfs_link(sc_devfs_token[0], "vga");
|
||||
sc_mouse_devfs_token = devfs_add_devswf(&scdevsw, SC_MOUSE, DV_CHR,
|
||||
UID_ROOT, GID_WHEEL, 0600, "sysmouse");
|
||||
|
@ -27,7 +27,7 @@
|
||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id: cy.c,v 1.62 1998/03/18 20:52:28 dg Exp $
|
||||
* $Id: cy.c,v 1.63 1998/06/07 17:10:16 dfr Exp $
|
||||
*/
|
||||
|
||||
#include "opt_compat.h"
|
||||
@ -597,27 +597,27 @@ cyattach_common(cy_iobase, cy_align)
|
||||
#ifdef DEVFS
|
||||
com->devfs_token_ttyd = devfs_add_devswf(&sio_cdevsw,
|
||||
unit, DV_CHR,
|
||||
UID_ROOT, GID_WHEEL, 0600, "ttyc%n%n", adapter,
|
||||
UID_ROOT, GID_WHEEL, 0600, "ttyc%r%r", adapter,
|
||||
unit % CY_MAX_PORTS);
|
||||
com->devfs_token_ttyi = devfs_add_devswf(&sio_cdevsw,
|
||||
unit | CONTROL_INIT_STATE, DV_CHR,
|
||||
UID_ROOT, GID_WHEEL, 0600, "ttyic%n%n", adapter,
|
||||
UID_ROOT, GID_WHEEL, 0600, "ttyic%r%r", adapter,
|
||||
unit % CY_MAX_PORTS);
|
||||
com->devfs_token_ttyl = devfs_add_devswf(&sio_cdevsw,
|
||||
unit | CONTROL_LOCK_STATE, DV_CHR,
|
||||
UID_ROOT, GID_WHEEL, 0600, "ttylc%n%n", adapter,
|
||||
UID_ROOT, GID_WHEEL, 0600, "ttylc%r%r", adapter,
|
||||
unit % CY_MAX_PORTS);
|
||||
com->devfs_token_cuaa = devfs_add_devswf(&sio_cdevsw,
|
||||
unit | CALLOUT_MASK, DV_CHR,
|
||||
UID_UUCP, GID_DIALER, 0660, "cuac%n%n", adapter,
|
||||
UID_UUCP, GID_DIALER, 0660, "cuac%r%r", adapter,
|
||||
unit % CY_MAX_PORTS);
|
||||
com->devfs_token_cuai = devfs_add_devswf(&sio_cdevsw,
|
||||
unit | CALLOUT_MASK | CONTROL_INIT_STATE, DV_CHR,
|
||||
UID_UUCP, GID_DIALER, 0660, "cuaic%n%n", adapter,
|
||||
UID_UUCP, GID_DIALER, 0660, "cuaic%r%r", adapter,
|
||||
unit % CY_MAX_PORTS);
|
||||
com->devfs_token_cual = devfs_add_devswf(&sio_cdevsw,
|
||||
unit | CALLOUT_MASK | CONTROL_LOCK_STATE, DV_CHR,
|
||||
UID_UUCP, GID_DIALER, 0660, "cualc%n%n", adapter,
|
||||
UID_UUCP, GID_DIALER, 0660, "cualc%r%r", adapter,
|
||||
unit % CY_MAX_PORTS);
|
||||
#endif
|
||||
}
|
||||
|
@ -363,7 +363,7 @@ pcattach(struct isa_device *dev)
|
||||
for(vt = 0; vt < MAXCONS; vt++) {
|
||||
pcvt_devfs_token[vt] =
|
||||
devfs_add_devswf(&pcdevsw, vt,
|
||||
DV_CHR, 0, 0, 0600, "ttyv%n", vt );
|
||||
DV_CHR, 0, 0, 0600, "ttyv%r", vt );
|
||||
}
|
||||
#endif DEVFS
|
||||
#endif /* PCVT_FREEBSD > 205 */
|
||||
|
@ -1166,10 +1166,10 @@ rp_pciattach(pcici_t tag, int unit)
|
||||
rp_table(line) = rp;
|
||||
/* devfs_add_devswf(&rp_cdevsw,
|
||||
port, DV_CHR, UID_ROOT, GID_WHEEL, 0600,
|
||||
"ttyR%n", port);
|
||||
"ttyR%r", port);
|
||||
devfs_add_devswf(&rp_cdevsw,
|
||||
port | CONTROL_INIT_STATE, DV_CHR, UID_ROOT,
|
||||
GID_WHEEL, 0600, "ttyRi%n", port);
|
||||
GID_WHEEL, 0600, "ttyRi%r", port);
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)com.c 7.5 (Berkeley) 5/16/91
|
||||
* $Id: sio.c,v 1.207 1998/06/16 11:05:59 bde Exp $
|
||||
* $Id: sio.c,v 1.208 1998/06/24 09:23:32 phk Exp $
|
||||
*/
|
||||
|
||||
#include "opt_comconsole.h"
|
||||
@ -1085,22 +1085,22 @@ determined_type: ;
|
||||
#ifdef DEVFS
|
||||
com->devfs_token_ttyd = devfs_add_devswf(&sio_cdevsw,
|
||||
unit, DV_CHR,
|
||||
UID_ROOT, GID_WHEEL, 0600, "ttyd%n", unit);
|
||||
UID_ROOT, GID_WHEEL, 0600, "ttyd%r", unit);
|
||||
com->devfs_token_ttyi = devfs_add_devswf(&sio_cdevsw,
|
||||
unit | CONTROL_INIT_STATE, DV_CHR,
|
||||
UID_ROOT, GID_WHEEL, 0600, "ttyid%n", unit);
|
||||
UID_ROOT, GID_WHEEL, 0600, "ttyid%r", unit);
|
||||
com->devfs_token_ttyl = devfs_add_devswf(&sio_cdevsw,
|
||||
unit | CONTROL_LOCK_STATE, DV_CHR,
|
||||
UID_ROOT, GID_WHEEL, 0600, "ttyld%n", unit);
|
||||
UID_ROOT, GID_WHEEL, 0600, "ttyld%r", unit);
|
||||
com->devfs_token_cuaa = devfs_add_devswf(&sio_cdevsw,
|
||||
unit | CALLOUT_MASK, DV_CHR,
|
||||
UID_UUCP, GID_DIALER, 0660, "cuaa%n", unit);
|
||||
UID_UUCP, GID_DIALER, 0660, "cuaa%r", unit);
|
||||
com->devfs_token_cuai = devfs_add_devswf(&sio_cdevsw,
|
||||
unit | CALLOUT_MASK | CONTROL_INIT_STATE, DV_CHR,
|
||||
UID_UUCP, GID_DIALER, 0660, "cuaia%n", unit);
|
||||
UID_UUCP, GID_DIALER, 0660, "cuaia%r", unit);
|
||||
com->devfs_token_cual = devfs_add_devswf(&sio_cdevsw,
|
||||
unit | CALLOUT_MASK | CONTROL_LOCK_STATE, DV_CHR,
|
||||
UID_UUCP, GID_DIALER, 0660, "cuala%n", unit);
|
||||
UID_UUCP, GID_DIALER, 0660, "cuala%r", unit);
|
||||
#endif
|
||||
com->id_flags = isdp->id_flags; /* Heritate id_flags for later */
|
||||
return (1);
|
||||
|
@ -235,32 +235,32 @@ pcmattach(struct isa_device * dev)
|
||||
* Attempts by later devices to make these links will fail.
|
||||
*/
|
||||
cookie = devfs_add_devswf(&snd_cdevsw, (dev->id_unit << 4) | SND_DEV_DSP,
|
||||
DV_CHR, UID_SND, GID_SND, PERM_SND, "dsp%n", dev->id_unit);
|
||||
DV_CHR, UID_SND, GID_SND, PERM_SND, "dsp%r", dev->id_unit);
|
||||
if (cookie) devfs_link(cookie, "dsp");
|
||||
|
||||
cookie = devfs_add_devswf(&snd_cdevsw, (dev->id_unit << 4) | SND_DEV_DSP16,
|
||||
DV_CHR, UID_SND, GID_SND, PERM_SND, "dspW%n", dev->id_unit);
|
||||
DV_CHR, UID_SND, GID_SND, PERM_SND, "dspW%r", dev->id_unit);
|
||||
if (cookie) devfs_link(cookie, "dspW");
|
||||
|
||||
cookie = devfs_add_devswf(&snd_cdevsw, (dev->id_unit << 4) | SND_DEV_AUDIO,
|
||||
DV_CHR, UID_SND, GID_SND, PERM_SND, "audio%n", dev->id_unit);
|
||||
DV_CHR, UID_SND, GID_SND, PERM_SND, "audio%r", dev->id_unit);
|
||||
if (cookie) devfs_link(cookie, "audio");
|
||||
|
||||
cookie = devfs_add_devswf(&snd_cdevsw, (dev->id_unit << 4) | SND_DEV_CTL,
|
||||
DV_CHR, UID_SND, GID_SND, PERM_SND, "mixer%n", dev->id_unit);
|
||||
DV_CHR, UID_SND, GID_SND, PERM_SND, "mixer%r", dev->id_unit);
|
||||
if (cookie) devfs_link(cookie, "mixer");
|
||||
|
||||
cookie = devfs_add_devswf(&snd_cdevsw, (dev->id_unit << 4) | SND_DEV_STATUS,
|
||||
DV_CHR, UID_SND, GID_SND, PERM_SND, "sndstat%n", dev->id_unit);
|
||||
DV_CHR, UID_SND, GID_SND, PERM_SND, "sndstat%r", dev->id_unit);
|
||||
if (cookie) devfs_link(cookie, "sndstat");
|
||||
|
||||
#if 0 /* these two are still unsupported... */
|
||||
cookie = devfs_add_devswf(&snd_cdevsw, (dev->id_unit << 4) | SND_DEV_MIDIN,
|
||||
DV_CHR, UID_SND, GID_SND, PERM_SND, "midi%n", dev->id_unit);
|
||||
DV_CHR, UID_SND, GID_SND, PERM_SND, "midi%r", dev->id_unit);
|
||||
if (cookie) devfs_link(cookie, "midi");
|
||||
|
||||
cookie = devfs_add_devswf(&snd_cdevsw, (dev->id_unit << 4) | SND_DEV_SYNTH,
|
||||
DV_CHR, UID_SND, GID_SND, PERM_SND, "sequencer%n", dev->id_unit);
|
||||
DV_CHR, UID_SND, GID_SND, PERM_SND, "sequencer%r", dev->id_unit);
|
||||
if (cookie) devfs_link(cookie, "sequencer");
|
||||
#endif
|
||||
#endif /* DEVFS */
|
||||
|
@ -462,35 +462,35 @@ sndattach(struct isa_device * dev)
|
||||
if (dev->id_driver == &opldriver){
|
||||
tmp = devfs_add_devswf(&snd_cdevsw, (dev->id_unit << 4) | SND_DEV_SEQ,
|
||||
DV_CHR, UID_SND, GID_SND, PERM_SND,
|
||||
"sequencer%n", dev->id_unit);
|
||||
"sequencer%r", dev->id_unit);
|
||||
if (tmp) devfs_link(tmp, "sequencer");
|
||||
} else if (dev->id_driver == &mpudriver ||
|
||||
dev->id_driver == &sbmididriver ||
|
||||
dev->id_driver == &uartdriver){
|
||||
tmp = devfs_add_devswf(&snd_cdevsw, (dev->id_unit << 4) | SND_DEV_MIDIN,
|
||||
DV_CHR, UID_SND, GID_SND, PERM_SND,
|
||||
"midi%n", dev->id_unit);
|
||||
"midi%r", dev->id_unit);
|
||||
if (tmp) devfs_link(tmp, "midi");
|
||||
} else {
|
||||
tmp = devfs_add_devswf(&snd_cdevsw, (dev->id_unit << 4) | SND_DEV_DSP,
|
||||
DV_CHR, UID_SND, GID_SND, PERM_SND,
|
||||
"dsp%n", dev->id_unit);
|
||||
"dsp%r", dev->id_unit);
|
||||
if (tmp) devfs_link(tmp, "dsp");
|
||||
tmp = devfs_add_devswf(&snd_cdevsw, (dev->id_unit << 4) | SND_DEV_DSP16,
|
||||
DV_CHR, UID_SND, GID_SND, PERM_SND,
|
||||
"dspW%n", dev->id_unit);
|
||||
"dspW%r", dev->id_unit);
|
||||
if (tmp) devfs_link(tmp, "dspW");
|
||||
tmp = devfs_add_devswf(&snd_cdevsw, (dev->id_unit << 4) | SND_DEV_AUDIO,
|
||||
DV_CHR, UID_SND, GID_SND, PERM_SND,
|
||||
"audio%n", dev->id_unit);
|
||||
"audio%r", dev->id_unit);
|
||||
if (tmp) devfs_link(tmp, "audio");
|
||||
tmp = devfs_add_devswf(&snd_cdevsw, (dev->id_unit << 4) | SND_DEV_CTL,
|
||||
DV_CHR, UID_SND, GID_SND, PERM_SND,
|
||||
"mixer%n", dev->id_unit);
|
||||
"mixer%r", dev->id_unit);
|
||||
if (tmp) devfs_link(tmp, "mixer");
|
||||
tmp = devfs_add_devswf(&snd_cdevsw, (dev->id_unit << 4) | SND_DEV_STATUS,
|
||||
DV_CHR, UID_SND, GID_SND, PERM_SND,
|
||||
"sndstat%n", dev->id_unit);
|
||||
"sndstat%r", dev->id_unit);
|
||||
if (tmp) devfs_link(tmp, "sndstat");
|
||||
}
|
||||
#endif /* DEVFS */
|
||||
|
@ -25,7 +25,7 @@
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id: syscons.c,v 1.265 1998/07/06 06:29:07 imp Exp $
|
||||
* $Id: syscons.c,v 1.266 1998/07/14 11:42:05 bde Exp $
|
||||
*/
|
||||
|
||||
#include "sc.h"
|
||||
@ -812,7 +812,7 @@ scattach(struct isa_device *dev)
|
||||
#ifdef DEVFS
|
||||
for (vc = 0; vc < MAXCONS; vc++)
|
||||
sc_devfs_token[vc] = devfs_add_devswf(&scdevsw, vc, DV_CHR,
|
||||
UID_ROOT, GID_WHEEL, 0600, "ttyv%n", vc);
|
||||
UID_ROOT, GID_WHEEL, 0600, "ttyv%r", vc);
|
||||
sc_vga_devfs_token = devfs_link(sc_devfs_token[0], "vga");
|
||||
sc_mouse_devfs_token = devfs_add_devswf(&scdevsw, SC_MOUSE, DV_CHR,
|
||||
UID_ROOT, GID_WHEEL, 0600, "sysmouse");
|
||||
|
@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)com.c 7.5 (Berkeley) 5/16/91
|
||||
* $Id: sio.c,v 1.207 1998/06/16 11:05:59 bde Exp $
|
||||
* $Id: sio.c,v 1.208 1998/06/24 09:23:32 phk Exp $
|
||||
*/
|
||||
|
||||
#include "opt_comconsole.h"
|
||||
@ -1085,22 +1085,22 @@ determined_type: ;
|
||||
#ifdef DEVFS
|
||||
com->devfs_token_ttyd = devfs_add_devswf(&sio_cdevsw,
|
||||
unit, DV_CHR,
|
||||
UID_ROOT, GID_WHEEL, 0600, "ttyd%n", unit);
|
||||
UID_ROOT, GID_WHEEL, 0600, "ttyd%r", unit);
|
||||
com->devfs_token_ttyi = devfs_add_devswf(&sio_cdevsw,
|
||||
unit | CONTROL_INIT_STATE, DV_CHR,
|
||||
UID_ROOT, GID_WHEEL, 0600, "ttyid%n", unit);
|
||||
UID_ROOT, GID_WHEEL, 0600, "ttyid%r", unit);
|
||||
com->devfs_token_ttyl = devfs_add_devswf(&sio_cdevsw,
|
||||
unit | CONTROL_LOCK_STATE, DV_CHR,
|
||||
UID_ROOT, GID_WHEEL, 0600, "ttyld%n", unit);
|
||||
UID_ROOT, GID_WHEEL, 0600, "ttyld%r", unit);
|
||||
com->devfs_token_cuaa = devfs_add_devswf(&sio_cdevsw,
|
||||
unit | CALLOUT_MASK, DV_CHR,
|
||||
UID_UUCP, GID_DIALER, 0660, "cuaa%n", unit);
|
||||
UID_UUCP, GID_DIALER, 0660, "cuaa%r", unit);
|
||||
com->devfs_token_cuai = devfs_add_devswf(&sio_cdevsw,
|
||||
unit | CALLOUT_MASK | CONTROL_INIT_STATE, DV_CHR,
|
||||
UID_UUCP, GID_DIALER, 0660, "cuaia%n", unit);
|
||||
UID_UUCP, GID_DIALER, 0660, "cuaia%r", unit);
|
||||
com->devfs_token_cual = devfs_add_devswf(&sio_cdevsw,
|
||||
unit | CALLOUT_MASK | CONTROL_LOCK_STATE, DV_CHR,
|
||||
UID_UUCP, GID_DIALER, 0660, "cuala%n", unit);
|
||||
UID_UUCP, GID_DIALER, 0660, "cuala%r", unit);
|
||||
#endif
|
||||
com->id_flags = isdp->id_flags; /* Heritate id_flags for later */
|
||||
return (1);
|
||||
|
@ -25,7 +25,7 @@
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id: syscons.c,v 1.265 1998/07/06 06:29:07 imp Exp $
|
||||
* $Id: syscons.c,v 1.266 1998/07/14 11:42:05 bde Exp $
|
||||
*/
|
||||
|
||||
#include "sc.h"
|
||||
@ -812,7 +812,7 @@ scattach(struct isa_device *dev)
|
||||
#ifdef DEVFS
|
||||
for (vc = 0; vc < MAXCONS; vc++)
|
||||
sc_devfs_token[vc] = devfs_add_devswf(&scdevsw, vc, DV_CHR,
|
||||
UID_ROOT, GID_WHEEL, 0600, "ttyv%n", vc);
|
||||
UID_ROOT, GID_WHEEL, 0600, "ttyv%r", vc);
|
||||
sc_vga_devfs_token = devfs_link(sc_devfs_token[0], "vga");
|
||||
sc_mouse_devfs_token = devfs_add_devswf(&scdevsw, SC_MOUSE, DV_CHR,
|
||||
UID_ROOT, GID_WHEEL, 0600, "sysmouse");
|
||||
|
@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)tty_pty.c 8.4 (Berkeley) 2/20/95
|
||||
* $Id: tty_pty.c,v 1.51 1998/02/25 06:19:15 bde Exp $
|
||||
* $Id: tty_pty.c,v 1.52 1998/06/07 17:11:43 dfr Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -815,11 +815,11 @@ ptc_drvinit(unused)
|
||||
devfs_token_pts[i] =
|
||||
devfs_add_devswf(&pts_cdevsw,i,
|
||||
DV_CHR,0,0,0666,
|
||||
"tty%c%n",jnames[j],k);
|
||||
"tty%c%r",jnames[j],k);
|
||||
devfs_token_ptc[i] =
|
||||
devfs_add_devswf(&ptc_cdevsw,i,
|
||||
DV_CHR,0,0,0666,
|
||||
"pty%c%n",jnames[j],k);
|
||||
"pty%c%r",jnames[j],k);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)com.c 7.5 (Berkeley) 5/16/91
|
||||
* $Id: sio.c,v 1.61 1998/06/17 09:27:15 kato Exp $
|
||||
* $Id: sio.c,v 1.62 1998/06/24 13:37:23 kato Exp $
|
||||
*/
|
||||
|
||||
#include "opt_comconsole.h"
|
||||
@ -1442,22 +1442,22 @@ determined_type: ;
|
||||
#ifdef DEVFS
|
||||
com->devfs_token_ttyd = devfs_add_devswf(&sio_cdevsw,
|
||||
unit, DV_CHR,
|
||||
UID_ROOT, GID_WHEEL, 0600, "ttyd%n", unit);
|
||||
UID_ROOT, GID_WHEEL, 0600, "ttyd%r", unit);
|
||||
com->devfs_token_ttyi = devfs_add_devswf(&sio_cdevsw,
|
||||
unit | CONTROL_INIT_STATE, DV_CHR,
|
||||
UID_ROOT, GID_WHEEL, 0600, "ttyid%n", unit);
|
||||
UID_ROOT, GID_WHEEL, 0600, "ttyid%r", unit);
|
||||
com->devfs_token_ttyl = devfs_add_devswf(&sio_cdevsw,
|
||||
unit | CONTROL_LOCK_STATE, DV_CHR,
|
||||
UID_ROOT, GID_WHEEL, 0600, "ttyld%n", unit);
|
||||
UID_ROOT, GID_WHEEL, 0600, "ttyld%r", unit);
|
||||
com->devfs_token_cuaa = devfs_add_devswf(&sio_cdevsw,
|
||||
unit | CALLOUT_MASK, DV_CHR,
|
||||
UID_UUCP, GID_DIALER, 0660, "cuaa%n", unit);
|
||||
UID_UUCP, GID_DIALER, 0660, "cuaa%r", unit);
|
||||
com->devfs_token_cuai = devfs_add_devswf(&sio_cdevsw,
|
||||
unit | CALLOUT_MASK | CONTROL_INIT_STATE, DV_CHR,
|
||||
UID_UUCP, GID_DIALER, 0660, "cuaia%n", unit);
|
||||
UID_UUCP, GID_DIALER, 0660, "cuaia%r", unit);
|
||||
com->devfs_token_cual = devfs_add_devswf(&sio_cdevsw,
|
||||
unit | CALLOUT_MASK | CONTROL_LOCK_STATE, DV_CHR,
|
||||
UID_UUCP, GID_DIALER, 0660, "cuala%n", unit);
|
||||
UID_UUCP, GID_DIALER, 0660, "cuala%r", unit);
|
||||
#endif
|
||||
com->id_flags = isdp->id_flags; /* Heritate id_flags for later */
|
||||
return (1);
|
||||
|
@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)com.c 7.5 (Berkeley) 5/16/91
|
||||
* $Id: sio.c,v 1.61 1998/06/17 09:27:15 kato Exp $
|
||||
* $Id: sio.c,v 1.62 1998/06/24 13:37:23 kato Exp $
|
||||
*/
|
||||
|
||||
#include "opt_comconsole.h"
|
||||
@ -1442,22 +1442,22 @@ determined_type: ;
|
||||
#ifdef DEVFS
|
||||
com->devfs_token_ttyd = devfs_add_devswf(&sio_cdevsw,
|
||||
unit, DV_CHR,
|
||||
UID_ROOT, GID_WHEEL, 0600, "ttyd%n", unit);
|
||||
UID_ROOT, GID_WHEEL, 0600, "ttyd%r", unit);
|
||||
com->devfs_token_ttyi = devfs_add_devswf(&sio_cdevsw,
|
||||
unit | CONTROL_INIT_STATE, DV_CHR,
|
||||
UID_ROOT, GID_WHEEL, 0600, "ttyid%n", unit);
|
||||
UID_ROOT, GID_WHEEL, 0600, "ttyid%r", unit);
|
||||
com->devfs_token_ttyl = devfs_add_devswf(&sio_cdevsw,
|
||||
unit | CONTROL_LOCK_STATE, DV_CHR,
|
||||
UID_ROOT, GID_WHEEL, 0600, "ttyld%n", unit);
|
||||
UID_ROOT, GID_WHEEL, 0600, "ttyld%r", unit);
|
||||
com->devfs_token_cuaa = devfs_add_devswf(&sio_cdevsw,
|
||||
unit | CALLOUT_MASK, DV_CHR,
|
||||
UID_UUCP, GID_DIALER, 0660, "cuaa%n", unit);
|
||||
UID_UUCP, GID_DIALER, 0660, "cuaa%r", unit);
|
||||
com->devfs_token_cuai = devfs_add_devswf(&sio_cdevsw,
|
||||
unit | CALLOUT_MASK | CONTROL_INIT_STATE, DV_CHR,
|
||||
UID_UUCP, GID_DIALER, 0660, "cuaia%n", unit);
|
||||
UID_UUCP, GID_DIALER, 0660, "cuaia%r", unit);
|
||||
com->devfs_token_cual = devfs_add_devswf(&sio_cdevsw,
|
||||
unit | CALLOUT_MASK | CONTROL_LOCK_STATE, DV_CHR,
|
||||
UID_UUCP, GID_DIALER, 0660, "cuala%n", unit);
|
||||
UID_UUCP, GID_DIALER, 0660, "cuala%r", unit);
|
||||
#endif
|
||||
com->id_flags = isdp->id_flags; /* Heritate id_flags for later */
|
||||
return (1);
|
||||
|
@ -25,7 +25,7 @@
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id: syscons.c,v 1.89 1998/06/24 13:37:50 kato Exp $
|
||||
* $Id: syscons.c,v 1.90 1998/07/08 08:54:38 kato Exp $
|
||||
*/
|
||||
|
||||
#include "sc.h"
|
||||
@ -936,7 +936,7 @@ scattach(struct isa_device *dev)
|
||||
#ifdef DEVFS
|
||||
for (vc = 0; vc < MAXCONS; vc++)
|
||||
sc_devfs_token[vc] = devfs_add_devswf(&scdevsw, vc, DV_CHR,
|
||||
UID_ROOT, GID_WHEEL, 0600, "ttyv%n", vc);
|
||||
UID_ROOT, GID_WHEEL, 0600, "ttyv%r", vc);
|
||||
sc_vga_devfs_token = devfs_link(sc_devfs_token[0], "vga");
|
||||
sc_mouse_devfs_token = devfs_add_devswf(&scdevsw, SC_MOUSE, DV_CHR,
|
||||
UID_ROOT, GID_WHEEL, 0600, "sysmouse");
|
||||
|
Loading…
x
Reference in New Issue
Block a user