#include
#include
#include
int main(void)
{
int fd1, fd2;
fd1 = open(file_101.c, O_RDONLY);
fd2 = open(file_201.c, O_RDWR);
printf(fd1 = %d
, fd1);
printf(fd2 = %d
, fd2);
close(fd1);
fd1 = open(file_201.c, O_WRONLY);
printf(fd1 = %d
, fd1);
close(fd1);
close(fd2);
return 0;
}
Reviews
There are no reviews yet.