X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=pciutils.h;h=31a4ce1b2d25bdc445b9948d78c72293c78cc521;hb=35d9dcd12e663e5c3d8b3eb072441ad37a4cddbf;hp=0997df7628756846ea7563d2b9d20eeb3c4de20d;hpb=a85769a88b81f22aa43895199cbb01a12e0ab0a7;p=pciutils.git diff --git a/pciutils.h b/pciutils.h index 0997df7..31a4ce1 100644 --- a/pciutils.h +++ b/pciutils.h @@ -1,7 +1,7 @@ /* - * Linux PCI Utilities -- Declarations + * The PCI Utilities -- Declarations * - * Copyright (c) 1997--1999 Martin Mares + * Copyright (c) 1997--2003 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ @@ -11,11 +11,13 @@ #define PCIUTILS_VERSION PCILIB_VERSION #if !defined(__GNUC__) -#define __attribute__(x) +#define NONRET #define inline +#else +#define NONRET __attribute__((noreturn)) #endif -void __attribute__((noreturn)) die(char *msg, ...); +void die(char *msg, ...) NONRET; void *xmalloc(unsigned int howmuch); int parse_generic_option(int i, struct pci_access *pacc, char *optarg); @@ -33,13 +35,6 @@ int parse_generic_option(int i, struct pci_access *pacc, char *optarg); #define GENOPT_INTEL #define GENHELP_INTEL #endif -#ifdef HAVE_PM_SYSCALLS -#define GENOPT_SYSCALLS "S" -#define GENHELP_SYSCALLS "-S\t\tUse direct hardware access via syscalls\n" -#else -#define GENOPT_SYSCALLS -#define GENHELP_SYSCALLS -#endif #ifdef HAVE_PM_DUMP #define GENOPT_DUMP "F:" #define GENHELP_DUMP "-F \tRead configuration data from given file\n" @@ -48,6 +43,6 @@ int parse_generic_option(int i, struct pci_access *pacc, char *optarg); #define GENHELP_DUMP #endif -#define GENERIC_OPTIONS "G" GENOPT_PROC GENOPT_INTEL GENOPT_SYSCALLS GENOPT_DUMP -#define GENERIC_HELP GENHELP_PROC GENHELP_INTEL GENHELP_SYSCALLS GENHELP_DUMP \ +#define GENERIC_OPTIONS "G" GENOPT_PROC GENOPT_INTEL GENOPT_DUMP +#define GENERIC_HELP GENHELP_PROC GENHELP_INTEL GENHELP_DUMP \ "-G\t\tEnable PCI access debugging\n"