Subject: Re: #ifdef __i386 in usr.bin/eject
To: matthew green <mrg@mame.mu.Oz.Au>
From: Greg A. Woods <woods@most.weird.com>
List: current-users
Date: 10/25/1995 00:45:04
[ On Wed, October 25, 1995 at 14:01:57 (+1000), matthew green wrote: ]
> Subject: Re: #ifdef __i386 in usr.bin/eject 
>
> i like how "eject" (no args) works under sunos.  i really wish
> that it would under netbsd, also.  it just ejects the cdrom or
> floppy (or both?  don't know)...

On my Sun 3/260 with SunOS-4.1.1_U1:

ttyp1:<woods@most> # eject -d
eject: default device is "/dev/rfd0c"
ttyp1:<woods@most> # eject -n
eject: nicknames are:
        fd -> /dev/rfd0c
        fd0 -> /dev/rfd0c
        floppy -> /dev/rfd0c
        /dev/fd0 -> /dev/rfd0c
        /dev/fd0a -> /dev/rfd0c
        /dev/fd0b -> /dev/rfd0c
        /dev/fd0c -> /dev/rfd0c
        sr -> /dev/rsr0
        sr0 -> /dev/rsr0
        cd -> /dev/rsr0
        cdrom -> /dev/rsr0
        /dev/sr0 -> /dev/rsr0

and the manual page says:

  BUGS
     There should be a way to change the default  on  a  per-user
     basis.

It appears the nickname table is hard coded in the SunOS implementation....

-- 
							Greg A. Woods

+1 416 443-1734			VE3TCP			robohack!woods
Planix, Inc. <woods@planix.com>; Secrets of the Weird <woods@weird.com>