File: util.h

package info (click to toggle)
pam-tmpdir 0.11
  • links: PTS
  • area: main
  • in suites: sid, trixie
  • size: 128 kB
  • sloc: ansic: 445; sh: 171; makefile: 28
file content (28 lines) | stat: -rw-r--r-- 600 bytes parent folder | download
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
26
27
28

#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>
#include <pwd.h>

#include <security/pam_modules.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, ...);
const char *get_homedir(pam_handle_t *pamh);

#endif