Cross reference for ak/ack.c of index.

# File ak/ack.c

      $Revision: 1.7 $

      AK (Acknowledgement) module

      Status: REVIEWED, NOT TESTED

      Author(s):       Engin Gunduz

## Included Files

- `#include ";ak/ack.h";`
  - `#include <stdarg.h>`
  - `#include <stdio.h>`
  - `#include <strings.h>`
  - `#include <unistd.h>`
  - `#include <stdlib.h>`
  - `#include <glib.h>`
  - `#include <time.h>`
  - `#include ";/home/shane/release/RIP/include/UP_util.h";`
    - `#include ";/home/shane/release/RIP/include/syntax_api.h";`
  - `#include ";/home/shane/release/RIP/include/UP_subject.h";`
    - `#include <stdio.h>`
    - `#include <stdlib.h>`
    - `#include <string.h>`
    - `#include <sys/types.h>`
    - `#include <glib.h>`

## External Variables

supress_ack_notif
`extern int supress_ack_notif`

humailbox
`extern char* humailbox`

failuretxt
`extern char* failuretxt`

helpheader
`extern char* helpheader`

successtxt
`extern char* successtxt`

defmail
`extern char* defmail`

acksig
`extern char* acksig`

subject_result
`extern up_subject_struct subject_result`

count_successful
`extern int count_successful`

count_unsuccessful
`extern int count_unsuccessful`

netupdclientIP
`extern char* netupdclientIP`

reading_from_mail
`extern int reading_from_mail`

networkupdate
`extern int networkupdate`

webupdate
`extern int webupdate`

help_requested
`extern int help_requested`

enforced_new
`extern int enforced_new`

## Global Function AK_ack_file_name_generate()

`char* AK_ack_file_name_generate ( const char* tmpdir, const char* prefix )`

Prototyped in: | ak/ack.h
Calls: | fclose(), fopen(), fprintf(), getpid(), malloc(), sprintf(), strlen()

## Global Function AK_add_file_to_ack()

`void AK_add_file_to_ack ( const char* ackfile, const char* filetoadd )`

Prototyped in: | ak/ack.h
Calls: | fclose(), fgets(), fopen(), fprintf(), free()

## Global Function AK_add_to_ack()

`void AK_add_to_ack ( const char* filename, char* fmt, ... )`

Prototyped in: | ak/ack.h
Calls: | __builtin_classify_type(), __builtin_next_arg(), __builtin_saveregs(), fclose(), fflush(), fopen(), fprintf(), putchar(), vprintf()
Called by: | AK_print_ack() | ak/ack.c
| AK_send_ack() | ak/ack.c
References Variables: | networkupdate

## Global Function AK_delete_ack()

`void AK_delete_ack ( const char* filename )`

Prototyped in: | ak/ack.h
Calls: | unlink()

## Global Function AK_log_ack()

`void AK_log_ack ( const char* filename, const char* logfilename )`

Prototyped in: | ak/ack.h
Calls: | UP_get_current_date(), ctime(), fclose(), fgets(), fopen(), fprintf(), free(), malloc(), snprintf(), strdup(), strlen(), time()
References Variables: | netupdclientIP, networkupdate, reading_from_mail, webupdate

## Global Function AK_print_ack()

`void AK_print_ack ( const char* filename )`

Prototyped in: | ak/ack.h
Calls: | AK_add_to_ack() | ak/ack.c
| fclose(), fgets(), fopen(), fprintf(), printf()
References Variables: | count_successful, count_unsuccessful, subject_result, webupdate

## Global Function AK_send_ack()

`void AK_send_ack ( const char* filename, const char* to_address, const char* mailercommand )`

Prototyped in: | ak/ack.h
Calls: | AK_add_to_ack() | ak/ack.c
| UP_replace_globals(), fclose(), fgets(), fopen(), fprintf(), free(), malloc(), rename(), sprintf(), strlen(), system(), unlink()
References Variables: | acksig, count_successful, count_unsuccessful, defmail, failuretxt, helpheader, humailbox, subject_result, successtxt, supress_ack_notif, webupdate

## Local Function asctime_r()

`static char* asctime_r ( const struct tm* __tm, char* __buf )`

Included from: | /usr/include/time.h
Calls: | __posix_asctime_r()

## Local Function ctime_r()

`static char* ctime_r ( const time_t* __time, char* __buf )`

Included from: | /usr/include/time.h
Calls: | __posix_ctime_r()

## Local Function getlogin_r()

`static int getlogin_r ( char* __name, int __len )`

Included from: | /usr/include/unistd.h
Calls: | __posix_getlogin_r()

## Local Function ttyname_r()

`static int ttyname_r ( int __fildes, char* __buf, size_t __size )`

Included from: | /usr/include/unistd.h
Calls: | __posix_ttyname_r()