Searched refs:fd (Results 226 - 250 of 1995) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/lib/libast/i386/src/lib/libast/FEATURE/
H A Dtty47 # 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/src/lib/libast/FEATURE/
H A Dtty47 # 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/src/lib/libast/FEATURE/
H A Dtty47 # 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/libwrap/
H A Dfix_options.c50 int fd = request->fd; local
60 if (getsockopt(fd, ipproto, IP_OPTIONS, (char *) optbuf, &optsize) == 0
94 shutdown(fd, 2);
113 if (setsockopt(fd, ipproto, IP_OPTIONS, (char *) 0, optsize) != 0) {
115 shutdown(fd, 2);
/illumos-gate/usr/src/lib/lvm/libmeta/common/
H A Dmeta_admin.c76 /* return fd */
103 int fd; local
106 fd = open_admin(&status);
107 assert(fd >= 0);
128 int fd; local
131 fd = open_admin(&status);
133 assert(fd >= 0);
/illumos-gate/usr/src/lib/libbc/libc/sys/4.2/
H A Dread.c43 read(int fd, char *buf, int size) argument
45 return (bc_read(fd, buf, size));
49 bc_read(int fd, char *buf, int size) argument
54 if (fd_get(fd) != -1) { /* we're reading utmp (utmpx, really) */
63 if ((ret = _read(fd, nbuf, size)) == -1) {
77 if ((ret = _read(fd, buf, size)) == -1) {
H A Dreadv.c44 readv(int fd, struct iovec *iov, int iovcnt) argument
46 return (bc_readv(fd, iov, iovcnt));
50 bc_readv(int fd, struct iovec *iov, int iovcnt) argument
56 if (fd_get(fd) != -1) { /* we're reading utmp (utmpx really) */
67 if ((ret = _read(fd, nbuf, size)) == -1) {
86 if ((ret = _readv(fd, iov, iovcnt)) == -1) {
H A Dwritev.c45 writev(int fd, struct iovec *iov, int iovcnt) argument
47 return (bc_writev(fd, iov, iovcnt));
51 bc_writev(int fd, struct iovec *iov, int iovcnt) argument
58 if (fd_get(fd) != -1) { /* writing utmp (utmpx, actually) */
73 if ((ret = _write(fd, nbuf, ret)) == -1) {
89 if ((ret = _writev(fd, iov, iovcnt)) == -1) {
/illumos-gate/usr/src/lib/libbc/libc/sys/sys5/
H A Dread.c43 read(int fd, char *buf, int size) argument
45 return (bc_read(fd, buf, size));
49 bc_read(int fd, char *buf, int size) argument
54 if (fd_get(fd) != -1) { /* we're reading utmp (utmpx, really) */
63 if ((ret = _read(fd, nbuf, size)) == -1) {
76 return (_read(fd, buf, size));
H A Dwritev.c42 writev(int fd, struct iovec *iov, int iovcnt) argument
44 return (bc_writev(fd, iov, iovcnt));
48 bc_writev(int fd, struct iovec *iov, int iovcnt) argument
55 if (fd_get(fd) != -1) {
70 if ((ret = _write(fd, nbuf, ret)) == -1) {
84 return (_writev(fd, iov, iovcnt));
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dgetauxv.c64 int fd; local
66 if ((fd = open("/proc/self/auxv", O_RDONLY)) != -1 &&
67 fstat(fd, &statb) != -1)
72 i = read(fd, buf, statb.st_size);
82 if (fd != -1)
83 (void) close(fd);
/illumos-gate/usr/src/lib/libc/port/sys/
H A Dfcntl.c62 s_ioctl(int fd, int cmd, intptr_t arg) argument
64 return (ioctl(fd, cmd, arg));
69 __fcntl(int fd, int cmd, ...) argument
83 return (ioctl(fd, FIOSETOWN, &pid));
86 if (ioctl(fd, FIOGETOWN, &res) < 0)
91 return (syscall(SYS_fcntl, fd, cmd, arg));
/illumos-gate/usr/src/cmd/oamuser/group/
H A Ddel_group.c56 int fd; local
67 if ((fd = mkstemp(tname)) == -1)
70 if ((t_fptr = fdopen(fd, "w")) == NULL) {
71 (void) close(fd);
80 if (fchmod(fd, sbuf.st_mode) != 0 ||
81 fchown(fd, sbuf.st_uid, sbuf.st_gid) != 0) {
H A Dmod_group.c53 int fd; local
67 if ((fd = mkstemp(tname)) == -1)
70 if ((t_fptr = fdopen(fd, "w")) == NULL) {
71 (void) close(fd);
80 if (fchmod(fd, sbuf.st_mode) != 0 ||
81 fchown(fd, sbuf.st_uid, sbuf.st_gid) != 0) {
/illumos-gate/usr/src/cmd/picl/plugins/sun4v/mdesc/
H A Dinit.c50 int fd; local
61 if ((fd = open(MDESC_PATH, O_RDONLY, 0)) < 0)
64 if (ioctl(fd, MDESCIOCGSZ, &size) < 0)
67 (void) close(fd);
74 if (read(fd, md_bufp, size) != size) {
79 (void) close(fd);
/illumos-gate/usr/src/cmd/acct/
H A Daccton.c82 int fd; local
84 if ((fd = open(admfile, O_RDONLY|O_CREAT, 0644)) == ERR) {
88 if (fstat(fd, s) == ERR) {
94 if (fchown(fd, admuid, (gid_t)admuid) == ERR) {
100 if (fchmod(fd, S_IRUSR|S_IWUSR|S_IRGRP|S_IWUSR|S_IROTH) == ERR) {
104 (void) close(fd);
/illumos-gate/usr/src/lib/libast/common/comp/
H A Dgross.c35 extern int fstat(int fd, struct stat* st) argument
38 return __fxstat(_STAT_VER, fd, st);
40 return _fxstat(_STAT_VER, fd, st);
66 extern int fstat64(int fd, struct stat64* st) argument
69 return __fxstat64(_STAT_VER, fd, st);
71 return _fxstat64(_STAT_VER, fd, st);
/illumos-gate/usr/src/cmd/lp/lib/class/
H A Dgetclass.c57 int fd; local
83 if ((fd = open_locked(file, "r", 0)) < 0) {
93 close(fd);
100 while (fdgets(buf, BUFSIZ, fd)) {
110 close(fd);
114 close(fd);
/illumos-gate/usr/src/lib/libbc/libc/sys/common/
H A Dflock.c32 flock(fd, operation)
33 int fd, operation;
50 return (bc_fcntl(fd, cmd, &fl));
/illumos-gate/usr/src/test/os-tests/tests/file-locking/
H A Dutil.c49 flock_nodata(int fd) argument
51 struct pollfd pfd = { fd, POLLIN, 0 };
63 flock_block(int fd) argument
68 ret = read(fd, buf, 1);
79 flock_alert(int fd) argument
83 ret = write(fd, "1", 1);
/illumos-gate/usr/src/uts/sparc/os/
H A Dbootops.c121 int fd = -1, layered; local
132 fd = prom_fopen(ih, (char *)name);
133 if (fd == -1 && !layered)
136 if (fd == -1 && bfs_ih != OBP_BADNODE) {
138 fd = prom_fopen(ih, (char *)name);
140 if (fd == -1)
142 ASSERT(fd < MAXPROMFD);
143 ASSERT(prom_ihs[fd] == 0);
144 prom_ihs[fd] = ih;
145 return (fd);
163 bop_read(int fd, caddr_t buf, size_t size) argument
174 bop_seek(int fd, off_t off) argument
184 bop_close(int fd) argument
493 bop_fstat(int fd, struct bootstat *st) argument
500 boot_compinfo(int fd, struct compinfo *cb) argument
[all...]
/illumos-gate/usr/src/lib/libshell/common/sh/
H A Dio.c201 * return <protocol>/<host>/<service> fd
211 int fd; local
262 fd = getaddrinfo(s, t, &hint, &addr);
265 fd = -1;
267 if (fd)
269 if (fd != EAI_SYSTEM)
275 fd = -1;
286 while ((fd = socket(p->ai_family, p->ai_socktype, p->ai_protocol)) >= 0)
288 if (server && !bind(fd, p->ai_addr, p->ai_addrlen) && !listen(fd,
347 int fd; member in struct:Eof
468 sh_iostream(Shell_t *shp, register int fd) argument
542 register int fd; local
619 sh_close(register int fd) argument
668 register int fd = -1; local
779 register int fd = sh_open(name,O_RDONLY,0); local
805 int fd[2]; local
839 int r, fd=sffileno(sp), close_exec = shp->fdstatus[fd]&IOCLEX; local
915 int fd,len,n=0; local
964 register int fd, iof; local
1354 register int fd; local
1505 register int fd, savefd, newfd; local
1524 register int origfd, savefd, fd; local
1587 sh_ioaccess(int fd,register int mode) argument
1686 int fd = sffileno(iop); local
1794 sh_iocheckfd(Shell_t *shp, register int fd) argument
1949 register int fd = sffileno(sp); local
2234 sh_read(register int fd, void* buff, size_t n) argument
2247 sh_write(register int fd, const void* buff, size_t n) argument
2260 sh_seek(register int fd, off_t offset, int whence) argument
2272 register int fd = dup(old); local
2285 sh_fcntl(register int fd, int op, ...) argument
2327 sh_iogetiop(int fd, int mode) argument
2380 sh_fd2sfio(int fd) argument
[all...]
/illumos-gate/usr/src/cmd/mkfile/
H A Dmkfile.c128 int fd; local
133 fd = open(argv[1], O_CREAT|O_TRUNC|O_RDWR, FILE_MODE);
134 if (fd < 0) {
144 if (lseek(fd, (off_t)size-1, SEEK_SET) < 0) {
149 (void) close(fd);
154 } else if (write(fd, "", 1) != 1) {
159 (void) close(fd);
170 if (lseek(fd, (off_t)0, SEEK_SET) < 0) {
175 (void) close(fd);
181 if (fstat64(fd,
[all...]
/illumos-gate/usr/src/cmd/cdrw/
H A Dmmc.c39 test_unit_ready(int fd) argument
48 if ((uscsi_error = uscsi(fd, scmd)) < 0)
54 inquiry(int fd, uchar_t *inq) argument
66 if ((uscsi_error = uscsi(fd, scmd)) < 0)
72 read_capacity(int fd, uchar_t *capbuf) argument
83 if ((uscsi_error = uscsi(fd, scmd)) < 0)
89 mode_sense(int fd, uchar_t pc, int dbd, int page_len, uchar_t *buffer) argument
110 if ((uscsi_error = uscsi(fd, scmd)) < 0)
116 mode_select(int fd, int page_len, uchar_t *buffer) argument
135 if ((uscsi_error = uscsi(fd, scm
141 read_track_info(int fd, int trackno, uchar_t *ti) argument
175 read_toc(int fd, int format, int trackno, int buflen, uchar_t *buf) argument
204 read_header(int fd, uint32_t lba, uchar_t *buf) argument
227 read_disc_info(int fd, uchar_t *di) argument
246 get_configuration(int fd, uint16_t feature, int bufsize, uchar_t *buf) argument
280 read10(int fd, uint32_t start_blk, uint16_t nblk, uchar_t *buf, uint32_t bufsize) argument
301 write10(int fd, uint32_t start_blk, uint16_t nblk, uchar_t *buf, uint32_t bufsize) argument
327 close_track(int fd, int trackno, int close_session, int immediate) argument
373 blank_disc(int fd, int type, int immediate) argument
398 read_cd(int fd, uint32_t start_blk, uint16_t nblk, uchar_t sector_type, uchar_t *buf, uint32_t bufsize) argument
424 load_unload(int fd, int load) argument
447 prevent_allow_mr(int fd, int op) argument
465 set_cd_speed(int fd, uint16_t read_speed, uint16_t write_speed) argument
485 get_performance(int fd, int get_write_performance, uchar_t *perf) argument
506 set_streaming(int fd, uchar_t *buf) argument
524 rezero_unit(int fd) argument
539 start_stop(int fd, int start) argument
557 flush_cache(int fd) argument
580 set_reservation(int fd, ulong_t size) argument
604 format_media(int fd) argument
648 read_format_capacity(int fd, uint_t *bsize) argument
683 reset_dev(int fd) argument
720 ftr_supported(int fd, uint16_t feature) argument
898 print_profile_list(int fd) argument
[all...]
/illumos-gate/usr/src/test/zfs-tests/cmd/file_trunc/
H A Dfile_trunc.c64 static void do_write(int fd);
65 static void do_trunc(int fd);
80 int fd = -1; local
84 fd = open(filename, O_RDWR|O_CREAT|O_TRUNC, 0666);
85 if (fd < 0) {
91 (void) do_write(fd);
92 (void) do_trunc(fd);
95 (void) close(fd);
170 do_write(int fd) argument
184 if (lseek64(fd, (offse
225 do_trunc(int fd) argument
[all...]

Completed in 733 milliseconds

1234567891011>>