Home
last modified time | relevance | path

Searched refs:filedes (Results 1 – 25 of 36) sorted by relevance

12

/external/fsverity-utils/programs/
Dutils.h36 struct filedes { struct
41 bool open_file(struct filedes *file, const char *filename, int flags, int mode); argument
42 bool get_file_size(struct filedes *file, u64 *size_ret);
43 bool full_read(struct filedes *file, void *buf, size_t count);
44 bool full_write(struct filedes *file, const void *buf, size_t count);
45 bool filedes_close(struct filedes *file);
Dutils.c103 bool open_file(struct filedes *file, const char *filename, int flags, int mode) in open_file()
117 bool get_file_size(struct filedes *file, u64 *size_ret) in get_file_size()
129 bool full_read(struct filedes *file, void *buf, size_t count) in full_read()
148 bool full_write(struct filedes *file, const void *buf, size_t count) in full_write()
163 bool filedes_close(struct filedes *file) in filedes_close()
Dcmd_enable.c21 struct filedes file = { .fd = -1 }; in read_signature()
66 struct filedes file; in fsverity_cmd_enable()
Dcmd_sign.c19 struct filedes file; in write_signature()
42 struct filedes file = { .fd = -1 }; in fsverity_cmd_sign()
Dtest_sign_digest.c27 struct filedes file; in main()
Dcmd_measure.c22 struct filedes file; in fsverity_cmd_measure()
Dcmd_digest.c32 struct filedes file = { .fd = -1 }; in fsverity_cmd_digest()
/external/ltp/testcases/network/nfs/nfs_stress/
Dnfs01_open_files.c21 int filedes[25500]; in main() local
42 filedes[n] = mkstemp(filename); in main()
43 if (filedes[n] == -1) { in main()
56 (filedes[i])) in main()
66 close(filedes[i]); in main()
75 if (!write_something(filedes[i])) in main()
/external/e2fsprogs/lib/ss/
Dpager.c78 int filedes[2]; in ss_pager_create() local
80 if (pipe(filedes) != 0) in ss_pager_create()
90 if (dup2(filedes[0], 0) == -1) in ss_pager_create()
98 (void) close(filedes[0]); in ss_pager_create()
99 return(filedes[1]); in ss_pager_create()
/external/curl/tests/
Dmemanalyze.pl261 $filedes{$1}=1;
267 $filedes{$1}=1;
270 $filedes{$2}=1;
275 $filedes{$1}=1;
280 if($filedes{$1} != 1) {
284 $filedes{$1}=0; # closed now
386 for(keys %filedes) {
387 if($filedes{$_} == 1) {
/external/libpng/contrib/libtests/
Dtimepng.c441 int filedes; in main()
443 filedes = mkstemp(tmpfile); in main()
444 if (filedes < 0) in main()
448 fp = fdopen(filedes,"w+"); in main()
Dpngstest.c3161 int filedes; in write_one_file()
3164 filedes = mkstemp(tmpfile); in write_one_file()
3165 if (filedes < 0) in write_one_file()
3169 f = fdopen(filedes,"w+"); in write_one_file()
/external/python/pyfakefs/pyfakefs/
Dfake_filesystem.py3575 dir_wrapper.filedes = file_des
3653 read_wrapper.filedes = file_des
3656 write_wrapper.filedes = file_des
3657 return read_wrapper.filedes, write_wrapper.filedes
4518 self.filedes = None
4540 return self.filedes
4554 self._filesystem._close_open_file(self.filedes)
4556 self._filesystem.open_files[self.filedes].remove(self)
4824 return (self.filedes < len(self._filesystem.open_files) and
4825 self._filesystem.open_files[self.filedes] is not None and
[all …]
/external/curl/lib/
Dmemdebug.c408 FILE *curl_dbg_fdopen(int filedes, const char *mode, in curl_dbg_fdopen() argument
411 FILE *res = fdopen(filedes, mode); in curl_dbg_fdopen()
414 source, line, filedes, mode, (void *)res); in curl_dbg_fdopen()
Dmemdebug.h82 CURL_EXTERN FILE *curl_dbg_fdopen(int filedes, const char *mode,
/external/llvm-project/lldb/test/API/api/multithreaded/
Dtest_stop-hook.cpp.template83 Cleanup(SBDebugger dbg, int filedes[2]) : m_dbg(dbg) {
85 m_filedes[0] = filedes[0];
86 m_filedes[1] = filedes[1];
/external/curl/tests/server/
Dsockfilt.c226 static ssize_t fullread(int filedes, void *buffer, size_t nbytes) in fullread() argument
232 ssize_t rc = read(filedes, in fullread()
244 logmsg("reading from file descriptor: %d,", filedes); in fullread()
272 static ssize_t fullwrite(int filedes, const void *buffer, size_t nbytes) in fullwrite() argument
278 ssize_t wc = write(filedes, (const unsigned char *)buffer + nwrite, in fullwrite()
290 logmsg("writing to file descriptor: %d,", filedes); in fullwrite()
/external/llvm-project/compiler-rt/include/sanitizer/
Dnetbsd_syscall_hooks.h2797 #define __sanitizer_syscall_pre___acl_get_fd(filedes, type, aclp) \ argument
2799 (long long)(filedes), (long long)(type), (long long)(aclp))
2800 #define __sanitizer_syscall_post___acl_get_fd(res, filedes, type, aclp) \ argument
2802 res, (long long)(filedes), (long long)(type), (long long)(aclp))
2803 #define __sanitizer_syscall_pre___acl_set_fd(filedes, type, aclp) \ argument
2805 (long long)(filedes), (long long)(type), (long long)(aclp))
2806 #define __sanitizer_syscall_post___acl_set_fd(res, filedes, type, aclp) \ argument
2808 res, (long long)(filedes), (long long)(type), (long long)(aclp))
2815 #define __sanitizer_syscall_pre___acl_delete_fd(filedes, type) \ argument
2816 __sanitizer_syscall_pre_impl___acl_delete_fd((long long)(filedes), \
[all …]
/external/python/cpython2/Modules/
Dselectmodule.c704 int filedes[2]; in select_have_broken_poll() local
709 if (pipe(filedes) < 0) { in select_have_broken_poll()
712 poll_struct.fd = filedes[0]; in select_have_broken_poll()
713 close(filedes[0]); in select_have_broken_poll()
714 close(filedes[1]); in select_have_broken_poll()
/external/python/cpython3/Modules/
Dselectmodule.c1217 int filedes[2]; in select_have_broken_poll() local
1222 if (pipe(filedes) < 0) { in select_have_broken_poll()
1225 poll_struct.fd = filedes[0]; in select_have_broken_poll()
1226 close(filedes[0]); in select_have_broken_poll()
1227 close(filedes[1]); in select_have_broken_poll()
/external/rust/crates/libc/src/unix/linux_like/android/
Dmod.rs2447 filedes: ::c_int, in fgetxattr()
2467 filedes: ::c_int, in fsetxattr()
2475 pub fn flistxattr(filedes: ::c_int, list: *mut c_char, size: ::size_t) -> ::ssize_t; in flistxattr()
2478 pub fn fremovexattr(filedes: ::c_int, name: *const c_char) -> ::c_int; in fremovexattr()
/external/rust/crates/libc/src/unix/linux_like/linux/
Dmod.rs3098 filedes: ::c_int, in fgetxattr()
3118 filedes: ::c_int, in fsetxattr()
3126 pub fn flistxattr(filedes: ::c_int, list: *mut c_char, size: ::size_t) -> ::ssize_t; in flistxattr()
3129 pub fn fremovexattr(filedes: ::c_int, name: *const c_char) -> ::c_int; in fremovexattr()
/external/rust/crates/libc/src/unix/bsd/apple/
Dmod.rs3665 filedes: ::c_int, in fgetxattr()
3681 filedes: ::c_int, in fsetxattr()
3695 filedes: ::c_int, in flistxattr()
3709 pub fn fremovexattr(filedes: ::c_int, name: *const ::c_char, flags: ::c_int) -> ::c_int; in fremovexattr()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/Unix/
DProcess.inc322 extern "C" int setupterm(char *term, int filedes, int *errret);
/external/llvm-project/llvm/lib/Support/Unix/
DProcess.inc320 extern "C" int setupterm(char *term, int filedes, int *errret);

12