File: utils.h

package info (click to toggle)
resmgr 1.0-2sarge2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 308 kB
  • ctags: 313
  • sloc: ansic: 3,165; sh: 556; makefile: 109
file content (23 lines) | stat: -rw-r--r-- 680 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
/*
 * utilis.h
 *
 * Copyright (C) 2002, Olaf Kirch <okir@lst.de>
 */

#ifndef UTILS_H
#define UTILS_H

extern void	log_open_syslog(const char *, int);
extern void	(*log)(const char *, ...);	/* Log message */
extern void	(*debug)(const char *, ...);	/* Log debug message */
extern void	(*clog)(int, const char *, ...);/* log w/ response code */
extern void	(*fatal)(const char *, ...);	/* Fatal error */

extern int	line_split(char *, char **, unsigned int);
extern char *	merge_list(int, char **, const char *);

extern int	make_pidfile(const char *, int);
extern int	read_pidfile(const char *);
extern void	get_groups(const char *, char **, unsigned int);

#endif /* UTILS_H */