Remove declarations for things that don't exist.
The <grp.h> ones prevent gdb from building out of the box. Change-Id: I0efbffad2215cfcd75b4d442dfc972444b51d97c
This commit is contained in:
parent
2b591b3742
commit
f4c1a36a45
@ -43,10 +43,6 @@
|
|||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
#if __BSD_VISIBLE
|
|
||||||
#define _PATH_GROUP "/etc/group"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
struct group {
|
struct group {
|
||||||
char *gr_name; /* group name */
|
char *gr_name; /* group name */
|
||||||
char *gr_passwd; /* group password */
|
char *gr_passwd; /* group password */
|
||||||
@ -57,7 +53,7 @@ struct group {
|
|||||||
__BEGIN_DECLS
|
__BEGIN_DECLS
|
||||||
struct group *getgrgid(gid_t);
|
struct group *getgrgid(gid_t);
|
||||||
struct group *getgrnam(const char *);
|
struct group *getgrnam(const char *);
|
||||||
#if __BSD_VISIBLE || __POSIX_VISIBLE >= 200112 || __XPG_VISIBLE
|
#if __POSIX_VISIBLE >= 200112 || __XPG_VISIBLE
|
||||||
struct group *getgrent(void);
|
struct group *getgrent(void);
|
||||||
void setgrent(void);
|
void setgrent(void);
|
||||||
void endgrent(void);
|
void endgrent(void);
|
||||||
@ -66,11 +62,6 @@ int getgrgid_r(gid_t, struct group *, char *,
|
|||||||
int getgrnam_r(const char *, struct group *, char *,
|
int getgrnam_r(const char *, struct group *, char *,
|
||||||
size_t, struct group **);
|
size_t, struct group **);
|
||||||
#endif
|
#endif
|
||||||
#if __BSD_VISIBLE
|
|
||||||
void setgrfile(const char *);
|
|
||||||
int setgroupent(int);
|
|
||||||
char *group_from_gid(gid_t, int);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
int getgrouplist (const char *user, gid_t group,
|
int getgrouplist (const char *user, gid_t group,
|
||||||
gid_t *groups, int *ngroups);
|
gid_t *groups, int *ngroups);
|
||||||
|
@ -223,12 +223,6 @@ ssize_t getdelim(char ** __restrict, size_t * __restrict, int,
|
|||||||
FILE * __restrict);
|
FILE * __restrict);
|
||||||
ssize_t getline(char ** __restrict, size_t * __restrict, FILE * __restrict);
|
ssize_t getline(char ** __restrict, size_t * __restrict, FILE * __restrict);
|
||||||
|
|
||||||
#if __BSD_VISIBLE && !defined(__SYS_ERRLIST)
|
|
||||||
#define __SYS_ERRLIST
|
|
||||||
extern int sys_nerr; /* perror(3) external variables */
|
|
||||||
extern char *sys_errlist[];
|
|
||||||
#endif
|
|
||||||
|
|
||||||
void perror(const char *);
|
void perror(const char *);
|
||||||
int printf(const char * __restrict, ...)
|
int printf(const char * __restrict, ...)
|
||||||
__printflike(1, 2);
|
__printflike(1, 2);
|
||||||
@ -300,9 +294,6 @@ __END_DECLS
|
|||||||
#define L_ctermid 1024 /* size for ctermid(); PATH_MAX */
|
#define L_ctermid 1024 /* size for ctermid(); PATH_MAX */
|
||||||
|
|
||||||
__BEGIN_DECLS
|
__BEGIN_DECLS
|
||||||
#if 0 /* MISSING FROM BIONIC */
|
|
||||||
char *ctermid(char *);
|
|
||||||
#endif /* MISSING */
|
|
||||||
FILE *fdopen(int, const char *);
|
FILE *fdopen(int, const char *);
|
||||||
int fileno(FILE *);
|
int fileno(FILE *);
|
||||||
|
|
||||||
|
@ -169,10 +169,6 @@ extern size_t wcstombs(char *, const wchar_t *, size_t);
|
|||||||
|
|
||||||
#define MB_CUR_MAX 4U
|
#define MB_CUR_MAX 4U
|
||||||
|
|
||||||
#if 0 /* MISSING FROM BIONIC */
|
|
||||||
extern int on_exit(void (*)(int, void *), void *);
|
|
||||||
#endif /* MISSING */
|
|
||||||
|
|
||||||
__END_DECLS
|
__END_DECLS
|
||||||
|
|
||||||
#endif /* _STDLIB_H_ */
|
#endif /* _STDLIB_H_ */
|
||||||
|
@ -189,16 +189,6 @@ extern int cacheflush(long, long, long);
|
|||||||
extern pid_t tcgetpgrp(int fd);
|
extern pid_t tcgetpgrp(int fd);
|
||||||
extern int tcsetpgrp(int fd, pid_t _pid);
|
extern int tcsetpgrp(int fd, pid_t _pid);
|
||||||
|
|
||||||
#if 0 /* MISSING FROM BIONIC */
|
|
||||||
extern int execlpe(const char *, const char *, ...);
|
|
||||||
extern int getfsuid(uid_t);
|
|
||||||
extern int setfsuid(uid_t);
|
|
||||||
extern int getlogin_r(char* name, size_t namesize);
|
|
||||||
extern int sethostname(const char *, size_t);
|
|
||||||
extern int getdomainname(char *, size_t);
|
|
||||||
extern int setdomainname(const char *, size_t);
|
|
||||||
#endif /* MISSING */
|
|
||||||
|
|
||||||
/* Used to retry syscalls that can return EINTR. */
|
/* Used to retry syscalls that can return EINTR. */
|
||||||
#define TEMP_FAILURE_RETRY(exp) ({ \
|
#define TEMP_FAILURE_RETRY(exp) ({ \
|
||||||
__typeof__(exp) _rc; \
|
__typeof__(exp) _rc; \
|
||||||
|
@ -42,9 +42,6 @@ namespace std {
|
|||||||
using ::exit;
|
using ::exit;
|
||||||
using ::abort;
|
using ::abort;
|
||||||
using ::atexit;
|
using ::atexit;
|
||||||
#if 0 /* MISSING FROM BIONIC */
|
|
||||||
using ::on_exit;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
using ::getenv;
|
using ::getenv;
|
||||||
using ::putenv;
|
using ::putenv;
|
||||||
|
Loading…
Reference in New Issue
Block a user