357a241787eebdffc55d8046dcfb1a8892b68cc9
[pkgsrcv2.git] / net / rdist6 / files / os-dragonfly.h
1 /*
2  * Copyright (c) 1993 Michael A. Cooper
3  * Copyright (c) 1993 Regents of the University of California.
4  * All rights reserved.
5  *
6  * Redistribution and use in source and binary forms, with or without
7  * modification, are permitted provided that the following conditions
8  * are met:
9  * 1. Redistributions of source code must retain the above copyright
10  *    notice, this list of conditions and the following disclaimer.
11  * 2. Redistributions in binary form must reproduce the above copyright
12  *    notice, this list of conditions and the following disclaimer in the
13  *    documentation and/or other materials provided with the distribution.
14  * 3. All advertising materials mentioning features or use of this software
15  *    must display the following acknowledgement:
16  *      This product includes software developed by the University of
17  *      California, Berkeley and its contributors.
18  * 4. Neither the name of the University nor the names of its contributors
19  *    may be used to endorse or promote products derived from this software
20  *    without specific prior written permission.
21  *
22  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
23  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
26  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32  * SUCH DAMAGE.
33  */
34
35 /*
36  * $Id: os-dragonfly.h,v 1.1 2006/03/23 13:41:41 joerg Exp $
37  * @(#)os-netbsd.h
38  */
39
40 /*
41  * DragonFly os-*.h file
42  */
43
44 #define NEED_RE_COMP_H
45
46 /*
47  * Set process args to messages that show up when running ps(1)
48  *
49  * NetBSD has setproctitle() in libc so we don't want to use rdist's.
50  */
51 #define HAVE_SETPROCTITLE
52
53 /*
54  * Define the type of directory routines your system has.
55  */
56 #define DIR_TYPE        DIR_DIRENT
57
58 /*
59  * Determine what routines we have to get filesystem info.
60  */
61 #define FSI_TYPE        FSI_GETFSSTAT
62
63 /*
64  * Type of non-blocking I/O.
65  */
66 #define NBIO_TYPE       NBIO_FCNTL
67
68 /*
69  * Type of wait() function to use.
70  */
71 #define WAIT_TYPE       WAIT_WAIT3
72
73 /*
74  * Type of argument passed to wait() (above).
75  */
76 #define WAIT_ARG_TYPE   int
77
78 /*
79  * Select the type of executable file format.
80  */
81 #define EXE_TYPE        EXE_ELF
82
83 /*
84  * Select the type of statfs() system call (if any).
85  */
86 #define STATFS_TYPE     STATFS_44BSD
87
88 /*
89  * Use f_fstypename in struct statfs.
90  */
91 #define HAVE_FSTYPENAME 1
92
93 /*
94  * Type of arg functions we have.
95  */
96 #define ARG_TYPE        ARG_STDARG
97
98 /*
99  * Do we have select()?
100  */
101 #define HAVE_SELECT
102
103 /*
104  * Name of <paths.h> include file
105  */
106 #define PATHS_H         <paths.h>
107
108 /*
109  * UID argument type for chown()
110  */
111 typedef uid_t CHOWN_UID_T;
112
113 /*
114  * GID argument type for chown()
115  */
116 typedef gid_t CHOWN_GID_T;
117
118 /*
119  * Our types, usually these are uid_t and gid_t.
120  */
121 typedef uid_t UID_T;    /* Must be signed */
122 typedef gid_t GID_T;    /* Must be signed */
123
124 /*
125  * Generic pointer, used by memcpy, malloc, etc.  Usually char or void.
126  */
127 typedef void POINTER;
128
129 /*
130  * Type of set file time function available
131  */
132 #define SETFTIME_TYPE   SETFTIME_UTIMES
133
134 /*
135  * We have fchown()
136  */
137 #define HAVE_FCHOWN
138
139 /*
140  * We have fchmod()
141  */
142 #define HAVE_FCHMOD
143
144 /*
145  * We have vis()
146  */
147 #define HAVE_VIS
148
149 /*
150  * We have vsnprintf()
151  */
152 #define HAVE_VSNPRINTF
153
154 /*
155  * Path to remote shell command
156  */
157 #define _PATH_REMSH     "/usr/bin/rsh"