src/commands/cron/tab.h File Reference

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

Go to the source code of this file.

Classes

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 struct cronjob cronjob_t
typedef struct 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.

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

Definition at line 55 of file tab.h.

#define IDLE_PID   ((pid_t) 0)

Definition at line 51 of file tab.h.

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

Definition at line 45 of file tab.h.

#define NO_PID   ((pid_t) -1)

Definition at line 52 of file tab.h.

#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.

cronjob_t* tab_nextjob ( void   ) 

Definition at line 741 of file tab.c.

void tab_parse ( char *  file,
char *  user 
)

Definition at line 383 of file tab.c.

void tab_print ( FILE fp  ) 

Definition at line 771 of file tab.c.

void tab_purge ( void   ) 

Definition at line 682 of file tab.c.

void tab_reap_job ( pid_t  pid  ) 

Definition at line 733 of file tab.c.

void tab_reschedule ( cronjob_t job  ) 

Definition at line 34 of file tab.c.


Variable Documentation

Definition at line 42 of file tab.h.


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