Debian Codegraph @

imap/src/osdep/unix/os_qn6.c

raw symbols ◀ ▶ SCIP
1 Debian patch touch this file
1 /* ========================================================================
2 * Copyright 2008-2009 Mark Crispin
3 * ========================================================================
4 */
5
6 /*
7 * Program: Operating-system dependent routines -- QNX 6 version
8 *
9 * Author: Mark Crispin
10 *
11 * Date: 1 August 1993
12 * Last Edited: 17 April 2009
13 *
14 * Previous versions of this file were
15 *
16 * Copyright 1988-2006 University of Washington
17 *
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
21 *
22 * http://www.apache.org/licenses/LICENSE-2.0
23 *
24 */
25
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 #ifndef errno
39 extern int errno; /* just in case */
•40 #endif
41 #include <pwd.h>
42 #include <shadow.h>
43 #include <sys/select.h>
44 #include "misc.h"
45
46 #define DIR_SIZE(d) d->d_reclen
47
48 #include "fs_unix.c"
49 #include "ftl_unix.c"
50 #include "nl_unix.c"
51 #include "env_unix.c"
52 #include "tcp_unix.c"
53 #include "gr_wait.c"
54 #include "tz_sv4.c"
55 #include "gethstid.c"
56 #include "flocksim.c"
57 #include "utime.c"
58
59 /* QNX local ustat()
60 * Accepts: device id
61 * returned statistics
62 * Returns: 0 if success, -1 if failure with errno set
63 */
64
65 int ustat (dev_t dev,struct ustat *ub)
66 {
67 errno = ENOSYS; /* fstatvfs() should have been tried first */
68 return -1;
69 }