Searched defs:fildes (Results 1 - 25 of 47) sorted by relevance

12

/illumos-gate/usr/src/lib/libc/port/gen/
H A Dtcdrain.c41 __tcdrain(int fildes) argument
43 return (ioctl(fildes, TCSBRK, 1));
H A Ddirectio.c40 directio(int fildes, int advice) argument
42 return (ioctl(fildes, _FIODIRECTIO, advice));
H A Dtcflow.c51 tcflow(int fildes, int action) argument
53 return (ioctl(fildes, TCXONC, action));
H A Dtcflush.c50 tcflush(int fildes, int queue_selector) argument
52 return (ioctl(fildes, TCFLSH, queue_selector));
H A Dtcgetattr.c40 * get parameters associated with fildes and store them in termios
44 tcgetattr(int fildes, struct termios *termios_p) argument
46 return (ioctl(fildes, TCGETS, termios_p));
H A Dtcsendbreak.c41 * If duration is not 0, ioctl(fildes, TCSBRK, 0) is used also to
47 tcsendbreak(int fildes, int duration) argument
49 return (ioctl(fildes, TCSBRK, duration));
H A Dtcsetattr.c45 tcsetattr(int fildes, int optional_actions, const struct termios *termios_p) argument
54 rval = ioctl(fildes, TCSETS, termios_p);
59 rval = ioctl(fildes, TCSETSW, termios_p);
64 rval = ioctl(fildes, TCSETSF, termios_p);
H A Dflock.c26 flock(int fildes, int operation) argument
45 rv = fcntl(fildes, F_FLOCK, &l);
52 rv = fcntl(fildes, op, &l);
H A Ddup.c39 dup(int fildes) argument
41 return (fcntl(fildes, F_DUPFD, 0));
46 dup2(int fildes, int fildes2) argument
48 return (fcntl(fildes, F_DUP2FD, fildes2));
52 dup3(int fildes, int fildes2, int flags) argument
64 * fildes == fildes2
66 if (fildes == fildes2) {
71 return (fcntl(fildes, (flags == 0) ? F_DUP2FD : F_DUP2FD_CLOEXEC,
H A Dfattach.c52 fattach(int fildes, const char *path) argument
60 if ((s = isastream(fildes)) == 1 || __door_info(fildes, &dinfo) == 0) {
61 namefdp.fd = fildes;
H A Dlckpwdf.c62 static int fildes = -1; variable
78 if ((fildes = creat(LOCKFILE, 0600)) == -1)
81 if (fcntl(fildes, F_SETLK, &flock) != -1) {
87 (void) close(fildes);
88 fildes = -1;
113 if (lck_tid == thr_self() && fildes >= 0) {
115 (void) fcntl(fildes, F_SETLK, &flock);
116 (void) close(fildes);
117 fildes = -1;
H A Dtruncate.c57 ftruncate(int fildes, off_t len) argument
66 if (fcntl(fildes, F_FREESP, &lck) == -1) {
/illumos-gate/usr/src/cmd/fs.d/pcfs/fsck/
H A Dinject.c39 extern ssize_t _read(int fildes, void *buf, size_t nbyte);
42 read(int fildes, void *buf, size_t nbyte) argument
54 return (_read(fildes, buf, nbyte));
/illumos-gate/usr/src/lib/libc/port/sys/
H A Dlockf.c45 __lockf(int fildes, int function, off_t size) argument
61 rv = fcntl(fildes, F_SETLK, &l);
65 rv = fcntl(fildes, F_SETLKW, &l);
69 rv = fcntl(fildes, F_SETLK, &l);
73 rv = fcntl(fildes, F_GETLK, &l);
/illumos-gate/usr/src/lib/libwanboot/common/
H A Dsocket_inet.c42 * Arguments: fildes - Socket file descriptor.
49 socket_read(int fildes, void *buf, size_t nbyte, int read_timeout) argument
53 pfd.fd = fildes;
66 return (recv(fildes, buf, nbyte, 0));
73 * Arguments: fildes - Socket file descriptor.
80 socket_write(int fildes, const void *buf, size_t nbyte, argument
83 return (sendto(fildes, buf, nbyte, 0, (struct sockaddr *)addr,
88 socket_close(int fildes) argument
90 return (close(fildes));
/illumos-gate/usr/src/lib/libbc/libc/compat/common/
H A Dlockf.c47 lockf(int fildes, int function, long size) argument
65 if (_syscall(SYS_fcntl, fildes, SV_GETLK, &ld) != -1) {
92 if (_syscall(SYS_fcntl, fildes, cmd, &ld) == -1) {
/illumos-gate/usr/src/lib/libbc/libc/sys/common/
H A Ddup2.c38 int fildes, /* file descriptor to be duplicated */
49 /* Be sure fildes is valid and open */
50 if (fcntl(fildes, F_GETFL, 0) == -1) {
62 if (fildes == fildes2) {
73 if ((ret = fcntl(fildes, F_DUPFD, fildes2)) != -1) {
74 if ((fds = fd_get(fildes)) != -1)
37 dup2( int fildes, int fildes2) argument
/illumos-gate/usr/src/cmd/ypcmd/yppasswd/
H A Dyplckpwdf.c54 static int fildes = -1; variable
67 if ((fildes = creat(lockfile, 0600)) == -1)
73 retval = fcntl(fildes, F_SETLKW, (int)&flock);
86 if (fildes == -1)
90 (void) fcntl(fildes, F_SETLK, (int)&flock);
91 (void) close(fildes);
92 fildes = -1;
/illumos-gate/usr/src/cmd/sgs/crle/common/
H A Ddump.c56 int fildes[2], pid; local
65 if (pipe(fildes) == -1) {
92 (void) close(fildes[1]);
93 if ((fd = fdopen(fildes[0], MSG_ORIG(MSG_STR_READ))) != NULL) {
148 (void) close(fildes[0]);
155 MSG_ORIG(MSG_ENV_AUD_FD), fildes[1]); local
H A Ddepend.c133 int fildes[2], pid; local
151 if (pipe(fildes) == -1) {
178 (void) close(fildes[1]);
179 if ((fd = fdopen(fildes[0], MSG_ORIG(MSG_STR_READ))) != NULL) {
248 (void) close(fildes[0]);
255 MSG_ORIG(MSG_ENV_AUD_FD), fildes[1]); local
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/bridged/
H A Dmain.c170 int fildes[2]; local
176 if (pipe(fildes) != 0) {
180 fdarray[0].fd = fildes[0];
191 (void *)(uintptr_t)fildes[1]);
/illumos-gate/usr/src/lib/libbc/inc/include/sys/
H A Dstropts.h143 int fildes; member in struct:strfdinsert
/illumos-gate/usr/src/lib/libc/port/rt/
H A Dpos4obj.c83 __close_nc(int fildes) argument
89 val = close(fildes);
/illumos-gate/usr/src/cmd/who/
H A Dwho.c114 static int fildes; /* file descriptor for inittab */ variable
415 if ((fildes = open("/etc/inittab",
423 if (fstat(fildes, stbufp) == -1) {
438 if (read(fildes, inittab, stbufp->st_size)
/illumos-gate/usr/src/cmd/write/
H A Dwrite.c526 int fildes; local
528 if ((fildes = open(term, O_WRONLY|O_NOCTTY)) < 0)
531 if (!isatty(fildes)) {
537 close(fildes);
540 fstat(fildes, &buf);
541 close(fildes);
555 permit1(fildes)
556 int fildes;
560 fstat(fildes, &buf);

Completed in 76 milliseconds

12