Lines Matching +full:open +full:- +full:source
3 /*-
10 * Redistribution and use in source and binary forms, with or without
13 * 1. Redistributions of source code must retain the above copyright
34 #include <atf-c.h>
68 ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1); in ATF_TC_BODY()
69 ATF_REQUIRE(close(fd) != -1); in ATF_TC_BODY()
71 ATF_REQUIRE((ofd = open(ODIR, O_RDONLY, 0)) != -1); in ATF_TC_BODY()
72 ATF_REQUIRE((nfd = open(NDIR, O_RDONLY, 0)) != -1); in ATF_TC_BODY()
95 ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1); in ATF_TC_BODY()
96 ATF_REQUIRE(close(fd) != -1); in ATF_TC_BODY()
117 ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1); in ATF_TC_BODY()
118 ATF_REQUIRE(close(fd) != -1); in ATF_TC_BODY()
120 ATF_REQUIRE(linkat(AT_FDCWD, FILEERR, AT_FDCWD, TARGET, 0) == -1); in ATF_TC_BODY()
126 atf_tc_set_md_var(tc, "descr", "See that linkat fails with fd as -1"); in ATF_TC_HEAD()
134 ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1); in ATF_TC_BODY()
135 ATF_REQUIRE(close(fd) != -1); in ATF_TC_BODY()
137 ATF_REQUIRE(linkat(-1, FILE, AT_FDCWD, TARGET, 0) == -1); in ATF_TC_BODY()
138 ATF_REQUIRE(linkat(AT_FDCWD, FILE, -1, TARGET, 0) == -1); in ATF_TC_BODY()
139 ATF_REQUIRE(linkat(-1, FILE, -1, TARGET, 0) == -1); in ATF_TC_BODY()
154 ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1); in ATF_TC_BODY()
155 ATF_REQUIRE(close(fd) != -1); in ATF_TC_BODY()
158 ATF_REQUIRE((ofd = open(ODIR, O_RDONLY, 0)) != -1); in ATF_TC_BODY()
159 ATF_REQUIRE((nfd = open(NDIR, O_RDONLY, 0)) != -1); in ATF_TC_BODY()
178 atf_tc_set_md_var(tc, "descr", "See that linkat works on symlink source"); in ATF_TC_HEAD()
187 ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1); in ATF_TC_BODY()
188 ATF_REQUIRE(close(fd) != -1); in ATF_TC_BODY()
191 ATF_REQUIRE((ofd = open(ODIR, O_RDONLY, 0)) != -1); in ATF_TC_BODY()
192 ATF_REQUIRE((nfd = open(NDIR, O_RDONLY, 0)) != -1); in ATF_TC_BODY()