Home
last modified time | relevance | path

Searched refs:fildes (Results 1 – 25 of 51) sorted by relevance

123

/illumos-gate/usr/src/uts/common/sys/
H A Dtiuser.h200 extern int t_close(int fildes);
205 extern int t_getinfo(int fildes, struct t_info *info);
207 extern int t_getstate(int fildes);
208 extern int t_listen(int fildes, struct t_call *call);
209 extern int t_look(int fildes);
211 extern int t_optmgmt(int fildes, struct t_optmgmt *req,
216 extern int t_rcvrel(int fildes);
220 extern int t_snddis(int fildes, struct t_call *call);
221 extern int t_sndrel(int fildes);
224 extern int t_sync(int fildes);
[all …]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dlckpwdf.c62 static int fildes = -1; variable
78 if ((fildes = creat(LOCKFILE, 0600)) == -1) in lckpwdf()
81 if (fcntl(fildes, F_SETLK, &flock) != -1) { in lckpwdf()
87 (void) close(fildes); in lckpwdf()
88 fildes = -1; in lckpwdf()
113 if (lck_tid == thr_self() && fildes >= 0) { in ulckpwdf()
115 (void) fcntl(fildes, F_SETLK, &flock); in ulckpwdf()
116 (void) close(fildes); in ulckpwdf()
117 fildes = -1; in ulckpwdf()
H A Ddup.c39 dup(int fildes) in dup() argument
41 return (fcntl(fildes, F_DUPFD, 0)); in dup()
46 dup2(int fildes, int fildes2) in dup2() argument
48 return (fcntl(fildes, F_DUP2FD, fildes2)); in dup2()
52 dup3(int fildes, int fildes2, int flags) in dup3() argument
66 if (fildes == fildes2) { in dup3()
71 return (fcntl(fildes, (flags == 0) ? F_DUP2FD : F_DUP2FD_CLOEXEC, in dup3()
H A Dtcsetattr.c45 tcsetattr(int fildes, int optional_actions, const struct termios *termios_p) in tcsetattr() argument
54 rval = ioctl(fildes, TCSETS, termios_p); in tcsetattr()
59 rval = ioctl(fildes, TCSETSW, termios_p); in tcsetattr()
64 rval = ioctl(fildes, TCSETSF, termios_p); in tcsetattr()
H A Dfattach.c52 fattach(int fildes, const char *path) in fattach() argument
60 if ((s = isastream(fildes)) == 1 || __door_info(fildes, &dinfo) == 0) { in fattach()
61 namefdp.fd = fildes; in fattach()
H A Dflock.c26 flock(int fildes, int operation) in flock() argument
45 rv = fcntl(fildes, F_FLOCK, &l); in flock()
52 rv = fcntl(fildes, op, &l); in flock()
H A Dtcdrain.c41 __tcdrain(int fildes) in __tcdrain() argument
43 return (ioctl(fildes, TCSBRK, 1)); in __tcdrain()
H A Ddirectio.c40 directio(int fildes, int advice) in directio() argument
42 return (ioctl(fildes, _FIODIRECTIO, advice)); in directio()
H A Dtcflow.c51 tcflow(int fildes, int action) in tcflow() argument
53 return (ioctl(fildes, TCXONC, action)); in tcflow()
H A Dtcflush.c50 tcflush(int fildes, int queue_selector) in tcflush() argument
52 return (ioctl(fildes, TCFLSH, queue_selector)); in tcflush()
H A Dtcsendbreak.c47 tcsendbreak(int fildes, int duration) in tcsendbreak() argument
49 return (ioctl(fildes, TCSBRK, duration)); in tcsendbreak()
H A Dtcgetattr.c44 tcgetattr(int fildes, struct termios *termios_p) in tcgetattr() argument
46 return (ioctl(fildes, TCGETS, termios_p)); in tcgetattr()
H A Dtruncate.c57 ftruncate(int fildes, off_t len) in ftruncate() argument
66 if (fcntl(fildes, F_FREESP, &lck) == -1) { in ftruncate()
/illumos-gate/usr/src/cmd/ypcmd/yppasswd/
H A Dyplckpwdf.c54 static int fildes = -1; variable
67 if ((fildes = creat(lockfile, 0600)) == -1) in yplckpwdf()
73 retval = fcntl(fildes, F_SETLKW, (int)&flock); in yplckpwdf()
86 if (fildes == -1) in ypulckpwdf()
90 (void) fcntl(fildes, F_SETLK, (int)&flock); in ypulckpwdf()
91 (void) close(fildes); in ypulckpwdf()
92 fildes = -1; in ypulckpwdf()
/illumos-gate/usr/src/lib/libc/port/threads/
H A Dscalls.c713 close(int fildes) in close() argument
727 _aio_close(fildes); in close()
728 PERFORM(__close(fildes)) in close()
741 fcntl(int fildes, int cmd, ...) in fcntl() argument
753 PERFORM(__fcntl(fildes, cmd, arg)) in fcntl()
757 fdatasync(int fildes) in fdatasync() argument
762 PERFORM(__fdsync(fildes, FDSYNC)) in fdatasync()
766 fsync(int fildes) in fsync() argument
771 PERFORM(__fdsync(fildes, FSYNC)) in fsync()
1147 tcdrain(int fildes) in tcdrain() argument
[all …]
/illumos-gate/usr/src/lib/libc/port/sys/
H A Dlockf.c45 __lockf(int fildes, int function, off_t size) in __lockf() argument
61 rv = fcntl(fildes, F_SETLK, &l); in __lockf()
65 rv = fcntl(fildes, F_SETLKW, &l); in __lockf()
69 rv = fcntl(fildes, F_SETLK, &l); in __lockf()
73 rv = fcntl(fildes, F_GETLK, &l); in __lockf()
/illumos-gate/usr/src/cmd/sgs/crle/common/
H A Ddump.c56 int fildes[2], pid; in dump() local
65 if (pipe(fildes) == -1) { in dump()
92 (void) close(fildes[1]); in dump()
93 if ((fd = fdopen(fildes[0], MSG_ORIG(MSG_STR_READ))) != NULL) { in dump()
148 (void) close(fildes[0]); in dump()
155 MSG_ORIG(MSG_ENV_AUD_FD), fildes[1]); in dump()
H A Ddepend.c133 int fildes[2], pid; in depend() local
151 if (pipe(fildes) == -1) { in depend()
178 (void) close(fildes[1]); in depend()
179 if ((fd = fdopen(fildes[0], MSG_ORIG(MSG_STR_READ))) != NULL) { in depend()
248 (void) close(fildes[0]); in depend()
255 MSG_ORIG(MSG_ENV_AUD_FD), fildes[1]); in depend()
/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) in read() argument
54 return (_read(fildes, buf, nbyte)); in read()
/illumos-gate/usr/src/cmd/write/
H A Dwrite.c528 int fildes; local
530 if ((fildes = open(term, O_WRONLY|O_NOCTTY)) < 0)
533 if (!isatty(fildes)) {
539 close(fildes);
542 fstat(fildes, &buf);
543 close(fildes);
557 permit1(fildes) in permit1() argument
558 int fildes; in permit1()
562 fstat(fildes, &buf);
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/bridged/
H A Dmain.c170 int fildes[2]; in init_signalhandling() local
176 if (pipe(fildes) != 0) { in init_signalhandling()
180 fdarray[0].fd = fildes[0]; in init_signalhandling()
191 (void *)(uintptr_t)fildes[1]); in init_signalhandling()
/illumos-gate/usr/src/test/zfs-tests/cmd/dos_ro/
H A Ddos_ro.c32 dosattr_set_ro(int fildes, const char *fname) in dosattr_set_ro() argument
44 err = fsetattr(fildes, XATTR_VIEW_READWRITE, nvl); in dosattr_set_ro()
46 err = setattrat(fildes, XATTR_VIEW_READWRITE, fname, nvl); in dosattr_set_ro()
/illumos-gate/usr/src/cmd/backup/dump/
H A Ddumpoptr.c236 int fildes[2]; in broadcast() local
243 if (pipe(fildes) < 0) { in broadcast()
253 close(fildes[0]); in broadcast()
254 if (dup2(fildes[1], 0) < 0) { in broadcast()
267 close(fildes[1]); in broadcast()
268 wall = fdopen(fildes[0], "r+"); in broadcast()
/illumos-gate/usr/src/cmd/tip/
H A Dtipout.c34 (void) read(fildes[0], &ccc, 1); in intIOT()
49 (void) read(fildes[0], &c, 1); in intEMT()
52 (void) read(fildes[0], &c, 1); in intEMT()
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/
H A Dsmb_pwdutil.c67 static int fildes = -1; variable
828 if ((fildes = creat(SMB_PASSLCK, 0600)) == -1) in smb_pwd_flck()
831 if (fcntl(fildes, F_SETLK, &flock) != -1) { in smb_pwd_flck()
837 (void) close(fildes); in smb_pwd_flck()
838 fildes = -1; in smb_pwd_flck()
869 if (lck_tid == thr_self() && fildes >= 0) { in smb_pwd_fulck()
871 (void) fcntl(fildes, F_SETLK, &flock); in smb_pwd_fulck()
872 (void) close(fildes); in smb_pwd_fulck()
873 fildes = -1; in smb_pwd_fulck()

123