Searched refs:fd (Results 151 - 175 of 202) sorted by relevance

123456789

/seL4-camkes-master/projects/picotcp/modules/
H A Dpico_dev_tap.c25 int fd; member in struct:pico_device_tap
56 return (int)write(tap->fd, buf, (uint32_t)len);
65 pfd.fd = tap->fd;
72 len = (int)read(tap->fd, buf, TUN_MTU);
86 if(tap->fd > 0) {
87 close(tap->fd);
195 tap->fd = tap_open(name);
196 if (tap->fd < 0) {
/seL4-camkes-master/projects/musllibc/src/passwd/
H A Dgetspnam_r.c66 int fd; local
84 fd = open(path, O_RDONLY|O_NOFOLLOW|O_NONBLOCK|O_CLOEXEC);
85 if (fd >= 0) {
88 if (fstat(fd, &st) || !S_ISREG(st.st_mode) || !(f = fdopen(fd, "rb"))) {
90 close(fd);
/seL4-camkes-master/projects/musllibc/src/network/
H A Dres_msend.c34 int fd; local
72 fd = socket(family, SOCK_DGRAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0);
75 if (fd < 0 && family == AF_INET6 && errno == EAFNOSUPPORT) {
76 fd = socket(AF_INET, SOCK_DGRAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0);
79 if (fd < 0 || bind(fd, (void *)&sa, sl) < 0) return -1;
85 pthread_cleanup_push(cleanup, (void *)(intptr_t)fd);
90 setsockopt(fd, IPPROTO_IPV6, IPV6_V6ONLY, &(int){0}, sizeof 0);
105 pfd.fd = fd;
[all...]
H A Dsendmsg.c8 ssize_t sendmsg(int fd, const struct msghdr *msg, int flags) argument
29 return socketcall_cp(sendmsg, fd, msg, flags, 0, 0, 0);
/seL4-camkes-master/projects/picotcp/test/
H A Dppp.c24 static int fd = -1; variable
66 r = read(fd, data, len);
91 r = write(fd, data, len);
98 if (tcgetattr(fd, &term) != 0)
104 if (tcsetattr(fd, TCSANOW, &term) != 0)
155 fd = open(path, O_RDWR);
156 if (fd < 0)
159 fcntl(fd, F_SETFL, O_NONBLOCK);
/seL4-camkes-master/projects/seL4_projects_libs/libsel4vmmplatsupport/src/arch/arm/
H A Dguest_image.c116 int fd; local
118 fd = open(image_name, 0);
119 if (fd == -1) {
124 size_t len = read(fd, header, sizeof(*header));
127 close(fd);
131 close(fd);
153 int fd; local
156 fd = open(image_name, 0);
157 if (fd == -1) {
178 len = read(fd, bu
[all...]
/seL4-camkes-master/projects/musllibc/src/process/
H A Dposix_spawn.c90 int fd; local
94 * the pipe fd used for synchronizing with the
96 * an unoccupied fd. */
97 if (op->fd == p) {
105 __syscall(SYS_close, op->fd);
108 if ((ret=__sys_dup2(op->srcfd, op->fd))<0)
112 fd = __sys_open(op->path, op->oflag, op->mode);
113 if ((ret=fd) < 0) goto fail;
114 if (fd != op->fd) {
[all...]
/seL4-camkes-master/tools/riscv-pk/pk/
H A Dfile.c66 file_t* file_get(int fd) argument
69 if (fd < 0 || fd >= MAX_FDS || (f = atomic_read(&fds[fd])) == NULL)
107 int fd_close(int fd) argument
109 file_t* f = file_get(fd);
112 file_t* old = atomic_cas(&fds[fd], f, 0);
H A Dfile.h21 file_t* file_get(int fd);
35 int fd_close(int fd);
/seL4-camkes-master/projects/musllibc/src/env/
H A D__libc_start_main.c44 struct pollfd pfd[3] = { {.fd=0}, {.fd=1}, {.fd=2} };
/seL4-camkes-master/projects/musllibc/include/
H A Dpoll.h32 int fd; member in struct:pollfd
/seL4-camkes-master/projects/musllibc/src/conf/
H A Dfpathconf.c5 long fpathconf(int fd, int name) argument
/seL4-camkes-master/projects/musllibc/src/dirent/
H A Dreaddir.c14 int len = __syscall(SYS_getdents, dir->fd, dir->buf, sizeof dir->buf);
/seL4-camkes-master/tools/rumprun/lib/librumpkern_mman/
H A Dsys_mman.c122 int fd = SCARG(uap, fd); local
131 SCARG(uap, addr), len, prot, flags, fd, pos));
133 if (fd != -1 && prot != PROT_READ) {
165 if ((fp = fd_getfile(fd)) == NULL)
169 fd_putfile(fd);
173 fd_putfile(fd);
177 error = dofileread(fd, fp, v, roundedlen, &pos, 0, &cnt);
/seL4-camkes-master/projects/musllibc/src/mman/
H A Dshm_open.c35 int fd = open(name, flag|O_NOFOLLOW|O_CLOEXEC|O_NONBLOCK, mode); local
37 return fd;
/seL4-camkes-master/projects/musllibc/src/misc/
H A Dsyslog.c92 int fd; local
115 fd = open("/dev/console", O_WRONLY|O_NOCTTY|O_CLOEXEC);
116 if (fd >= 0) {
117 dprintf(fd, "%.*s", l-hlen, buf+hlen);
118 close(fd);
/seL4-camkes-master/projects/lwip/src/netif/ppp/
H A Dutils.c734 * complete_read - read a full `count' bytes from fd,
738 complete_read(int fd, void *buf, size_t count)
745 nb = read(fd, ptr, count - done);
799 int fd, pid, n;
834 while ((fd = open(lock_file, O_EXCL | O_CREAT | O_RDWR, 0644)) < 0) {
841 fd = open(lock_file, O_RDONLY, 0);
842 if (fd < 0) {
849 n = read(fd, lock_buffer, 11);
851 n = read(fd, &pid, sizeof(pid));
853 close(fd);
[all...]
/seL4-camkes-master/projects/seL4_libs/libsel4muslcsys/src/
H A Dsys_morecore.c70 long sys_mmap_impl(void *addr, size_t length, int prot, int flags, int fd, off_t offset) argument
193 static long sys_mmap_impl_static(void *addr, size_t length, int prot, int flags, int fd, off_t offset) argument
210 static long sys_mmap_impl_dynamic(void *addr, size_t length, int prot, int flags, int fd, off_t offset) argument
227 long sys_mmap_impl(void *addr, size_t length, int prot, int flags, int fd, off_t offset) argument
230 return sys_mmap_impl_static(addr, length, prot, flags, fd, offset);
232 return sys_mmap_impl_dynamic(addr, length, prot, flags, fd, offset);
345 int fd = va_arg(ap, int); local
347 return sys_mmap_impl(addr, length, prot, flags, fd, offset);
356 int fd = va_arg(ap, int); local
360 return sys_mmap_impl(addr, length, prot, flags, fd, offse
[all...]
/seL4-camkes-master/projects/picotcp/test/examples/
H A Dtftp.c35 int fd; member in struct:note_t
43 struct note_t *add_note(const char *filename, int fd, char direction) argument
48 note->fd = fd;
107 int fd; local
110 fd = open(filename, (toupper(operation) == 'T') ? O_RDONLY : O_WRONLY | O_EXCL | O_CREAT, 0666);
111 if (fd < 0) {
117 return add_note(filename, fd, operation);
129 len = read(note->fd, tftp_txbuf, PICO_TFTP_PAYLOAD_SIZE);
136 close(note->fd);
[all...]
/seL4-camkes-master/projects/musllibc/include/sys/
H A Depoll.h42 int fd; member in union:epoll_data
H A Dfanotify.h18 int fd; member in struct:fanotify_event_metadata
23 int fd; member in struct:fanotify_response
/seL4-camkes-master/projects/musllibc/src/stdio/
H A D__stdio_read.c12 cnt = syscall(SYS_readv, f->fd, iov, 2);
/seL4-camkes-master/tools/rumprun/platform/xen/librumpxen_xendev/
H A Dxendev_component.c72 int fd, err; local
86 err = fd_allocfile(&fp, &fd);
94 fd_abort(curproc, fp, fd);
100 return fd_clone(fp, fd, flags, xdinfo->fo, fdata);
/seL4-camkes-master/projects/musllibc/src/linux/
H A Dxattr.c59 int fremovexattr(int fd, const char *name) argument
61 return syscall(SYS_fremovexattr, fd, name);
/seL4-camkes-master/tools/rumprun/lib/librumprun_base/
H A Dsyscall_mman.c54 mmap(void *addr, size_t len, int prot, int flags, int fd, off_t pos) argument
65 SPARG(&callarg, fd) = fd;

Completed in 119 milliseconds

123456789