mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Rename struct FILE to struct __FILE.
This commit is contained in:
parent
7098286b34
commit
3750de1f11
5 changed files with 13 additions and 13 deletions
|
@ -1,6 +1,6 @@
|
|||
/*******************************************************************************
|
||||
|
||||
Copyright(C) Jonas 'Sortie' Termansen 2011, 2012, 2013, 2014.
|
||||
Copyright(C) Jonas 'Sortie' Termansen 2011, 2012, 2013, 2014, 2015.
|
||||
|
||||
This file is part of the Sortix C Library.
|
||||
|
||||
|
@ -51,7 +51,7 @@ typedef __ssize_t ssize_t;
|
|||
|
||||
#ifndef __FILE_defined
|
||||
#define __FILE_defined
|
||||
typedef struct FILE FILE;
|
||||
typedef struct __FILE FILE;
|
||||
#endif
|
||||
|
||||
#define _FILE_REGISTERED (1<<0)
|
||||
|
@ -68,7 +68,7 @@ typedef struct FILE FILE;
|
|||
|
||||
/* Note stdio/stdio.cpp's declarations of stdin/stdout/stderr also needs to be
|
||||
changed if you make changes to this structure. */
|
||||
struct FILE
|
||||
struct __FILE
|
||||
{
|
||||
/* This is non-standard, but useful. If you allocate your own FILE and
|
||||
register it with fregister, feel free to use modify the following members
|
||||
|
@ -84,13 +84,13 @@ struct FILE
|
|||
off_t (*seek_func)(void* user, off_t offset, int whence);
|
||||
int (*fileno_func)(void* user);
|
||||
int (*close_func)(void* user);
|
||||
void (*free_func)(void* free_user, struct FILE* fp);
|
||||
void (*free_func)(void* free_user, FILE* fp);
|
||||
/* Application writers shouldn't use anything beyond this point. */
|
||||
pthread_mutex_t file_lock;
|
||||
int (*fflush_indirect)(FILE*);
|
||||
void (*buffer_free_indirect)(void*);
|
||||
struct FILE* prev;
|
||||
struct FILE* next;
|
||||
FILE* prev;
|
||||
FILE* next;
|
||||
int flags;
|
||||
int buffer_mode;
|
||||
size_t offset_input_buffer;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*******************************************************************************
|
||||
|
||||
Copyright(C) Jonas 'Sortie' Termansen 2013.
|
||||
Copyright(C) Jonas 'Sortie' Termansen 2013, 2015.
|
||||
|
||||
This file is part of the Sortix C Library.
|
||||
|
||||
|
@ -33,7 +33,7 @@ __BEGIN_DECLS
|
|||
|
||||
#ifndef __FILE_defined
|
||||
#define __FILE_defined
|
||||
typedef struct FILE FILE;
|
||||
typedef struct __FILE FILE;
|
||||
#endif
|
||||
|
||||
#ifndef __gid_t_defined
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*******************************************************************************
|
||||
|
||||
Copyright(C) Jonas 'Sortie' Termansen 2013.
|
||||
Copyright(C) Jonas 'Sortie' Termansen 2013, 2015.
|
||||
|
||||
This file is part of the Sortix C Library.
|
||||
|
||||
|
@ -33,7 +33,7 @@ __BEGIN_DECLS
|
|||
|
||||
#ifndef __FILE_defined
|
||||
#define __FILE_defined
|
||||
typedef struct FILE FILE;
|
||||
typedef struct __FILE FILE;
|
||||
#endif
|
||||
|
||||
#ifndef __gid_t_defined
|
||||
|
|
|
@ -73,7 +73,7 @@ typedef __ssize_t ssize_t;
|
|||
|
||||
#ifndef __FILE_defined
|
||||
#define __FILE_defined
|
||||
typedef struct FILE FILE;
|
||||
typedef struct __FILE FILE;
|
||||
#endif
|
||||
|
||||
#if __USE_SORTIX || 2008 <= __USE_POSIX
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*******************************************************************************
|
||||
|
||||
Copyright(C) Jonas 'Sortie' Termansen 2011, 2012, 2013, 2014.
|
||||
Copyright(C) Jonas 'Sortie' Termansen 2011, 2012, 2013, 2014, 2015.
|
||||
|
||||
This file is part of the Sortix C Library.
|
||||
|
||||
|
@ -71,7 +71,7 @@ typedef __off_t off_t;
|
|||
#if !(__USE_SORTIX || __USE_POSIX)
|
||||
/* Intentional namespace pollution due to ISO C stupidity: */
|
||||
#endif
|
||||
typedef struct FILE FILE;
|
||||
typedef struct __FILE FILE;
|
||||
#endif
|
||||
|
||||
#if __USE_SORTIX || 200809L <= __USE_POSIX
|
||||
|
|
Loading…
Add table
Reference in a new issue