/barrelfish-2018-10-04/lib/libc/posix1e/ |
H A D | mac_get.c | 39 extern int __mac_get_fd(int fd, struct mac *mac_p); 46 mac_get_fd(int fd, struct mac *label) argument 49 return (__mac_get_fd(fd, label)); 67 mac_get_peer(int fd, struct mac *label) argument 72 return (getsockopt(fd, SOL_SOCKET, SO_PEERLABEL, label, &len));
|
H A D | mac_set.c | 38 extern int __mac_set_fd(int fd, struct mac *mac_p); 44 mac_set_fd(int fd, struct mac *label) argument 47 return (__mac_set_fd(fd, label));
|
/barrelfish-2018-10-04/lib/openssl-1.0.0d/engines/vendor_defns/ |
H A D | hw_ubsec.h | 57 typedef int t_UBSEC_ubsec_close(int fd); 59 typedef int t_UBSEC_diffie_hellman_generate_ioctl (int fd, 64 typedef int t_UBSEC_diffie_hellman_agree_ioctl (int fd, 68 typedef int t_UBSEC_rsa_mod_exp_ioctl (int fd, 72 typedef int t_UBSEC_rsa_mod_exp_crt_ioctl (int fd, 78 typedef int t_UBSEC_dsa_sign_ioctl (int fd, 85 typedef int t_UBSEC_dsa_verify_ioctl (int fd, 92 typedef int t_UBSEC_math_accelerate_ioctl(int fd, ubsec_MathCommand_t command, 97 typedef int t_UBSEC_rng_ioctl(int fd, ubsec_RNGCommand_t command, 100 typedef int t_UBSEC_max_key_len_ioctl(int fd, in [all...] |
/barrelfish-2018-10-04/lib/libc/stdio/ |
H A D | mktemp.c | 58 int fd; local 60 return (_gettemp(path, &fd, 0, slen, oflags) ? fd : -1); 66 int fd; local 68 return (_gettemp(path, &fd, 0, slen, 0) ? fd : -1); 74 int fd; local 76 return (_gettemp(path, &fd, 0, 0, oflags) ? fd : -1); 82 int fd; local [all...] |
H A D | tmpfile.c | 56 int fd, sverrno; local 75 fd = mkstemp(buf); 76 if (fd != -1) 83 if (fd == -1) 86 if ((fp = fdopen(fd, "w+")) == NULL) { 88 (void)_close(fd);
|
/barrelfish-2018-10-04/lib/vfs/ |
H A D | vfs_fd.c | 81 int fd = fdtab_alloc(&e); local 82 VFSFD_DEBUG("open(%s) as fd %d\n", pathname, fd); 83 if (fd < 0) { 87 return fd; 92 int vfsfd_read(int fd, void *buf, size_t len) argument 94 struct fdtab_entry *e = fdtab_get(fd); 100 VFSFD_DEBUG("%d : read(%d, %d) = %lu\n", disp_get_domain_id(), fd, len, retlen); 123 int vfsfd_write(int fd, const void *buf, size_t len) argument 125 struct fdtab_entry *e = fdtab_get(fd); 159 vfsfd_close(int fd) argument 195 vfsfd_lseek(int fd, off_t offset, int whence) argument [all...] |
/barrelfish-2018-10-04/lib/libc/gen/ |
H A D | isatty.c | 40 isatty(int fd) argument 45 // retval = (tcgetattr(fd, &t) != -1);
|
H A D | pututxline.c | 48 int fd; local 50 fd = _open(file, O_CREAT|O_RDWR|O_EXLOCK|O_CLOEXEC, 0644); 51 if (fd < 0) 55 if (_fstat(fd, &sb) != -1 && sb.st_size % sizeof(struct futx) != 0) { 56 _close(fd); 61 fp = fdopen(fd, "r+"); 63 _close(fd); 181 int fd; local 184 fd = _open(_PATH_UTX_ACTIVE, O_CREAT|O_RDWR|O_TRUNC, 0644); 185 if (fd < 239 int fd; local 259 int error, fd; local [all...] |
H A D | ttyname.c | 60 ttyname_r(int fd, char *buf, size_t len) argument 67 if (!isatty(fd)) 75 if (fdevname_r(fd, buf + used, len - used) == NULL) 87 ttyname(int fd) argument 107 if (ttyname_r(fd, buf, sizeof ttyname_buf) != 0)
|
/barrelfish-2018-10-04/include/vfs/ |
H A D | fdtab.h | 41 int fd; member in struct:_epoll_events_list 48 int fd; member in struct:fdtab_entry 59 struct fdtab_entry *fdtab_get(int fd); 60 void fdtab_free(int fd);
|
/barrelfish-2018-10-04/lib/openssl-1.0.0d/demos/easy_tls/ |
H A D | test.h | 5 void test_process_init(int fd, int client_p, void *apparg);
|
/barrelfish-2018-10-04/lib/libc/tests/stdio/ |
H A D | mkostemp_test.c | 56 int fd; local 59 fd = mkostemp(tmpf, oflags); 60 if (fd < 0) { 73 if (fcntl(fd, F_GETFD) != 80 if ((fcntl(fd, F_GETFL) & MISCFLAGS) != (oflags & MISCFLAGS)) { 92 if (fstat(fd, &st2) == -1) { 94 "cannot fstat returned fd %d: %s\n", 95 testnum++, oflags, fd, strerror(errno)); 119 if (fstat(fd, &st2) == -1) 121 "cannot fstat returned fd [all...] |
/barrelfish-2018-10-04/lib/posixcompat/ |
H A D | select.c | 237 /* Restore all waitsets changed becase fd was in readset */ 238 for (int fd = 0; fd < maxfdp1; fd++) { 239 if (FD_ISSET(fd, changed_ws[READ_SLOT])) { 240 SELECT_DEBUG("fd %d: restore read waitset\n", fd); 241 struct fdtab_entry *e = fdtab_get(fd); 260 err = lwip_sock_waitset_deregister_read(e->fd); 274 (us->u.active.binding, ws_store[READ_SLOT][fd]); [all...] |
H A D | fsync.c | 19 int fsync(int fd) argument 21 struct fdtab_entry *e = fdtab_get(fd);
|
H A D | ttyname.c | 23 char *ttyname(int fd) argument 25 struct fdtab_entry *e = fdtab_get(fd);
|
H A D | pty.h | 115 int ptm_close(int fd); 116 ssize_t ptm_read(int fd, void *buf, size_t count); 117 ssize_t ptm_write(int fd, const void *buf, size_t count); 122 int pts_close(int fd); 124 ssize_t pts_read(int fd, void *buf, size_t count); 125 ssize_t pts_write(int fd, const void *buf, size_t count);
|
H A D | fcntl.c | 22 int fcntl(int fd, int cmd, ...) argument 29 struct fdtab_entry *e = fdtab_get(fd); 67 POSIXCOMPAT_DEBUG("fcntl(%d, F_SETFD, %d)\n", fd, flags); 80 POSIXCOMPAT_DEBUG("fcntl(%d, F_SETFL, %d)\n", fd, flags); 91 retval = lwip_fcntl(e->fd, cmd, flags); 111 POSIXCOMPAT_DEBUG("fcntl(%d, F_GETFL)\n", fd); 120 retval = lwip_fcntl(e->fd, cmd, 0);
|
/barrelfish-2018-10-04/lib/libc/sys/ |
H A D | fcntl.c | 45 fcntl(int fd, int cmd, ...) argument 55 __libc_interposing[INTERPOS_fcntl])(fd, cmd, arg));
|
H A D | readv.c | 46 readv(int fd, const struct iovec *iov, int iovcnt) argument 50 __libc_interposing[INTERPOS_readv])(fd, iov, iovcnt));
|
H A D | writev.c | 46 writev(int fd, const struct iovec *iov, int iovcnt) argument 50 __libc_interposing[INTERPOS_writev])(fd, iov, iovcnt));
|
H A D | barrelfish_syscalls.c | 27 static int read_fail(int fd, void *buf, size_t len) { FAIL_FN(); } argument 28 static int write_fail(int fd, const void *buf, size_t len) { FAIL_FN(); } argument 29 static int close_fail(int fd) { FAIL_FN(); } argument 30 static off_t lseek_fail(int fd, off_t off, int whence) { FAIL_FN(); } argument 66 ssize_t _write(int fd, const void *buf, size_t nbytes) argument 68 return fs_ops.write(fd, buf, nbytes); 71 ssize_t _read(int fd, void *buf, size_t nbytes) argument 73 return fs_ops.read(fd, buf, nbytes); 76 int _close(int fd) argument 78 return fs_ops.close(fd); 86 lseek(int fd, off_t offset, int whence) argument 94 _fstat(int fd, void *stat) argument 108 mmap(void *addr, size_t len, int prot, int flags, int fd, off_t offset) argument 120 _writev(int fd, const struct iovec *iov, int iovcnt) argument [all...] |
/barrelfish-2018-10-04/lib/acpica/source/os_specific/service_layers/ |
H A D | osunixmap.c | 186 int fd; local 189 fd = open (SYSTEM_MEMORY, O_RDONLY | O_BINARY); 190 if (fd < 0) 204 fd, (Where - Offset)); 208 close (fd); 212 close (fd);
|
/barrelfish-2018-10-04/lib/libc/rpc/ |
H A D | getpublickey.c | 94 FILE *fd; local 98 fd = fopen(PKFILE, "r"); 99 if (fd == NULL) 102 res = fgets(buf, sizeof(buf), fd); 104 fclose(fd); 131 fclose(fd); 158 fclose(fd);
|
/barrelfish-2018-10-04/usr/eclipseclp/Kernel/src/ |
H A D | getwd.c | 63 int fd; local 80 if ((fd = open("..",0)) < 0) { 84 if(fstat(fd, &dotdotstat) < 0) { 95 (void) close(fd); 109 if (read(fd,(char *) &dir,sizeof(dir)) != sizeof(dir)) { 117 (void) close(fd); 158 (void) close(fd);
|
/barrelfish-2018-10-04/lib/openssl-1.0.0d/crypto/rand/ |
H A D | rand_egd.c | 143 int fd = -1; local 153 fd = socket(AF_UNIX, SOCK_STREAM, 0); 154 if (fd == -1) return (-1); 158 if (connect(fd, (struct sockaddr *)&addr, len) == 0) 196 num = write(fd, egdbuf + numbytes, 2 - numbytes); 220 num = read(fd, egdbuf, 1); 252 num = read(fd, retrievebuf + numbytes, egdbuf[0] - numbytes); 281 if (fd != -1) close(fd);
|