mirror of
git://git.musl-libc.org/musl
synced 2025-01-15 03:11:21 +00:00
move stdio stuff that's not arch-specific out of bits
This commit is contained in:
parent
8894947ba2
commit
571312de5f
@ -1,17 +0,0 @@
|
|||||||
#define BUFSIZ 1024
|
|
||||||
|
|
||||||
#define FILENAME_MAX 4095
|
|
||||||
#define FOPEN_MAX 1000
|
|
||||||
#define TMP_MAX 10000
|
|
||||||
|
|
||||||
#define L_cuserid 20
|
|
||||||
#define L_tmpnam 20
|
|
||||||
|
|
||||||
#if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \
|
|
||||||
|| defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE)
|
|
||||||
#define L_ctermid 20
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE)
|
|
||||||
#define P_tmpdir "/tmp"
|
|
||||||
#endif
|
|
@ -1,10 +0,0 @@
|
|||||||
#define BUFSIZ 1024
|
|
||||||
|
|
||||||
#define FILENAME_MAX 4095
|
|
||||||
#define FOPEN_MAX 1000
|
|
||||||
#define TMP_MAX 10000
|
|
||||||
|
|
||||||
#define L_cuserid 20
|
|
||||||
#define L_ctermid 20
|
|
||||||
#define L_tmpnam 20
|
|
||||||
#define P_tmpdir "/tmp"
|
|
@ -38,7 +38,11 @@ extern "C" {
|
|||||||
#define _IOLBF 1
|
#define _IOLBF 1
|
||||||
#define _IONBF 2
|
#define _IONBF 2
|
||||||
|
|
||||||
#include <bits/stdio.h>
|
#define BUFSIZ 1024
|
||||||
|
#define FILENAME_MAX 4095
|
||||||
|
#define FOPEN_MAX 1000
|
||||||
|
#define TMP_MAX 10000
|
||||||
|
#define L_tmpnam 20
|
||||||
|
|
||||||
typedef union {
|
typedef union {
|
||||||
char __opaque[16];
|
char __opaque[16];
|
||||||
@ -136,14 +140,18 @@ ssize_t getdelim(char **, size_t *, int, FILE *);
|
|||||||
ssize_t getline(char **, size_t *, FILE *);
|
ssize_t getline(char **, size_t *, FILE *);
|
||||||
int renameat(int, const char *, int, const char *);
|
int renameat(int, const char *, int, const char *);
|
||||||
char *ctermid(char *);
|
char *ctermid(char *);
|
||||||
|
#define L_ctermid 20
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE)
|
#if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE)
|
||||||
|
#define P_tmpdir "/tmp"
|
||||||
char *tempnam(const char *, const char *);
|
char *tempnam(const char *, const char *);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(_GNU_SOURCE)
|
#if defined(_GNU_SOURCE)
|
||||||
|
#define L_cuserid 20
|
||||||
|
char *cuserid(char *);
|
||||||
#undef off64_t
|
#undef off64_t
|
||||||
#define off64_t off_t
|
#define off64_t off_t
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user