/illumos-gate/usr/src/stand/sys/ |
H A D | bootvfs.h | 57 int (*fsw_close)(int fd); 58 ssize_t (*fsw_read)(int fd, caddr_t buf, size_t size); 62 int (*fsw_getdents)(int fd, struct dirent *buf, unsigned size); 74 extern int close(int fd); 75 extern ssize_t read(int fd, void *buf, size_t size); 77 extern int fstat(int fd, struct stat *buf); 87 extern ssize_t kern_read(int fd, caddr_t buf, size_t size); 89 extern off_t kern_seek(int fd, off_t hi, off_t lo); 90 extern off_t kern_lseek(int fd, off_t hi, off_t lo); 91 extern int kern_close(int fd); [all...] |
/illumos-gate/usr/src/lib/libast/common/dir/ |
H A D | opendir.c | 52 register int fd; 55 if ((fd = open(path, O_RDONLY)) < 0) return(0); 56 if (fstat(fd, &st) < 0 || 58 fcntl(fd, F_SETFD, FD_CLOEXEC) || 67 close(fd); 76 dirp->dd_fd = fd;
|
/illumos-gate/usr/src/boot/lib/libstand/ |
H A D | readdir.c | 34 readdirfd(int fd) argument 37 struct open_file *f = &files[fd]; 39 if ((unsigned)fd >= SOPEN_MAX || !(f->f_flags & F_READ)) {
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/ |
H A D | krbfileio.c | 19 int fd; local 31 fd = open(pathname, open_flag | O_BINARY, 0600); 32 if (fd == -1) { 35 close(fd);
|
/illumos-gate/usr/src/lib/libshell/common/include/ |
H A D | terminal.h | 73 # define tcgetattr(fd,tty) ioctl(fd, TCGETS, tty) 75 # define tcsetattr(fd,action,tty) ioctl(fd, action, tty) 106 # define tcgetattr(fd,tty) ioctl(fd, TCGETA, tty) 107 # define tcsetattr(fd,action,tty) ioctl(fd, action, tty) 125 # define tcgetattr(fd,tty) ioctl(fd, TIOCGET [all...] |
/illumos-gate/usr/src/lib/libsmbfs/netsmb/ |
H A D | smbfs_acl.h | 49 int smbfs_acl_get(int fd, acl_t **, uid_t *, gid_t *); 58 int smbfs_acl_set(int fd, acl_t *, uid_t, gid_t); 75 int smbfs_acl_getsd(int fd, uint32_t, struct i_ntsd **); 80 int smbfs_acl_setsd(int fd, uint32_t, struct i_ntsd *);
|
/illumos-gate/usr/src/lib/libnsl/nsl/ |
H A D | t_close.c | 42 _tx_close(int fd, int api_semantics) argument 47 if (_t_checkfd(fd, 0, api_semantics) == NULL) 52 if (_t_delete_tilink(fd) < 0) { 64 (void) close(fd);
|
/illumos-gate/usr/src/lib/libnsl/rpc/ |
H A D | can_use_af.c | 48 int fd; local 50 if ((fd = open("/dev/udp", O_RDONLY)) < 0) 56 if (ioctl(fd, SIOCGLIFNUM, &lifn, sizeof (lifn)) < 0) 59 (void) close(fd);
|
H A D | rpc_mt.h | 63 (y)[(x)].fd = (x); \ 67 (y)[(x)].fd = -1; \ 71 #define POLLFD_ISSET(x, y) ((y)[(x)].fd >= 0) 80 extern int rpc_fd_lock(const void *handle, int fd); 81 extern void rpc_fd_unlock(const void *handle, int fd); 95 #define RPC_RAISEFD(fd) if (fd < RPC_MINFD) \ 96 fd = __rpc_raise_fd(fd)
|
/illumos-gate/usr/src/lib/libbc/libc/sys/common/ |
H A D | lseek.c | 36 lseek(int fd, off_t offset, int whence) argument 44 if (fd_get(fd) != -1) { 47 if ((ret = _syscall(SYS_lseek, fd, off, whence)) != -1) 52 return (_syscall(SYS_lseek, fd, offset, whence));
|
/illumos-gate/usr/src/lib/libc/port/sys/ |
H A D | sidsys.c | 58 __idmap_reg(int fd) argument 60 return (syscall(SYS_sidsys, SIDSYS_IDMAP_REG, fd)); 64 __idmap_unreg(int fd) argument 66 return (syscall(SYS_sidsys, SIDSYS_IDMAP_UNREG, fd));
|
/illumos-gate/usr/src/cmd/fs.d/fd/ |
H A D | Makefile | 29 FSTYPE= fd
|
/illumos-gate/usr/src/cmd/sendmail/db/os/ |
H A D | os_seek.c | 31 __os_seek(fd, pgsize, pageno, relative, isrewind, whence) 32 int fd; 42 ret = __db_jump.j_seek(fd, 49 ret = lseek(fd, offset, whence);
|
/illumos-gate/usr/src/cmd/sendmail/libsmutil/ |
H A D | lockfile.c | 25 ** fd -- the file descriptor of the file. 39 lockfile(fd, filename, ext, type) 40 int fd; 61 if (fcntl(fd, action, &lfd) >= 0) 78 if (flock(fd, type) >= 0)
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/exec/ |
H A D | mmap_exec.c | 43 int fd; local 55 if ((fd = open(argv[1], O_RDONLY)) < 0) { 59 if (fstat(fd, &statbuf) < 0) { 65 PROT_EXEC, MAP_SHARED, fd, 0) == MAP_FAILED) {
|
/illumos-gate/usr/src/lib/libast/amd64/include/ast/ |
H A D | ast_tty.h | 68 # define tcgetattr(fd,tty) ioctl(fd, TCGETS, tty) 70 # define tcsetattr(fd,action,tty) ioctl(fd, action, tty) 91 # define tcgetattr(fd,tty) ioctl(fd, TCGETA, tty) 92 # define tcsetattr(fd,action,tty) ioctl(fd, action, tty) 110 # define tcgetattr(fd,tty) ioctl(fd, TIOCGET [all...] |
/illumos-gate/usr/src/lib/libast/amd64/src/lib/libast/ |
H A D | ast_tty.h | 47 # define tcgetattr(fd,tty) ioctl(fd, TCGETS, tty) 49 # define tcsetattr(fd,action,tty) ioctl(fd, action, tty) 70 # define tcgetattr(fd,tty) ioctl(fd, TCGETA, tty) 71 # define tcsetattr(fd,action,tty) ioctl(fd, action, tty) 89 # define tcgetattr(fd,tty) ioctl(fd, TIOCGET [all...] |
/illumos-gate/usr/src/lib/libast/i386/include/ast/ |
H A D | ast_tty.h | 68 # define tcgetattr(fd,tty) ioctl(fd, TCGETS, tty) 70 # define tcsetattr(fd,action,tty) ioctl(fd, action, tty) 91 # define tcgetattr(fd,tty) ioctl(fd, TCGETA, tty) 92 # define tcsetattr(fd,action,tty) ioctl(fd, action, tty) 110 # define tcgetattr(fd,tty) ioctl(fd, TIOCGET [all...] |
/illumos-gate/usr/src/lib/libast/i386/src/lib/libast/ |
H A D | ast_tty.h | 47 # define tcgetattr(fd,tty) ioctl(fd, TCGETS, tty) 49 # define tcsetattr(fd,action,tty) ioctl(fd, action, tty) 70 # define tcgetattr(fd,tty) ioctl(fd, TCGETA, tty) 71 # define tcsetattr(fd,action,tty) ioctl(fd, action, tty) 89 # define tcgetattr(fd,tty) ioctl(fd, TIOCGET [all...] |
/illumos-gate/usr/src/lib/libast/sparc/include/ast/ |
H A D | ast_tty.h | 68 # define tcgetattr(fd,tty) ioctl(fd, TCGETS, tty) 70 # define tcsetattr(fd,action,tty) ioctl(fd, action, tty) 91 # define tcgetattr(fd,tty) ioctl(fd, TCGETA, tty) 92 # define tcsetattr(fd,action,tty) ioctl(fd, action, tty) 110 # define tcgetattr(fd,tty) ioctl(fd, TIOCGET [all...] |
/illumos-gate/usr/src/lib/libast/sparc/src/lib/libast/ |
H A D | ast_tty.h | 47 # define tcgetattr(fd,tty) ioctl(fd, TCGETS, tty) 49 # define tcsetattr(fd,action,tty) ioctl(fd, action, tty) 70 # define tcgetattr(fd,tty) ioctl(fd, TCGETA, tty) 71 # define tcsetattr(fd,action,tty) ioctl(fd, action, tty) 89 # define tcgetattr(fd,tty) ioctl(fd, TIOCGET [all...] |
/illumos-gate/usr/src/lib/libast/sparcv9/include/ast/ |
H A D | ast_tty.h | 68 # define tcgetattr(fd,tty) ioctl(fd, TCGETS, tty) 70 # define tcsetattr(fd,action,tty) ioctl(fd, action, tty) 91 # define tcgetattr(fd,tty) ioctl(fd, TCGETA, tty) 92 # define tcsetattr(fd,action,tty) ioctl(fd, action, tty) 110 # define tcgetattr(fd,tty) ioctl(fd, TIOCGET [all...] |
/illumos-gate/usr/src/lib/libast/sparcv9/src/lib/libast/ |
H A D | ast_tty.h | 47 # define tcgetattr(fd,tty) ioctl(fd, TCGETS, tty) 49 # define tcsetattr(fd,action,tty) ioctl(fd, action, tty) 70 # define tcgetattr(fd,tty) ioctl(fd, TCGETA, tty) 71 # define tcsetattr(fd,action,tty) ioctl(fd, action, tty) 89 # define tcgetattr(fd,tty) ioctl(fd, TIOCGET [all...] |
/illumos-gate/usr/src/cmd/fs.d/nfs/lib/ |
H A D | daemon.c | 113 daemonize_fini(int fd) argument 117 if (fd != -1) { 118 (void) write(fd, &status, sizeof (status)); 120 (void) close(fd); 122 if ((fd = open("/dev/null", O_RDWR)) >= 0) { 123 (void) fcntl(fd, F_DUP2FD, STDIN_FILENO); 124 (void) fcntl(fd, F_DUP2FD, STDOUT_FILENO); 125 (void) fcntl(fd, F_DUP2FD, STDERR_FILENO); 126 (void) close(fd);
|
/illumos-gate/usr/src/cmd/lp/lib/lp/ |
H A D | files.c | 80 fdprintf(int fd, char *fmt, ...) argument 85 if (fd == 1) 90 return (Write(fd, buf, (int)strlen(buf))); 94 fdgets(char *buf, int len, int fd) argument 100 while ((count < len) && (Read(fd, &tmp, 1) > 0)) 109 fdputs(char *buf, int fd) argument 111 return (fdprintf(fd, "%s", buf)); 115 fdputc(char c, int fd) argument 117 if (fd == 1) 119 return (write(fd, 126 int fd, local 207 int fd; local 269 int fd; local 298 int fd; local 322 int fd; local [all...] |