Path: utzoo!attcan!uunet!virtech!cpcahil From: cpcahil@virtech.UUCP (Conor P. Cahill) Newsgroups: comp.unix.wizards Subject: Re: Ignore interrupt in system() calls? Message-ID: <1143@virtech.UUCP> Date: 10 Sep 89 17:55:17 GMT References: <46800009@uxf.cso.uiuc.edu> Organization: Virtual Technologies Inc Lines: 17 In article <46800009@uxf.cso.uiuc.edu>, thompson@uxf.cso.uiuc.edu writes: > So, I need one of three things: > > 3. A way to "chmod" files from within a C program without using "system()". This, by far, would be the most optimal method to use, since it would only require a single system call chmod(2) as opposed to a fork, exec of the shell, fork, exec of the chmod program which will do a chmod(2) system call. RTFM for usage of chmod(2). -- +-----------------------------------------------------------------------+ | Conor P. Cahill uunet!virtech!cpcahil 703-430-9247 ! | Virtual Technologies Inc., P. O. Box 876, Sterling, VA 22170 | +-----------------------------------------------------------------------+