xref: /titanic_50/usr/src/uts/sparc/sys/stat_impl.h (revision 7eea693d6b672899726e75993fddc4e95b52647f)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License, Version 1.0 only
6  * (the "License").  You may not use this file except in compliance
7  * with the License.
8  *
9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10  * or http://www.opensolaris.org/os/licensing.
11  * See the License for the specific language governing permissions
12  * and limitations under the License.
13  *
14  * When distributing Covered Code, include this CDDL HEADER in each
15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16  * If applicable, add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your own identifying
18  * information: Portions Copyright [yyyy] [name of copyright owner]
19  *
20  * CDDL HEADER END
21  */
22 /*
23  * Copyright 2003 Sun Microsystems, Inc.  All rights reserved.
24  * Use is subject to license terms.
25  */
26 
27 #ifndef _SYS_STAT_IMPL_H
28 #define	_SYS_STAT_IMPL_H
29 
30 #pragma ident	"%Z%%M%	%I%	%E% SMI"
31 
32 #include <sys/feature_tests.h>
33 #include <sys/types.h>
34 
35 #ifdef	__cplusplus
36 extern "C" {
37 #endif
38 
39 /*
40  * The implementation specific header for <sys/stat.h>
41  */
42 
43 #if !defined(_KERNEL) || defined(_BOOT)
44 
45 #if defined(__STDC__)
46 
47 extern int fstat(int, struct stat *);
48 extern int stat(const char *_RESTRICT_KYWD, struct stat *_RESTRICT_KYWD);
49 #if !defined(__XOPEN_OR_POSIX) || defined(__EXTENSIONS__) || \
50 	defined(_ATFILE_SOURCE)
51 extern int fstatat(int, const char *, struct stat *, int);
52 #endif /* defined (_ATFILE_SOURCE) */
53 
54 #if !defined(__XOPEN_OR_POSIX) || defined(_XPG4_2) || defined(__EXTENSIONS__)
55 extern int lstat(const char *_RESTRICT_KYWD, struct stat *_RESTRICT_KYWD);
56 extern int mknod(const char *, mode_t, dev_t);
57 #endif /* (!defined(__XOPEN_OR_POSIX) ... */
58 
59 #else	/* !__STDC__ */
60 
61 extern int fstat(), stat();
62 
63 #if !defined(__XOPEN_OR_POSIX) || defined(__EXTENSIONS__) || \
64 	defined(_ATFILE_SOURCE)
65 extern int fstatat();
66 #endif
67 
68 #if !defined(__XOPEN_OR_POSIX) || defined(_XPG4_2) || defined(__EXTENSIONS__)
69 extern int lstat(), mknod();
70 #endif /* !defined(__XOPEN_OR_POSIX)... */
71 
72 #endif	/* !__STDC__ */
73 
74 #endif /* !defined(_KERNEL) || defined(_BOOT) */
75 
76 #ifdef	__cplusplus
77 }
78 #endif
79 
80 #endif	/* _SYS_STAT_IMPL_H */
81