Home
last modified time | relevance | path

Searched refs:utmpx (Results 1 – 25 of 78) sorted by relevance

1234

/illumos-gate/usr/src/head/
H A Dutmpx.h67 struct utmpx { struct
131 extern struct utmpx *getutxent(void);
132 extern struct utmpx *getutxid(const struct utmpx *);
133 extern struct utmpx *getutxline(const struct utmpx *);
134 extern struct utmpx *pututxline(const struct utmpx *);
139 extern struct utmpx *makeutx(const struct utmpx *);
140 extern struct utmpx *modutx(const struct utmpx *);
141 extern void getutmp(const struct utmpx *, struct utmp *);
142 extern void getutmpx(const struct utmp *, struct utmpx *);
144 extern void updwtmpx(const char *, struct utmpx *);
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dgetutx.c102 static struct utmpx *invoke_utmp_update(const struct utmpx *);
257 struct utmpx *
274 struct utmpx *utmpx; in getutent() local
296 struct utmpx *
389 struct utmpx utmpx; in getutid() local
411 struct utmpx *
452 struct utmpx utmpx; in getutline() local
704 struct utmpx utmpx; in pututline() local
891 struct utmpx utmpx; in updwtmp() local
959 struct utmpx utmpx; in modut() local
[all …]
/illumos-gate/usr/src/cmd/acct/
H A Dutmp2wtmp.c47 struct utmpx *utmpx; in main() local
57 while ((utmpx = getutxent()) != NULL) { in main()
58 if ((utmpx->ut_type == USER_PROCESS) && !(nonuserx(*utmpx))) { in main()
59 time(&utmpx->ut_xtime); in main()
60 fwrite(utmpx, sizeof (*utmpx), 1, fp); in main()
H A Dclosewtmp.c44 struct utmpx *utmpx; in main() local
47 while ((utmpx = getutxent()) != NULL) { in main()
48 if (utmpx->ut_type == USER_PROCESS) { in main()
49 utmpx->ut_type = DEAD_PROCESS; in main()
50 time(&utmpx->ut_xtime); in main()
51 (void) updwtmpx(WTMPX_FILE, utmpx); in main()
H A Dfwtmp.c37 struct utmpx Ut;
40 static int inp(FILE *, struct utmpx *);
103 inp(FILE *file, struct utmpx *u) in inp()
H A Dacctwtmp.c42 struct utmpx wb;
47 struct utmpx *p; in main()
/illumos-gate/usr/src/ucbcmd/users/
H A Dusers.c35 struct utmpx *utmpx; in main() local
47 while ((utmpx = getutxent()) != NULL) { in main()
48 if (utmpx->ut_name[0] == '\0') in main()
50 if (utmpx->ut_type != USER_PROCESS) in main()
52 if (nonuserx(*utmpx)) in main()
60 *namp++ = strndup(utmpx->ut_name, sizeof (utmpx->ut_name)); in main()
/illumos-gate/usr/src/lib/libmail/common/
H A Dnotifyu.c54 struct utmpx utmpx, *putmpx = &utmpx; in notify() local
60 if (strncmp(user, utmpx.ut_name, in notify()
61 sizeof (utmpx.ut_name)) == 0) { in notify()
62 char tty[sizeof (utmpx.ut_line)+1]; in notify()
68 for (i = 0; i < sizeof (utmpx.ut_line); i++) in notify()
69 tty[i] = utmpx.ut_line[i]; in notify()
/illumos-gate/usr/src/cmd/utmp_update/
H A Dutmp_update.c104 static void load_utmpx_struct(struct utmpx *, char **);
106 static void check_utmpx(struct utmpx *);
110 static int invalid_utmpx(struct utmpx *, struct utmpx *);
118 struct utmpx *rutmpx; in main()
119 struct utmpx entryx; in main()
198 if (pututxline(&entryx) == (struct utmpx *)NULL) { in main()
226 load_utmpx_struct(struct utmpx *entryx, char *argv[]) in load_utmpx_struct()
233 (void) memset(entryx, 0, sizeof (struct utmpx)); in load_utmpx_struct()
308 check_utmpx(struct utmpx *entryx) in check_utmpx()
444 invalid_utmpx(struct utmpx *eutmpx, struct utmpx *rutmpx) in invalid_utmpx()
[all …]
/illumos-gate/usr/src/cmd/ttymon/
H A Dtmutmp.c61 struct utmpx utmpx; /* prototype utmpx entry */ in account() local
62 struct utmpx *up = &utmpx; /* and a pointer to it */ in account()
64 (void) memset(up, '\0', sizeof (utmpx)); in account()
90 struct utmpx *u; in checkut_line()
122 struct utmpx *up; in cleanut()
180 struct utmpx *u; in getty_account()
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/
H A Din.rwhod.c357 struct utmpx *utmpx; variable
366 struct utmpx *utp; in onalrm()
367 struct utmpx *utmpxbegin; in onalrm()
385 utmpx = realloc(utmpx, utmpxsize); in onalrm()
386 if (utmpx == NULL) { in onalrm()
392 utmpxbegin = utmpx; in onalrm()
400 if (utmpx[i].ut_name[0] && in onalrm()
401 utmpx[i].ut_type == USER_PROCESS) { in onalrm()
411 htonl(utmpx[i].ut_xtime); in onalrm()
482 struct utmpx *utmpx, utmpx_id; in getkmem() local
[all …]
H A Din.comsat.c67 struct utmpx *utmp = NULL;
122 void notify(struct utmpx *utp, int offset);
223 utmpsize = statbf.st_size + 10 * sizeof (struct utmpx); in onalrm()
225 utmp = (struct utmpx *)realloc(utmp, utmpsize); in onalrm()
227 utmp = (struct utmpx *)malloc(utmpsize); in onalrm()
234 nutmp = read(uf, utmp, statbf.st_size)/sizeof (struct utmpx); in onalrm()
242 struct utmpx *utp = &utmp[nutmp]; in mailfor()
272 notify(struct utmpx *utp, int offset) in notify()
/illumos-gate/usr/src/cmd/login/
H A Dlogin.c2017 struct utmpx *u = (struct utmpx *)0; in update_utmpx_entry()
2018 struct utmpx utmpx; in update_utmpx_entry() local
2041 (void) memset((void *)&utmpx, 0, sizeof (utmpx)); in update_utmpx_entry()
2043 utmpx.ut_pid = getpid(); in update_utmpx_entry()
2049 utmpx.ut_syslen = tmplen; in update_utmpx_entry()
2051 utmpx.ut_syslen = sizeof (utmpx.ut_host); in update_utmpx_entry()
2060 utmpx.ut_syslen = tmplen; in update_utmpx_entry()
2062 utmpx.ut_syslen = sizeof (utmpx.ut_host); in update_utmpx_entry()
2064 utmpx.ut_syslen = 0; in update_utmpx_entry()
2067 SCPYN(utmpx.ut_user, user); in update_utmpx_entry()
[all …]
/illumos-gate/usr/src/ucbcmd/shutdown/
H A Dshutdown.c100 struct utmpx *utmpx; variable
339 while ((utmpx = getutxent()) != NULL) { in main()
340 if (utmpx->ut_name[0] && in main()
341 strncmp(utmpx->ut_name, IGNOREUSER, in main()
342 sizeof (utmpx->ut_name))) { in main()
346 if (utmpx->ut_type != USER_PROCESS && in main()
347 utmpx->ut_user[0] != '\0') in main()
353 (void) strncat(term, utmpx->ut_line, in main()
354 sizeof (utmpx->ut_line)); in main()
367 sizeof (utmpx->ut_line), utmpx->ut_line); in main()
[all …]
/illumos-gate/usr/src/cmd/svc/startd/
H A Dutmpx.c65 struct utmpx ut, *oldu; in utmpx_mark_init()
130 struct utmpx *up; in utmpx_mark_dead()
211 struct utmpx *up; in utmpx_get_runlevel()
231 struct utmpx u; in utmpx_set_runlevel()
232 struct utmpx *oup; in utmpx_set_runlevel()
241 bzero(&u, sizeof (struct utmpx)); in utmpx_set_runlevel()
309 struct utmpx u; in utmpx_write_entry()
310 struct utmpx *oup; in utmpx_write_entry()
313 bzero(&u, sizeof (struct utmpx)); in utmpx_write_entry()
/illumos-gate/usr/src/cmd/utmpd/
H A Dutmpd.c550 struct utmpx *utmpx; in scan_utmps() local
558 while ((utmpx = getutxent()) != NULL) { in scan_utmps()
559 if (utmpx->ut_type == USER_PROCESS) { in scan_utmps()
563 if (proc_is_alive(utmpx->ut_pid)) { in scan_utmps()
568 if (find_pid(utmpx->ut_pid, &i) == 0) in scan_utmps()
569 add_pid(utmpx->ut_pid); /* No, add it */ in scan_utmps()
575 if (find_pid(utmpx->ut_pid, &i) == 1) in scan_utmps()
576 rem_pid(utmpx->ut_pid, i, CLEANIT); in scan_utmps()
578 clean_utmpx_ent(utmpx); in scan_utmps()
932 struct utmpx *u; in clean_entry()
[all …]
/illumos-gate/usr/src/cmd/svr4pkg/pkgremove/
H A Dcheck.c74 struct utmpx utmpx; in rckrunlevel() local
75 struct utmpx *putmpx; in rckrunlevel()
91 utmpx.ut_type = RUN_LVL; in rckrunlevel()
92 putmpx = getutxid(&utmpx); in rckrunlevel()
/illumos-gate/usr/src/cmd/last/
H A Dlast.c65 #define NMAX (sizeof (((struct utmpx *)0)->ut_user))
66 #define LMAX (sizeof (((struct utmpx *)0)->ut_line))
67 #define HMAX (sizeof (((struct utmpx *)0)->ut_host))
91 static struct utmpx buf[128];
114 static int want(struct utmpx *, char **, char **);
115 static void record_time(time_t *, int *, int, struct utmpx *);
129 struct utmpx *bp; in main()
511 want(struct utmpx *bp, char **host, char **user) in want()
578 record_time(time_t *otime, int *print, int i, struct utmpx *bp) in record_time()
/illumos-gate/usr/src/lib/libutempter/common/
H A Dutempter.c42 struct utmpx ut; in utempter_update_utmpx()
60 struct utmpx *ut1; in utempter_update_utmpx()
61 struct utmpx ut2; in utempter_update_utmpx()
/illumos-gate/usr/src/cmd/wall/
H A Dwall.c67 #define NMAX (sizeof (((struct utmpx *)0)->ut_user))
68 #define LMAX (sizeof (((struct utmpx *)0)->ut_line))
83 static void sendmes(struct utmpx *, zoneid_t);
296 struct utmpx *p; in sendmes_tozone()
337 sendmes(struct utmpx *p, zoneid_t zid) in sendmes()
/illumos-gate/usr/src/cmd/saf/
H A Dsac.c301 struct utmpx *uxp; /* working pointer */ in readutmpx()
460 struct utmpx ut; in cleanutx()
461 struct utmpx *up; in cleanutx()
533 struct utmpx utmpx; /* prototype utmpx entry */ in account() local
534 struct utmpx *up = &utmpx; /* and a pointer to it */ in account()
536 (void) memset(up, '\0', sizeof (utmpx)); in account()
/illumos-gate/usr/src/cmd/w/
H A Dw.c82 static struct utmpx dummy;
149 struct utmpx *ut; in main()
150 struct utmpx *utmpbegin; in main()
151 struct utmpx *utmpend; in main()
152 struct utmpx *utp; in main()
273 if ((ut = calloc(entries, sizeof (struct utmpx))) == NULL) in main()
/illumos-gate/usr/src/cmd/whodo/
H A Dwhodo.c79 #define NMAX (sizeof (((struct utmpx *)0)->ut_user))
80 #define LMAX (sizeof (((struct utmpx *)0)->ut_line))
182 struct utmpx *ut; in main()
183 struct utmpx *utmpbegin; in main()
184 struct utmpx *utmpend; in main()
185 struct utmpx *utp; in main()
296 if ((ut = calloc(entries, sizeof (struct utmpx))) == NULL) in main()
/illumos-gate/usr/src/pkg/manifests/
H A Dsystem-library-libutempter.p5m13 set name=pkg.summary value="Interface to record user sessions in utmpx database"
15 value="Interface to record user sessions in utmpx database"
/illumos-gate/usr/src/cmd/svr4pkg/pkginstall/
H A Dcheck.c295 struct utmpx utmpx; in ckrunlevel() local
296 struct utmpx *putmpx; in ckrunlevel()
310 utmpx.ut_type = RUN_LVL; in ckrunlevel()
311 putmpx = getutxid(&utmpx); in ckrunlevel()

1234