File: bsd.h

package info (click to toggle)
darkstat 3.0.715-1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 816 kB
  • sloc: ansic: 6,542; sh: 355; makefile: 172; php: 15
file content (28 lines) | stat: -rw-r--r-- 539 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
/* darkstat 3
 * copyright (c) 2001-2011 Emil Mikulic.
 *
 * bsd.h: *BSD compatibility.
 */

#include <sys/types.h>
#include "config.h"
#ifdef HAVE_BSD_STRING_H
# include <bsd/string.h>
#endif
#ifdef HAVE_BSD_UNISTD_H
# include <bsd/unistd.h>
#endif

#ifndef HAVE_STRLCPY
size_t strlcpy(char *dst, const char *src, size_t siz);
#endif

#ifndef HAVE_STRLCAT
size_t strlcat(char *dst, const char *src, size_t siz);
#endif

#ifndef HAVE_SETPROCTITLE
#define setproctitle(fmt, ...) /* no-op */
#endif

/* vim:set ts=3 sw=3 tw=78 expandtab: */