Print this page
872 remove duplicate daemon() definitions
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/lib/libresolv2/include/port_after.h
+++ new/usr/src/lib/libresolv2/include/port_after.h
1 1 /*
2 2 * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
3 3 */
4 4
5 5 /*
6 6 * Copyright (C) 2004-2008 Internet Systems Consortium, Inc. ("ISC")
7 7 * Copyright (C) 2001-2003 Internet Software Consortium.
8 8 *
9 9 * Permission to use, copy, modify, and/or distribute this software for any
10 10 * purpose with or without fee is hereby granted, provided that the above
11 11 * copyright notice and this permission notice appear in all copies.
12 12 *
13 13 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
14 14 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
15 15 * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
16 16 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
17 17 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
18 18 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
19 19 * PERFORMANCE OF THIS SOFTWARE.
20 20 */
21 21
22 22 /* $Id: port_after.h.in,v 1.60 2008/02/28 05:34:17 marka Exp $ */
23 23
24 24 #ifndef port_after_h
25 25 #define port_after_h
26 26
27 27 #include <stdio.h>
28 28 #include <sys/types.h>
29 29 #include <sys/socket.h>
30 30 #include <sys/param.h>
31 31 #include <sys/time.h>
32 32 #if (!defined(BSD)) || (BSD < 199306)
33 33 #include <sys/bitypes.h>
34 34 #endif
35 35 #ifdef HAVE_INTTYPES_H
36 36 #include <inttypes.h>
37 37 #endif
38 38 #ifdef HAVE_SYS_SELECT_H
↓ open down ↓ |
38 lines elided |
↑ open up ↑ |
39 39 #include <sys/select.h>
40 40 #endif /* HAVE_SYS_SELECT_H */
41 41
42 42 #ifdef REENABLE_SEND
43 43 #undef send
44 44 #endif
45 45
46 46 #undef NEED_PSELECT
47 47 #undef HAVE_SA_LEN
48 48 #undef HAVE_MINIMUM_IFREQ
49 -#define NEED_DAEMON 1
50 49 #undef NEED_STRSEP
51 50 #undef NEED_STRERROR
52 51 #ifdef NEED_STRERROR
53 52 const char *isc_strerror(int);
54 53 #define strerror isc_strerror
55 54 #endif
56 55 /* HAS_INET6_STRUCTS and HAVE_SIN6_SCOPE_ID are defined by port_ipv6.h
57 56 * #define HAS_INET6_STRUCTS 1
58 57 * #define HAVE_SIN6_SCOPE_ID 1
59 58 */
60 59 #include <port_ipv6.h>
61 60
62 61 #undef NEED_IN6ADDR_ANY
63 62 #undef HAS_IN_ADDR6
64 63 #define HAVE_SOCKADDR_STORAGE 1
65 64 #undef NEED_GETTIMEOFDAY
66 65 #define HAVE_STRNDUP
67 66 #undef USE_FIONBIO_IOCTL
68 67 #undef INNETGR_ARGS
69 68
70 69 #undef USE_IFNAMELINKID
71 70 #define PORT_NONBLOCK O_NONBLOCK
72 71
73 72 #ifndef _POSIX_PATH_MAX
74 73 #define _POSIX_PATH_MAX 255
75 74 #endif
76 75 #ifndef PATH_MAX
77 76 #define PATH_MAX _POSIX_PATH_MAX
78 77 #endif
79 78
80 79 /*
81 80 * We need to know the IPv6 address family number even on IPv4-only systems.
82 81 * Note that this is NOT a protocol constant, and that if the system has its
83 82 * own AF_INET6, different from ours below, all of BIND's libraries and
84 83 * executables will need to be recompiled after the system <sys/socket.h>
85 84 * has had this type added. The type number below is correct on most BSD-
86 85 * derived systems for which AF_INET6 is defined.
87 86 */
88 87 #ifndef AF_INET6
89 88 #define AF_INET6 24
90 89 #endif
91 90
92 91 #ifndef PF_INET6
93 92 #define PF_INET6 AF_INET6
94 93 #endif
95 94
96 95 #ifdef HAS_IN_ADDR6
97 96 /* Map to pre-RFC structure. */
98 97 #define in6_addr in_addr6
99 98 #endif
100 99
101 100 #ifndef HAS_INET6_STRUCTS
102 101 /* Replace with structure from later rev of O/S if known. */
103 102 struct in6_addr {
104 103 u_int8_t s6_addr[16];
105 104 };
106 105
107 106 #define IN6ADDR_ANY_INIT \
108 107 {{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \
109 108 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }}
110 109
111 110 #define IN6ADDR_LOOPBACK_INIT \
112 111 {{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \
113 112 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01 }}
114 113
115 114 /* Replace with structure from later rev of O/S if known. */
116 115 struct sockaddr_in6 {
117 116 #ifdef HAVE_SA_LEN
118 117 u_int8_t sin6_len; /* length of this struct */
119 118 u_int8_t sin6_family; /* AF_INET6 */
120 119 #else
121 120 u_int16_t sin6_family; /* AF_INET6 */
122 121 #endif
123 122 u_int16_t sin6_port; /* transport layer port # */
124 123 u_int32_t sin6_flowinfo; /* IPv6 flow information */
125 124 struct in6_addr sin6_addr; /* IPv6 address */
126 125 u_int32_t sin6_scope_id; /* set of interfaces for a scope */
127 126 };
128 127 #endif /* HAS_INET6_STRUCTS */
129 128
130 129 #ifdef BROKEN_IN6ADDR_INIT_MACROS
131 130 #undef IN6ADDR_ANY_INIT
132 131 #undef IN6ADDR_LOOPBACK_INIT
133 132 #endif
134 133
135 134 #ifdef _AIX
136 135 #ifndef IN6ADDR_ANY_INIT
137 136 #define IN6ADDR_ANY_INIT {{{ 0, 0, 0, 0 }}}
138 137 #endif
139 138 #ifndef IN6ADDR_LOOPBACK_INIT
140 139 #if BYTE_ORDER == BIG_ENDIAN
141 140 #define IN6ADDR_LOOPBACK_INIT {{{ 0, 0, 0, 1 }}}
142 141 #else
143 142 #define IN6ADDR_LOOPBACK_INIT {{{0, 0, 0, 0x01000000}}}
144 143 #endif
145 144 #endif
146 145 #endif
147 146
148 147 #ifndef IN6ADDR_ANY_INIT
149 148 #ifdef s6_addr
150 149 #define IN6ADDR_ANY_INIT \
151 150 {{{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \
152 151 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }}}
153 152 #else
154 153 #define IN6ADDR_ANY_INIT \
155 154 {{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \
156 155 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }}
157 156 #endif
158 157
159 158 #endif
160 159 #ifndef IN6ADDR_LOOPBACK_INIT
161 160 #ifdef s6_addr
162 161 #define IN6ADDR_LOOPBACK_INIT \
163 162 {{{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \
164 163 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01 }}}
165 164 #else
166 165 #define IN6ADDR_LOOPBACK_INIT \
167 166 {{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \
168 167 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01 }}
169 168 #endif
170 169 #endif
171 170
172 171 #ifndef HAVE_SOCKADDR_STORAGE
173 172 #define __SS_MAXSIZE 128
174 173 #define __SS_ALLIGSIZE (sizeof (long))
175 174
176 175 struct sockaddr_storage {
177 176 #ifdef HAVE_SA_LEN
178 177 u_int8_t ss_len; /* address length */
179 178 u_int8_t ss_family; /* address family */
180 179 char __ss_pad1[__SS_ALLIGSIZE - 2 * sizeof(u_int8_t)];
181 180 long __ss_align;
182 181 char __ss_pad2[__SS_MAXSIZE - 2 * __SS_ALLIGSIZE];
183 182 #else
184 183 u_int16_t ss_family; /* address family */
185 184 char __ss_pad1[__SS_ALLIGSIZE - sizeof(u_int16_t)];
186 185 long __ss_align;
187 186 char __ss_pad2[__SS_MAXSIZE - 2 * __SS_ALLIGSIZE];
188 187 #endif
189 188 };
190 189 #endif
191 190
192 191
193 192 #if !defined(HAS_INET6_STRUCTS) || defined(NEED_IN6ADDR_ANY)
194 193 #define in6addr_any isc_in6addr_any
195 194 extern const struct in6_addr in6addr_any;
196 195 #endif
197 196
198 197 /*
199 198 * IN6_ARE_ADDR_EQUAL, IN6_IS_ADDR_UNSPECIFIED, IN6_IS_ADDR_V4COMPAT and
200 199 * IN6_IS_ADDR_V4MAPPED are broken in glibc 2.1.
201 200 */
202 201 #ifdef __GLIBC__
203 202 #if __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 2)
204 203 #undef IN6_ARE_ADDR_EQUAL
205 204 #undef IN6_IS_ADDR_UNSPECIFIED
206 205 #undef IN6_IS_ADDR_V4COMPAT
207 206 #undef IN6_IS_ADDR_V4MAPPED
208 207 #endif
209 208 #endif
210 209
211 210 #ifndef IN6_ARE_ADDR_EQUAL
212 211 #define IN6_ARE_ADDR_EQUAL(a,b) \
213 212 (memcmp(&(a)->s6_addr[0], &(b)->s6_addr[0], sizeof(struct in6_addr)) == 0)
214 213 #endif
215 214
216 215 #ifndef IN6_IS_ADDR_UNSPECIFIED
217 216 #define IN6_IS_ADDR_UNSPECIFIED(a) \
218 217 IN6_ARE_ADDR_EQUAL(a, &in6addr_any)
219 218 #endif
220 219
221 220 #ifndef IN6_IS_ADDR_LOOPBACK
222 221 extern const struct in6_addr isc_in6addr_loopback;
223 222 #define IN6_IS_ADDR_LOOPBACK(a) \
224 223 IN6_ARE_ADDR_EQUAL(a, &isc_in6addr_loopback)
225 224 #endif
226 225
227 226 #ifndef IN6_IS_ADDR_V4MAPPED
228 227 #define IN6_IS_ADDR_V4MAPPED(a) \
229 228 ((a)->s6_addr[0] == 0x00 && (a)->s6_addr[1] == 0x00 && \
230 229 (a)->s6_addr[2] == 0x00 && (a)->s6_addr[3] == 0x00 && \
231 230 (a)->s6_addr[4] == 0x00 && (a)->s6_addr[5] == 0x00 && \
232 231 (a)->s6_addr[6] == 0x00 && (a)->s6_addr[9] == 0x00 && \
233 232 (a)->s6_addr[8] == 0x00 && (a)->s6_addr[9] == 0x00 && \
234 233 (a)->s6_addr[10] == 0xff && (a)->s6_addr[11] == 0xff)
235 234 #endif
236 235
237 236 #ifndef IN6_IS_ADDR_SITELOCAL
238 237 #define IN6_IS_ADDR_SITELOCAL(a) \
239 238 (((a)->s6_addr[0] == 0xfe) && (((a)->s6_addr[1] & 0xc0) == 0xc0))
240 239 #endif
241 240
242 241 #ifndef IN6_IS_ADDR_LINKLOCAL
243 242 #define IN6_IS_ADDR_LINKLOCAL(a) \
244 243 (((a)->s6_addr[0] == 0xfe) && (((a)->s6_addr[1] & 0xc0) == 0x80))
245 244 #endif
246 245
247 246 #ifndef IN6_IS_ADDR_MULTICAST
248 247 #define IN6_IS_ADDR_MULTICAST(a) ((a)->s6_addr[0] == 0xff)
249 248 #endif
250 249
251 250 #ifndef __IPV6_ADDR_MC_SCOPE
252 251 #define __IPV6_ADDR_MC_SCOPE(a) ((a)->s6_addr[1] & 0x0f)
253 252 #endif
254 253
255 254 #ifndef __IPV6_ADDR_SCOPE_SITELOCAL
256 255 #define __IPV6_ADDR_SCOPE_SITELOCAL 0x05
257 256 #endif
258 257 #ifndef __IPV6_ADDR_SCOPE_ORGLOCAL
259 258 #define __IPV6_ADDR_SCOPE_ORGLOCAL 0x08
260 259 #endif
261 260
262 261 #ifndef IN6_IS_ADDR_MC_SITELOCAL
263 262 #define IN6_IS_ADDR_MC_SITELOCAL(a) \
264 263 (IN6_IS_ADDR_MULTICAST(a) && \
265 264 (__IPV6_ADDR_MC_SCOPE(a) == __IPV6_ADDR_SCOPE_SITELOCAL))
266 265 #endif
267 266
268 267 #ifndef IN6_IS_ADDR_MC_ORGLOCAL
269 268 #define IN6_IS_ADDR_MC_ORGLOCAL(a) \
270 269 (IN6_IS_ADDR_MULTICAST(a) && \
271 270 (__IPV6_ADDR_MC_SCOPE(a) == __IPV6_ADDR_SCOPE_ORGLOCAL))
272 271 #endif
273 272
274 273 #ifndef INADDR_NONE
275 274 #define INADDR_NONE 0xffffffff
276 275 #endif
277 276
278 277 #ifndef MAXHOSTNAMELEN
279 278 #define MAXHOSTNAMELEN 256
280 279 #endif
281 280
282 281 #ifndef INET6_ADDRSTRLEN
283 282 /* sizeof("aaaa:bbbb:cccc:dddd:eeee:ffff:123.123.123.123") */
284 283 #define INET6_ADDRSTRLEN 46
↓ open down ↓ |
225 lines elided |
↑ open up ↑ |
285 284 #endif
286 285
287 286 #ifndef MIN
288 287 #define MIN(x,y) (((x) <= (y)) ? (x) : (y))
289 288 #endif
290 289
291 290 #ifndef MAX
292 291 #define MAX(x,y) (((x) >= (y)) ? (x) : (y))
293 292 #endif
294 293
295 -#ifdef NEED_DAEMON
296 -int daemon(int nochdir, int noclose);
297 -#endif
298 -
299 294 #ifdef NEED_STRSEP
300 295 char * strsep(char **stringp, const char *delim);
301 296 #endif
302 297
303 298 #ifndef ALIGN
304 299 #define ALIGN(p) (((uintptr_t)(p) + (sizeof(long) - 1)) & ~(sizeof(long) - 1))
305 300 #endif
306 301
307 302 #ifdef NEED_SETGROUPENT
308 303 int setgroupent(int stayopen);
309 304 #endif
310 305
311 306 #ifdef NEED_GETGROUPLIST
312 307 int getgrouplist(GETGROUPLIST_ARGS);
313 308 #endif
314 309
315 310 #ifdef POSIX_GETGRNAM_R
316 311 int
317 312 __posix_getgrnam_r(const char *, struct group *, char *, int, struct group **);
318 313 #endif
319 314
320 315 #ifdef NEED_GETGRNAM_R
321 316 int
322 317 getgrnam_r(const char *, struct group *, char *, size_t, struct group **);
323 318 #endif
324 319
325 320 #ifdef POSIX_GETGRGID_R
326 321 int
327 322 __posix_getgrgid_r(gid_t, struct group *, char *, int, struct group **) ;
328 323 #endif
329 324
330 325 #ifdef NEED_GETGRGID_R
331 326 int
332 327 getgrgid_r(gid_t, struct group *, char *, size_t, struct group **);
333 328 #endif
334 329
335 330 #ifdef NEED_GETGRENT_R
336 331 GROUP_R_RETURN getgrent_r(struct group *gptr, GROUP_R_ARGS);
337 332 #endif
338 333
339 334 #ifdef NEED_SETGRENT_R
340 335 GROUP_R_SET_RETURN setgrent_r(GROUP_R_ENT_ARGS);
341 336 #endif
342 337
343 338 #ifdef NEED_ENDGRENT_R
344 339 GROUP_R_END_RETURN endgrent_r(GROUP_R_ENT_ARGS);
345 340 #endif
346 341
347 342 #if defined(NEED_INNETGR_R) && defined(NGR_R_RETURN)
348 343 NGR_R_RETURN
349 344 innetgr_r(const char *, const char *, const char *, const char *);
350 345 #endif
351 346
352 347 #ifdef NEED_SETNETGRENT_R
353 348 #ifdef NGR_R_SET_ARGS
354 349 NGR_R_SET_RETURN setnetgrent_r(NGR_R_SET_CONST char *netgroup, NGR_R_SET_ARGS);
355 350 #else
356 351 NGR_R_SET_RETURN setnetgrent_r(NGR_R_SET_CONST char *netgroup);
357 352 #endif
358 353 #endif
359 354
360 355 #ifdef NEED_ENDNETGRENT_R
361 356 #ifdef NGR_R_END_ARGS
362 357 NGR_R_END_RETURN endnetgrent_r(NGR_R_END_ARGS);
363 358 #else
364 359 NGR_R_END_RETURN endnetgrent_r(void);
365 360 #endif
366 361 #endif
367 362
368 363 #ifdef POSIX_GETPWNAM_R
369 364 int
370 365 __posix_getpwnam_r(const char *login, struct passwd *pwptr,
371 366 char *buf, size_t buflen, struct passwd **result);
372 367 #endif
373 368
374 369 #ifdef NEED_GETPWNAM_R
375 370 int
376 371 getpwnam_r(const char *login, struct passwd *pwptr,
377 372 char *buf, size_t buflen, struct passwd **result);
378 373 #endif
379 374
380 375 #ifdef POSIX_GETPWUID_R
381 376 int
382 377 __posix_getpwuid_r(uid_t uid, struct passwd *pwptr,
383 378 char *buf, int buflen, struct passwd **result);
384 379 #endif
385 380
386 381 #ifdef NEED_GETPWUID_R
387 382 int
388 383 getpwuid_r(uid_t uid, struct passwd *pwptr,
389 384 char *buf, size_t buflen, struct passwd **result);
390 385 #endif
391 386
392 387 #ifdef NEED_SETPWENT_R
393 388 #ifdef PASS_R_ENT_ARGS
394 389 PASS_R_SET_RETURN setpwent_r(PASS_R_ENT_ARGS);
395 390 #else
396 391 PASS_R_SET_RETURN setpwent_r(void);
397 392 #endif
398 393
399 394 #endif
400 395
401 396 #ifdef NEED_SETPASSENT_R
402 397 #ifdef PASS_R_ENT_ARGS
403 398 PASS_R_SET_RETURN setpassent_r(int stayopen, PASS_R_ENT_ARGS);
404 399 #else
405 400 PASS_R_SET_RETURN setpassent_r(int stayopen);
406 401 #endif
407 402 #endif
408 403
409 404 #ifdef NEED_GETPWENT_R
410 405 PASS_R_RETURN getpwent_r(struct passwd *pwptr, PASS_R_ARGS);
411 406 #endif
412 407
413 408 #ifdef NEED_ENDPWENT_R
414 409 void endpwent_r(void);
415 410 #endif
416 411
417 412 #ifdef NEED_SETPASSENT
418 413 int setpassent(int stayopen);
419 414 #endif
420 415
421 416 #define gettimeofday isc__gettimeofday
422 417 #ifdef NEED_GETTIMEOFDAY
423 418 int isc__gettimeofday(struct timeval *tvp, struct _TIMEZONE *tzp);
424 419 #else
425 420 int isc__gettimeofday(struct timeval *tp, struct timezone *tzp);
426 421 #endif
427 422
428 423 int getnetgrent(NGR_R_CONST char **machinep, NGR_R_CONST char **userp,
429 424 NGR_R_CONST char **domainp);
430 425
431 426 #ifdef NGR_R_ARGS
432 427 int getnetgrent_r(NGR_R_CONST char **machinep, NGR_R_CONST char **userp,
433 428 NGR_R_CONST char **domainp, NGR_R_ARGS);
434 429 #endif
435 430
436 431 /* setnetgrent and endnetgrent are defined in sunw_port_after.h
437 432 #ifdef SETNETGRENT_ARGS
438 433 void setnetgrent(SETNETGRENT_ARGS);
439 434 #else
440 435 void setnetgrent(const char *netgroup);
441 436 #endif
442 437
443 438 void endnetgrent(void);
444 439 */
445 440
446 441 #ifdef INNETGR_ARGS
447 442 int innetgr(INNETGR_ARGS);
448 443 #else
449 444 int innetgr(const char *netgroup, const char *machine,
450 445 const char *user, const char *domain);
451 446 #endif
452 447
453 448 #ifdef NGR_R_SET_ARGS
454 449 NGR_R_SET_RETURN
455 450 setnetgrent_r(NGR_R_SET_CONST char *netgroup, NGR_R_SET_ARGS);
456 451 #else
457 452 NGR_R_SET_RETURN
458 453 setnetgrent_r(NGR_R_SET_CONST char *netgroup);
459 454 #endif
460 455
461 456 #ifdef NEED_STRTOUL
462 457 unsigned long strtoul(const char *, char **, int);
463 458 #endif
464 459
465 460 #ifdef NEED_SUN4PROTOS
466 461 #include <stdarg.h>
467 462 #ifndef __SIZE_TYPE__
468 463 #define __SIZE_TYPE__ int
469 464 #endif
470 465 struct sockaddr;
471 466 struct iovec;
472 467 struct timeval;
473 468 struct timezone;
474 469 int fprintf(FILE *, const char *, ...);
475 470 int getsockname(int, struct sockaddr *, int *);
476 471 int getpeername(int, struct sockaddr *, int *);
477 472 int socket(int, int, int);
478 473 int connect(int, const struct sockaddr *, int);
479 474 int writev(int, struct iovec *, int);
480 475 int readv(int, struct iovec *, int);
481 476 int send(int, const char *, int, int);
482 477 void bzero(char *, int);
483 478 int recvfrom(int, char *, int, int, struct sockaddr *, int *);
484 479 int syslog(int, const char *, ... );
485 480 int printf(const char *, ...);
486 481 __SIZE_TYPE__ fread(void *, __SIZE_TYPE__, __SIZE_TYPE__, FILE *);
487 482 __SIZE_TYPE__ fwrite(const void *, __SIZE_TYPE__, __SIZE_TYPE__, FILE *);
488 483 int fclose(FILE *);
489 484 int ungetc(int, FILE *);
490 485 int scanf(const char *, ...);
491 486 int sscanf(const char *, const char *, ... );
492 487 int tolower(int);
493 488 int toupper(int);
494 489 int strcasecmp(const char *, const char *);
495 490 int strncasecmp(const char *, const char *, int);
496 491 int select(int, fd_set *, fd_set *, fd_set *, struct timeval *);
497 492 #ifdef gettimeofday
498 493 #undef gettimeofday
499 494 int gettimeofday(struct timeval *, struct timezone *);
500 495 #define gettimeofday isc__gettimeofday
501 496 #else
502 497 int gettimeofday(struct timeval *, struct timezone *);
503 498 #endif
504 499 long strtol(const char*, char **, int);
505 500 int fseek(FILE *, long, int);
506 501 int setsockopt(int, int, int, const char *, int);
507 502 int bind(int, const struct sockaddr *, int);
508 503 void bcopy(char *, char *, int);
509 504 int fputc(char, FILE *);
510 505 int listen(int, int);
511 506 int accept(int, struct sockaddr *, int *);
512 507 int getsockopt(int, int, int, char *, int *);
513 508 int vfprintf(FILE *, const char *, va_list);
514 509 int fflush(FILE *);
515 510 int fgetc(FILE *);
516 511 int fputs(const char *, FILE *);
517 512 int fchown(int, int, int);
518 513 void setbuf(FILE *, char *);
519 514 int gethostname(char *, int);
520 515 int rename(const char *, const char *);
521 516 time_t time(time_t *);
522 517 int fscanf(FILE *, const char *, ...);
523 518 int sscanf(const char *, const char *, ...);
524 519 int ioctl(int, int, caddr_t);
525 520 void perror(const char *);
526 521
527 522 #if !defined(__USE_FIXED_PROTOTYPES__) && !defined(__cplusplus) && !defined(__STRICT_ANSI__)
528 523 /*
529 524 * 'gcc -ansi' changes the prototype for vsprintf().
530 525 * Use this prototype when 'gcc -ansi' is not in effect.
531 526 */
532 527 char *vsprintf(char *, const char *, va_list);
533 528 #endif
534 529 #endif
535 530
536 531 /* Solaris-specific changes */
537 532 #include "sunw_port_after.h"
538 533
539 534 #endif /* port_after_h */
↓ open down ↓ |
231 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX