/illumos-gate/usr/src/lib/pkcs11/pkcs11_tpm/common/ |
H A D | loadsave.c | 477 if (lockfile(fileno(fp), F_RDLCK)) { in load_token_data() 482 set_perm(fileno(fp)); in load_token_data() 518 (void) lockfile(fileno(fp), F_UNLCK); in load_token_data() 566 if (lockfile(fileno(fp), F_WRLCK)) { in save_token_data() 571 set_perm(fileno(fp)); in save_token_data() 607 (void) lockfile(fileno(fp), F_UNLCK); in save_token_data() 643 if (lockfile(fileno(fp), F_RDLCK)) { in save_token_object() 647 set_perm(fileno(fp)); in save_token_object() 654 (void) lockfile(fileno(fp), F_UNLCK); in save_token_object() 660 (void) lockfile(fileno(fp), F_UNLCK); in save_token_object() [all …]
|
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/emlxs/ |
H A D | emlxs_msg.c | 141 emlxs_msg_log(emlxs_port_t *port, const uint32_t fileno, const uint32_t line, in emlxs_msg_log() argument 173 (entry->fileno == fileno) && in emlxs_msg_log() 217 entry2->fileno = entry->fileno; in emlxs_msg_log() 247 entry->fileno = fileno; in emlxs_msg_log() 374 emlxs_msg_printf(emlxs_port_t *port, const uint32_t fileno, in emlxs_msg_printf() argument 408 if (emlxs_msg_log(port, fileno, line, msg, va_str)) { in emlxs_msg_printf() 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() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/ftp/ |
H A D | getpass.c | 51 (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 D | ftp.c | 810 if (fstat(fileno(fin), &st) < 0 || in sendrequest() 889 while ((c = read(fileno(fin), buf, FTPBUFSIZ)) > 0) { in sendrequest() 890 if ((d = WRITE(fileno(dout), buf, c)) < 0) in sendrequest() 911 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() 1231 lseek(fileno(fout), restart_point, SEEK_SET) < 0) { in recvrequest() 1236 infd = fileno(din); in recvrequest() 1239 d = write(fileno(fout), &buf[n], c - n); in recvrequest() [all …]
|
/illumos-gate/usr/src/cmd/oamuser/group/ |
H A D | add_group.c | 54 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 D | fileno.c | 28 NoN(fileno) 32 #undef fileno 35 fileno(Sfio_t* f)
|
/illumos-gate/usr/src/cmd/audio/audioconvert/ |
H A D | file.cc | 100 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 D | forward.c | 200 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 D | tail.c | 175 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 D | tty.c | 313 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 D | newscreen.c | 98 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 D | getpass.c | 92 (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()
|
H A D | fileno.c | 30 #pragma weak _fileno = fileno 42 fileno(FILE *iop) in fileno() function
|
/illumos-gate/usr/src/cmd/bnu/ |
H A D | eio.c | 145 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 D | cntrl.c | 343 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() 646 if (fstat(fileno(fp), &stbuf)) /* never fail but .. */ 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() [all …]
|
/illumos-gate/usr/src/cmd/ttymon/ |
H A D | tmlog.c | 81 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 D | pm_pam_conv.c | 80 (void) ioctl(fileno(stdin), TCGETA, &tty); in getinput() 83 (void) ioctl(fileno(stdin), TCSETAF, &tty); in getinput() 99 (void) ioctl(fileno(stdin), TCSETAW, &tty); in getinput()
|
/illumos-gate/usr/src/cmd/tip/ |
H A D | log.c | 29 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 D | unix.c | 56 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 D | trace.c | 92 (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 D | dos2unix.c | 212 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 D | unix2dos.c | 214 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 D | write.c | 157 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 D | putdgrp.c | 174 (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 D | libsharecore.c | 457 (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() 562 (void) lockf(fileno(dfstab), F_ULOCK, 0); in sa_comment_line() 602 (void) lockf(fileno(dfstab), F_LOCK, 0); in sa_delete_legacy() 643 (void) lockf(fileno(dfstab), F_ULOCK, 0); in sa_delete_legacy() 645 (void) fsync(fileno(dfstab)); in sa_delete_legacy() 709 (void) lockf(fileno(dfstab), F_LOCK, 0); in sa_update_legacy() [all …]
|