File: vms.h

package info (click to toggle)
cvs 2%3A1.12.13%2Breal-28%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 18,156 kB
  • sloc: ansic: 100,617; sh: 33,909; asm: 3,281; perl: 2,818; ada: 1,681; makefile: 1,605; yacc: 1,244; pascal: 1,082; cpp: 1,001; lisp: 35
file content (45 lines) | stat: -rwxr-xr-x 1,023 bytes parent folder | download | duplicates (9)
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/* Determined from CC RTL function prototypes in online documentation */

#if !defined(__VMS_VER)
#define mode_t unsigned int
#elif __VMS_VER < 70000000
#define mode_t unsigned int
#endif

#define fork(x) vfork(x)

#include <sys/types.h>
#include <unixio.h>
#include <unixlib.h>
#include <stdlib.h>
#include <processes.h>
#include <socket.h>

#define STDIN_FILENO  0
#define STDOUT_FILENO 1
#define STDERR_FILENO 2

extern int fnmatch(char *pattern, char *string, int options);

/* With the define of HAVE_NDIR_H in config.h, lib/system.h and
   diff/system.h should include ndir.h for us.  But I'm too lazy to
   track down and make _sure_ all bases are covered, so I'm leaving in
   this include for now.  */
#include "ndir.h"

#include "pwd.h"
#include "pipe.h"

#if !defined(__VMS_VER)
int vms_unlink(char *path);
#elif __VMS_VER < 70000000
int vms_unlink(char *path);
#else
int vms_unlink(char const*path);
#endif
int link(char *from, char *to);

#define stat(a, b) wrapped_stat(a, b)
#define lstat stat

#undef POSIX