Lines Matching +full:close +full:- +full:range
1 /*-
32 * - Make sure we get EISDIR on a directory.
71 * bytes now in the range of the file size return 0. in main()
73 * Save a read-only reference to the file to use later for read-only in main()
88 if (ftruncate(fd, -1) == 0) in main()
89 errx(1, "ftruncate(fd, -1) succeeded unexpectedly"); in main()
91 err(1, "ftruncate(fd, -1) returned wrong error"); in main()
100 errx(-1, "fstat with len=%jd returned len %jd up", in main()
103 size = pread(fd, &ch, sizeof(ch), len - 1); in main()
107 errx(-1, "pread len %jd size %jd up", in main()
110 errx(-1, in main()
116 for (i = lengths_count - 1; i >= 0; i--) { in main()
123 errx(-1, "fstat(%jd) returned %jd down", (intmax_t)len, in main()
126 close(fd); in main()
129 * Make sure that a read-only descriptor can't be truncated. in main()
132 errx(-1, "ftruncate(read_only_fd) succeeded"); in main()
135 close(read_only_fd); in main()
144 errx(-1, "ftruncate(socket) succeeded"); in main()
147 close(fd); in main()
155 errx(-1, "ftruncate(pipe) succeeded"); in main()
158 close(fds[0]); in main()
159 close(fds[1]); in main()
168 errx(-1, "ftruncate(kqueue) succeeded"); in main()
171 close(fd); in main()