提交 75b919f1 编写于 作者: A arvinzzz

fix: iccarm形态使用工具链FILE结构体,不使用musl的,去除多余定义分支

close: #I5ISHP
Signed-off-by: Narvinzzz <zhaotianyu9@huawei.com>
Change-Id: Ia031b6e836a78108e2dd992135cda3d406577ee0
上级 00b747c7
......@@ -307,42 +307,6 @@ typedef struct { unsigned __attr[2]; } pthread_rwlockattr_t;
#define __DEFINED_pthread_rwlockattr_t
#endif
#if defined(__NEED_struct__IO_FILE) && !defined(__DEFINED_struct__IO_FILE)
struct _IO_FILE {
unsigned flags;
unsigned char *rpos, *rend;
int (*close)(struct _IO_FILE *);
unsigned char *wend, *wpos;
unsigned char *mustbezero_1;
unsigned char *wbase;
size_t (*read)(struct _IO_FILE *, unsigned char *, size_t);
size_t (*write)(struct _IO_FILE *, const unsigned char *, size_t);
off_t (*seek)(struct _IO_FILE *, off_t, int);
unsigned char *buf;
size_t buf_size;
struct _IO_FILE *prev, *next;
int fd;
int pipe_pid;
int mode;
void *lock;
int lbf;
void *cookie;
off_t off;
char *getln_buf;
void *mustbezero_2;
unsigned char *shend;
off_t shlim, shcnt;
struct __locale_struct *locale;
};
#define __DEFINED_struct__IO_FILE
#endif
#if defined(__NEED_FILE) && !defined(__DEFINED_FILE)
typedef struct _IO_FILE FILE;
#define __DEFINED_FILE
#endif
#if defined(__NEED___isoc_va_list) && !defined(__DEFINED___isoc_va_list)
typedef __builtin_va_list __isoc_va_list;
#define __DEFINED___isoc_va_list
......
......@@ -10,12 +10,11 @@ extern "C" {
#define __NEED_size_t
#define __NEED_gid_t
#include <bits/alltypes.h>
#ifdef _GNU_SOURCE
#define __NEED_FILE
#include <stdio.h>
#endif
#include <bits/alltypes.h>
struct group {
char *gr_name;
char *gr_passwd;
......
......@@ -5,8 +5,7 @@
extern "C" {
#endif
#define __NEED_FILE
#include <bits/alltypes.h>
#include <stdio.h>
#define MOUNTED "/etc/mtab"
......
......@@ -11,12 +11,12 @@ extern "C" {
#define __NEED_uid_t
#define __NEED_gid_t
#include <bits/alltypes.h>
#ifdef _GNU_SOURCE
#define __NEED_FILE
#include <stdio.h>
#endif
#include <bits/alltypes.h>
struct passwd {
char *pw_name;
char *pw_passwd;
......
......@@ -5,10 +5,10 @@
extern "C" {
#endif
#define __NEED_FILE
#define __NEED_size_t
#include <bits/alltypes.h>
#include <stdio.h>
#define SHADOW "/etc/shadow"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册