OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [newlib-1.18.0/] [newlib/] [libc/] [sys/] [linux/] [include/] [getopt.h] - Blame information for rev 859

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 207 jeremybenn
/* libc/sys/linux/include/getopt.h - Extended command line parsing */
2
 
3
/* Written 2000 by Werner Almesberger */
4
 
5
 
6
#ifndef _NEWLIB_GETOPT_H
7
#define _NEWLIB_GETOPT_H
8
 
9
#include <unistd.h>
10
 
11
enum { NO_ARG, REQUIRED_ARG, OPTIONAL_ARG };
12
/* Define glibc names as well for compatibility.  */
13
#define no_argument NO_ARG
14
#define required_argument REQUIRED_ARG
15
#define optional_argument OPTIONAL_ARG
16
 
17
struct option {
18
    const char *name;
19
    int has_arg;
20
    int *flag;
21
    int val;
22
};
23
 
24
int getopt_long(int argc,char *const argv[],const char *optstring,
25
  const struct option *longopts,int *longindex);
26
 
27
int getopt_long_only(int argc,char *const argv[],const char *optstring,
28
  const struct option *longopts,int *longindex);
29
 
30
#endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.