Update libc

This commit is contained in:
Alex
2023-05-06 05:16:32 +03:00
parent cbbd3d0456
commit 78cfe17749
7 changed files with 90 additions and 29 deletions

View File

@ -16,9 +16,31 @@
*/
#define EOF (-1)
struct _IO_marker
{
struct _IO_marker *_next;
struct _IO_FILE *_sbuf;
int _pos;
};
struct _IO_FILE
{
size_t offset;
int _flags;
char *_IO_read_ptr;
char *_IO_read_end;
char *_IO_read_base;
char *_IO_write_base;
char *_IO_write_ptr;
char *_IO_write_end;
char *_IO_buf_base;
char *_IO_buf_end;
__off_t _offset;
struct _IO_marker *_markers;
struct _IO_FILE *_chain;
int _fileno;
void *KernelPrivate;
};

View File

@ -1,15 +1,15 @@
#ifndef _SYS_STAT_H
#define _SYS_STAT_H
typedef unsigned int _dev_t;
typedef unsigned short _ino_t;
typedef unsigned short _mode_t;
typedef long _off_t;
typedef unsigned int __dev_t;
typedef unsigned short __ino_t;
typedef unsigned short __mode_t;
typedef long __off_t;
#define dev_t _dev_t
#define ino_t _ino_t
#define mode_t _mode_t
#define off_t _off_t
#define dev_t __dev_t
#define ino_t __ino_t
#define mode_t __mode_t
#define off_t __off_t
int mkdir(const char *path, mode_t mode);
int remove(const char *pathname);