File: port.h

package info (click to toggle)
time 1.7-25.1
  • links: PTS
  • area: main
  • in suites: buster, sid, stretch
  • size: 760 kB
  • ctags: 284
  • sloc: ansic: 2,811; sh: 232; makefile: 27
file content (30 lines) | stat: -rw-r--r-- 517 bytes parent folder | download | duplicates (10)
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
29
30
/* port.h -- portability declarations for GNU time */

#if __STDC__
# define PARAMS(x) x
# define PTR void *
#else
# define PARAMS(s) ()
# define PTR char *
#endif

#if STDC_HEADERS || HAVE_STRING_H
#include <string.h>
#else
#include <strings.h>
#endif

#if STDC_HEADERS
#include <limits.h>
#include <stdlib.h>
#else
char *getenv PARAMS((const char *var));
PTR malloc PARAMS((size_t sz));
#endif
#ifndef LONG_MAX
#define	LONG_MAX (~(1 << (sizeof (long) * 8 - 1)))
#endif

#if HAVE_UNISTD_H
#include <unistd.h>
#endif