* Update to version 2.19.1
[alpine.git] / imap / src / osdep / unix / os_qn6.c
blobded8c8485a4495e52173417eb7f5f6c8f33e1cef
1 /* ========================================================================
2 * Copyright 2008-2009 Mark Crispin
3 * ========================================================================
4 */
6 /*
7 * Program: Operating-system dependent routines -- QNX 6 version
9 * Author: Mark Crispin
11 * Date: 1 August 1993
12 * Last Edited: 17 April 2009
14 * Previous versions of this file were
16 * Copyright 1988-2006 University of Washington
18 * Licensed under the Apache License, Version 2.0 (the "License");
19 * you may not use this file except in compliance with the License.
20 * You may obtain a copy of the License at
22 * http://www.apache.org/licenses/LICENSE-2.0
26 #include "tcp_unix.h" /* must be before osdep includes tcp.h */
27 #include "mail.h"
28 #include "osdep.h"
29 #include <stdio.h>
30 #include <sys/stat.h>
31 #include <sys/time.h>
32 #include <sys/socket.h>
33 #include <netinet/in.h>
34 #include <arpa/inet.h>
35 #include <netdb.h>
36 #include <ctype.h>
37 #include <errno.h>
38 extern int errno; /* just in case */
39 #include <pwd.h>
40 #include <shadow.h>
41 #include <sys/select.h>
42 #include "misc.h"
44 #define DIR_SIZE(d) d->d_reclen
46 #include "fs_unix.c"
47 #include "ftl_unix.c"
48 #include "nl_unix.c"
49 #include "env_unix.c"
50 #include "tcp_unix.c"
51 #include "gr_wait.c"
52 #include "tz_sv4.c"
53 #include "gethstid.c"
54 #include "flocksim.c"
55 #include "utime.c"
57 /* QNX local ustat()
58 * Accepts: device id
59 * returned statistics
60 * Returns: 0 if success, -1 if failure with errno set
63 int ustat (dev_t dev,struct ustat *ub)
65 errno = ENOSYS; /* fstatvfs() should have been tried first */
66 return -1;