LibC: Implement getopt_long{,_only}
Few ports attempt to use this so lets add them :D
This commit is contained in:
@@ -124,6 +124,8 @@ __BEGIN_DECLS
|
||||
#define __need_useconds_t
|
||||
#include <sys/types.h>
|
||||
|
||||
#include <bits/getopt.h>
|
||||
|
||||
enum
|
||||
{
|
||||
_CS_PATH = 1,
|
||||
@@ -547,7 +549,6 @@ long gethostid(void);
|
||||
int gethostname(char* name, size_t namelen);
|
||||
char* getlogin(void);
|
||||
int getlogin_r(char* name, size_t namesize);
|
||||
int getopt(int argc, char* const argv[], const char* optstring);
|
||||
pid_t getpgid(pid_t pid);
|
||||
pid_t getpgrp(void);
|
||||
pid_t getpid(void);
|
||||
@@ -600,9 +601,6 @@ int chroot(const char* path);
|
||||
int getpagesize(void);
|
||||
char* getpass(const char* prompt);
|
||||
|
||||
extern char* optarg;
|
||||
extern int opterr, optind, optopt;
|
||||
|
||||
long syscall(long syscall, ...);
|
||||
|
||||
__END_DECLS
|
||||
|
||||
Reference in New Issue
Block a user