1 /* ========================================================================
2 * Copyright 2008-2009 Mark Crispin
3 * ========================================================================
7 * Program: Operating-system dependent routines -- QNX 6 version
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 */
32 #include <sys/socket.h>
33 #include <netinet/in.h>
34 #include <arpa/inet.h>
38 extern int errno
; /* just in case */
41 #include <sys/select.h>
44 #define DIR_SIZE(d) d->d_reclen
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 */