* src/devices/grolbp/lbp.h, src/preproc/grn/gprint.h,
[s-roff.git] / src / include / posix.h
blobe2ab4e1d4455784d446272dae0c377db5d26df22
1 // -*- C++ -*-
2 /* Copyright (C) 1992, 2000, 2001, 2002 Free Software Foundation, Inc.
3 Written by James Clark (jjc@jclark.com)
5 This file is part of groff.
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.
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.
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. */
21 #include <sys/types.h>
22 #include <sys/stat.h>
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
33 #ifndef S_IRUSR
34 #define S_IRUSR 0400
35 #endif
37 #ifndef S_IRGRP
38 #define S_IRGRP 0040
39 #endif
41 #ifndef S_IROTH
42 #define S_IROTH 0004
43 #endif
45 #ifndef S_IWUSR
46 #define S_IWUSR 0200
47 #endif
49 #ifndef S_IXUSR
50 #define S_IXUSR 0100
51 #endif
53 #ifndef S_ISREG
54 #define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
55 #endif
57 #ifndef O_RDONLY
58 #define O_RDONLY 0
59 #endif
61 #ifndef HAVE_ISATTY
62 #define isatty(n) (1)
63 #endif