Home
last modified time | relevance | path

Searched defs:fd (Results 1 – 25 of 2617) sorted by relevance

12345678910>>...105

/third_party/ltp/testcases/kernel/syscalls/memfd_create/
Dmemfd_create_common.h41 #define CHECK_MMAP(addr, length, prot, flags, fd, offset) \ argument
45 #define CHECK_MMAP_FAIL(addr, length, prot, flags, fd, offset) \ argument
52 #define CHECK_MFD_HAS_SEALS(fd, seals) \ argument
55 #define CHECK_MFD_ADD_SEALS(fd, seals) \ argument
60 #define CHECK_MFD_FAIL_ADD_SEALS(fd, seals) \ argument
63 #define CHECK_MFD_SIZE(fd, size) \ argument
66 #define CHECK_MFD_OPEN(fd, flags, mode) \ argument
69 #define CHECK_MFD_FAIL_OPEN(fd, flags, mode) \ argument
72 #define CHECK_MFD_READABLE(fd) \ argument
75 #define CHECK_MFD_WRITEABLE(fd) \ argument
[all …]
Dmemfd_create01.c23 static void test_basic(int fd) in test_basic()
48 static void test_no_sealing_without_flag(int fd) in test_no_sealing_without_flag()
60 static void test_seal_write(int fd) in test_seal_write()
77 static void test_seal_shrink(int fd) in test_seal_shrink()
94 static void test_seal_grow(int fd) in test_seal_grow()
111 static void test_seal_resize(int fd) in test_seal_resize()
128 static void test_share_dup(int fd) in test_share_dup()
163 static void test_share_mmap(int fd) in test_share_mmap()
192 static void test_share_open(int fd) in test_share_open()
238 int fd; in verify_memfd_create() local
Dmemfd_create_common.c32 int check_fallocate(const char *filename, const int lineno, int fd, in check_fallocate()
51 int check_fallocate_fail(const char *filename, const int lineno, int fd, in check_fallocate_fail()
72 void check_ftruncate(const char *filename, const int lineno, int fd, in check_ftruncate()
82 int fd, off_t length) in check_ftruncate_fail()
139 int fd; in check_mfd_new() local
158 int fd; in check_mfd_fail_new() local
173 int prot, int flags, int fd, off_t offset) in check_mmap()
187 size_t length, int prot, int flags, int fd, off_t offset) in check_mmap_fail()
210 void check_mfd_has_seals(const char *file, const int lineno, int fd, int seals) in check_mfd_has_seals()
236 int fd, int seals) in check_mfd_fail_add_seals()
[all …]
/third_party/ltp/testcases/kernel/syscalls/eventfd/
Deventfd01.c85 static int clear_counter(int fd) in clear_counter()
111 static int set_counter(int fd, uint64_t val) in set_counter()
131 static void read_test(int fd, uint64_t required) in read_test()
152 static void read_eagain_test(int fd) in read_eagain_test()
176 static void write_test(int fd) in write_test()
196 static void write_eagain_test(int fd) in write_eagain_test()
222 static void read_einval_test(int fd) in read_einval_test()
241 static void write_einval_test(int fd) in write_einval_test()
261 static void write_einval2_test(int fd) in write_einval2_test()
289 static void readfd_set_test(int fd) in readfd_set_test()
[all …]
/third_party/musl/libc-test/src/functionalext/supplement/unistd/
Dfaccessat.c35 int fd = open(ptr, O_RDWR | O_CREAT, TEST_MODE); in faccessat_0100() local
52 int fd = -1; in faccessat_0200() local
68 int fd = open(ptr, O_RDWR | O_CREAT, 00040); in faccessat_0300() local
85 int fd = open(ptr, O_RDWR | O_CREAT, 00020); in faccessat_0400() local
102 int fd = open(ptr, O_RDWR | O_CREAT, 00010); in faccessat_0500() local
122 int fd = open(ptr, O_RDWR | O_CREAT, TEST_MODE); in faccessat_0600() local
139 int fd = open(ptr, O_RDWR | O_CREAT, 00070); in faccessat_0700() local
156 int fd = open(ptr, O_RDWR | O_CREAT, TEST_MODE); in faccessat_0800() local
173 int fd = open(ptr, O_RDWR | O_CREAT, 00070); in faccessat_0900() local
192 int fd = open(ptr, O_RDWR | O_CREAT, 00070); in faccessat_1000() local
[all …]
/third_party/musl/Benchmark/musl/
Dlibc_fcntl.cpp29 int fd = open("/etc/passwd", O_RDONLY, OPEN_MODE); in Bm_function_Fcntl_getfl() local
75 int fd = open("/dev/zero", O_RDWR, OPEN_MODE); in Bm_function_Fcntl_setlkw() local
106 int fd = open("/etc/passwd", O_RDONLY, OPEN_MODE); in Bm_function_Fcntl_dupfd() local
128 int fd = open("/dev/zero", O_RDWR, OPEN_MODE); in Bm_function_Fcntl_setlk() local
159 int fd = open("/dev/zero", O_RDWR, OPEN_MODE); in Bm_function_Fcntl_getlk() local
185 int fd = open("/dev/zero", O_RDWR, OPEN_MODE); in Bm_function_Fcntl_getfd() local
204 int fd = open("/dev/zero", O_RDWR, OPEN_MODE); in Bm_function_Fcntl_setfd() local
241 int fd = open(filename, O_RDONLY, OPEN_MODE); in Bm_function_Open_rdonly() local
258 int fd = open(filename, O_RDWR, OPEN_MODE); in Bm_function_Open_rdwr() local
275 int fd = open(filename, O_RDWR | O_CREAT, OPEN_MODE); in Bm_function_Open_creat_rdwr() local
/third_party/musl/porting/liteos_a_newlib/kernel/src/
Dfs.c42 int _close(int fd) in _close()
47 ssize_t _read(int fd, void *buf, size_t nbyte) in _read()
52 ssize_t _write(int fd, const void *buf, size_t nbyte) in _write()
62 int _fstat(int fd, struct stat *buf) in _fstat()
72 off_t _lseek(int fd, off_t offset, int whence) in _lseek()
89 int _close(int fd) in _close()
94 ssize_t _read(int fd, void *buf, size_t nbyte) in _read()
99 ssize_t _write(int fd, const void *buf, size_t nbyte) in _write()
109 int _fstat(int fd, struct stat *buf) in _fstat()
119 off_t _lseek(int fd, off_t offset, int whence) in _lseek()
/third_party/mesa3d/src/panfrost/lib/
Dpan_props.c98 int fd, in panfrost_query_raw()
118 panfrost_query_gpu_version(int fd) in panfrost_query_gpu_version()
124 panfrost_query_gpu_revision(int fd) in panfrost_query_gpu_revision()
142 panfrost_query_tiler_features(int fd) in panfrost_query_tiler_features()
156 panfrost_query_core_count(int fd, unsigned *core_id_range) in panfrost_query_core_count()
201 panfrost_query_thread_tls_alloc(int fd, unsigned major) in panfrost_query_thread_tls_alloc()
210 panfrost_query_compressed_formats(int fd) in panfrost_query_compressed_formats()
252 panfrost_query_afbc(int fd, unsigned arch) in panfrost_query_afbc()
284 panfrost_query_afbc(int fd, unsigned arch) in panfrost_query_afbc()
294 panfrost_open_device(void *memctx, int fd, struct panfrost_device *dev) in panfrost_open_device()
/third_party/ltp/testcases/kernel/input/
Dinput_helper.c40 int ret, fd = -1; in try_open_device() local
74 int fd; in open_device() local
124 int fd; in try_open_uinput() local
146 int fd; in open_uinput() local
170 void send_event(int fd, int event, int code, int value) in send_event()
181 void send_rel_move(int fd, int x, int y) in send_rel_move()
188 void create_device(int fd) in create_device()
214 void setup_mouse_events(int fd) in setup_mouse_events()
223 void destroy_device(int fd) in destroy_device()
249 int no_events_queued(int fd, int stray_sync_event) in no_events_queued()
/third_party/musl/libc-test/src/functionalext/supplement/fcntl/
Dopen.c32 int fd = open(path, O_RDONLY + O_CREAT, TEST_MODE); in open_0100() local
50 int fd = open(path, O_RDONLY); in open_0200() local
63 int fd = open(path, O_WRONLY + O_CREAT, TEST_MODE); in open_0300() local
80 int fd = open(path, O_WRONLY); in open_0400() local
93 int fd = open(path, O_RDWR | O_APPEND + O_CREAT, TEST_MODE); in open_0500() local
112 int fd = open(path, O_RDWR | O_APPEND); in open_0600() local
128 int fd = open(path, O_RDWR | O_APPEND); in open_0700() local
141 int fd = open(path, O_RDWR | O_CREAT, TEST_MODE); in open_0800() local
160 int fd = open(path, O_RDWR | O_CLOEXEC + O_CREAT, TEST_MODE); in open_0900() local
/third_party/mesa3d/src/intel/tools/
Dintel_sanitize_gpu.c85 bo_size_table(int fd) in bo_size_table()
93 bo_size(int fd, uint32_t handle) in bo_size()
103 is_drm_fd(int fd) in is_drm_fd()
109 add_drm_fd(int fd) in add_drm_fd()
130 del_drm_fd(int fd) in del_drm_fd()
164 padding_is_good(int fd, uint32_t handle) in padding_is_good()
208 create_with_padding(int fd, struct drm_i915_gem_create *create) in create_with_padding()
245 exec_and_check_padding(int fd, unsigned long request, in exec_and_check_padding()
284 gem_close(int fd, struct drm_gem_close *close) in gem_close()
301 is_i915(int fd) { in is_i915()
[all …]
/third_party/musl/libc-test/src/functionalext/supplement/linux/
Dflock.c28 int fd = open("/data/test.txt", O_RDWR | O_CREAT, TEST_MODE); in flock_0100() local
46 int fd = open("/data/test.txt", O_RDWR | O_CREAT, TEST_MODE); in flock_0200() local
64 int fd = open("/data/test.txt", O_RDWR | O_CREAT, TEST_MODE); in flock_0300() local
82 int fd = open("/data/test.txt", O_RDWR | O_CREAT, TEST_MODE); in flock_0400() local
100 int fd = open("/data/test.txt", O_RDWR | O_CREAT, TEST_MODE); in flock_0500() local
129 int fd = open("/data/test.txt", O_RDWR | O_CREAT, TEST_MODE); in flock_0700() local
Dinotify_init1.c27 int fd = inotify_init1(0); in inotify_init1_0100() local
41 int fd = inotify_init1(IN_NONBLOCK); in inotify_init1_0200() local
55 int fd = inotify_init1(IN_CLOEXEC); in inotify_init1_0300() local
69 int fd = inotify_init1(-1); in inotify_init1_0400() local
/third_party/ltp/testcases/kernel/fs/scsi/ltpscsi/
Dllseek.c32 static off_t my_lseek(int fd, off_t off, int whence) in my_lseek()
37 static off_t my_lseek(int fd, off_t off, int whence) in my_lseek()
53 static int _llseek(unsigned int fd, unsigned long oh, in _llseek()
60 static int _llseek(unsigned int fd, unsigned long oh, in _llseek()
67 static llse_loff_t my_llseek(unsigned int fd, llse_loff_t offset, in my_llseek()
81 llse_loff_t llse_llseek(unsigned int fd, llse_loff_t offset, in llse_llseek()
112 llse_loff_t llse_llseek(unsigned int fd, llse_loff_t offset, in llse_llseek()
/third_party/libdrm/
Dxf86drmMode.c65 static inline int DRM_IOCTL(int fd, unsigned long cmd, void *arg) in DRM_IOCTL()
154 drm_public int drmIsKMS(int fd) in drmIsKMS()
164 drm_public drmModeResPtr drmModeGetResources(int fd) in drmModeGetResources()
259 drm_public int drmModeAddFB(int fd, uint32_t width, uint32_t height, uint8_t depth, in drmModeAddFB()
281 drm_public int drmModeAddFB2WithModifiers(int fd, uint32_t width, in drmModeAddFB2WithModifiers()
307 drm_public int drmModeAddFB2(int fd, uint32_t width, uint32_t height, in drmModeAddFB2()
318 drm_public int drmModeRmFB(int fd, uint32_t bufferId) in drmModeRmFB()
323 drm_public drmModeFBPtr drmModeGetFB(int fd, uint32_t buf) in drmModeGetFB()
348 drm_public int drmModeDirtyFB(int fd, uint32_t bufferId, in drmModeDirtyFB()
365 drm_public drmModeCrtcPtr drmModeGetCrtc(int fd, uint32_t crtcId) in drmModeGetCrtc()
[all …]
Dxf86drm.c625 drmIoctl(int fd, unsigned long request, void *arg) in drmIoctl()
635 static unsigned long drmGetKeyFromFd(int fd) in drmGetKeyFromFd()
644 drm_public drmHashEntry *drmGetEntry(int fd) in drmGetEntry()
784 int fd; in drmOpenDevice() local
899 int fd; in drmOpenMinor() local
930 int fd; in drmAvailable() local
1032 int fd; in drmOpenByBusid() local
1096 int fd; in drmOpenByName() local
1214 int fd = drmOpenByBusid(busid, type); in drmOpenWithType() local
1314 drm_public drmVersionPtr drmGetVersion(int fd) in drmGetVersion()
[all …]
/third_party/libwebsockets/lib/plat/freertos/
Dfreertos-sockets.c69 lws_poll_listen_fd(struct lws_pollfd *fd) in lws_poll_listen_fd()
81 lws_plat_set_nonblocking(lws_sockfd_type fd) in lws_plat_set_nonblocking()
87 lws_plat_set_socket_options(struct lws_vhost *vhost, int fd, int unix_skt) in lws_plat_set_socket_options()
155 lws_plat_set_socket_options_ip(lws_sockfd_type fd, uint8_t pri, int lws_flags) in lws_plat_set_socket_options_ip()
287 lws_plat_ifname_to_hwaddr(int fd, const char *ifname, uint8_t *hwaddr, int len) in lws_plat_ifname_to_hwaddr()
296 size_t n, int fd, const char *iface) in lws_plat_rawudp_broadcast()
304 lws_plat_if_up(const char *ifname, int fd, int up) in lws_plat_if_up()
312 lws_plat_BINDTODEVICE(lws_sockfd_type fd, const char *ifname) in lws_plat_BINDTODEVICE()
320 lws_plat_ifconfig(int fd, lws_dhcpc_ifstate_t *is) in lws_plat_ifconfig()
337 int fd = ((mbedtls_net_context *) ctx)->fd; in lws_plat_mbedtls_net_send() local
[all …]
/third_party/ltp/testcases/network/nfs/nfslock01/
Dnfs_flock.h10 #define read_lock(fd, offset, whence, len) \ argument
12 #define write_lock(fd, offset, whence, len) \ argument
14 #define un_lock(fd, offset, whence, len) \ argument
16 #define readb_lock(fd, offset, whence, len) \ argument
18 #define writeb_lock(fd, offset, whence, len) \ argument
20 #define unb_lock(fd, offset, whence, len) \ argument
/third_party/ltp/testcases/open_posix_testsuite/include/
Dmq_send.h14 int sync_pipe_create(int fd[]) in sync_pipe_create()
19 int sync_pipe_close(int fd[]) in sync_pipe_close()
30 int sync_pipe_wait(int fd[]) in sync_pipe_wait()
47 int sync_pipe_wait_select(int fd[], long tv_sec) in sync_pipe_wait_select()
76 int sync_pipe_notify(int fd[]) in sync_pipe_notify()
/third_party/ltp/testcases/kernel/syscalls/openat/
Dopenat03.c52 int fd = openat(AT_FDCWD, ".", O_TMPFILE | O_RDWR, 0600); in setup() local
66 int fd = openat(AT_FDCWD, ".", O_TMPFILE | O_RDWR, mode); in openat_tmp() local
74 static void write_file(int fd) in write_file()
84 int fd; in test01() local
124 static void read_file(int fd) in read_file()
141 int i, fd[files_num]; in test02() local
173 static void link_tmp_file(int fd) in link_tmp_file()
189 int i, fd[files_num]; in test03() local
/third_party/NuttX/drivers/usbdev/gadget/fconfig/src/
Dusb_handle.c67 static int free_fd_for_handle(int fd) in free_fd_for_handle()
103 static struct usb_handle *handle_find_by_fd(int fd) in handle_find_by_fd()
179 int fd; in handle_open() local
207 int handle_close(int fd) in handle_close()
232 int handle_read(int fd, void *buffer, size_t len) in handle_read()
251 int handle_write(int fd, void *buffer, size_t len) in handle_write()
270 int handle_ioctl(int fd, int cmd, void *arg) in handle_ioctl()
289 void *handle_mmap(int fd, uint32_t size) in handle_mmap()
308 int handle_poll(int fd, int timeout) in handle_poll()
/third_party/mesa3d/src/drm-shim/
Ddevice.c115 drm_shim_file_create(int fd) in drm_shim_file_create()
133 void drm_shim_fd_register(int fd, struct shim_fd *shim_fd) in drm_shim_fd_register()
148 void drm_shim_fd_unregister(int fd) in drm_shim_fd_unregister()
165 drm_shim_fd_lookup(int fd) in drm_shim_fd_lookup()
180 drm_shim_ioctl_version(int fd, unsigned long request, void *arg) in drm_shim_ioctl_version()
204 drm_shim_ioctl_get_unique(int fd, unsigned long request, void *arg) in drm_shim_ioctl_get_unique()
216 drm_shim_ioctl_get_cap(int fd, unsigned long request, void *arg) in drm_shim_ioctl_get_cap()
235 drm_shim_ioctl_gem_close(int fd, unsigned long request, void *arg) in drm_shim_ioctl_gem_close()
259 drm_shim_ioctl_syncobj_create(int fd, unsigned long request, void *arg) in drm_shim_ioctl_syncobj_create()
269 drm_shim_ioctl_stub(int fd, unsigned long request, void *arg) in drm_shim_ioctl_stub()
[all …]
/third_party/ltp/testcases/kernel/syscalls/open/
Dopen14.c51 int fd = open(".", O_TMPFILE | O_RDWR, 0600); in setup() local
63 static void write_file(int fd) in write_file()
73 int fd; in test01() local
113 static void read_file(int fd) in read_file()
130 int i, fd[files_num]; in test02() local
162 static void link_tmp_file(int fd) in link_tmp_file()
178 int i, fd[files_num]; in test03() local
/third_party/openssl/include/internal/
Dktls.h50 static ossl_inline int ktls_enable(int fd) in ktls_enable()
65 static ossl_inline int ktls_start(int fd, ktls_crypto_info_t *tls_en, int is_tx) in ktls_start()
85 static ossl_inline int ktls_send_ctrl_message(int fd, unsigned char record_type, in ktls_send_ctrl_message()
113 static ossl_inline int ktls_read_record(int fd, void *data, size_t length) in ktls_read_record()
127 static ossl_inline int ktls_read_record(int fd, void *data, size_t length) in ktls_read_record()
188 static ossl_inline ossl_ssize_t ktls_sendfile(int s, int fd, off_t off, in ktls_sendfile()
271 static ossl_inline int ktls_enable(int fd) in ktls_enable()
284 static ossl_inline int ktls_start(int fd, ktls_crypto_info_t *crypto_info, in ktls_start()
298 static ossl_inline int ktls_send_ctrl_message(int fd, unsigned char record_type, in ktls_send_ctrl_message()
332 static ossl_inline ossl_ssize_t ktls_sendfile(int s, int fd, off_t off, size_t size, int flags) in ktls_sendfile()
[all …]
/third_party/node/test/parallel/
Dtest-fs-readfile-fd.js14 tempFd(function(fd, close) { argument
21 tempFd(function(fd, close) { argument
28 tempFdSync(function(fd) { argument
32 tempFdSync(function(fd) { argument
37 fs.open(fn, 'r', function(err, fd) { argument
63 const fd = fs.openSync(filename, 'r'); constant

12345678910>>...105