File: bsd.h

package info (click to toggle)
darkstat 3.0.722-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 868 kB
  • sloc: ansic: 7,585; sh: 660; javascript: 213; makefile: 174; php: 15
file content (28 lines) | stat: -rw-r--r-- 534 bytes parent folder | download | duplicates (5)
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) 2011-2014 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: */