Get rid of the old texinfo.
[dragonfly.git] / contrib / groff / src / include / posix.h
1 // -*- C++ -*-
2 /* Copyright (C) 1992, 2000, 2001 Free Software Foundation, Inc.
3      Written by James Clark (jjc@jclark.com)
4
5 This file is part of groff.
6
7 groff is free software; you can redistribute it and/or modify it under
8 the terms of the GNU General Public License as published by the Free
9 Software Foundation; either version 2, or (at your option) any later
10 version.
11
12 groff is distributed in the hope that it will be useful, but WITHOUT ANY
13 WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
15 for more details.
16
17 You should have received a copy of the GNU General Public License along
18 with groff; see the file COPYING.  If not, write to the Free Software
19 Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
20
21 #include <sys/types.h>
22 #include <sys/stat.h>
23
24 #ifdef HAVE_CC_OSFCN_H
25 #include <osfcn.h>
26 #else
27 #include <fcntl.h>
28 #ifdef HAVE_UNISTD_H
29 #include <unistd.h>
30 #endif
31 #endif
32
33 #ifndef S_IRUSR
34 #define S_IRUSR 0400
35 #endif
36
37 #ifndef S_IRGRP
38 #define S_IRGRP 0040
39 #endif
40
41 #ifndef S_IROTH
42 #define S_IROTH 0004
43 #endif
44
45 #ifndef S_IWUSR
46 #define S_IWUSR 0200
47 #endif
48
49 #ifndef S_IXUSR
50 #define S_IXUSR 0100
51 #endif
52
53 #ifndef S_ISREG
54 #define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
55 #endif
56
57 #ifndef O_RDONLY
58 #define O_RDONLY 0
59 #endif
60
61 #ifndef HAVE_ISATTY
62 #define isatty(n) (1)
63 #endif