Messages in this thread | | | Date | Sun, 14 Jun 1998 17:25:05 +1000 | From | Richard Gooch <> | Subject | Re: Can I open a special file with major/minor instead of name? |
| |
Dave Cinege writes: > This is the code in do_linuxrc(): > > (void) open("/dev/tty1",O_RDWR,0); > > This is what I want to do: > > (void) open( MKDEV(TTY_MAJOR,1) ,O_RDWR,0); > > This is why: > I build all of /dev from /linuxrc, thus /dev/tty1 does not yet exist. > Right now I have a work around but this way would be cleaner.
Why not use devfs?
Regards,
Richard....
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu
| |