src/commands/simple/calendar.c File Reference

#include <sys/types.h>
#include <sys/stat.h>
#include <time.h>
#include <regexp.h>
#include <limits.h>
#include <stdlib.h>
#include <string.h>
#include <termcap.h>
#include <unistd.h>
#include <utime.h>
#include <stdio.h>

Go to the source code of this file.

Defines

#define MAIL1   "/usr/bin/mail"
#define MAIL2   "/bin/mail"
#define PASSWD   "/etc/passwd"
#define MAX_EXP   4

Functions

 _PROTOTYPE (int main,(int argc, char **argv))
 _PROTOTYPE (void calendar,(void))
 _PROTOTYPE (char *getstr,(char *s, int n))
 _PROTOTYPE (int newaccess,(char *file))
 _PROTOTYPE (void grep,(char *file, char *user))
 _PROTOTYPE (int date_exp,(void))
 _PROTOTYPE (char *date_pat,(time_t t))
 _PROTOTYPE (void error,(char *s, char *t))
int main (int argc, char **argv)
void calendar ()
char * getstr (char *s, int n)
int newaccess (char *file)
void grep (char *file, char *user)
int date_exp ()
char * date_pat (time_t t)
void regerror (char *s) const
void error (char *s, char *t)

Variables

char * mail
regexpexp [MAX_EXP]
int nexp
char calfile [PATH_MAX]
int rflg
int mflg
char * cmd
char buf [BUFSIZ]


Define Documentation

#define MAIL1   "/usr/bin/mail"

Definition at line 18 of file calendar.c.

#define MAIL2   "/bin/mail"

Definition at line 19 of file calendar.c.

#define MAX_EXP   4

Definition at line 21 of file calendar.c.

#define PASSWD   "/etc/passwd"

Definition at line 20 of file calendar.c.


Function Documentation

_PROTOTYPE ( void  error,
(char *s, char *t  
)

_PROTOTYPE ( char *  date_pat,
(time_t t  
)

_PROTOTYPE ( int  date_exp,
(void)   
)

_PROTOTYPE ( void  grep,
(char *file, char *user  
)

_PROTOTYPE ( int  newaccess,
(char *file  
)

_PROTOTYPE ( char *  getstr,
(char *s, int n  
)

_PROTOTYPE ( void  calendar,
(void)   
)

_PROTOTYPE ( int  main,
(int argc, char **argv)   
)

void calendar (  ) 

Definition at line 73 of file calendar.c.

int date_exp (  ) 

Definition at line 183 of file calendar.c.

char* date_pat ( time_t  t  ) 

Definition at line 201 of file calendar.c.

void error ( char *  s,
char *  t 
)

Definition at line 225 of file calendar.c.

char* getstr ( char *  s,
int  n 
)

Definition at line 106 of file calendar.c.

void grep ( char *  file,
char *  user 
)

Definition at line 148 of file calendar.c.

int main ( int argc  ,
char **  argv 
)

Definition at line 45 of file calendar.c.

int newaccess ( char *  file  ) 

Definition at line 122 of file calendar.c.

void regerror ( char *  s  )  const

Definition at line 219 of file calendar.c.


Variable Documentation

char buf[BUFSIZ]

Definition at line 31 of file calendar.c.

char calfile[PATH_MAX]

Definition at line 26 of file calendar.c.

char* cmd

Definition at line 30 of file calendar.c.

regexp* exp[MAX_EXP]

Definition at line 24 of file calendar.c.

char* mail

Definition at line 23 of file calendar.c.

int mflg

Definition at line 29 of file calendar.c.

int nexp

Definition at line 25 of file calendar.c.

int rflg

Definition at line 28 of file calendar.c.


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