* Do not define _BSD_SOURCE but define _DEFAULT_SOURCE instead.
[alpine.git] / imap / src / osdep / unix / os_dyn.c
blob98a1a54800d797a12c32d24acb0dbcf6f3c2068d
1 /* ========================================================================
2 * Copyright 1988-2007 University of Washington
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
11 * ========================================================================
15 * Program: Operating-system dependent routines -- Dynix version
17 * Author: Mark Crispin
18 * Networks and Distributed Computing
19 * Computing & Communications
20 * University of Washington
21 * Administration Building, AG-44
22 * Seattle, WA 98195
24 * Date: 11 May 1989
25 * Last Edited: 16 August 2007
28 #include "tcp_unix.h" /* must be before osdep includes tcp.h */
29 #include "mail.h"
30 #include "osdep.h"
31 #include <ctype.h>
32 #include <stdio.h>
33 #include <sys/stat.h>
34 #include <sys/time.h>
35 #include <sys/socket.h>
36 #include <netinet/in.h>
37 #include <arpa/inet.h>
38 #include <netdb.h>
39 #include <errno.h>
40 extern int errno; /* just in case */
41 #include <pwd.h>
42 #include "misc.h"
44 extern int sys_nerr;
45 extern char *sys_errlist[];
47 #define toint(c) ((c)-'0')
48 #define isodigit(c) (((unsigned)(c)>=060)&((unsigned)(c)<=067))
51 #include "fs_unix.c"
52 #include "ftl_unix.c"
53 #include "nl_unix.c"
54 #include "env_unix.c"
55 #define fork vfork
56 #include "tcp_unix.c"
57 #include "gr_wait.c"
58 #include "memmove.c"
59 #include "strerror.c"
60 #include "strpbrk.c"
61 #include "strstr.c"
62 #include "strtoul.c"
63 #include "strtok.c"
64 #include "tz_nul.c"