Ignore interrupt in system() calls?
Conor P. Cahill
cpcahil at virtech.UUCP
Mon Sep 11 03:55:17 AEST 1989
In article <46800009 at uxf.cso.uiuc.edu>, thompson at 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 |
+-----------------------------------------------------------------------+
More information about the Comp.unix.wizards
mailing list