/seL4-camkes-master/projects/picotcp/modules/ |
H A D | pico_dev_tap.c | 25 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 D | getspnam_r.c | 66 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 D | res_msend.c | 34 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 D | sendmsg.c | 8 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 D | ppp.c | 24 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 D | guest_image.c | 116 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 D | posix_spawn.c | 90 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 D | file.c | 66 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 D | file.h | 21 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.c | 44 struct pollfd pfd[3] = { {.fd=0}, {.fd=1}, {.fd=2} };
|
/seL4-camkes-master/projects/musllibc/include/ |
H A D | poll.h | 32 int fd; member in struct:pollfd
|
/seL4-camkes-master/projects/musllibc/src/conf/ |
H A D | fpathconf.c | 5 long fpathconf(int fd, int name) argument
|
/seL4-camkes-master/projects/musllibc/src/dirent/ |
H A D | readdir.c | 14 int len = __syscall(SYS_getdents, dir->fd, dir->buf, sizeof dir->buf);
|
/seL4-camkes-master/tools/rumprun/lib/librumpkern_mman/ |
H A D | sys_mman.c | 122 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 D | shm_open.c | 35 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 D | syslog.c | 92 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 D | utils.c | 734 * 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 D | sys_morecore.c | 70 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 D | tftp.c | 35 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 D | epoll.h | 42 int fd; member in union:epoll_data
|
H A D | fanotify.h | 18 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.c | 12 cnt = syscall(SYS_readv, f->fd, iov, 2);
|
/seL4-camkes-master/tools/rumprun/platform/xen/librumpxen_xendev/ |
H A D | xendev_component.c | 72 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 D | xattr.c | 59 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 D | syscall_mman.c | 54 mmap(void *addr, size_t len, int prot, int flags, int fd, off_t pos) argument 65 SPARG(&callarg, fd) = fd;
|