/* @(#)getlogin.c 4.1 (Berkeley) %G% */
static char UTMP
[] = "/etc/utmp";
if( (uf
= open( UTMP
, 0 )) < 0 )
lseek( uf
, (long)(me
*sizeof(ubuf
)), 0 );
if (read(uf
, (char *)&ubuf
, sizeof(ubuf
)) != sizeof(ubuf
))
ubuf
.ut_name
[sizeof (ubuf
.ut_name
)] = ' ';
for (cp
=ubuf
.ut_name
; *cp
++!=' ';)