source: freewrt/scripts/param.h@ f855d85

Last change on this file since f855d85 was b3cf3b1, checked in by Thorsten Glaser <tg@…>, 19 years ago

sync RCSID() et al. with mksh-current

git-svn-id: svn://www.freewrt.org/trunk/freewrt@2028 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 1.7 KB
Line 
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__
26typedef 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)
47size_t strlcat(char *, const char *, size_t);
48size_t strlcpy(char *, const char *, size_t);
49#endif
Note: See TracBrowser for help on using the repository browser.