utmp
struct utmpx utmp;
struct utmp utmp;
SCPYN(utmp.ut_user, "");
sprintf(utmp.ut_line, "uucp%.4d", pid);
SCPYN(utmp.ut_name, "");
SCPYN(utmp.ut_host, "");
(void) time(&utmp.ut_time);
(void) write(wtmp, (char *)&utmp, sizeof (utmp));
SCPYN(utmp.ut_line, line);
SCPYN(utmp.ut_name, pw->pw_name);
SCPYN(utmp.ut_host, remotehost);
time(&utmp.ut_time);
(void) write(wtmp, (char *)&utmp, sizeof (utmp));
if (utmp)
utmp = (struct utmpx *)realloc(utmp, utmpsize);
utmp = (struct utmpx *)malloc(utmpsize);
if (! utmp) {
nutmp = read(uf, utmp, statbf.st_size)/sizeof (struct utmpx);
struct utmpx *utp = &utmp[nutmp];
if (utmp == NULL || nutmp == 0)
while (--utp >= utmp)
strncmp(utp->ut_name, name, sizeof (utmp[0].ut_name)) == 0)
char tty[sizeof (utmp[0].ut_line) + 5];
char name[sizeof (utmp[0].ut_name) + 1];
struct utmpx *utmp = NULL;
struct utmpx utmp;
#define NMAX (sizeof (utmp.ut_name))
struct utmpx utmp;
#define NMAX (sizeof (utmp.ut_name))
s.st_size % sizeof (struct utmp) == 0) {
extern struct utmp *getutent(void);
extern struct utmp *getutid(const struct utmp *);
extern struct utmp *getutline(const struct utmp *);
extern struct utmp *pututline(const struct utmp *);
extern void getutmp(const struct utmpx *, struct utmp *);
extern void getutmpx(const struct utmp *, struct utmpx *);
extern void updwtmp(const char *, struct utmp *);
utmp_frec2api(const struct futmp *src, struct utmp *dst)
utmp_api2frec(const struct utmp *src, struct futmp *dst)
struct utmp *
struct utmp *
_compat_getutid(const struct utmp *entry)
struct utmp *
_compat_getutline(const struct utmp *entry)
struct utmp *
_compat_pututline(const struct utmp *entry)
struct utmp *answer;
struct utmp tmpbuf;
_compat_updwtmp(const char *file, struct utmp *ut)
struct utmp *
_compat_makeut(struct utmp *utmp)
struct utmp *utp; /* "current" utmp entry being examined */
if ((unsigned char)utmp->ut_id[i] == SC_WILDC) {
if (idcmp(utmp->ut_id, utp->ut_id))
(void) memcpy(utmp->ut_id, utp->ut_id, IDLEN);
utp = _compat_pututline(utmp);
if (allocid(utmp->ut_id, saveid)) {
utp = _compat_pututline(utmp);
utp = _compat_pututline(utmp);
struct utmp *
_compat_modut(struct utmp *utp)
struct utmp utmp; /* holding area */
struct utmp *ucp = &utmp; /* and a pointer to it */
struct utmp *up; /* "current" utmp entry being examined */
utmp = *utp;
static void utmp_frec2api(const struct futmp *, struct utmp *);
static void utmp_api2frec(const struct utmp *, struct futmp *);
struct utmp *_compat_getutent(void);
struct utmp *_compat_getutid(const struct utmp *);
struct utmp *_compat_getutline(const struct utmp *);
struct utmp *_compat_pututline(const struct utmp *);
void _compat_updwtmp(const char *, struct utmp *);
struct utmp *_compat_makeut(struct utmp *);
struct utmp *_compat_modut(struct utmp *);
static struct utmp ubuf; /* Last entry returned to client */
extern struct utmp *_compat_getutent(void);
extern struct utmp *_compat_getutid(const struct utmp *);
extern struct utmp *_compat_getutline(const struct utmp *);
extern struct utmp *_compat_pututline(const struct utmp *);
makeutx(const struct utmpx *utmp)
if (memchr(utmp->ut_id, SC_WILDC, IDLEN) != NULL) {
extern void _compat_updwtmp(const char *, struct utmp *);
extern struct utmp *_compat_makeut(struct utmp *);
if (idcmp(utmp->ut_id, ut->ut_id)) {
(void) memcpy((caddr_t)utmp->ut_id, ut->ut_id, IDLEN);
putoneutx(utmp, offset);
updwtmpx(WTMPX_FILE, (struct utmpx *)utmp);
sendpid(ADDPID, (pid_t)utmp->ut_pid);
return ((struct utmpx *)utmp);
if (allocid((char *)utmp->ut_id, saveid)) {
putoneutx(utmp, offset);
updwtmpx(WTMPX_FILE, (struct utmpx *)utmp);
sendpid(ADDPID, (pid_t)utmp->ut_pid);
return ((struct utmpx *)utmp);
utp = pututxline(utmp);
sendpid(ADDPID, (pid_t)utmp->ut_pid);
struct utmp *
makeut(struct utmp *utmp)
return (_compat_makeut(utmp));
getutmpx(utmp, &utmpx);
getutmp(utmpx2, utmp);
return (utmp);
static struct utmp utmpcompat; /* Buffer for returning utmp-format data */
getutmpx(const struct utmp *ut, struct utmpx *utx)
getutmp(const struct utmpx *utx, struct utmp *ut)
struct utmp *
struct utmp *
getutid(const struct utmp *entry)
struct utmp *
getutline(const struct utmp *entry)
struct utmp *
pututline(const struct utmp *entry)
updwtmp(const char *file, struct utmp *ut)
struct utmpx utmp; /* holding area */
struct utmpx *ucp = &utmp; /* and a pointer to it */
(void) memcpy(&utmp, utp, sizeof (utmp));
struct utmp *
modut(struct utmp *utp)
Dwarf_Unsigned utmp = 0;
DECODE_LEB128_UWORD_CK(abbrev_ptr, utmp,
abbrev_section_end,&utmp,error);
ret_abbrev->dab_code = utmp;
DECODE_LEB128_UWORD_CK(abbrev_ptr, utmp,
abbrev_section_end,&utmp,error);
if (utmp > DW_TAG_hi_user) {
utmp,"DW_DLE_TAG_CORRUPT",
ret_abbrev->dab_tag = utmp;
Dwarf_Unsigned utmp = 0;
DECODE_LEB128_UWORD_CK(info_ptr, utmp,dbg,error,die_info_end);
abbrev_code = (Dwarf_Unsigned) utmp;
Dwarf_Unsigned utmp = 0;
DECODE_LEB128_UWORD_CK(die_info_ptr, utmp,dbg,error,die_info_end);
&die_info_ptr,die_info_end,&utmp,error);
abbrev_code = (Dwarf_Unsigned) utmp;
Dwarf_Unsigned utmp = 0;
DECODE_LEB128_UWORD_CK(die_info_ptr, utmp,
abbrev_code = (Dwarf_Unsigned) utmp;
Dwarf_Unsigned utmp = 0;
DECODE_LEB128_UWORD_CK(info_ptr, utmp,dbg,error,die_info_end);
&utmp,error);
abbrev_code = utmp;
Dwarf_Unsigned utmp;
res = read_uword_de(&line_ptr,&utmp,
dir_index = (Dwarf_Unsigned) utmp;
userstr_t *utmp;
utmp = _getuserattr(&user, buf, NSS_BUFLEN_USERATTR, &err);
if (utmp == NULL) {
head = userprof((const char *)(utmp->name), type, id,
head = userprof((const char *)(utmp->name), type, id,
while ((utmp = _getuserattr(&user,
userprof((const char *)(utmp->name),
uint_t utmp, bitval, val;
utmp = 0;
utmp = utmp * 2 + bitval;
xyz = (int)(utmp - val);