/external/libselinux/src/ |
H A D | fgetfilecon.c | 10 int fgetfilecon(int fd, char ** context) argument 22 ret = fgetxattr(fd, XATTR_NAME_SELINUX, buf, size - 1); 26 size = fgetxattr(fd, XATTR_NAME_SELINUX, NULL, 0); 37 ret = fgetxattr(fd, XATTR_NAME_SELINUX, buf, size - 1);
|
H A D | getenforce.c | 14 int fd, ret, enforce = 0; local 24 fd = open(path, O_RDONLY); 25 if (fd < 0) 29 ret = read(fd, buf, sizeof buf - 1); 30 close(fd);
|
H A D | load_policy.c | 22 int fd, ret; local 30 fd = open(path, O_RDWR); 31 if (fd < 0) 34 ret = write(fd, data, len); 35 close(fd);
|
H A D | policyvers.c | 15 int fd, ret; local 26 fd = open(path, O_RDONLY); 27 if (fd < 0) { 34 ret = read(fd, buf, sizeof buf - 1); 35 close(fd);
|
H A D | setenforce.c | 14 int fd, ret; local 24 fd = open(path, O_RDWR); 25 if (fd < 0) 29 ret = write(fd, buf, strlen(buf)); 30 close(fd);
|
/external/linux-tools-perf/perf-3.12.0/tools/perf/tests/ |
H A D | open-syscall.c | 8 int err = -1, fd; local 32 fd = open("/etc/passwd", O_RDONLY); 33 close(fd);
|
/external/mesa3d/src/gallium/targets/dri-r600/ |
H A D | target.c | 6 static struct pipe_screen *create_screen(int fd) argument 11 radeon = radeon_drm_winsys_create(fd);
|
/external/mesa3d/src/gallium/targets/dri-radeonsi/ |
H A D | target.c | 6 static struct pipe_screen *create_screen(int fd) argument 11 radeon = radeon_drm_winsys_create(fd);
|
/external/mesa3d/src/gallium/targets/dri-vmwgfx/ |
H A D | target.c | 9 create_screen(int fd) argument 14 sws = svga_drm_winsys_screen_create(fd);
|
/external/openssl/crypto/des/ |
H A D | enc_read.c | 87 int DES_enc_read(int fd, void *buf, int len, DES_key_schedule *sched, argument 154 i=read(fd,(void *)&(net[net_num]),HDRSIZE-net_num); 156 i=_read(fd,(void *)&(net[net_num]),HDRSIZE-net_num); 180 i=read(fd,(void *)&(net[net_num]),rnum-net_num); 182 i=_read(fd,(void *)&(net[net_num]),rnum-net_num);
|
H A D | enc_writ.c | 80 int DES_enc_write(int fd, const void *_buf, int len, argument 117 k=DES_enc_write(fd,&(buf[i]), 160 i=write(fd,(void *)&(outbuf[j]),outnum-j); 162 i=_write(fd,(void *)&(outbuf[j]),outnum-j);
|
/external/qemu/distrib/ext4_utils/src/ |
H A D | wipe.c | 35 int wipe_block_device(int fd, s64 len) argument 40 if (!is_block_device_fd(fd)) { 47 ret = ioctl(fd, BLKSECDISCARD, &range); 51 ret = ioctl(fd, BLKDISCARD, &range); 70 int wipe_block_device(int fd, s64 len) argument
|
/external/qemu/distrib/libselinux/src/ |
H A D | deny_unknown.c | 14 int fd, ret, deny_unknown = 0; local 24 fd = open(path, O_RDONLY); 25 if (fd < 0) 29 ret = read(fd, buf, sizeof(buf) - 1); 30 close(fd);
|
H A D | fgetfilecon.c | 10 int fgetfilecon(int fd, char ** context) argument 22 ret = fgetxattr(fd, XATTR_NAME_SELINUX, buf, size - 1); 26 size = fgetxattr(fd, XATTR_NAME_SELINUX, NULL, 0); 37 ret = fgetxattr(fd, XATTR_NAME_SELINUX, buf, size - 1);
|
H A D | getenforce.c | 14 int fd, ret, enforce = 0; local 24 fd = open(path, O_RDONLY); 25 if (fd < 0) 29 ret = read(fd, buf, sizeof buf - 1); 30 close(fd);
|
H A D | load_policy.c | 22 int fd, ret; local 30 fd = open(path, O_RDWR); 31 if (fd < 0) 34 ret = write(fd, data, len); 35 close(fd);
|
H A D | policyvers.c | 15 int fd, ret; local 26 fd = open(path, O_RDONLY); 27 if (fd < 0) { 34 ret = read(fd, buf, sizeof buf - 1); 35 close(fd);
|
H A D | setenforce.c | 14 int fd, ret; local 24 fd = open(path, O_RDWR); 25 if (fd < 0) 29 ret = write(fd, buf, strlen(buf)); 30 close(fd);
|
/external/valgrind/main/none/tests/ |
H A D | rlimit_nofile.c | 13 int fd; local 92 if ((fd = open("/dev/null", O_RDONLY)) >= 0) 94 fprintf(stderr, "open succeeded with fd %d - it should have failed!\n", fd);
|
/external/bison/lib/ |
H A D | fopen.c | 76 int fd; local 86 fd = open (filename, O_RDONLY); 87 if (fd < 0) 90 if (fstat (fd, &statbuf) >= 0 && !S_ISDIR (statbuf.st_mode)) 92 close (fd); 97 fp = fdopen (fd, mode); 101 close (fd);
|
H A D | fstat.c | 35 orig_fstat (int fd, struct stat *buf) argument 37 return fstat (fd, buf); 55 fstat_nothrow (int fd, struct stat *buf) argument 61 result = orig_fstat (fd, buf); 77 rpl_fstat (int fd, struct stat *buf) argument 82 const char *name = _gl_directory_name (fd); 87 return fstat_nothrow (fd, buf);
|
H A D | spawn_faction_addopen.c | 37 int fd, const char *path, int oflag, 44 if (fd < 0 || fd >= maxfd) 48 return posix_spawn_file_actions_addopen (file_actions, fd, path, oflag, mode); 62 rec->action.open_action.fd = fd; 36 posix_spawn_file_actions_addopen(posix_spawn_file_actions_t *file_actions, int fd, const char *path, int oflag, mode_t mode) argument
|
/external/chromium_org/base/android/ |
H A D | content_uri_utils.cc | 31 jint fd = Java_ContentUriUtils_openContentUriForRead( local 33 if (fd < 0) 35 return File(fd);
|
/external/chromium_org/base/files/ |
H A D | dir_reader_fallback.h | 27 int fd() const { return -1; } function in class:base::DirReaderFallback
|
/external/chromium_org/components/nacl/loader/nonsfi/ |
H A D | irt_random.cc | 31 void SetUrandomFd(int fd) { argument 33 secure_random_fd = fd;
|