Home
last modified time | relevance | path

Searched refs:fileno (Results 1 – 25 of 299) sorted by relevance

12345678910>>...12

/illumos-gate/usr/src/lib/pkcs11/pkcs11_tpm/common/
H A Dloadsave.c477 if (lockfile(fileno(fp), F_RDLCK)) { in load_token_data()
482 set_perm(fileno(fp)); in load_token_data()
566 if (lockfile(fileno(fp), F_WRLCK)) { in save_token_data()
571 set_perm(fileno(fp)); in save_token_data()
647 set_perm(fileno(fp)); in save_token_object()
672 set_perm(fileno(fp)); in save_token_object()
716 set_perm(fileno(fp)); in save_public_token_object()
830 set_perm(fileno(fp)); in save_private_token_object()
1134 set_perm(fileno(fp)); in reload_token_object()
1228 set_perm(fileno(fp2)); in delete_token_object()
[all …]
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/emlxs/
H A Demlxs_msg.c173 (entry->fileno == fileno) && in emlxs_msg_log()
217 entry2->fileno = entry->fileno; in emlxs_msg_log()
247 entry->fileno = fileno; in emlxs_msg_log()
456 "[%2X.%04X]%s:%7s:%4d: %s (%s)\n", fileno, in emlxs_msg_printf()
462 fileno, line, driver, level, msg->id, in emlxs_msg_printf()
468 "[%2X.%04X]%s:%7s:%4d: (%s)\n", fileno, in emlxs_msg_printf()
473 fileno, line, driver, level, msg->id); in emlxs_msg_printf()
658 secs, hsecs, entry->id, entry->fileno, in emlxs_msg_sprintf()
665 hsecs, entry->id, entry->fileno, entry->line, in emlxs_msg_sprintf()
672 secs, hsecs, entry->id, entry->fileno, in emlxs_msg_sprintf()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/ftp/
H A Dgetpass.c51 (void) tcsetattr(fileno(fi), TCSADRAIN, &termios_b); in intfix()
69 if (tcgetattr(fileno(fi), &termios_b) < 0) in mygetpass()
76 (void) tcsetattr(fileno(fi), TCSADRAIN, &termios_b); in mygetpass()
88 (void) tcsetattr(fileno(fi), TCSADRAIN, &termios_b); in mygetpass()
H A Dftp.c911 d = secure_flush(fileno(dout)); in sendrequest()
955 d = secure_flush(fileno(dout)); in sendrequest()
968 int dfn = fileno(dout); in sendrequest()
969 int nfds = fileno(ctrl_in); in sendrequest()
1236 infd = fileno(din); in recvrequest()
1297 infd = fileno(din); in recvrequest()
1401 nfds = fileno(ctrl_in) + 1; in recvrequest()
1403 FD_SET(fileno(ctrl_in), &mask); in recvrequest()
1405 FD_SET(fileno(din), &mask); in recvrequest()
2052 FD_SET(fileno(ctrl_in), &mask); in proxtrans()
[all …]
/illumos-gate/usr/src/cmd/oamuser/group/
H A Dadd_group.c54 if (fstat(fileno(etcgrp), &sb) < 0) {
68 if (fchmod(fileno(etctmp), sb.st_mode) != 0 ||
69 fchown(fileno(etctmp), sb.st_uid, sb.st_gid) != 0 ||
70 lockf(fileno(etctmp), F_LOCK, 0) != 0) {
/illumos-gate/usr/src/contrib/ast/src/lib/libast/stdio/
H A Dfileno.c28 NoN(fileno)
32 #undef fileno
35 fileno(Sfio_t* f)
/illumos-gate/usr/src/cmd/audio/audioconvert/
H A Dfile.cc100 if (isatty(fileno(stdin))) { in open_input_file()
108 ifp = new AudioRawPipe(fileno(stdin), in open_input_file()
112 ifp = new AudioPipe(fileno(stdin), (FileAccess)ReadOnly, in open_input_file()
229 if (isatty(fileno(stdout))) { in create_output_file()
237 if (!(ofp = new AudioRawPipe(fileno(stdout), in create_output_file()
245 if (!(ofp = new AudioPipe(fileno(stdout), in create_output_file()
/illumos-gate/usr/src/cmd/tail/
H A Dforward.c200 map.fd = fileno(fp); in rlines()
279 fileno(file->fp), POLLIN, file); in associate()
282 fileno(file->fp)); in associate()
310 sizeof (buf), "/proc/self/fd/%d", fileno(file->fp)); in associate()
375 (void) fstat(fileno(file->fp), &file->st); in set_events()
408 if (Fflag && fileno(file->fp) != STDIN_FILENO) in follow()
431 fstat(fileno(file->fp), &file->st) in follow()
440 if (fileno(file->fp) == STDIN_FILENO) in follow()
H A Dtail.c175 fstat(fileno(file->fp), &file->st)) { in main()
192 fstat(fileno(fp), &sb)) { in main()
211 if (fstat(fileno(stdin), &sb)) { in main()
220 if (lseek(fileno(stdin), (off_t)0, SEEK_CUR) == -1 && in main()
/illumos-gate/usr/src/cmd/mailx/
H A Dtty.c313 if (ioctl(fileno(stdout), TCGETA, &savtty) < 0) in savetty()
323 Out = fileno(stdout); in savetty()
481 if (gtty(fileno(stdin), &ttybuf) < 0) { in grabh()
497 ttyset++, stty(fileno(stdin), &ttybuf); in grabh()
506 ttyset++, stty(fileno(stdin), &ttybuf); in grabh()
515 ttyset++, stty(fileno(stdin), &ttybuf); in grabh()
524 ttyset++, stty(fileno(stdin), &ttybuf); in grabh()
533 ttyset++, stty(fileno(stdin), &ttybuf); in grabh()
546 stty(fileno(stdin), &ttybuf); in grabh()
/illumos-gate/usr/src/lib/libcurses/screen/
H A Dnewscreen.c98 fileno(outfptr), infptr, fileno(infptr), isatty(2), in newscreen()
105 if (setupterm(type, fileno(outfptr), &retcode) != 0) in newscreen()
144 (void) typeahead(fileno(infptr)); in newscreen()
145 (void) tinputfd(fileno(infptr)); in newscreen()
/illumos-gate/usr/src/lib/libc/port/stdio/
H A Dfileno.c30 #pragma weak _fileno = fileno
42 fileno(FILE *iop) in fileno() function
H A Dgetpass.c92 (void) ioctl(fileno(fi), TCGETA, &ttyb); in __getpass()
95 (void) ioctl(fileno(fi), TCSETAF, &ttyb); in __getpass()
108 (void) ioctl(fileno(fi), TCSETAW, &ttyb); in __getpass()
/illumos-gate/usr/src/cmd/bnu/
H A Deio.c145 fd1 = fileno(fp1);
230 fd2 = fileno( fp2 ); in erddata()
234 if (write(fileno(fp2), erdptr, Erdlen) != Erdlen) in erddata()
369 fstat(fileno(fp1), &statbuf);
371 while ((len = read(fileno(fp1), bufr.t_data, TBUFSIZE)) > 0) {
426 if (write(fileno(fp2), bufr, len) != len) in trddata()
H A Dcntrl.c343 if ( !F_READANY(fileno(fp)) ) { in cntrl()
355 if (Restart && !(fstat(fileno(fp), &stbuf))) { in cntrl()
480 if (fstat (fileno(fp), &stbuf)) { in cntrl()
507 if (lseek(fileno(fp), startp, 0) == -1) { in cntrl()
670 if (lseek(fileno(fp), startp, 0) == -1) { in cntrl()
831 if(fstat(fileno(fp), &stbuf)) { in cntrl()
860 if (lseek(fileno(fp), startp, 0) == -1) { in cntrl()
913 if (fstat(fileno(fp), &stbuf)) { in cntrl()
1076 if (fstat(fileno(fp), &stbuf)) { in cntrl()
1230 ASSERT(fstat(fileno(fp), &stbuf) == 0, Ct_STAT, in cntrl()
[all …]
/illumos-gate/usr/src/cmd/ttymon/
H A Dtmlog.c81 log("fd(log)\t = %d", fileno(Logfp)); in openttymonlog()
115 (void) fcntl(fileno(Logfp), F_SETFD, 1); in roll_log()
144 if ((fstat(fileno(Logfp), &buf) != -1) && in vlog()
250 if (fcntl(fileno(Debugfp), F_SETFD, 1) == -1) in opendebug()
/illumos-gate/usr/src/cmd/power/
H A Dpm_pam_conv.c78 (void) ioctl(fileno(stdin), TCGETA, &tty); in getinput()
81 (void) ioctl(fileno(stdin), TCSETAF, &tty); in getinput()
97 (void) ioctl(fileno(stdin), TCSETAW, &tty); in getinput()
/illumos-gate/usr/src/cmd/tip/
H A Dlog.c29 if (flock(fileno(flog), LOCK_EX) < 0) { in logent()
52 (void) flock(fileno(flog), LOCK_UN); in logent()
/illumos-gate/usr/src/common/ficl/ficlplatform/
H A Dunix.c56 return (ftruncate(fileno(ff->f), size)); in ficlFileTruncate()
81 if (fstat(fileno(ff->f), &statbuf) != 0) in ficlFileSize()
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.ripngd/
H A Dtrace.c92 (void) dup2(fileno(ftrace), 1); in traceon()
93 (void) dup2(fileno(ftrace), 2); in traceon()
104 (void) dup2(fileno(ftrace), 1); in traceonfp()
105 (void) dup2(fileno(ftrace), 2); in traceonfp()
/illumos-gate/usr/src/cmd/sunpc/other/
H A Ddos2unix.c212 setmode(fileno(in_stream), O_BINARY); in main()
213 setmode(fileno(out_stream), O_BINARY); in main()
461 setmode(fileno(in_stream), O_BINARY); in main()
462 setmode(fileno(out_stream), O_BINARY); in main()
H A Dunix2dos.c214 setmode(fileno(in_stream), O_BINARY); in main()
215 setmode(fileno(out_stream), O_BINARY); in main()
464 setmode(fileno(in_stream), O_BINARY); in main()
465 setmode(fileno(out_stream), O_BINARY); in main()
/illumos-gate/usr/src/cmd/write/
H A Dwrite.c157 if ((ownterminal = ttyname(fileno(stdin))) == NULL && in main()
158 (ownterminal = ttyname(fileno(stdout))) == NULL && in main()
159 (ownterminal = ttyname(fileno(stderr))) == NULL) { in main()
345 if (fcntl(fileno(fp), F_SETFD, FD_CLOEXEC) < 0) { in main()
381 if (myuid && !permit1(fileno(fp))) { in main()
/illumos-gate/usr/src/lib/libadm/common/
H A Dputdgrp.c174 (void) fchmod(fileno(fp), sbuf.st_mode & 0777); in opennewdgrptab()
175 (void) fchown(fileno(fp), sbuf.st_uid, in opennewdgrptab()
321 while ((fcntl(fileno(oam_dgroup), F_SETLK, &lockinfo) == -1) && in lkdgrptab()
333 if (fcntl(fileno(oam_dgroup), F_SETLKW, in lkdgrptab()
384 noerr = (fcntl(fileno(oam_dgroup), F_SETLK, &lockinfo) != -1); in unlkdgrptab()
/illumos-gate/usr/src/lib/libshare/common/
H A Dlibsharecore.c457 (void) ftruncate(fileno(dfstab), 0); in outdfstab()
521 (void) fchmod(fileno(dfstab), 0644); in open_dfstab()
522 (void) fchown(fileno(dfstab), 0, in open_dfstab()
549 (void) lockf(fileno(dfstab), F_LOCK, 0); in sa_comment_line()
560 (void) fsync(fileno(dfstab)); in sa_comment_line()
645 (void) fsync(fileno(dfstab)); in sa_delete_legacy()
720 (void) fsync(fileno(dfstab)); in sa_update_legacy()
1377 (void) lockf(fileno(fp), F_LOCK, 0); in get_share_list()
1384 (void) lockf(fileno(fp), F_ULOCK, 0); in get_share_list()
1410 (void) lockf(fileno(fp), F_ULOCK, 0); in get_share_list()
[all …]

12345678910>>...12