[BACK]Return to at.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / at

Diff for /src/usr.bin/at/at.c between version 1.26 and 1.27

version 1.26, 2002/05/11 23:16:44 version 1.27, 2002/05/13 16:12:07
Line 69 
Line 69 
   
 #define TIMESIZE 50  #define TIMESIZE 50
   
 enum { ATQ, ATRM, AT, BATCH, CAT };     /* what program we want to run */  
   
 /* File scope variables */  /* File scope variables */
 #ifndef lint  #ifndef lint
 static const char rcsid[] = "$OpenBSD$";  static const char rcsid[] = "$OpenBSD$";
Line 86 
Line 84 
   
 extern char **environ;  extern char **environ;
 int fcreated;  int fcreated;
   int program = AT;               /* default program mode */
 char atfile[FILENAME_MAX];  char atfile[FILENAME_MAX];
   
 char *atinput = (char *)0;      /* where to get input from */  char *atinput = (char *)0;      /* where to get input from */
Line 452 
Line 451 
   
                 runtimer = 60 * (time_t) ctm;                  runtimer = 60 * (time_t) ctm;
                 runtime = *localtime(&runtimer);                  runtime = *localtime(&runtimer);
                 strftime(timestr, TIMESIZE, "%+", &runtime);                  strftime(timestr, TIMESIZE, "%a %b %e %T %Y", &runtime);
                 if (first) {                  if (first) {
                         (void)printf("Date\t\t\t\tOwner\t\tQueue\tJob#\n");                          (void)printf("Date\t\t\t\tOwner\t\tQueue\tJob#\n");
                         first = 0;                          first = 0;
Line 627 
Line 626 
         int c;          int c;
         char queue = DEFAULT_AT_QUEUE;          char queue = DEFAULT_AT_QUEUE;
         char queue_set = 0;          char queue_set = 0;
         int program = AT;                       /* default program mode */  
         char *options = "q:f:t:bcdlmrv";        /* default options for at */          char *options = "q:f:t:bcdlmrv";        /* default options for at */
         time_t timer;          time_t timer;
         int tflag = 0;          int tflag = 0;

Legend:
Removed from v.1.26  
changed lines
  Added in v.1.27