| 1 | /* $FreeWRT$ */
|
|---|
| 2 |
|
|---|
| 3 | /*-
|
|---|
| 4 | * Copyright (c) 2007
|
|---|
| 5 | * Thorsten Glaser <tg@mirbsd.de>
|
|---|
| 6 | *
|
|---|
| 7 | * Provided that these terms and disclaimer and all copyright notices
|
|---|
| 8 | * are retained or reproduced in an accompanying document, permission
|
|---|
| 9 | * is granted to deal in this work without restriction, including un-
|
|---|
| 10 | * limited rights to use, publicly perform, distribute, sell, modify,
|
|---|
| 11 | * merge, give away, or sublicence.
|
|---|
| 12 | *
|
|---|
| 13 | * This work is provided "AS IS" and WITHOUT WARRANTY of any kind, to
|
|---|
| 14 | * the utmost extent permitted by applicable law, neither express nor
|
|---|
| 15 | * implied; without malicious intent or gross negligence. In no event
|
|---|
| 16 | * may a licensor, author or contributor be held liable for indirect,
|
|---|
| 17 | * direct, other damage, loss, or other issues arising in any way out
|
|---|
| 18 | * of dealing in the work, even if advised of the possibility of such
|
|---|
| 19 | * damage or existence of a defect, except proven that it results out
|
|---|
| 20 | * of said person's immediate fault when using the work as intended.
|
|---|
| 21 | */
|
|---|
| 22 |
|
|---|
| 23 | #include_next </usr/include/sys/param.h>
|
|---|
| 24 |
|
|---|
| 25 | #ifndef __linux__
|
|---|
| 26 | typedef off_t loff_t;
|
|---|
| 27 | #endif
|
|---|
| 28 |
|
|---|
| 29 | #if !defined(__RCSID) || !defined(__SCCSID) || !defined(__COPYRIGHT)
|
|---|
| 30 | #undef __IDSTRING
|
|---|
| 31 | #undef __IDSTRING_CONCAT
|
|---|
| 32 | #undef __IDSTRING_EXPAND
|
|---|
| 33 | #undef __COPYRIGHT
|
|---|
| 34 | #undef __RCSID
|
|---|
| 35 | #undef __SCCSID
|
|---|
| 36 | #define __IDSTRING_CONCAT(l,p) __LINTED__ ## l ## _ ## p
|
|---|
| 37 | #define __IDSTRING_EXPAND(l,p) __IDSTRING_CONCAT(l,p)
|
|---|
| 38 | #define __IDSTRING(prefix, string) \
|
|---|
| 39 | static const char __IDSTRING_EXPAND(__LINE__,prefix) [] \
|
|---|
| 40 | __attribute__((used)) = "@(""#)" #prefix ": " string
|
|---|
| 41 | #define __COPYRIGHT(x) __IDSTRING(copyright,x)
|
|---|
| 42 | #define __RCSID(x) __IDSTRING(rcsid,x)
|
|---|
| 43 | #define __SCCSID(x) __IDSTRING(sccsid,x)
|
|---|
| 44 | #endif
|
|---|
| 45 |
|
|---|
| 46 | #if !defined(BSD) && defined(_STRLCPY_DEFNS)
|
|---|
| 47 | size_t strlcat(char *, const char *, size_t);
|
|---|
| 48 | size_t strlcpy(char *, const char *, size_t);
|
|---|
| 49 | #endif
|
|---|