{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

bad_chdir - rv = chdir"" report_test2(rv errno...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
/* * Invalid calls to chdir() */ #include <unistd.h> #include <errno.h> #include <err.h> #include "test.h" static void chdir_empty(void) { int rv; /* * This is actually valid by some interpretations.
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: */ rv = chdir(""); report_test2(rv, errno, EINVAL, 0, "chdir to empty string"); } void test_chdir(void) { test_chdir_path(); chdir_empty(); }...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online