OpenGrok
Home
Sort by:
relevance
|
last modified time
|
path
Full Search
in project(s):
src
xsrc
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:mytty
(Results
1 - 3
of
3
) sorted by relevancy
/src/usr.bin/write/
term_chk.c
113
char *
mytty
;
local
126
if ((
mytty
= ttyname(myttyfd)) == NULL)
128
if (strncmp(
mytty
, _PATH_DEV, sizeof(_PATH_DEV) - 1) == 0)
129
mytty
+= sizeof(_PATH_DEV) - 1;
130
if (term_chk(myuid,
mytty
, &msgsok, atime, 1, saved_egid) == -1)
131
err(1, "%s%s", _PATH_DEV,
mytty
);
136
return
mytty
;
write.c
80
char *
mytty
;
local
88
mytty
= check_sender(&atime, myuid, saved_egid);
93
ttyfd = search_utmp(argv[1],
mytty
, myuid, saved_egid);
116
do_write(ttyfd,
mytty
, myuid);
153
search_utmp(char *user, char *
mytty
, uid_t myuid, gid_t saved_egid)
182
if (strcmp(ep->line,
mytty
) == 0) {
216
do_write(int ttyfd, const char *
mytty
, const uid_t myuid)
247
login, host,
mytty
, nows + 11);
/src/sbin/dump/
optr.c
91
FILE *
mytty
;
local
96
if ((
mytty
= fopen(_PATH_TTY, "r")) == NULL)
104
if (fgets(replybuffer, 63,
mytty
) == NULL) {
105
clearerr(
mytty
);
126
(void) fclose(
mytty
);
Completed in 18 milliseconds
Indexes created Sat Feb 21 16:20:20 UTC 2026