src/commands/simple/finger.c File Reference

#include <sys/types.h>
#include <ctype.h>
#include <errno.h>
#include <fcntl.h>
#include <pwd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <utmp.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
#include <net/gen/in.h>
#include <net/gen/inet.h>
#include <net/gen/netdb.h>
#include <net/gen/socket.h>
#include <net/gen/tcp.h>
#include <net/gen/tcp_hdr.h>
#include <net/gen/tcp_io.h>
#include <net/hton.h>
#include <net/netlib.h>
#include <minix/paths.h>

Go to the source code of this file.

Classes

struct  person

Defines

#define NONOTHING   1
#define NONET   0
#define ASTERISK   '*'
#define COMMA   ','
#define COMMAND   '-'
#define SAMENAME   '&'
#define TALKABLE   0220
#define NMAX   sizeof(user.ut_name)
#define LMAX   sizeof(user.ut_line)
#define HMAX   sizeof(user.ut_host)
#define savestr(s)   strcpy(malloc(strlen(s) + 1), s)
#define ll_line   ut_line
#define ll_host   ut_host
#define ll_time   ut_time
#define TTYLEN   5
#define preamble   "/usr/spool/mail/"
#define PPMAX   200

Functions

char * strcpy ()
char * ctime ()
int main (int argc, char *argv[])
 main (int argc, char **argv)

Variables

struct utmp user
char LASTLOG [] = _PATH_LASTLOG
char USERLOG [] = _PATH_UTMP
char PLAN [] = "/.plan"
char PROJ [] = "/.project"
int unbrief = 1
int header = 1
int hack = 1
int idle = 0
int large = 0
int match = 1
int plan = 1
int unquick = 1
int small = 0
int wide = 1
int unshort
int lf
struct personperson1
long tloc
char * prog_name
int PlanPrinted [PPMAX+1]
int PPIndex = 0


Define Documentation

#define ASTERISK   '*'

Definition at line 73 of file finger.c.

#define COMMA   ','

Definition at line 74 of file finger.c.

#define COMMAND   '-'

Definition at line 75 of file finger.c.

#define HMAX   sizeof(user.ut_host)

Definition at line 82 of file finger.c.

#define ll_host   ut_host

#define ll_line   ut_line

#define ll_time   ut_time

#define LMAX   sizeof(user.ut_line)

Definition at line 81 of file finger.c.

#define NMAX   sizeof(user.ut_name)

Definition at line 80 of file finger.c.

#define NONET   0

Definition at line 71 of file finger.c.

#define NONOTHING   1

Definition at line 69 of file finger.c.

#define PPMAX   200

Definition at line 1074 of file finger.c.

#define preamble   "/usr/spool/mail/"

Definition at line 1020 of file finger.c.

#define SAMENAME   '&'

Definition at line 76 of file finger.c.

#define savestr ( s   )     strcpy(malloc(strlen(s) + 1), s)

#define TALKABLE   0220

Definition at line 77 of file finger.c.

#define TTYLEN   5


Function Documentation

char* ctime (  ) 

main ( int argc  ,
char **  argv 
)

Definition at line 151 of file finger.c.

int main ( int  argc,
char *  argv[] 
)

Definition at line 94 of file main.c.

char* strcpy (  ) 


Variable Documentation

int hack = 1

Definition at line 109 of file finger.c.

int header = 1

Definition at line 108 of file finger.c.

int idle = 0

Definition at line 110 of file finger.c.

int large = 0

Definition at line 111 of file finger.c.

char LASTLOG[] = _PATH_LASTLOG

Definition at line 102 of file finger.c.

int lf

Definition at line 119 of file finger.c.

static int match = 1

Definition at line 112 of file finger.c.

struct person* person1

Definition at line 120 of file finger.c.

int plan = 1

Definition at line 113 of file finger.c.

char PLAN[] = "/.plan"

Definition at line 104 of file finger.c.

int PlanPrinted[PPMAX+1]

Definition at line 1075 of file finger.c.

int PPIndex = 0

Definition at line 1076 of file finger.c.

char* prog_name

Definition at line 128 of file finger.c.

char PROJ[] = "/.project"

Definition at line 105 of file finger.c.

int small = 0

Definition at line 115 of file finger.c.

long tloc

Definition at line 121 of file finger.c.

int unbrief = 1

Definition at line 107 of file finger.c.

int unquick = 1

Definition at line 114 of file finger.c.

int unshort

Definition at line 118 of file finger.c.

struct utmp user

Definition at line 79 of file finger.c.

char USERLOG[] = _PATH_UTMP

Definition at line 103 of file finger.c.

int wide = 1

Definition at line 116 of file finger.c.


Generated on Tue Mar 9 04:36:39 2010 for Minix by  doxygen 1.5.8