HomeSort by relevance Sort by last modified time
    Searched defs:fd (Results 226 - 250 of 4687) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/shm_open/
14-2.c 40 int fd; local
44 fd = shm_open(SHM_NAME, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR);
45 if (fd == -1) {
50 if (ftruncate(fd, BUF_SIZE) != 0) {
55 buf = mmap(NULL, BUF_SIZE, PROT_WRITE, MAP_SHARED, fd, 0);
63 fd = shm_open(SHM_NAME, O_RDWR, S_IRUSR | S_IWUSR);
64 if (fd == -1) {
69 buf = mmap(NULL, BUF_SIZE, PROT_READ, MAP_SHARED, fd, 0);
20-1.c 34 int fd, result; local
44 fd = shm_open(SHM_NAME, O_RDONLY | O_CREAT, S_IRUSR);
45 if (fd == -1) {
50 result = ftruncate(fd, BUF_SIZE);
20-2.c 34 int fd, result; local
44 fd = shm_open(SHM_NAME, O_RDWR | O_CREAT, 0);
45 if (fd == -1) {
50 result = ftruncate(fd, BUF_SIZE);
20-3.c 34 int fd, result; local
45 fd = shm_open(SHM_NAME, O_RDWR | O_CREAT, 0);
46 if (fd == -1) {
51 if (ftruncate(fd, BUF_SIZE) != 0) {
57 ptr = mmap(NULL, BUF_SIZE, PROT_NONE, MAP_SHARED, fd, 0);
25-1.c 36 int fd; local
40 fd = shm_open(SHM_NAME, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR);
41 if (fd == -1) {
46 if (ftruncate(fd, SHM_SZ) == -1) {
51 fd = shm_open(SHM_NAME, O_RDWR | O_TRUNC, S_IRUSR | S_IWUSR);
52 if (fd == -1) {
58 if (fstat(fd, &stat_buf) != 0) {
26-1.c 32 int fd; local
36 fd = shm_open(SHM_NAME, O_RDWR | O_CREAT, CREATION_MODE);
37 if (fd == -1) {
42 if (fstat(fd, &stat_buf) != 0) {
49 fd = shm_open(SHM_NAME, O_RDWR | O_TRUNC, OPEN_MODE);
50 if (fd == -1) {
56 if (fstat(fd, &stat_buf) != 0) {
28-1.c 40 int fd; local
44 fd = shm_open(SHM_NAME, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR);
45 if (fd == -1) {
50 if (ftruncate(fd, BUF_SIZE) != 0) {
56 buf = mmap(NULL, BUF_SIZE, PROT_WRITE, MAP_SHARED, fd, 0);
71 if (close(fd) != 0) {
79 fd = shm_open(SHM_NAME, O_RDONLY, S_IRUSR | S_IWUSR);
80 if (fd == -1 && errno == ENOENT) {
83 } else if (fd == -1) {
89 buf = mmap(NULL, BUF_SIZE, PROT_READ, MAP_SHARED, fd, 0)
    [all...]
28-2.c 40 int fd; local
44 fd = shm_open(SHM_NAME, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR);
45 if (fd == -1) {
50 if (ftruncate(fd, BUF_SIZE) != 0) {
56 buf = mmap(NULL, BUF_SIZE, PROT_WRITE | PROT_READ, MAP_SHARED, fd, 0);
65 if (close(fd) != 0) {
28-3.c 41 int fd; local
45 fd = shm_open(SHM_NAME, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR);
46 if (fd == -1) {
51 if (ftruncate(fd, BUF_SIZE) != 0) {
57 buf = mmap(NULL, BUF_SIZE, PROT_WRITE, MAP_SHARED, fd, 0);
79 buf = mmap(NULL, BUF_SIZE, PROT_READ, MAP_SHARED, fd, 0);
32-1.c 63 int fd; local
73 fd = shm_open(SHM_NAME, O_RDWR | O_CREAT, 0);
74 if (fd == -1) {
79 fd = shm_open(SHM_NAME, O_RDWR, 0);
81 if (fd == -1 && errno == EACCES) {
85 } else if (fd != -1) {
34-1.c 63 int fd; local
73 fd = shm_open(SHM_NAME, O_RDWR | O_CREAT, S_IRUSR);
74 if (fd == -1) {
79 fd = shm_open(SHM_NAME, O_RDWR | O_TRUNC, 0);
81 if (fd == -1 && errno == EACCES) {
85 } else if (fd != -1) {
39-2.c 32 int fd, i, path_max; local
46 fd = shm_open(shm_name, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR);
48 if (fd == -1 && errno == ENAMETOOLONG) {
51 } else if (fd != -1) {
  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/shm_unlink/
3-1.c 33 int fd; local
36 fd = shm_open(SHM_NAME, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR);
37 if (fd == -1) {
42 if (ftruncate(fd, BUF_SIZE) != 0) {
54 buf = mmap(NULL, BUF_SIZE, PROT_READ, MAP_SHARED, fd, 0);
9-1.c 38 int fd, result; local
41 fd = shm_open(SHM_NAME, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR);
42 if (fd == -1) {
  /external/ltp/testscripts/build/
ltp-missing-install-files.py 61 fd = open(logfile) variable
92 lines = fd.readlines()
111 fd.close()
  /external/mesa3d/src/compiler/spirv/
spirv2nir.c 48 int fd = open(argv[1], O_RDONLY); local
49 if (fd < 0)
55 off_t len = lseek(fd, 0, SEEK_END);
60 close(fd);
66 const void *map = mmap(NULL, len, PROT_READ, MAP_PRIVATE, fd, 0);
71 close(fd);
  /external/nanopb-c/examples/network_server/
common.c 13 int fd = (intptr_t)stream->state; local
14 return send(fd, buf, count, 0) == count;
19 int fd = (intptr_t)stream->state; local
22 result = recv(fd, buf, count, MSG_WAITALL);
30 pb_ostream_t pb_ostream_from_socket(int fd)
32 pb_ostream_t stream = {&write_callback, (void*)(intptr_t)fd, SIZE_MAX, 0};
36 pb_istream_t pb_istream_from_socket(int fd)
38 pb_istream_t stream = {&read_callback, (void*)(intptr_t)fd, SIZE_MAX};
  /external/openssh/regress/unittests/sshkey/
common.c 42 int fd; local
46 ASSERT_INT_NE(fd = open(test_data_file(name), O_RDONLY), -1);
47 ASSERT_INT_EQ(sshkey_load_file(fd, ret), 0);
48 close(fd);
  /external/pdfium/third_party/libtiff/
tif_close.c 126 thandle_t fd = tif->tif_clientdata; local
129 (void) (*closeproc)(fd);
  /external/selinux/libselinux/src/
check_context.c 15 int fd, ret; local
23 fd = open(path, O_RDWR | O_CLOEXEC);
24 if (fd < 0)
27 ret = write(fd, con, strlen(con) + 1);
28 close(fd);
checkreqprot.c 14 int fd, ret, checkreqprot = 0; local
24 fd = open(path, O_RDONLY | O_CLOEXEC);
25 if (fd < 0)
29 ret = read(fd, buf, sizeof(buf) - 1);
30 close(fd);
deny_unknown.c 14 int fd, ret, deny_unknown = 0; local
24 fd = open(path, O_RDONLY | O_CLOEXEC);
25 if (fd < 0)
29 ret = read(fd, buf, sizeof(buf) - 1);
30 close(fd);
enabled.c 33 int fd, ret, enabled = 0; local
39 fd = open(path, O_RDONLY | O_CLOEXEC);
40 if (fd < 0)
46 ret = read(fd, buf, sizeof buf - 1);
48 close(fd);
getenforce.c 14 int fd, ret, enforce = 0; local
24 fd = open(path, O_RDONLY | O_CLOEXEC);
25 if (fd < 0)
29 ret = read(fd, buf, sizeof buf - 1);
30 close(fd);
policyvers.c 15 int fd, ret; local
26 fd = open(path, O_RDONLY | O_CLOEXEC);
27 if (fd < 0) {
34 ret = read(fd, buf, sizeof buf - 1);
35 close(fd);

Completed in 321 milliseconds

1 2 3 4 5 6 7 8 91011>>