Lines Matching refs:fd_cap
119 int fd_cap, fd_capcap, dfd_cap; in try_file_ops() local
131 REQUIRE(fd_cap = cap_new(filefd, rights)); in try_file_ops()
132 CHECK(cap_getrights(fd_cap, &erights) == 0); in try_file_ops()
134 REQUIRE(fd_capcap = cap_new(fd_cap, rights)); in try_file_ops()
137 CHECK(fd_capcap != fd_cap); in try_file_ops()
142 ssize = read(fd_cap, &ch, sizeof(ch)); in try_file_ops()
145 ssize = write(fd_cap, &ch, sizeof(ch)); in try_file_ops()
148 off = lseek(fd_cap, 0, SEEK_SET); in try_file_ops()
151 ssize = pread(fd_cap, &ch, sizeof(ch), 0); in try_file_ops()
152 ssize2 = pread(fd_cap, &ch, sizeof(ch), 0); in try_file_ops()
156 ssize = pwrite(fd_cap, &ch, sizeof(ch), 0); in try_file_ops()
159 p = mmap(NULL, getpagesize(), PROT_NONE, MAP_SHARED, fd_cap, 0); in try_file_ops()
162 p = mmap(NULL, getpagesize(), PROT_READ, MAP_SHARED, fd_cap, 0); in try_file_ops()
165 p = mmap(NULL, getpagesize(), PROT_WRITE, MAP_SHARED, fd_cap, 0); in try_file_ops()
168 p = mmap(NULL, getpagesize(), PROT_EXEC, MAP_SHARED, fd_cap, 0); in try_file_ops()
172 fd_cap, 0); in try_file_ops()
176 fd_cap, 0); in try_file_ops()
180 fd_cap, 0); in try_file_ops()
184 MAP_SHARED, fd_cap, 0); in try_file_ops()
204 ret = fsync(fd_cap); in try_file_ops()
236 ret = ftruncate(fd_cap, 0); in try_file_ops()
292 ret = fchflags(fd_cap, UF_NODUMP); in try_file_ops()
303 ret = fchown(fd_cap, -1, -1); in try_file_ops()
313 ret = fchmod(fd_cap, 0644); in try_file_ops()
323 ret = fcntl(fd_cap, F_GETFL); in try_file_ops()
325 ret = fcntl(fd_cap, F_SETFL, ret); in try_file_ops()
330 ret = fstat(fd_cap, &sb); in try_file_ops()
340 ret = fstatfs(fd_cap, &sf); in try_file_ops()
343 ret = fpathconf(fd_cap, _PC_NAME_MAX); in try_file_ops()
346 ret = futimes(fd_cap, NULL); in try_file_ops()
394 pollfd.fd = fd_cap; in try_file_ops()
406 close(fd_cap); in try_file_ops()