tab.h File Reference

#include <sys/types.h>
#include <limits.h>

Include dependency graph for tab.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  cronjob
struct  crontab

Defines

#define NEVER   ((time_t) ((time_t) -1 < 0 ? LONG_MAX : ULONG_MAX))
#define TAB_MAX   ((sizeof(int) == 2 ? 8 : 128) * 1024)
#define IDLE_PID   ((pid_t) 0)
#define NO_PID   ((pid_t) -1)
#define bit_set(map, n)   ((void) ((map)[(n) >> 3] |= (1 << ((n) & 7))))
#define bit_clr(map, n)   ((void) ((map)[(n) >> 3] &= ~(1 << ((n) & 7))))
#define bit_isset(map, n)   (!!((map)[(n) >> 3] & (1 << ((n) & 7))))

Typedefs

typedef unsigned char bitmap_t [8]
typedef cronjob cronjob_t
typedef crontab crontab_t

Functions

void tab_parse (char *file, char *user)
void tab_find_atjob (char *atdir)
void tab_purge (void)
void tab_reap_job (pid_t pid)
void tab_reschedule (cronjob_t *job)
cronjob_ttab_nextjob (void)
void tab_print (FILE *fp)

Variables

crontab_tcrontabs


Define Documentation

#define bit_clr map,
n   )     ((void) ((map)[(n) >> 3] &= ~(1 << ((n) & 7))))
 

Definition at line 56 of file tab.h.

#define bit_isset map,
n   )     (!!((map)[(n) >> 3] & (1 << ((n) & 7))))
 

Definition at line 57 of file tab.h.

Referenced by do_fkey_ctl(), nextbit(), and pr_map().

#define bit_set map,
n   )     ((void) ((map)[(n) >> 3] |= (1 << ((n) & 7))))
 

Definition at line 55 of file tab.h.

Referenced by exit_server(), init_server(), and main().

#define IDLE_PID   ((pid_t) 0)
 

Definition at line 51 of file tab.h.

Referenced by reap_or_find().

#define NEVER   ((time_t) ((time_t) -1 < 0 ? LONG_MAX : ULONG_MAX))
 

Definition at line 45 of file tab.h.

Referenced by findpool(), job_connect(), job_find_named(), job_read_udp(), job_setup_connect(), job_setup_listen(), main(), newnetwork(), opendev(), reap_or_find(), rip_incoming(), tab_find_atjob(), tab_reschedule(), and time_functions().

#define NO_PID   ((pid_t) -1)
 

Definition at line 52 of file tab.h.

Referenced by main(), and tab_nextjob().

#define TAB_MAX   ((sizeof(int) == 2 ? 8 : 128) * 1024)
 

Definition at line 48 of file tab.h.


Typedef Documentation

typedef unsigned char bitmap_t[8]
 

Definition at line 10 of file tab.h.

typedef struct cronjob cronjob_t
 

typedef struct crontab crontab_t
 


Function Documentation

void tab_find_atjob char *  atdir  ) 
 

Definition at line 596 of file tab.c.

References entry, i, isdigit, localtime(), NEVER, nil, now, opendir, readdir, spool(), t1, tab, and time_t.

Referenced by load_crontabs().

cronjob_t* tab_nextjob void   ) 
 

Definition at line 741 of file tab.c.

References NO_PID, and reap_or_find().

Referenced by main().

void tab_parse char *  file,
char *  user
 

Definition at line 383 of file tab.c.

References atab, crontabs, n, nil, ok(), r, st, strcmp, tab, and wc.

Referenced by load_crontabs(), and main().

void tab_print FILE fp  ) 
 

Definition at line 771 of file tab.c.

References crontabs, ctime(), fp, fprintf(), if(), job(), nil, and tab.

Referenced by load_crontabs().

void tab_purge void   ) 
 

Definition at line 682 of file tab.c.

References atab, crontabs, deallocate, job(), nil, and tab.

Referenced by load_crontabs(), and main().

void tab_reap_job pid_t  pid  ) 
 

Definition at line 733 of file tab.c.

References reap_or_find().

Referenced by main().

void tab_reschedule cronjob_t job  ) 
 

Definition at line 34 of file tab.c.

References job(), localtime(), NEVER, now, time_t, tm::tm_hour, tm::tm_min, and tm::tm_sec.

Referenced by reap_or_find(), and run_job().


Variable Documentation

crontab_t* crontabs
 

Definition at line 42 of file tab.h.

Referenced by main(), reap_or_find(), tab_parse(), tab_print(), and tab_purge().


Generated on Fri Apr 14 23:02:08 2006 for minix by  doxygen 1.4.6