/dports/multimedia/v4l_compat/linux-5.13-rc2/drivers/leds/trigger/ |
H A D | ledtrig-tty.c | 14 const char *ttyname; member 32 if (trigger_data->ttyname) in ttyname_show() 45 char *ttyname; in ttyname_store() local 54 if (!ttyname) in ttyname_store() 57 ttyname = NULL; in ttyname_store() 62 running = trigger_data->ttyname != NULL; in ttyname_store() 64 kfree(trigger_data->ttyname); in ttyname_store() 68 trigger_data->ttyname = ttyname; in ttyname_store() 72 if (ttyname && !running) in ttyname_store() 77 static DEVICE_ATTR_RW(ttyname); [all …]
|
/dports/multimedia/v4l-utils/linux-5.13-rc2/drivers/leds/trigger/ |
H A D | ledtrig-tty.c | 14 const char *ttyname; member 32 if (trigger_data->ttyname) in ttyname_show() 45 char *ttyname; in ttyname_store() local 54 if (!ttyname) in ttyname_store() 57 ttyname = NULL; in ttyname_store() 62 running = trigger_data->ttyname != NULL; in ttyname_store() 64 kfree(trigger_data->ttyname); in ttyname_store() 68 trigger_data->ttyname = ttyname; in ttyname_store() 72 if (ttyname && !running) in ttyname_store() 77 static DEVICE_ATTR_RW(ttyname); [all …]
|
/dports/multimedia/libv4l/linux-5.13-rc2/drivers/leds/trigger/ |
H A D | ledtrig-tty.c | 14 const char *ttyname; member 32 if (trigger_data->ttyname) in ttyname_show() 45 char *ttyname; in ttyname_store() local 54 if (!ttyname) in ttyname_store() 57 ttyname = NULL; in ttyname_store() 62 running = trigger_data->ttyname != NULL; in ttyname_store() 64 kfree(trigger_data->ttyname); in ttyname_store() 68 trigger_data->ttyname = ttyname; in ttyname_store() 72 if (ttyname && !running) in ttyname_store() 77 static DEVICE_ATTR_RW(ttyname); [all …]
|
/dports/comms/flrig/flrig-1.3.54/src/support/ |
H A D | dialogs.cxx | 119 char ttyname[21]; in init_port_combos() local 123 snprintf(ttyname, sizeof(ttyname), tty_fmt, j); in init_port_combos() 126 snprintf(ttyname, sizeof(ttyname), "COM%u", j); in init_port_combos() 194 if ((len = readlink(dp->d_name, ttyname, sizeof(ttyname)-1)) == -1) in init_port_combos() 198 snprintf(ttyname, sizeof(ttyname), "/dev/%s", dp->d_name); in init_port_combos() 222 if ((len = readlink(dp->d_name, ttyname, sizeof(ttyname)-1)) == -1) in init_port_combos() 232 snprintf(ttyname, sizeof(ttyname), "/dev/%s", name); in init_port_combos() 250 snprintf(ttyname, sizeof(ttyname), tty_virtual.c_str(), j); in init_port_combos() 272 snprintf(ttyname, sizeof(ttyname), tty_fmt[i], j); in init_port_combos() 352 snprintf(ttyname, sizeof(ttyname), tty_fmt[i], j); in init_port_combos() [all …]
|
/dports/net/freeradius-client/freeradius-client-1.1.7/lib/ |
H A D | clientid.c | 108 char ttyname[PATH_MAX]; in rc_map2id() local 110 *ttyname = '\0'; in rc_map2id() 112 strcpy(ttyname, "/dev/"); in rc_map2id() 114 strncat(ttyname, name, sizeof(ttyname)-strlen(ttyname)-1); in rc_map2id() 117 if (!strcmp(ttyname, p->name)) return p->id; in rc_map2id() 119 rc_log(LOG_WARNING,"rc_map2id: can't find tty %s in map database", ttyname); in rc_map2id()
|
/dports/misc/window/window/ |
H A D | wwpty.c | 54 char *ttyname; local 61 ttyname = malloc(strlen(PTY) + 1); 62 if (openpty(&master, &slave, ttyname, NULL, NULL) == 0) { 64 (void) strcpy(w->ww_ttyname, ttyname); 70 free(ttyname); 74 free(ttyname);
|
/dports/accessibility/yasr/yasr-0.6.9/yasr/ |
H A D | openpty.c | 33 char ptyname[11], ttyname[11]; in getpty() local 37 (void) strcpy(ttyname, "/dev/ttyxx"); in getpty() 41 ptyname[8] = ttyname[8] = l1[i]; in getpty() 44 ptyname[9] = ttyname[9] = l2[j]; in getpty() 46 (*slave = open(ttyname, O_RDWR)) > 0) in getpty() 50 (void) strcpy(name, ttyname); in getpty()
|
/dports/devel/p5-IO-Tty/IO-Tty-1.16/ |
H A D | Pty.pm | 24 my ( $ptyfd, $ttyfd, $ttyname ) = pty_allocate(); 38 ${*$pty}{'io_pty_ttyname'} = $ttyname; 39 ${*$slave}{'io_tty_ttyname'} = $ttyname; 44 sub ttyname { subroutine 105 my $ttyname = ${*$self}{'io_pty_ttyname'}; 107 $slv->open( $ttyname, O_RDWR ) 108 or croak "Cannot open slave $ttyname: $!";
|
/dports/misc/magicpoint/magicpoint-1.13a/contrib/xmindpath/ |
H A D | uucplock.c | 50 uu_lock(ttyname) in uu_lock() argument 51 char *ttyname; in uu_lock() 58 (void)snprintf(tbuf, sizeof(tbuf), _PATH_LOCKDIRNAME, ttyname); 102 uu_unlock(ttyname) in uu_unlock() argument 103 char *ttyname; in uu_unlock() 107 (void)snprintf(tbuf, sizeof(tbuf), _PATH_LOCKDIRNAME, ttyname);
|
/dports/net/radiusclient/radiusclient-ng-0.5.6/lib/ |
H A D | clientid.c | 108 char ttyname[PATH_MAX]; in rc_map2id() local 110 *ttyname = '\0'; in rc_map2id() 112 strcpy(ttyname, "/dev/"); in rc_map2id() 114 strncat(ttyname, name, sizeof(ttyname)); in rc_map2id() 117 if (!strcmp(ttyname, p->name)) return p->id; in rc_map2id() 119 rc_log(LOG_WARNING,"rc_map2id: can't find tty %s in map database", ttyname); in rc_map2id()
|
/dports/devel/tinygo/tinygo-0.14.1/lib/compiler-rt/test/msan/Linux/ |
H A D | forkpty.cc | 18 char ttyname[255]; in main() local 19 ttyname_r(master, ttyname, sizeof(ttyname)); in main() 20 assert(__msan_test_shadow(ttyname, strlen(ttyname) + 1) == -1); in main()
|
/dports/devel/gnulib/gnulib-20140202-stable/doc/posix-functions/ |
H A D | ttyname.texi | 1 @node ttyname 2 @section @code{ttyname} 3 @findex ttyname 5 POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/functions/ttyname.html}
|
/dports/devel/zpu-binutils/zpu-toolchain-1.0/toolchain/gcc/newlib/libc/unix/ |
H A D | getlogin.c | 14 extern char *ttyname (); in getlogin() 17 if (((tty = ttyname (0)) == 0) in getlogin() 18 || ((tty = ttyname (1)) == 0) in getlogin() 19 || ((tty = ttyname (2)) == 0)) in getlogin()
|
/dports/devel/zpu-gcc/zpu-toolchain-1.0/toolchain/gcc/newlib/libc/unix/ |
H A D | getlogin.c | 14 extern char *ttyname (); in getlogin() 17 if (((tty = ttyname (0)) == 0) in getlogin() 18 || ((tty = ttyname (1)) == 0) in getlogin() 19 || ((tty = ttyname (2)) == 0)) in getlogin()
|
/dports/devel/arm-none-eabi-newlib/newlib-2.4.0/newlib/libc/unix/ |
H A D | getlogin.c | 16 extern char *ttyname (); in getlogin() 19 if (((tty = ttyname (0)) == 0) in getlogin() 20 || ((tty = ttyname (1)) == 0) in getlogin() 21 || ((tty = ttyname (2)) == 0)) in getlogin()
|
/dports/devel/libserialport/libserialport-0.1.1/ |
H A D | freebsd.c | 156 const char *drv_inst_str, char **ttyname, int *const ttyport_cnt) in sysctl_query_dev_drv() argument 163 if (!ttyname || !ttyport_cnt) in sysctl_query_dev_drv() 173 *ttyname = strndup(tbuf, tbuf_len); in sysctl_query_dev_drv() 280 char *ttyname = NULL; in get_port_details() local 286 drv_inst_str, &ttyname, &ttyport_cnt); in get_port_details() 291 snprintf(tbuf, sizeof(tbuf), "%s", ttyname); in get_port_details() 293 snprintf(tbuf, sizeof(tbuf), "%s.%d", ttyname, sub_inst); in get_port_details() 305 if (ttyname) in get_port_details() 306 free(ttyname); in get_port_details()
|
/dports/security/pkcs11-tools/pkcs11-tools-2.5.0/.gnulib/doc/posix-functions/ |
H A D | ttyname.texi | 1 @node ttyname 2 @section @code{ttyname} 3 @findex ttyname 5 POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9699919799/functions/ttyname.html}
|
/dports/editors/joe/joe-4.6/joe/ |
H A D | tty.c | 1002 static char ttyname[32]; local 1018 zlcpy(ttyname, SIZEOF(ttyname), ptydir); 1019 zlcat(ttyname, SIZEOF(ttyname), ptys[fd]); 1022 zlcpy(ttyname, SIZEOF(ttyname), ttydir); 1023 zlcat(ttyname, SIZEOF(ttyname), ptys[fd]); 1025 x = open(ttyname, O_RDWR); 1029 zlcpy(ttyname, SIZEOF(ttyname), ptydir); 1030 zlcat(ttyname, SIZEOF(ttyname), ptys[fd]); 1033 zlcpy(ttyname, SIZEOF(ttyname), ttydir); 1034 zlcat(ttyname, SIZEOF(ttyname), ptys[fd]); [all …]
|
/dports/net/rpki-client/rpki-client-portable-7.6/openbsd/src/lib/libutil/ |
H A D | uucplock.c | 61 uu_lock(const char *ttyname) in uu_lock() argument 72 ttyname); in uu_lock() 123 uu_lock_txfr(const char *ttyname, pid_t pid) in uu_lock_txfr() argument 128 snprintf(lckname, sizeof(lckname), _PATH_UUCPLOCK LOCKFMT, ttyname); in uu_lock_txfr() 144 uu_unlock(const char *ttyname) in uu_unlock() argument 148 (void)snprintf(tbuf, sizeof(tbuf), _PATH_UUCPLOCK LOCKFMT, ttyname); in uu_unlock()
|
/dports/irc/epic4/help/6_Functions/ |
H A D | ttyname | 1 # $EPIC: ttyname,v 1.4 2003/07/07 05:24:17 jnelson Exp $ 3 $ttyname() 9 * This function calls the operating system's ttyname(3) function. 21 $ttyname() might return /dev/ttyp2
|
/dports/editors/libreoffice/libreoffice-7.2.6.2/external/gpgmepp/ |
H A D | configure.patch | 7 +# Try to find a thread-safe version of ttyname(). 12 +*** ttyname() is not thread-safe and ttyname_r() does not exist 23 -# Try to find a thread-safe version of ttyname(). 28 -*** ttyname() is not thread-safe and ttyname_r() does not exist
|
/dports/devel/z88dk/z88dk/support/rcmx000/ |
H A D | boot.c | 378 char* ttyname; in main() local 438 ttyname=argvp[2]; in main() 454 ttyname=argvp[2]; in main() 465 ttyname=argvp[2]; in main() 467 tty=open(ttyname, O_RDWR|O_NOCTTY); in main() 474 fprintf(stderr, "Could not open device: %s\n", ttyname); in main() 497 ttyname=argvp[2]; in main() 498 tty=open(ttyname, O_RDWR|O_NOCTTY); in main() 501 fprintf(stderr, "Could not open device: %s\n", ttyname); in main() 536 ttyname=argvp[2]; in main() [all …]
|
/dports/editors/fpc-ide/fpc-3.2.2/rtl/linux/ |
H A D | termio.pp | 37 {We can implement ttyname more efficiently using proc than by including the 38 generic ttyname.inc file.} 49 ttyname:=''; 54 ttyname[0]:=char(fpreadlink(@t[1],@ttyname[1],255));
|
/dports/lang/fpc-utils/fpc-3.2.2/rtl/linux/ |
H A D | termio.pp | 37 {We can implement ttyname more efficiently using proc than by including the 38 generic ttyname.inc file.} 49 ttyname:=''; 54 ttyname[0]:=char(fpreadlink(@t[1],@ttyname[1],255));
|
/dports/lang/fpc-source/fpc-3.2.2/rtl/linux/ |
H A D | termio.pp | 37 {We can implement ttyname more efficiently using proc than by including the 38 generic ttyname.inc file.} 49 ttyname:=''; 54 ttyname[0]:=char(fpreadlink(@t[1],@ttyname[1],255));
|