1/*-
2 * Copyright (c) 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Berkeley Software Design, Inc.
7 *
8 * Redistribution and use in source and binary forms, with or without
--- 16 unchanged lines hidden (view full) ---
25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * SUCH DAMAGE.
31 *
32 * @(#)cdefs.h 8.8 (Berkeley) 1/9/95
33 * $FreeBSD: head/sys/sys/cdefs.h 215701 2010-11-22 19:32:54Z dim $
34 */
35
36#ifndef _SYS_CDEFS_H_
37#define _SYS_CDEFS_H_
38
39#if defined(__cplusplus)
40#define __BEGIN_DECLS extern "C" {
41#define __END_DECLS }
--- 354 unchanged lines hidden (view full) ---
396 __asm__(".previous")
397#define __sym_compat(sym,impl,verid) \
398 __asm__(".symver impl, sym@verid")
399#define __sym_default(impl,sym,verid) \
400 __asm__(".symver impl, sym@@verid")
401#endif /* __STDC__ */
402#endif /* __GNUC__ || __INTEL_COMPILER */
403
404#define __GLOBL1(sym) __asm__(".globl " #sym)
405#define __GLOBL(sym) __GLOBL1(sym)
406
407#if defined(__GNUC__) || defined(__INTEL_COMPILER)
408#define __IDSTRING(name,string) __asm__(".ident\t\"" string "\"")
409#else
410/*
411 * The following definition might not work well if used in header files,
412 * but it should be better than nothing. If you want a "do nothing"
413 * version, then it should generate some harmless declaration, such as:
414 * #define __IDSTRING(name,string) struct __hack
415 */
416#define __IDSTRING(name,string) static const char name[] __unused = string
417#endif
418
419/*
420 * Embed the rcs id of a source file in the resulting library. Note that in
421 * more recent ELF binutils, we use .ident allowing the ID to be stripped.
422 * Usage:
423 * __FBSDID("$FreeBSD: head/sys/sys/cdefs.h 215701 2010-11-22 19:32:54Z dim $");
424 */
425#ifndef __FBSDID
426#if !defined(lint) && !defined(STRIP_FBSDID)
427#define __FBSDID(s) __IDSTRING(__CONCAT(__rcsid_,__LINE__),s)
428#else
429#define __FBSDID(s) struct __hack
430#endif
431#endif
--- 159 unchanged lines hidden ---
2 * Copyright (c) 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Berkeley Software Design, Inc.
7 *
8 * Redistribution and use in source and binary forms, with or without
--- 16 unchanged lines hidden (view full) ---
25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * SUCH DAMAGE.
31 *
32 * @(#)cdefs.h 8.8 (Berkeley) 1/9/95
33 * $FreeBSD: head/sys/sys/cdefs.h 215701 2010-11-22 19:32:54Z dim $
34 */
35
36#ifndef _SYS_CDEFS_H_
37#define _SYS_CDEFS_H_
38
39#if defined(__cplusplus)
40#define __BEGIN_DECLS extern "C" {
41#define __END_DECLS }
--- 354 unchanged lines hidden (view full) ---
396 __asm__(".previous")
397#define __sym_compat(sym,impl,verid) \
398 __asm__(".symver impl, sym@verid")
399#define __sym_default(impl,sym,verid) \
400 __asm__(".symver impl, sym@@verid")
401#endif /* __STDC__ */
402#endif /* __GNUC__ || __INTEL_COMPILER */
403
404#define __GLOBL1(sym) __asm__(".globl " #sym)
405#define __GLOBL(sym) __GLOBL1(sym)
406
407#if defined(__GNUC__) || defined(__INTEL_COMPILER)
408#define __IDSTRING(name,string) __asm__(".ident\t\"" string "\"")
409#else
410/*
411 * The following definition might not work well if used in header files,
412 * but it should be better than nothing. If you want a "do nothing"
413 * version, then it should generate some harmless declaration, such as:
414 * #define __IDSTRING(name,string) struct __hack
415 */
416#define __IDSTRING(name,string) static const char name[] __unused = string
417#endif
418
419/*
420 * Embed the rcs id of a source file in the resulting library. Note that in
421 * more recent ELF binutils, we use .ident allowing the ID to be stripped.
422 * Usage:
423 * __FBSDID("$FreeBSD: head/sys/sys/cdefs.h 215701 2010-11-22 19:32:54Z dim $");
424 */
425#ifndef __FBSDID
426#if !defined(lint) && !defined(STRIP_FBSDID)
427#define __FBSDID(s) __IDSTRING(__CONCAT(__rcsid_,__LINE__),s)
428#else
429#define __FBSDID(s) struct __hack
430#endif
431#endif
--- 159 unchanged lines hidden ---