Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!brutus.cs.uiuc.edu!jarthur!elroy.jpl.nasa.gov!ames!pasteur!ucbvax!hplabs!hpfcso!hpfcmgw!rdg From: rdg@hpfcmgw.HP.COM (Rob Gardner) Newsgroups: comp.sys.hp Subject: Re: removable r/w optical disk Message-ID: <1080133@hpfcmgw.HP.COM> Date: 6 Mar 90 17:27:51 GMT References: Organization: HP Fort Collins, CO Lines: 19 > > system ("/etc/mount /dev/dsk/c6d0s2 /i2"); > > system ("/bin/chmod 755 /i2"); > Why not do something like: > > mount("/dev/dsk/c6d0s2", "/i2", 0); > chmod("/i2", 0755); > > ...and avoid four unnecessary fork(2) calls? The mount command checks to make sure the file system is clean, and also makes entries in /etc/mnttab. The mount intrinsic does neither. These things are important, you know? The chmod command could be avoided easily, of course. Rob