netatalk: timelord.c File Reference

netatalk 4.5.1
Free and Open Source Apple Filing Protocol (AFP) Server
Loading...
Searching...
No Matches
timelord.c File Reference
`#include <sys/param.h>`
`#include <sys/types.h>`
`#include <sys/time.h>`
`#include <sys/file.h>`
`#include <sys/uio.h>`
`#include <stdlib.h>`
`#include <unistd.h>`
`#include <netatalk/at.h>`
`#include <atalk/atp.h>`
`#include <atalk/nbp.h>`
`#include <time.h>`
`#include <errno.h>`
`#include <signal.h>`
`#include <atalk/logger.h>`
`#include <stdio.h>`
`#include <string.h>`
`#include <netdb.h>`
`#include <fcntl.h>`
`#include <termios.h>`
`#include <sys/ioctl.h>`

## Macros
#define | TL_GETTIME 0
#define | TL_OK 12
#define | TL_BAD 10
#define | EPOCH 0x7C25B080
#define | SIZEOF_MAC_LONG 4

## Functions
void | usage (char *p)
void | goaway (int signal)
int | main (int ac, char **av)

## Variables
int | debug = 0
char * | bad = "Bad request!"
char | buf [4624]
char * | server
static char * | version = VERSION

## Macro Definition Documentation

## ◆ EPOCH

#define EPOCH 0x7C25B080

00:00:00 GMT Jan 1, 1970 for Mac

## ◆ SIZEOF_MAC_LONG

#define SIZEOF_MAC_LONG 4

## ◆ TL_BAD

#define TL_BAD 10

## ◆ TL_GETTIME

#define TL_GETTIME 0

## ◆ TL_OK

#define TL_OK 12

## Function Documentation

## ◆ goaway()

void goaway | ( | int | signal | ) |

Unregister ourself on signal.

## ◆ main()

int main | ( | int | ac,
|  | char ** | av )

## ◆ usage()

void usage | ( | char * | p | ) |

## Variable Documentation

## ◆ bad

char* bad = "Bad request!"

## ◆ buf

char buf[4624]

## ◆ debug

int debug = 0

## ◆ server

char* server | ( | void |  | ) |

## ◆ version

char* version = VERSION
| static