File: config.h

package info (click to toggle)
psutils 1.17.dfsg-2
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 796 kB
  • ctags: 605
  • sloc: ansic: 6,567; sh: 756; perl: 705; makefile: 639; lisp: 74
file content (30 lines) | stat: -rw-r--r-- 648 bytes parent folder | download | duplicates (11)
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
/*
 * Copyright (C) Angus J. C. Duggan 1991-1995
 * See file LICENSE for details.
 * OS specific configuration for PSUtils
 */

#if defined(MSDOS) || defined(WINNT)
#define TMPDIR "\\tmp"
#define OPEN_READ "rb"
#define OPEN_WRITE "wb"
#include <fcntl.h>
#include <io.h>
#else /* ! MSDOS && ! WINNT */
#if defined(OS2)
#define TMPDIR "."
#define OPEN_READ "rb"
#define OPEN_WRITE "wb"
#else /* ! OS2 */
#define OPEN_READ "r"
#define OPEN_WRITE "w"
#ifdef VMS
#define unlink delete
#define TMPDIR "/tmp"
#else /* assumes UNIX-like OS */
#include <unistd.h>
#define TMPDIR "/tmp"
#endif /* ! VMS */
#endif /* ! OS2 */
#endif /* ! MSDOS && ! WINNT */