]> git.proxmox.com Git - mirror_edk2.git/blame - StdLibPrivateInternalFiles/Include/extern.h
Changes so that Argv points to narrow-character versions of the command-line arguments.
[mirror_edk2.git] / StdLibPrivateInternalFiles / Include / extern.h
CommitLineData
2aa62f2b 1/* $NetBSD: extern.h,v 1.14 2006/11/22 17:23:25 christos Exp $ */\r
2\r
3/*\r
4 * Copyright (c) 1997 Christos Zoulas. All rights reserved.\r
5 *\r
6 * Redistribution and use in source and binary forms, with or without\r
7 * modification, are permitted provided that the following conditions\r
8 * are met:\r
9 * 1. Redistributions of source code must retain the above copyright\r
10 * notice, this list of conditions and the following disclaimer.\r
11 * 2. Redistributions in binary form must reproduce the above copyright\r
12 * notice, this list of conditions and the following disclaimer in the\r
13 * documentation and/or other materials provided with the distribution.\r
14 * 3. All advertising materials mentioning features or use of this software\r
15 * must display the following acknowledgement:\r
16 * This product includes software developed by Christos Zoulas.\r
17 * 4. The name of the author may not be used to endorse or promote products\r
18 * derived from this software without specific prior written permission.\r
19 *\r
20 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR\r
21 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES\r
22 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.\r
23 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,\r
24 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT\r
25 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\r
27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\r
28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF\r
29 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
30 */\r
31#include <Uefi.h>\r
32#include <time.h>\r
33\r
34__BEGIN_DECLS\r
35extern char *__minbrk;\r
36int __getcwd(char *, size_t);\r
37int __getlogin(char *, size_t);\r
38int __setlogin(const char *);\r
39void _resumecontext(void);\r
40const char *__strerror(int , char *, size_t);\r
41const char *__strsignal(int , char *, size_t);\r
42char *__dtoa(double, int, int, int *, int *, char **);\r
43void __freedtoa(char *);\r
44int __sysctl(const int *, unsigned int, void *, size_t *, const void *, size_t);\r
45\r
46struct sigaction;\r
47int __sigaction_sigtramp(int, const struct sigaction *,\r
48 struct sigaction *, const void *, int);\r
49\r
50#ifdef WIDE_DOUBLE\r
51 char *__hdtoa(double, const char *, int, int *, int *, char **);\r
52 char *__hldtoa(long double, const char *, int, int *, int *, char **);\r
53 char *__ldtoa(long double *, int, int, int *, int *, char **);\r
54#endif\r
55\r
56struct syslog_data;\r
57void syslog_ss(int, struct syslog_data *, const char *, ...)\r
58 __attribute__((__format__(__printf__,3,4)));\r
59void vsyslog_ss(int, struct syslog_data *, const char *, _BSD_VA_LIST_);\r
60\r
61int snprintf_ss(char * __restrict, size_t, const char * __restrict, ...)\r
62 __attribute__((__format__(__printf__, 3, 4)));\r
63int vsnprintf_ss(char * __restrict, size_t, const char * __restrict,\r
64 _BSD_VA_LIST_) __attribute__((__format__(__printf__, 3, 0)));\r
65\r
66void Efi2Tm( EFI_TIME *ET, struct tm *BT);\r
67time_t Efi2Time( EFI_TIME *EfiBDtime);\r
68\r
f766dd76 69int ffs(int x);\r
70\r
2aa62f2b 71__END_DECLS\r