English Language flag
// Log In
// CVSweb
Project: FreeWRT
// Summary // Activity // Search // Tracker // Lists // News // SCM // Wiki

SCM Repository

ViewVC logotype

Diff of /branches/freewrt_1_0/scripts/param.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2714 by wbx, Thu Sep 28 10:42:55 2006 UTC revision 2715 by tg, Tue Jun 5 14:52:44 2007 UTC
# Line 1  Line 1 
1  /* $FreeWRT$ */  /* $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>  #include_next </usr/include/sys/param.h>
24    
25  #ifndef __linux__  #ifndef __linux__
26  typedef off_t loff_t;  typedef off_t loff_t;
27  #endif  #endif
28    
29  #ifndef __SCCSID  #if !defined(__RCSID) || !defined(__SCCSID) || !defined(__COPYRIGHT)
30  #define __SCCSID(x)     static const char __sccsid[] __attribute__((used)) = (x)  #undef __IDSTRING
31  #endif  #undef __IDSTRING_CONCAT
32    #undef __IDSTRING_EXPAND
33  #ifndef __RCSID  #undef __COPYRIGHT
34  #define __RCSID(x)      static const char __rcsid[] __attribute__((used)) = (x)  #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  #endif
45    
46  #if !defined(BSD) && defined(_STRLCPY_DEFNS)  #if !defined(BSD) && defined(_STRLCPY_DEFNS)

Legend:
Removed from v.2714  
changed lines
  Added in v.2715

root@freewrt.org:443
ViewVC Help
Powered by ViewVC 1.1.20