/* ****************************************************************************** * HEADER FILE * * Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: getopt.h,v $ $Revision: 1.2 $ * $Source: /home/interpeak/CVSRoot/ipxinc/include/getopt.h,v $ * $Author: lob $ $Date: 2006-04-10 11:03:29 $ * $State: Exp $ $Locker: $ * * INTERPEAK_COPYRIGHT_STRING * Design and implementation by Lennart Bang ****************************************************************************** */ #ifndef IP_GETOPT_H #define IP_GETOPT_H /* **************************************************************************** * 1 DESCRIPTION **************************************************************************** */ /* **************************************************************************** * 2 CONFIGURATION **************************************************************************** */ #include "ipcom_config.h" /* **************************************************************************** * 3 INCLUDE FILES **************************************************************************** */ #define IPCOM_USE_CLIB_PROTO #include "ipcom_clib.h" #include "ipcom_getopt.h" #ifdef __cplusplus extern "C" { #endif /* **************************************************************************** * 4 DEFINES **************************************************************************** */ #ifndef NETSNMP_INTERPEAK #define __GNU_LIBRARY__ #define opterr ip_opterr #define optind ip_optind #define optarg ip_optarg #define optopt ip_optopt #define optreset ip_optreset #define getopt(a, b, c) ipcom_getopt(a, b, c) #else #define opterr ipnetsnmp_opterr #define optind ipnetsnmp_optind #define optarg ipnetsnmp_optarg #define optopt ipnetsnmp_optopt #define optreset ipnetsnmp_optreset IP_EXTERN int ipnetsnmp_opterr; IP_EXTERN int ipnetsnmp_optind; IP_EXTERN int ipnetsnmp_optopt; IP_EXTERN int ipnetsnmp_optreset; IP_EXTERN char *ipnetsnmp_optarg; #define getopt(a, b, c) ipnetsnmp_getopt(a, b, c) IP_PUBLIC int ipnetsnmp_getopt(int argc, char * const *argv, const char *optstring); #endif /* #ifndef NETSNMP_INTERPEAK */ /* **************************************************************************** * 5 TYPES **************************************************************************** */ /* **************************************************************************** * 6 FUNCTIONS **************************************************************************** */ #ifdef __cplusplus } #endif #endif /* **************************************************************************** * END OF FILE **************************************************************************** */