[cs631apue] hw2 questions
afonsec1
afonsec1 at stevens.edu
Wed Sep 21 16:37:40 EDT 2011
On Wed, 21 Sep 2011 16:32:21 -0400, Jan Schaumann wrote:
> afonsec1 <afonsec1 at stevens.edu> wrote:
>
>> Well What I meant is if we can use syscall()?
>
> Yes, you _can_ use syscall(2), but I don't know why you would want
> to.
> Copying a file really would only require you to read(2) and write(2).
>
> -Jan
> _______________________________________________
> cs631apue mailing list
> cs631apue at lists.stevens.edu
> https://lists.stevens.edu/cgi-bin/mailman/listinfo/cs631apue
Sorry, what I meant was
using the function system();
Example:
int main()
{
system("mkdir test");
return 0;
}
More information about the cs631apue
mailing list