Home
last modified time | relevance | path

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

12345678910>>...14

/titanic_50/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()
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 …]
/titanic_50/usr/src/cmd/ssh/ssh/
H A Dclientloop.c147 (void) fcntl(fileno(stdin), F_SETFL, 0); in leave_non_blocking()
159 (void) fcntl(fileno(stdin), F_SETFL, O_NONBLOCK); in enter_non_blocking()
344 len = read(fileno(stdin), buf, 1); in client_check_initial_eof_on_stdin()
434 if (ioctl(fileno(stdin), TIOCGWINSZ, &ws) < 0) in client_check_window_change()
502 FD_SET(fileno(stdin), *readsetp); in client_wait_until_can_do_something()
506 FD_SET(fileno(stdout), *writesetp); in client_wait_until_can_do_something()
508 FD_SET(fileno(stderr), *writesetp); in client_wait_until_can_do_something()
568 atomicio(write, fileno(stdout), buffer_ptr(bout), buffer_len(bout)); in client_suspend_self()
570 atomicio(write, fileno(stderr), buffer_ptr(berr), buffer_len(berr)); in client_suspend_self()
583 ioctl(fileno(stdin), TIOCGWINSZ, &oldws); in client_suspend_self()
[all …]
H A Dsshtty.c65 if (tcsetattr(fileno(stdin), TCSADRAIN, &_saved_tio) == -1) in leave_raw_mode()
78 if (tcgetattr(fileno(stdin), &tio) == -1) { in enter_raw_mode()
92 if (tcsetattr(fileno(stdin), TCSADRAIN, &tio) == -1) in enter_raw_mode()
/titanic_50/usr/src/uts/common/io/fibre-channel/fca/emlxs/
H A Demlxs_msg.c141 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 …]
/titanic_50/usr/src/cmd/cmd-inet/usr.bin/ftp/
H A Dgetpass.c53 (void) tcsetattr(fileno(fi), TCSADRAIN, &termios_b); in intfix()
71 if (tcgetattr(fileno(fi), &termios_b) < 0) in mygetpass()
78 (void) tcsetattr(fileno(fi), TCSADRAIN, &termios_b); in mygetpass()
90 (void) tcsetattr(fileno(fi), TCSADRAIN, &termios_b); in mygetpass()
H A Dftp.c806 if (fstat(fileno(fin), &st) < 0 || in sendrequest()
885 while ((c = read(fileno(fin), buf, FTPBUFSIZ)) > 0) { in sendrequest()
886 if ((d = WRITE(fileno(dout), buf, c)) < 0) in sendrequest()
907 d = secure_flush(fileno(dout)); in sendrequest()
951 d = secure_flush(fileno(dout)); in sendrequest()
964 int dfn = fileno(dout); in sendrequest()
965 int nfds = fileno(ctrl_in); in sendrequest()
1227 lseek(fileno(fout), restart_point, SEEK_SET) < 0) { in recvrequest()
1232 infd = fileno(din); in recvrequest()
1235 d = write(fileno(fout), &buf[n], c - n); in recvrequest()
[all …]
/titanic_50/usr/src/lib/libast/common/stdio/
H A Dfileno.c28 NoN(fileno)
32 #undef fileno
35 fileno(Sfio_t* f)
/titanic_50/usr/src/cmd/oamuser/group/
H A Dadd_group.c57 if (fstat(fileno(etcgrp), &sb) < 0) {
71 if (fchmod(fileno(etctmp), sb.st_mode) != 0 ||
72 fchown(fileno(etctmp), sb.st_uid, sb.st_gid) != 0 ||
73 lockf(fileno(etctmp), F_LOCK, 0) != 0) {
/titanic_50/usr/src/cmd/audio/audioconvert/
H A Dfile.cc102 if (isatty(fileno(stdin))) { in open_input_file()
110 ifp = new AudioRawPipe(fileno(stdin), in open_input_file()
114 ifp = new AudioPipe(fileno(stdin), (FileAccess)ReadOnly, in open_input_file()
231 if (isatty(fileno(stdout))) { in create_output_file()
239 if (!(ofp = new AudioRawPipe(fileno(stdout), in create_output_file()
247 if (!(ofp = new AudioPipe(fileno(stdout), in create_output_file()
/titanic_50/usr/src/lib/efcode/engine/
H A Dsignal.c60 ioctl(fileno(stdin), TCSETA, &saved_termio); in process_signal()
65 ioctl(fileno(stdin), TCSETA, &saved_termio); in process_signal()
78 ioctl(fileno(stdin), TCGETA, &saved_termio); in install_handlers()
H A Denv.c66 if (isatty(fileno(stdout))) { in do_emit()
107 if (isatty(fileno(stdin))) { in keyquestion()
109 FD_SET(fileno(stdin), &readfds); in keyquestion()
112 ret = select(fileno(stdin) + 1, &readfds, NULL, NULL, &timeval); in keyquestion()
113 if (FD_ISSET(fileno(stdin), &readfds)) in keyquestion()
129 if (isatty(fileno(stdin))) { in key()
130 read(fileno(stdin), &c, 1); in key()
/titanic_50/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.c170 fstat(fileno(file->fp), &file->st)) { in main()
187 fstat(fileno(fp), &sb)) { in main()
206 if (fstat(fileno(stdin), &sb)) { in main()
215 if (lseek(fileno(stdin), (off_t)0, SEEK_CUR) == -1 && in main()
/titanic_50/usr/src/lib/libbc/libc/gen/common/
H A Dgetpass.c74 (void) ioctl(fileno(fi), TCGETS, &ttyb); in getpass()
77 (void) ioctl(fileno(fi), TCSETSF, &ttyb); in getpass()
87 (void) ioctl(fileno(fi), TCSETSW, &ttyb); in getpass()
/titanic_50/usr/src/lib/libbc/libc/stdio/common/
H A Dfseek.c56 long curpos = lseek(fileno(iop), 0L, 1);
78 p = lseek(fileno(iop), offset-resync, ptrname);
90 return(lseek(fileno(iop), offset, ptrname) == -1 || p == EOF ?
/titanic_50/usr/src/cmd/mailx/
H A Dtty.c315 if (ioctl(fileno(stdout), TCGETA, &savtty) < 0) in savetty()
325 Out = fileno(stdout); in savetty()
483 if (gtty(fileno(stdin), &ttybuf) < 0) { in grabh()
499 ttyset++, stty(fileno(stdin), &ttybuf); in grabh()
508 ttyset++, stty(fileno(stdin), &ttybuf); in grabh()
517 ttyset++, stty(fileno(stdin), &ttybuf); in grabh()
526 ttyset++, stty(fileno(stdin), &ttybuf); in grabh()
535 ttyset++, stty(fileno(stdin), &ttybuf); in grabh()
548 stty(fileno(stdin), &ttybuf); in grabh()
/titanic_50/usr/src/lib/libc/port/stdio/
H A Dfileno.c32 #pragma weak _fileno = fileno
44 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()
/titanic_50/usr/src/lib/libcurses/screen/
H A Dnewscreen.c96 fileno(outfptr), infptr, fileno(infptr), isatty(2), in newscreen()
103 if (setupterm(type, fileno(outfptr), &retcode) != 0) in newscreen()
142 (void) typeahead(fileno(infptr)); in newscreen()
143 (void) tinputfd(fileno(infptr)); in newscreen()
/titanic_50/usr/src/lib/libbc/libc/stdio/4.2/
H A Dflsbuf.c78 if(close(fileno(iop)) < 0) in fclose()
141 if (write(fileno(iop), (char *) &c1, 1) == 1) in _flsbuf()
188 if (n > 0 && n != write(fileno(iop),(char*)base,(unsigned)n) ) { in _xflsbuf()
229 int fno = fileno(iop); /* file number */ in _findbuf()
/titanic_50/usr/src/cmd/bnu/
H A Deio.c152 fd1 = fileno(fp1);
238 fd2 = fileno( fp2 );
242 if (write(fileno(fp2), erdptr, Erdlen) != Erdlen)
381 fstat(fileno(fp1), &statbuf);
383 while ((len = read(fileno(fp1), bufr.t_data, TBUFSIZE)) > 0) {
439 if (write(fileno(fp2), bufr, len) != len)
/titanic_50/usr/src/cmd/ttymon/
H A Dtmlog.c89 log("fd(log)\t = %d", fileno(Logfp)); in openttymonlog()
123 (void) fcntl(fileno(Logfp), F_SETFD, 1); in roll_log()
152 if ((fstat(fileno(Logfp), &buf) != -1) && in vlog()
260 if (fcntl(fileno(Debugfp), F_SETFD, 1) == -1) in opendebug()
/titanic_50/usr/src/lib/libbc/libc/stdio/sys5/
H A Dflsbuf.c76 if(close(fileno(iop)) < 0) in fclose()
144 if (write(fileno(iop), (char *) &c1, 1) == 1) in _flsbuf()
192 if (n > 0 && n != write(fileno(iop),(char*)base,(unsigned)n) ) { in _xflsbuf()
234 int fno = fileno(iop); /* file number */ in _findbuf()
/titanic_50/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()
/titanic_50/usr/src/cmd/tip/
H A Dlog.c31 if (flock(fileno(flog), LOCK_EX) < 0) { in logent()
54 (void) flock(fileno(flog), LOCK_UN); in logent()

12345678910>>...14