/usr/include/g-wrap/ffi-support.h is in libgwrap-runtime-dev 1.9.15-0.2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 | /* g-wrap/ffi-support.h. Generated from ffi-support.h.in by configure. */
/**********************************************************************
Copyright (C) 2003, 2004, 2008 Andreas Rottmann
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation; either version 2.1, or (at
your option) any later version.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this software; see the file COPYING. If not, write
to the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139,
USA.
**********************************************************************/
#ifndef __G_WRAP_FFI_SUPPORT_H__
#define __G_WRAP_FFI_SUPPORT_H__
#include <ffi.h>
#ifdef __cplusplus
extern "C" {
#endif
/* ffi type for size_t */
#define ffi_type_size_t ffi_type_uint64
/* ffi type for ssize_t */
#define ffi_type_ssize_t ffi_type_sint64
#ifndef WORDS_BIGENDIAN
/* Byte order. */
/* #undef WORDS_BIGENDIAN */
#endif
#define GW_ALIGN(v, a) (((((size_t) (v))-1) | ((a)-1))+1)
#ifdef WORDS_BIGENDIAN
# define GW_RVALUE_PTR(ptr, typ) \
((void *)((char *)(ptr) + ((typ)->type->size < sizeof(ffi_arg) ? \
(sizeof(ffi_arg) - (typ)->type->size) : 0)))
#else
# define GW_RVALUE_PTR(ptr, typ) ((void *)(ptr))
#endif
/* FFI has messed-up type #defines, see
* http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12782 */
#if !defined(ffi_type_ulong_long)
/* noconfig */ #undef ffi_type_ulong
/* noconfig */ #undef ffi_type_slong
#ifndef SIZEOF_LONG
/* The size of a `long', as computed by sizeof. */
#define SIZEOF_LONG 8
#endif
#if SIZEOF_LONG == 4
#define ffi_type_ulong ffi_type_uint32
#define ffi_type_slong ffi_type_sint32
#elif SIZEOF_LONG == 8
#define ffi_type_ulong ffi_type_uint64
#define ffi_type_slong ffi_type_sint64
#endif
/* any machines with 128bit long longs yet? */
#define ffi_type_ulong_long ffi_type_uint64
#define ffi_type_slong_long ffi_type_sint64
#endif /* !defined(ffi_type_ulong_long) */
#ifdef __cplusplus
}
#endif
#endif
|