xref: /illumos-gate/usr/src/ucblib/libucb/inc/libc.h (revision e4d060fb4c00d44cd578713eb9a921f594b733b8)
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 #pragma ident	"%Z%%M%	%I%	%E% SMI"
36 
37 #include <stdio.h>
38 #include <stdarg.h>
39 #include <sys/time.h>
40 #include <sys/regset.h>
41 #include <sys/times.h>
42 #include <sys/ucontext.h>
43 #include <sys/dirent.h>
44 
45 #ifdef __cplusplus
46 extern "C" {
47 #endif
48 
49 /*
50  * getdents64 transitional interface is intentionally internal to libc
51  */
52 extern int getdents64(int, struct dirent64 *, size_t);
53 
54 /*
55  * defined in port/stdio/doprnt.c
56  */
57 extern int _doprnt(char *format, va_list in_args, FILE *iop);
58 
59 /*
60  * defined in port/gen/_psignal.c
61  */
62 extern void _psignal(unsigned int sig, char *s);
63 
64 /*
65  * defined in _getsp.s
66  */
67 extern greg_t _getsp(void);
68 
69 /*
70  * defined in ucontext.s
71  */
72 extern int __getcontext(ucontext_t *);
73 
74 /*
75  * defined in libc
76  */
77 extern int _sigaction(int, const struct sigaction *, struct sigaction *);
78 
79 /*
80  * External Variables
81  */
82 extern void (*_siguhandler[])(int, int, struct sigcontext *, char *);
83 	/* for BSD */
84 
85 /*
86  * defined in port/gen/siglist.c
87  */
88 extern char *sys_siglist[];
89 
90 #ifdef __cplusplus
91 }
92 #endif
93 
94 #endif /* _LIBC_H */
95