import tput from NetBSD
[minix3.git] / lib / libc / include / extern.h
blob02f89ec93a3abd96169b3dbe9d8acb1e70cbaa76
1 /* $NetBSD: extern.h,v 1.21 2012/10/11 17:09:56 christos Exp $ */
3 /*
4 * Copyright (c) 1997 Christos Zoulas. All rights reserved.
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 * 2. Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the distribution.
15 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
16 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
17 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
18 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 #ifdef __minix
28 #include <sys/types.h>
29 #endif
30 #include <stdarg.h>
31 #include <ucontext.h>
33 __BEGIN_DECLS
34 extern char *__minbrk;
35 int __getcwd(char *, size_t);
36 int __getlogin(char *, size_t);
37 int __setlogin(const char *);
38 void _resumecontext(void) __dead;
39 const char *__strerror(int , char *, size_t);
40 const char *__strsignal(int , char *, size_t);
41 char *__dtoa(double, int, int, int *, int *, char **);
42 void __freedtoa(char *);
43 int __sysctl(const int *, unsigned int, void *, size_t *, const void *, size_t);
45 struct sigaction;
46 int __sigaction_sigtramp(int, const struct sigaction *,
47 struct sigaction *, const void *, int);
49 #ifdef WIDE_DOUBLE
50 char *__hdtoa(double, const char *, int, int *, int *, char **);
51 char *__hldtoa(long double, const char *, int, int *, int *, char **);
52 char *__ldtoa(long double *, int, int, int *, int *, char **);
53 #endif
55 #ifndef __LIBC12_SOURCE__
56 struct syslog_data;
57 void syslog_ss(int, struct syslog_data *, const char *, ...)
58 __RENAME(__syslog_ss60) __printflike(3, 4);
59 void vsyslog_ss(int, struct syslog_data *, const char *, va_list)
60 __RENAME(__vsyslog_ss60) __printflike(3, 0);
61 void syslogp_ss(int, struct syslog_data *, const char *, const char *,
62 const char *, ...) __RENAME(__syslogp_ss60) __printflike(5, 0);
63 void vsyslogp_ss(int, struct syslog_data *, const char *, const char *,
64 const char *, va_list) __RENAME(__vsyslogp_ss60) __printflike(5, 0);
65 #endif
67 int snprintf_ss(char * __restrict, size_t, const char * __restrict, ...)
68 __printflike(3, 4);
69 int vsnprintf_ss(char * __restrict, size_t, const char * __restrict,
70 va_list) __printflike(3, 0);
72 void _malloc_prefork(void);
73 void _malloc_postfork(void);
75 int _sys_setcontext(const ucontext_t *);
77 __END_DECLS