File: util.h

package info (click to toggle)
pam-tmpdir 0.05-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 124 kB
  • ctags: 36
  • sloc: ansic: 372; sh: 157; makefile: 83
file content (25 lines) | stat: -rw-r--r-- 505 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25

#ifndef _PAM_TMPDIR_UTIL_H_
#define _PAM_TMPDIR_UTIL_H_ 

#include <stdlib.h>
#include <stdio.h>
#include <syslog.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <stdarg.h>
#include <libgen.h>


void *xrealloc(void *ptr, size_t size);
void *xmalloc(size_t size);
char *freadline(FILE *stream);
int check_dir_ok(char *path);
int check_path(const char *path);
char *get_tmp_dir();
void _log_err(int err, const char *format, ...);

#endif