Home
last modified time | relevance | path

Searched refs:close (Results 1 – 25 of 31) sorted by relevance

12

/DragonOS-0.1.8/user/apps/shell/
Dcmd_test.c29 close(fd[1]); // 关闭管道的写端 in shell_pipe_test()
50 close(fd[0]); // 关闭管道的读端 in shell_pipe_test()
55 close(fd[0]); // 关闭管道的读端 in shell_pipe_test()
79 close(fd[1]); // 关闭管道的写端 in shell_pipe_test()
Dcmd.c349 close(fd); in shell_cmd_cat()
388 close(fd); in shell_cmd_touch()
/DragonOS-0.1.8/user/apps/test_bind/
Dmain.c65 if (close(tcp_sk_fd1) < 0) in test_tcp_bind()
70 if (close(tcp_sk_fd2) < 0) in test_tcp_bind()
75 if (close(tcp_sk_fd3) < 0) in test_tcp_bind()
127 if (close(udp_sk_fd1) < 0) in test_udp_bind()
132 if (close(udp_sk_fd2) < 0) in test_udp_bind()
137 if (close(udp_sk_fd3) < 0) in test_udp_bind()
216 if (close(server_fd) < 0) in main()
221 if (close(udp_sk_fd) < 0) in main()
/DragonOS-0.1.8/user/apps/test_relibc/
Dmain.c20 close(conn); in signal_handler()
21 close(server_sockfd); in signal_handler()
90 close(conn); in tcp_server()
91 close(server_sockfd); in tcp_server()
134 close(conn); in udp_server()
135 close(server_sockfd); in udp_server()
189 close(client_sockfd); in tcp_client()
/DragonOS-0.1.8/user/apps/http_server/
Dmain.c107 close(fd); in send_file()
115 close(fd); in send_file()
234 close(new_socket); in main()
/DragonOS-0.1.8/user/libs/libc/src/include/export/
Dunistd.h15 int close(int fd);
/DragonOS-0.1.8/kernel/src/common/
Dblk_types.h17 long (*close)(); member
/DragonOS-0.1.8/user/libs/libc/src/
Ddirent.c52 int retval = close(dirp->fd); in closedir()
Dstdio.c57 int retval = close(stream->fd); in fclose()
Dunistd.c15 int close(int fd) in close() function
/DragonOS-0.1.8/docs/userland/libc/apis/api-list/
Dunistd.md9 ``int close(int fd)`` : 关闭文件
/DragonOS-0.1.8/kernel/src/driver/keyboard/
Dps2_keyboard.rs138 fn close( in close() method
146 let func = guard.f_ops.close.unwrap(); in close()
Dps2_keyboard.c131 .close = ps2_keyboard_close,
/DragonOS-0.1.8/kernel/src/filesystem/vfs/
DVFS.h186 long (*close)(struct vfs_index_node_t *inode, struct vfs_file_t *file_ptr); member
Dmount.rs130 fn close(&self, data: &mut FilePrivateData) -> Result<(), SystemError> { in close() method
131 return self.inner_inode.close(data); in close()
Dfile.rs368 let r: Result<(), SystemError> = self.inode.close(&mut self.private_data); in drop()
Dmod.rs102 fn close(&self, _data: &mut FilePrivateData) -> Result<(), SystemError> { in close() method
/DragonOS-0.1.8/kernel/src/filesystem/devfs/
Dnull_dev.rs76 fn close(&self, _data: &mut FilePrivateData) -> Result<(), SystemError> { in close() method
Dzero_dev.rs76 fn close(&self, _data: &mut FilePrivateData) -> Result<(), SystemError> { in close() method
/DragonOS-0.1.8/kernel/src/driver/disk/ahci/
Dahci_inode.rs82 fn close(&self, _data: &mut FilePrivateData) -> Result<(), SystemError> { in close() method
/DragonOS-0.1.8/kernel/src/driver/base/char/
Dmod.rs36 fn close(&self, file: Arc<dyn IndexNode>) -> Result<(), SystemError>; in close() method
/DragonOS-0.1.8/kernel/src/ipc/
Dpipe.rs150 fn close(&self, _data: &mut FilePrivateData) -> Result<(), SystemError> { in close() method
/DragonOS-0.1.8/kernel/src/driver/tty/
Dtty_device.rs232 fn close(&self, _data: &mut FilePrivateData) -> Result<(), SystemError> { in close() method
/DragonOS-0.1.8/kernel/src/driver/uart/
Duart.rs229 fn close(&self, _file: Arc<dyn IndexNode>) -> Result<(), crate::syscall::SystemError> { in close() method
/DragonOS-0.1.8/kernel/src/filesystem/sysfs/
Dmod.rs164 fn close(&self, _data: &mut super::vfs::FilePrivateData) -> Result<(), SystemError> { in close() method

12