Vishal Bhoj | 82c8071 | 2015-12-15 21:13:33 +0530 | [diff] [blame] | 1 | /* @file
|
| 2 | Misc. external declarations.
|
| 3 |
|
| 4 | Copyright (c) 2010 - 2012, Intel Corporation. All rights reserved.<BR>
|
| 5 | This program and the accompanying materials are licensed and made available under
|
| 6 | the terms and conditions of the BSD License that accompanies this distribution.
|
| 7 | The full text of the license may be found at
|
| 8 | http://opensource.org/licenses/bsd-license.
|
| 9 |
|
| 10 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
| 11 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
| 12 |
|
| 13 | * Copyright (c) 1997 Christos Zoulas. All rights reserved.
|
| 14 | *
|
| 15 | * Redistribution and use in source and binary forms, with or without
|
| 16 | * modification, are permitted provided that the following conditions
|
| 17 | * are met:
|
| 18 | * 1. Redistributions of source code must retain the above copyright
|
| 19 | * notice, this list of conditions and the following disclaimer.
|
| 20 | * 2. Redistributions in binary form must reproduce the above copyright
|
| 21 | * notice, this list of conditions and the following disclaimer in the
|
| 22 | * documentation and/or other materials provided with the distribution.
|
| 23 | * 3. All advertising materials mentioning features or use of this software
|
| 24 | * must display the following acknowledgement:
|
| 25 | * This product includes software developed by Christos Zoulas.
|
| 26 | * 4. The name of the author may not be used to endorse or promote products
|
| 27 | * derived from this software without specific prior written permission.
|
| 28 | *
|
| 29 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
| 30 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
| 31 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
| 32 | * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
| 33 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
| 34 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
| 35 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
| 36 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
| 37 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
| 38 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| 39 |
|
| 40 | NetBSD: extern.h,v 1.14 2006/11/22 17:23:25 christos Exp
|
| 41 | */
|
| 42 | #include <Uefi.h>
|
| 43 | #include <time.h>
|
| 44 |
|
| 45 | __BEGIN_DECLS
|
| 46 | extern char * __minbrk;
|
| 47 | int __getcwd(char *, size_t);
|
| 48 | int __getlogin(char *, size_t);
|
| 49 | int __setlogin(const char *);
|
| 50 | void _resumecontext(void);
|
| 51 | const char * __strerror(int , char *, size_t);
|
| 52 | const char * __strsignal(int , char *, size_t);
|
| 53 | char * __dtoa(double, int, int, int *, int *, char **);
|
| 54 | void __freedtoa(char *);
|
| 55 | int __sysctl(const int *, unsigned int, void *, size_t *, const void *, size_t);
|
| 56 |
|
| 57 | #ifdef HAVE_SIGACTION
|
| 58 | struct sigaction;
|
| 59 | int __sigaction_sigtramp (int, const struct sigaction *,
|
| 60 | struct sigaction *, const void *, int);
|
| 61 | #endif /* HAVE_SIGACTION */
|
| 62 |
|
| 63 | #ifdef WIDE_DOUBLE
|
| 64 | char * __hdtoa(double, const char *, int, int *, int *, char **);
|
| 65 | char * __hldtoa(long double, const char *, int, int *, int *, char **);
|
| 66 | char * __ldtoa(long double *, int, int, int *, int *, char **);
|
| 67 | #endif
|
| 68 |
|
| 69 | #ifdef HAVE_SYSLOG
|
| 70 | struct syslog_data;
|
| 71 | void syslog_ss(int, struct syslog_data *, const char *, ...)
|
| 72 | __attribute__((__format__(__printf__,3,4)));
|
| 73 | void vsyslog_ss(int, struct syslog_data *, const char *, _BSD_VA_LIST_);
|
| 74 | #endif /* HAVE_SYSLOG */
|
| 75 |
|
| 76 | #ifdef HAVE_SNPRINTF_SS
|
| 77 | int snprintf_ss(char * __restrict, size_t, const char * __restrict, ...)
|
| 78 | __attribute__((__format__(__printf__, 3, 4)));
|
| 79 | #endif /* HAVE_SNPRINTF_SS */
|
| 80 |
|
| 81 | #ifdef HAVE_VSNPRINTF_SS
|
| 82 | int vsnprintf_ss(char * __restrict, size_t, const char * __restrict,
|
| 83 | _BSD_VA_LIST_) __attribute__((__format__(__printf__, 3, 0)));
|
| 84 | #endif /* HAVE_VSNPRINTF_SS */
|
| 85 |
|
| 86 | void Efi2Tm( EFI_TIME *ET, struct tm *BT);
|
| 87 | time_t Efi2Time( EFI_TIME *EfiBDtime);
|
| 88 |
|
| 89 | __END_DECLS
|