Searched refs:fd (Results 1 - 25 of 283) sorted by relevance

1234567891011>>

/barrelfish-2018-10-04/lib/posixcompat/
H A Disatty.c12 int isatty(int fd) argument
14 return fd >=0 && fd <= 2;
H A Dclose.c22 int close(int fd) argument
25 struct fdtab_entry *e = fdtab_get(fd);
32 ret = epoll_ctl(e->epoll_fd, EPOLL_CTL_DEL, fd, NULL);
44 ret = lwip_close(e->fd);
51 fdtab_free(fd);
55 ret = ptm_close(fd);
59 ret = pts_close(fd);
63 ret = vfsfd_close(fd);
H A Dftruncate.c13 int ftruncate(int fd, __off_t offset) argument
H A Dread.c21 ssize_t read(int fd, void *buf, size_t len) argument
24 struct fdtab_entry *e = fdtab_get(fd);
29 ret = lwip_read(e->fd, buf, len);
34 ret = recv(fd, buf, len, 0);
38 ret = ptm_read(fd, buf, len);
42 ret = pts_read(fd, buf, len);
46 ret = vfsfd_read(fd, buf, len);
H A Dwrite.c21 ssize_t write(int fd, const void *buf, size_t len) argument
24 struct fdtab_entry *e = fdtab_get(fd);
29 ret = lwip_write(e->fd, buf, len);
34 ret = send(fd, buf, len, 0);
38 ret = ptm_write(fd, buf, len);
42 ret = pts_write(fd, buf, len);
46 ret = vfsfd_write(fd, buf, len);
H A Dchmod.c21 int fchmod(int fd, mode_t mode) argument
23 POSIXCOMPAT_DEBUG("Warning: fchmod(%d, %o) ignored\n", fd, mode);
34 int fchown(int fd, uid_t owner, gid_t group) argument
37 fd, owner, group);
H A Dfstat.c18 int fstat(int fd, struct stat *buf) argument
20 struct fdtab_entry *e = fdtab_get(fd);
25 POSIXCOMPAT_DEBUG("fstat(%d)\n", fd);
33 DEBUG_ERR(err, "fstat(%d) failed\n", fd);
H A Dmmap.c14 void *mmap(void *addr, size_t length, int prot, int flags, int fd, off_t offset) argument
17 addr, length, prot, flags, fd, offset);
H A Dreadv.c17 ssize_t readv(int fd, const struct iovec *iov, int iovcnt) argument
24 ssize_t writev(int fd, const struct iovec *iov, int iovcnt) argument
/barrelfish-2018-10-04/lib/vfs/
H A Dfdtab.c39 for (int fd = start; fd < MAX_FD; fd++) {
40 if (fdtab[fd].type == FDTAB_TYPE_AVAILABLE) {
41 fdtab[fd].inherited = 0; // Just precautionary
42 memcpy(&fdtab[fd], h, sizeof(struct fdtab_entry));
44 return fd;
60 for (int fd = MIN_FD; fd < MAX_FD; fd
85 int fd = fdtab_search(h); local
94 fdtab_get(int fd) argument
109 fdtab_free(int fd) argument
[all...]
/barrelfish-2018-10-04/include/vfs/
H A Dvfs_fd.h19 int vfsfd_read(int fd, void *buf, size_t len);
20 int vfsfd_write(int fd, const void *buf, size_t len);
21 int vfsfd_close(int fd);
22 off_t vfsfd_lseek(int fd, off_t off, int whence);
/barrelfish-2018-10-04/include/lwip2/lwip/
H A Dsio.h69 * @param fd serial device handle
73 void sio_send(u8_t c, sio_fd_t fd);
80 * @param fd serial device handle
84 u8_t sio_recv(sio_fd_t fd);
91 * @param fd serial device handle
99 u32_t sio_read(sio_fd_t fd, u8_t *data, u32_t len);
107 * @param fd serial device handle
112 u32_t sio_tryread(sio_fd_t fd, u8_t *data, u32_t len);
119 * @param fd serial device handle
126 u32_t sio_write(sio_fd_t fd, u8_
[all...]
/barrelfish-2018-10-04/lib/libc/sys/
H A Dfdatasync.c42 fdatasync(int fd) argument
45 return (((int (*)(int))__libc_interposing[INTERPOS_fdatasync])(fd));
H A Dfsync.c44 fsync(int fd) argument
47 return (((int (*)(int))__libc_interposing[INTERPOS_fsync])(fd));
H A Dclose.c45 close(int fd) argument
48 return (((int (*)(int))__libc_interposing[INTERPOS_close])(fd));
H A Dread.c45 read(int fd, void *buf, size_t nbytes) argument
49 __libc_interposing[INTERPOS_read])(fd, buf, nbytes));
H A Dwrite.c45 write(int fd, const void *buf, size_t nbytes) argument
49 __libc_interposing[INTERPOS_write])(fd, buf, nbytes));
/barrelfish-2018-10-04/lib/libc/gen/
H A Dfdevname.c37 fdevname_r(int fd, char *buf, int len) argument
44 if (_ioctl(fd, FIODGNAME, &fgn) == -1)
50 fdevname(int fd) argument
54 return (fdevname_r(fd, buf, sizeof(buf)));
H A Ddaemon.c50 int fd; local
87 if (!noclose && (fd = _open(_PATH_DEVNULL, O_RDWR, 0)) != -1) {
88 (void)_dup2(fd, STDIN_FILENO);
89 (void)_dup2(fd, STDOUT_FILENO);
90 (void)_dup2(fd, STDERR_FILENO);
91 if (fd > 2)
92 (void)_close(fd);
/barrelfish-2018-10-04/lib/libc/stdio/
H A Dfileno.c50 int fd; local
53 fd = __sfileno(fp);
56 return (fd);
H A Ddprintf.c36 dprintf(int fd, const char * __restrict fmt, ...) argument
42 ret = vdprintf(fd, fmt, ap);
/barrelfish-2018-10-04/lib/devif/backends/net/mlx4/include/linux/
H A Dfile.h47 linux_fget(unsigned int fd) argument
51 if (fget_unlocked(curthread->td_proc->p_fd, fd, NULL, 0, &file,
72 put_unused_fd(unsigned int fd) argument
76 if (fget_unlocked(curthread->td_proc->p_fd, fd, NULL, 0, &file,
81 * NOTE: We should only get here when the "fd" has not been
85 fdclose(curthread->td_proc->p_fd, file, fd, curthread);
92 fd_install(unsigned int fd, struct linux_file *filp) argument
96 if (fget_unlocked(curthread->td_proc->p_fd, fd, NULL, 0, &file,
113 int fd; local
115 error = falloc(curthread, &file, &fd,
128 int fd; local
152 struct fd { struct
156 fdput(struct fd fd) argument
161 fdget(unsigned int fd) argument
[all...]
/barrelfish-2018-10-04/lib/libc/sys/barrelfish/
H A Dposix_syscalls.c25 static int read_fail(int fd, void *buf, size_t len) { FAIL_FN(); } argument
26 static int write_fail(int fd, const void *buf, size_t len) { FAIL_FN(); } argument
27 static int close_fail(int fd) { FAIL_FN(); } argument
28 static off_t lseek_fail(int fd, off_t off, int whence) { FAIL_FN(); } argument
72 static xwrite(int fd, const void *buf, size_t count) argument
74 return fs_ops.write(fd, buf, count);
78 _DEFUN (_write_r, (ptr, fd, buf, cnt),
80 int fd _AND
87 if ((ret = (_ssize_t)xwrite (fd, buf, cnt)) == -1 && errno != 0)
93 xread(int fd, voi argument
116 xclose(int fd) argument
157 xlseek(int fd, off_t offset, int whence) argument
181 xfstat(int fd, void *stat) argument
187 _fstat_r(struct _reent *ptr, int fd, struct stat *pstat) argument
[all...]
/barrelfish-2018-10-04/lib/openssl-1.0.0d/demos/tunala/
H A Dip.c24 int fd = -1; local
28 if((fd = socket(PF_INET, SOCK_STREAM, 0)) == -1)
31 if(setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, (char *)(&reuseVal),
39 if(bind(fd, (struct sockaddr *)&in_addr, sizeof(struct sockaddr_in)) != 0)
42 if(listen(fd, IP_LISTENER_BACKLOG) != 0)
44 return fd;
46 if(fd != -1)
47 close(fd);
54 int flags, fd = -1; local
57 if((fd
[all...]
/barrelfish-2018-10-04/usr/tests/testdesc/
H A Dtestdesc-child.c67 struct fd_store *fd; local
69 fd = (struct fd_store*)p;
74 for (i = 0; i < num_fds; i++, fd++) {
76 /* add each to our fd table - replacing any fds already there */
78 fde.type = fd->type;
79 fde.handle = fd->handle;
81 if (fdtab_get(fd->num)->type != FDTAB_TYPE_AVAILABLE) {
82 fdtab_free(fd->num);
84 fdtab_alloc_from(&fde, fd->num);
89 switch (fd
[all...]

Completed in 93 milliseconds

1234567891011>>