Home
last modified time | relevance | path

Searched refs:fd (Results 1 – 25 of 33) sorted by relevance

12

/ndk/sources/host-tools/sed-4.2.1/lib/
Dacl-internal.h51 # define fchmod(fd, mode) (-1) argument
71 rpl_acl_get_fd (int fd) in rpl_acl_get_fd() argument
73 return acl_get_fd (fd, ACL_TYPE_ACCESS); in rpl_acl_get_fd()
81 # define acl_get_fd(fd) (NULL) argument
90 rpl_acl_set_fd (int fd, acl_t acl) in rpl_acl_set_fd() argument
92 return acl_set_fd (fd, ACL_TYPE_ACCESS, acl); in rpl_acl_set_fd()
100 # define acl_set_fd(fd, acl) (-1) argument
Dtempname.c207 int fd = -1; in __gen_tempname() local
269 fd = small_open (tmpl, O_RDWR | O_CREAT | O_EXCL, S_IRUSR | S_IWUSR); in __gen_tempname()
273 fd = large_open (tmpl, O_RDWR | O_CREAT | O_EXCL, S_IRUSR | S_IWUSR); in __gen_tempname()
277 fd = __mkdir (tmpl, S_IRUSR | S_IWUSR | S_IXUSR); in __gen_tempname()
302 if (fd >= 0) in __gen_tempname()
305 return fd; in __gen_tempname()
Dunistd.in.h238 extern int fsync (int fd);
242 # define fsync(fd) \ argument
245 fsync (fd))
255 extern int ftruncate (int fd, off_t length);
511 extern off_t lseek (int fd, off_t offset, int whence);
564 extern ssize_t write (int fd, const void *buf, size_t count);
570 extern void _gl_unregister_fd (int fd);
Dstdio-write.c51 int fd = fileno (stream); \
52 if (fd >= 0 \
53 && GetFileType ((HANDLE) _get_osfhandle (fd)) == FILE_TYPE_PIPE)\
Dse-selinux.in.h36 static inline int fsetfilecon (int fd _UNUSED_PARAMETER_, in fsetfilecon()
/ndk/sources/host-tools/sed-4.2.1/testsuite/
Dtst-regex2.c26 int fd; in main() local
34 fd = open (argv[1], O_RDONLY); in main()
35 if (fd < 0) in main()
41 if (fstat (fd, &st) < 0) in main()
54 if (read (fd, buf, st.st_size) != (ssize_t) st.st_size) in main()
60 close (fd); in main()
/ndk/sources/host-tools/make-3.81/
Darscan.c761 int fd; in ar_member_touch() local
772 fd = open (arname, O_RDWR, 0666); in ar_member_touch()
773 if (fd < 0) in ar_member_touch()
776 if (lseek (fd, pos, 0) < 0) in ar_member_touch()
778 if (AR_HDR_SIZE != read (fd, (char *) &ar_hdr, AR_HDR_SIZE)) in ar_member_touch()
781 if (lseek (fd, pos, 0) < 0) in ar_member_touch()
783 if (AR_HDR_SIZE != write (fd, (char *) &ar_hdr, AR_HDR_SIZE)) in ar_member_touch()
786 EINTRLOOP (i, fstat (fd, &statbuf)); in ar_member_touch()
801 if (lseek (fd, pos, 0) < 0) in ar_member_touch()
803 if (AR_HDR_SIZE != write (fd, (char *) &ar_hdr, AR_HDR_SIZE)) in ar_member_touch()
[all …]
Dremake.c1056 int fd = open (file->name, O_RDWR | O_CREAT, 0666); in touch_file() local
1058 if (fd < 0) in touch_file()
1066 EINTRLOOP (e, fstat (fd, &statbuf)); in touch_file()
1070 if (read (fd, &buf, 1) < 0) in touch_file()
1072 if (lseek (fd, 0L, 0) < 0L) in touch_file()
1074 if (write (fd, &buf, 1) < 0) in touch_file()
1080 (void) close (fd); in touch_file()
1081 fd = open (file->name, O_RDWR | O_TRUNC, 0666); in touch_file()
1082 if (fd < 0) in touch_file()
1085 (void) close (fd); in touch_file()
Dgetloadavg.c587 int fd, count; in getloadavg() local
589 fd = open (LINUX_LDAV_FILE, O_RDONLY); in getloadavg()
590 if (fd == -1) in getloadavg()
592 count = read (fd, ldavgbuf, 40); in getloadavg()
593 (void) close (fd); in getloadavg()
Djob.c248 create_batch_file (char const *base, int unixy, int *fd) in create_batch_file() argument
306 *fd = _open_osfhandle ((long)h, 0); in create_batch_file()
319 *fd = -1; in create_batch_file()
3051 int fd; in dup2() local
3054 fd = dup (old); in dup2()
3055 if (fd != new) in dup2()
3057 (void) close (fd); in dup2()
3062 return fd; in dup2()
Dmain.c851 int fd; in open_tmpfile() local
864 fd = mkstemp (*name); in open_tmpfile()
865 if (fd == -1) in open_tmpfile()
867 return fdopen (fd, "w"); in open_tmpfile()
877 fd = open (*name, O_CREAT|O_EXCL|O_WRONLY, 0600); in open_tmpfile()
878 if (fd == -1) in open_tmpfile()
880 return fdopen (fd, "w"); in open_tmpfile()
/ndk/sources/cxx-stl/stlport/src/details/
Dfstream_win32io.cpp72 static bool __is_regular_file(_STLP_fd fd) { in __is_regular_file() argument
76 return GetFileInformationByHandle(fd, &info) && in __is_regular_file()
81 static streamoff __file_size(_STLP_fd fd) { in __file_size() argument
85 li.LowPart = GetFileSize(fd, (unsigned long*) &li.HighPart); in __file_size()
129 static ios_base::openmode _get_osfflags(int fd, HANDLE oshandle) {
131 if (fd >= 0)
132 dosflags = _pioinfo(fd)->osfile;
168 static ios_base::openmode _get_osfflags(int fd, HANDLE oshandle) {
171 if (__fhnd_info[fd] & FHND_APPEND)
174 if (__fhnd_info[fd] & FHND_TEXT == 0)
[all …]
Dfstream_stdio.cpp128 static bool __is_regular_file(_STLP_fd fd) { in __is_regular_file() argument
130 return FSTAT(fd, &buf) == 0 && (buf.st_mode & S_IFREG) != 0 ; in __is_regular_file()
134 static streamoff __file_size(_STLP_fd fd) { in __file_size() argument
138 if (FSTAT(fd, &buf) == 0 && (buf.st_mode & S_IFREG) != 0) in __file_size()
Dfstream_unistd.cpp104 static bool __is_regular_file(_STLP_fd fd) { in __is_regular_file() argument
106 return FSTAT(fd, &buf) == 0 && S_ISREG(buf.st_mode); in __is_regular_file()
110 static streamoff __file_size(_STLP_fd fd) { in __file_size() argument
114 if (FSTAT(fd, &buf) == 0 && S_ISREG(buf.st_mode)) in __file_size()
/ndk/sources/host-tools/sed-4.2.1/m4/
Dmkstemp.m434 int fd = mkstemp_function (templ);
35 if (fd < 0 || lseek (fd, large, SEEK_SET) != large)
37 close (fd);
Dmemchr.m447 const int fd = -1;
50 int fd = open ("/dev/zero", O_RDONLY, 0666);
51 if (fd >= 0)
57 flags, fd, 0);
/ndk/sources/android/libthread_db/gdb-6.6/
Dlibthread_db.c61 int fd; in _get_task_permitted_caps() local
68 fd = open(path, O_RDONLY); in _get_task_permitted_caps()
69 if (fd < 0) { in _get_task_permitted_caps()
76 len = read(fd, buff, sizeof buff-1); in _get_task_permitted_caps()
105 close(fd); in _get_task_permitted_caps()
/ndk/sources/android/libthread_db/gdb-7.3.x/
Dlibthread_db.c57 int fd; in _get_task_permitted_caps() local
64 fd = open(path, O_RDONLY); in _get_task_permitted_caps()
65 if (fd < 0) { in _get_task_permitted_caps()
72 len = read(fd, buff, sizeof buff-1); in _get_task_permitted_caps()
101 close(fd); in _get_task_permitted_caps()
/ndk/sources/android/libthread_db/gdb-7.1.x/
Dlibthread_db.c57 int fd; in _get_task_permitted_caps() local
64 fd = open(path, O_RDONLY); in _get_task_permitted_caps()
65 if (fd < 0) { in _get_task_permitted_caps()
72 len = read(fd, buff, sizeof buff-1); in _get_task_permitted_caps()
101 close(fd); in _get_task_permitted_caps()
/ndk/sources/host-tools/sed-4.2.1/sed/
Dutils.c174 ck_fdopen(fd, name, mode, fail) in ck_fdopen() argument
175 int fd; in ck_fdopen()
182 fp = fdopen (fd, mode);
202 int fd; local
224 fd = mkstemp (template);
226 if (fd == -1)
230 fp = fdopen (fd, "w");
Dutils.h26 FILE *ck_fdopen P_((int fd, const char *name, const char *mode, int fail));
/ndk/sources/android/cpufeatures/
Dcpu-features.c110 int fd, len; in read_file() local
112 fd = open(pathname, O_RDONLY); in read_file()
113 if (fd < 0) in read_file()
117 len = read(fd, buffer, buffsize); in read_file()
120 close(fd); in read_file()
/ndk/tests/device/test-gnustl-full/unit/
Dmoney_facets_test.cpp325 for ( int fd = 1; fd < dom_fmp.frac_digits(); ++fd ) { in _money_put_X_bug() local
387 for ( int fd = 1; fd < dom_fmp.frac_digits() - 1; ++fd ) { in _money_put_X_bug() local
/ndk/tests/device/test-stlport/unit/
Dmoney_facets_test.cpp325 for ( int fd = 1; fd < dom_fmp.frac_digits(); ++fd ) { in _money_put_X_bug() local
387 for ( int fd = 1; fd < dom_fmp.frac_digits() - 1; ++fd ) { in _money_put_X_bug() local
/ndk/sources/cxx-stl/stlport/src/
D_stdio_file.h80 inline int _FILE_fd(const FILE *__f) { return __f->fd; }

12