Ignore:
Timestamp:
Nov 8, 2004, 2:06:04 AM (21 years ago)
Author:
bird
Message:

Updated some headers to 5.2/3 level.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/include/getopt.h

    • Property cvs2svn:cvs-rev changed from 1.6 to 1.7
    r1623 r1624  
    11/* getopt.h,v 1.6 2004/09/14 22:27:33 bird Exp */
    22/** @file
    3  * FreeBSD 5.1
    4  * @changed bird: Added two GNU apis for libiberty.
     3 * FreeBSD 5.2
     4 * @changed bird: Added one GNU api from libiberty.
    55 */
    66
    77/*      $NetBSD: getopt.h,v 1.4 2000/07/07 10:43:54 ad Exp $    */
    8 /*      $FreeBSD: src/include/getopt.h,v 1.1 2002/09/29 04:14:30 eric Exp $ */
     8/*      $FreeBSD: src/include/getopt.h,v 1.6 2004/02/24 08:09:20 ache Exp $ */
    99
    1010/*-
     
    4444 */
    4545
    46 
    4746#ifndef _GETOPT_H_
    4847#define _GETOPT_H_
    4948
    5049#include <sys/cdefs.h>
    51 #include <unistd.h>
    5250
    5351/*
    54  * Gnu like getopt_long() and BSD4.4 getsubopt()/optreset extensions
     52 * GNU-like getopt_long()/getopt_long_only() with 4.4BSD optreset extension.
     53 * getopt() is declared here too for GNU programs.
    5554 */
    56 #if !defined(_POSIX_SOURCE) && !defined(_XOPEN_SOURCE)
    5755#define no_argument        0
    5856#define required_argument  1
     
    7472
    7573__BEGIN_DECLS
    76 int getopt_long __P((int, char * const *, const char *,
    77     const struct option *, int *));
     74int     getopt_long(int, char * const *, const char *,
     75        const struct option *, int *);
     76int     getopt_long_only(int, char * const *, const char *,
     77        const struct option *, int *);
     78#ifndef _GETOPT_DECLARED
     79#define _GETOPT_DECLARED
     80int      getopt(int, char * const [], const char *);
    7881
    79 /* bird - start: these are provided thru libiberty. */
    80 int getopt_long_only __P((int argc, char *const *, const char *,
    81     const struct option *, int *));
     82extern char *optarg;                    /* getopt(3) external variables */
     83extern int optind, opterr, optopt;
     84#endif
     85#ifndef _OPTRESET_DECLARED
     86#define _OPTRESET_DECLARED
     87extern int optreset;                    /* getopt(3) external variable */
     88#endif
     89
     90/* bird - start: this is provided thru libiberty. */
    8291int _getopt_internal __P((int, char *const *, const char *,
    8392    const struct option *, int *, int));
     
    8594
    8695__END_DECLS
    87 #endif
    8896
    8997#endif /* !_GETOPT_H_ */
Note: See TracChangeset for help on using the changeset viewer.