sd: remove 'ssd' driver support
[unleashed/tickless.git] / arch / x86 / include / sys / stat_impl.h
blobe8d3cfcf3d741fd724b1d34e86a6c0e4d494de12
1 /*
2 * CDDL HEADER START
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
19 * CDDL HEADER END
23 * Copyright 2010 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
27 #ifndef _SYS_STAT_IMPL_H
28 #define _SYS_STAT_IMPL_H
30 #include <sys/feature_tests.h>
31 #include <sys/types.h>
33 #ifdef __cplusplus
34 extern "C" {
35 #endif
38 * The implementation specific header for <sys/stat.h>
41 #if !defined(_KERNEL)
43 #if defined(__STDC__)
45 extern int fstat(int, struct stat *);
46 extern int stat(const char *_RESTRICT_KYWD, struct stat *_RESTRICT_KYWD);
48 #if !defined(__XOPEN_OR_POSIX) || defined(__EXTENSIONS__) || \
49 defined(_ATFILE_SOURCE)
50 extern int fstatat(int, const char *, struct stat *, int);
51 #endif /* defined (_ATFILE_SOURCE) */
53 #if !defined(__XOPEN_OR_POSIX) || defined(_XPG4_2) || defined(__EXTENSIONS__)
54 extern int lstat(const char *_RESTRICT_KYWD, struct stat *_RESTRICT_KYWD);
55 extern int mknod(const char *, mode_t, dev_t);
56 #endif /* !defined(__XOPEN_OR_POSIX) ... */
58 #else /* defined(__STDC__) */
60 extern int fstat();
61 extern int stat();
63 #if !defined(__XOPEN_OR_POSIX) || defined(__EXTENSIONS__) || \
64 defined(_ATFILE_SOURCE)
65 extern int fstatat();
66 #endif
68 #if !defined(__XOPEN_OR_POSIX) || defined(_XPG4_2) || defined(__EXTENSIONS__)
69 extern int lstat();
70 extern int mknod();
71 #endif /* !defined(__XOPEN_OR_POSIX) ... */
73 #endif /* defined(__STDC__) */
75 #if defined(__i386) && _FILE_OFFSET_BITS == 32 && \
76 (!defined(__XOPEN_OR_POSIX) || defined(__EXTENSIONS__))
79 * Obsolete SVR3 compatibility functions.
80 * Application software should NOT program to the _xstat interface.
82 #if defined(__STDC__)
84 extern int _fxstat(const int, int, struct stat *);
85 extern int _xstat(const int, const char *, struct stat *);
86 extern int _lxstat(const int, const char *, struct stat *);
87 extern int _xmknod(const int, const char *, mode_t, dev_t);
89 #else /* __STDC__ */
91 extern int _fxstat();
92 extern int _xstat();
93 extern int _lxstat();
94 extern int _xmknod();
96 #endif /* __STDC__ */
98 #endif /* defined(__i386) ... */
100 #endif /* !defined(_KERNEL) */
102 #ifdef __cplusplus
104 #endif
106 #endif /* _SYS_STAT_IMPL_H */