/usr/include/dpm/osdep.h is in libdpm-dev 1.8.10-1build3.
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 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 | /*
* $Id: osdep.h 3490 2010-03-16 09:41:05Z baud $
*/
/*
* Copyright (C) 1990-2010 by CERN/IT/PDP/IP
* All rights reserved
*/
/*
* @(#)$RCSfile: osdep.h,v $ $Revision: 3490 $ $Date: 2010-03-16 10:41:05 +0100 (Tue, 16 Mar 2010) $ CERN IT-PDP/IP Frederic Hemmer
*/
/* osdep.h Operating system dependencies */
#ifndef _OSDEP_H_INCLUDED_
#define _OSDEP_H_INCLUDED_
/*
* Data representation
*/
#define BYTESIZE 1
#define WORDSIZE 2
#define LONGSIZE 4
#define QUADSIZE 8
#define HYPERSIZE 8
#define TIME_TSIZE HYPERSIZE
typedef unsigned char U_BYTE;
/* typedef unsigned short U_WORD; */
typedef unsigned short U_SHORT;
typedef unsigned int U_LONG;
typedef struct {
U_LONG lslw;
U_LONG mslw;
} U_QUAD;
#ifndef _WINDEF_
typedef char BYTE;
typedef short WORD;
typedef int LONG;
#endif
typedef struct {
U_LONG lslw;
LONG mslw;
} QUAD;
#define BYTEADDR(x) (((char *)&(x))+sizeof(BYTE)-BYTESIZE)
#define WORDADDR(x) (((char *)&(x))+sizeof(WORD)-WORDSIZE)
#define LONGADDR(x) (((char *)&(x))+sizeof(LONG)-LONGSIZE)
#define QUADADDR(x) (((char *)&(x))+sizeof(QUAD)-QUADSIZE)
#ifndef _WIN32
typedef long long signed64;
typedef unsigned long long u_signed64;
#else
typedef __int64 signed64;
typedef unsigned __int64 u_signed64;
typedef long gid_t;
typedef long uid_t;
typedef int mode_t;
#endif
typedef signed64 HYPER;
typedef u_signed64 U_HYPER;
typedef U_HYPER TIME_T;
#define ONE_KB 0x400
#define ONE_MB 0x100000
#define ONE_GB 0x40000000
#ifndef _WIN32
#define INT64_NEG 0x8000000000000000LL
#ifndef LLONG_MAX
#define LLONG_MAX 0x7fffffffffffffffLL
#endif
#define ONE_TB 0x10000000000LL
#define ONE_PB 0x4000000000000LL
#else
#define INT64_NEG 0x8000000000000000
#ifndef LLONG_MAX
#define LLONG_MAX 0x7fffffffffffffff
#endif
#define ONE_TB 0x10000000000
#define ONE_PB 0x4000000000000
#endif
/*
* Error reporting
*/
#define NETERROR perror
#define OSERROR perror
/* Macros for prototyping */
#ifdef _PROTO
#undef _PROTO
#endif
#if (defined(__STDC__) || defined(__cplusplus) || defined(_WIN32))
/* On Win32, compiler is STDC compliant but the */
/* __STDC__ definition itself is not a default. */
#define CONST const
#define _PROTO(a) a
#else
#define CONST
#define _PROTO(a) ()
#endif
/* Macros for 64-bits constants definition */
#ifdef _WIN32
#define CONSTLL(a) (a##i64)
#else
#define CONSTLL(a) (a##LL)
#endif
/* Macros for externalization (UNIX) (J.-D.Durand) */
#ifdef EXTERN_C
#undef EXTERN_C
#endif
#if defined(__cplusplus)
#define EXTERN_C extern "C"
#else
#define EXTERN_C extern
#endif
/* Macros for externalization (WIN32) (O.Barring) */
/* A correct exernalization of routines that */
/* _always_ returns an interger, in your */
/* <package>_api.h header file, is then: */
/* EXTERN_C <type> DLL_DECL routine _PROTO((...)); */
/* [Please note the space before prototype itself] */
/* [Please note the two level parenthesis] */
/* If your externalized function do not return int */
/* but another type, you must get inspired by the */
/* following declaration of int and change */
#if defined(DLL_DECL)
#undef DLL_DECL
#endif
#if !defined(_WIN32)
#define DLL_DECL
#else
#if defined(_EXPORTING) && defined(_DLL)
#define DLL_DECL __declspec(dllexport)
#elif defined(_IMPORTING)
#define DLL_DECL __declspec(dllimport)
#else
#define DLL_DECL
#endif
#endif
#if (defined(__alpha) && defined(__osf__)) || defined( __APPLE__)
#define off64_t off_t
#endif
#if defined(_WIN32)
#define off64_t __int64
#endif
#endif /* _OSDEP_H_INCLUDED_ */
|