VSF Documented
Data Structures | Macros | Functions | Variables
getopt.h File Reference
#include "shell/sys/linux/vsf_linux_cfg.h"
#include "shell/sys/linux/vsf_linux.h"

Go to the source code of this file.

Data Structures

struct  option
 
struct  __getopt_lib_ctx_t
 

Macros

#define __BEGIN_DECLS
 
#define __END_DECLS
 
#define no_argument   0
 
#define required_argument   1
 
#define optional_argument   2
 
#define _GETOPT_DEFINED_
 
#define getopt_ctx   ((struct __getopt_lib_ctx_t *)vsf_linux_dynlib_ctx_get(&__getopt_long_mod))
 
#define opterr   (getopt_ctx->__opterr)
 
#define optind   (getopt_ctx->__optind)
 
#define optopt   (getopt_ctx->__optopt)
 
#define optarg   (getopt_ctx->__optarg)
 
#define optreset   (getopt_ctx->__optreset)
 

Functions

__BEGIN_DECLS int getopt_long (int, char *const *, const char *, const struct option *, int *)
 
int getopt_long_only (int, char *const *, const char *, const struct option *, int *)
 
int getopt (int, char *const *, const char *)
 

Variables

const vsf_linux_dynlib_mod_t __getopt_long_mod
 

Macro Definition Documentation

◆ __BEGIN_DECLS

#define __BEGIN_DECLS

◆ __END_DECLS

#define __END_DECLS

◆ no_argument

#define no_argument   0

◆ required_argument

#define required_argument   1

◆ optional_argument

#define optional_argument   2

◆ _GETOPT_DEFINED_

#define _GETOPT_DEFINED_

◆ getopt_ctx

#define getopt_ctx   ((struct __getopt_lib_ctx_t *)vsf_linux_dynlib_ctx_get(&__getopt_long_mod))

◆ opterr

#define opterr   (getopt_ctx->__opterr)

◆ optind

#define optind   (getopt_ctx->__optind)

◆ optopt

#define optopt   (getopt_ctx->__optopt)

◆ optarg

#define optarg   (getopt_ctx->__optarg)

◆ optreset

#define optreset   (getopt_ctx->__optreset)

Function Documentation

◆ getopt_long()

__BEGIN_DECLS int getopt_long ( int  ,
char *const *  ,
const char *  ,
const struct option ,
int *   
)

◆ getopt_long_only()

int getopt_long_only ( int  ,
char *const *  ,
const char *  ,
const struct option ,
int *   
)

◆ getopt()

int getopt ( int  ,
char *const *  ,
const char *   
)

Variable Documentation

◆ __getopt_long_mod

const vsf_linux_dynlib_mod_t __getopt_long_mod
extern