From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,d22148a1a0ef57fe,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-10-25 19:41:33 PST Path: bga.com!news.sprintlink.net!uunet!kithrup.com!news.Stanford.EDU!Xenon.Stanford.EDU!junhe From: junhe@Xenon.Stanford.EDU (Junhe Liu) Newsgroups: comp.unix.osf.osf1 Subject: question on mount system call on OSF1 Date: 25 Oct 1994 22:42:02 GMT Organization: Computer Science Department, Stanford University. Distribution: Everywhere Message-ID: <38k1jq$nc0@Times.Stanford.EDU> NNTP-Posting-Host: xenon.stanford.edu Hi, A user of mine wants to mount and umount CDs by himself (actually I prefer that, too). I understand suid Shell program is not a safe route to go, so I am thinking of writing a one line C program that mounts and umounts. The mount system call man page says mount() has 4 arguments: mount( int type, char *mnt-path, int mnt_flag, caddr_t data ); There is no argument for the CD device. How can I tell mount() to the CD device? Also, may I just leave "caddr_t data" to be NULL? Seems that field is only for some special purpose. Thanks in advance, Junhe Liu junhe@cs.stanford.edu