Lines Matching refs:res
22 int res; in test_mkdir() local
27 res = mkdir(TEST_DIR, S_IRWXG); in test_mkdir()
28 if (res) { in test_mkdir()
29 TC_PRINT("Error creating dir[%d]\n", res); in test_mkdir()
30 return res; in test_mkdir()
33 res = open(TEST_DIR_FILE, O_CREAT | O_RDWR, 0770); in test_mkdir()
35 if (res < 0) { in test_mkdir()
36 TC_PRINT("Failed opening file [%d]\n", res); in test_mkdir()
37 return res; in test_mkdir()
39 file = res; in test_mkdir()
41 res = test_file_write(); in test_mkdir()
42 if (res) { in test_mkdir()
43 return res; in test_mkdir()
46 res = close(file); in test_mkdir()
47 if (res) { in test_mkdir()
48 TC_PRINT("Error closing file [%d]\n", res); in test_mkdir()
49 return res; in test_mkdir()
54 return res; in test_mkdir()
74 int res = 0; in test_lsdir() local
91 res = -EIO; in test_lsdir()
99 res = -EIO; in test_lsdir()
105 return res; in test_lsdir()