xref: /illumos-gate/usr/src/ucblib/libucb/inc/libc.h (revision 9164a50bf932130cbb5097a16f6986873ce0e6e5)
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 1997-2003 Sun Microsystems, Inc.  All rights reserved.
24  * Use is subject to license terms.
25  */
26 
27 /*
28  * This is where all the interfaces that are internal to libucb
29  * which do not have a better home live
30  */
31 
32 #ifndef _LIBC_H
33 #define	_LIBC_H
34 
35 #include <stdio.h>
36 #include <stdarg.h>
37 #include <sys/time.h>
38 #include <sys/regset.h>
39 #include <sys/times.h>
40 #include <sys/ucontext.h>
41 #include <sys/dirent.h>
42 
43 #ifdef __cplusplus
44 extern "C" {
45 #endif
46 
47 /*
48  * getdents64 transitional interface is intentionally internal to libc
49  */
50 extern int getdents64(int, struct dirent64 *, size_t);
51 
52 /*
53  * defined in port/stdio/doprnt.c
54  */
55 extern int _doprnt(char *format, va_list in_args, FILE *iop);
56 
57 /*
58  * defined in port/gen/_psignal.c
59  */
60 extern void _psignal(unsigned int sig, char *s);
61 
62 /*
63  * defined in _getsp.s
64  */
65 extern greg_t _getsp(void);
66 
67 /*
68  * defined in ucontext.s
69  */
70 extern int __getcontext(ucontext_t *);
71 
72 /*
73  * defined in libc
74  */
75 extern int _sigaction(int, const struct sigaction *, struct sigaction *);
76 
77 /*
78  * External Variables
79  */
80 extern void (*_siguhandler[])(int, int, struct sigcontext *, char *);
81 	/* for BSD */
82 
83 /*
84  * defined in port/gen/siglist.c
85  */
86 extern char *sys_siglist[];
87 
88 #ifdef __cplusplus
89 }
90 #endif
91 
92 #endif /* _LIBC_H */
93