10 main(int argc
, char *argv
[])
19 fd_parent
= atoi(argv
[1]);
21 /* Writing to fd_parent should fail as it has to be closed at this
23 if (write(fd_parent
, buf
, sizeof(buf
)) != -1) {
30 /* If we open a new file, the fd we obtain should be identical to
32 fd
= open("open_identical_fd", O_CREAT
|O_RDWR
, 0660);
33 if (fd
!= fd_parent
) {