aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/include
diff options
context:
space:
mode:
authorYaakov Selkowitz <yselkowi@redhat.com>2017-12-03 20:53:22 -0600
committerYaakov Selkowitz <yselkowi@redhat.com>2018-01-17 11:47:16 -0600
commite6321aa6a668376c40bc2792a3bd392e94c29ad6 (patch)
treefe4028a6278a7d3f49ff79f0e5150b49f225685f /newlib/libc/include
parent0403b9c8c40a351ba72f587add10669df225680b (diff)
downloadnewlib-e6321aa6a668376c40bc2792a3bd392e94c29ad6.zip
newlib-e6321aa6a668376c40bc2792a3bd392e94c29ad6.tar.gz
newlib-e6321aa6a668376c40bc2792a3bd392e94c29ad6.tar.bz2
ansification: remove _PTR
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Diffstat (limited to 'newlib/libc/include')
-rw-r--r--newlib/libc/include/_ansi.h2
-rw-r--r--newlib/libc/include/malloc.h34
-rw-r--r--newlib/libc/include/stdio.h56
-rw-r--r--newlib/libc/include/stdlib.h38
-rw-r--r--newlib/libc/include/string.h20
-rw-r--r--newlib/libc/include/sys/reent.h22
6 files changed, 85 insertions, 87 deletions
diff --git a/newlib/libc/include/_ansi.h b/newlib/libc/include/_ansi.h
index 5e2eac9..e955138 100644
--- a/newlib/libc/include/_ansi.h
+++ b/newlib/libc/include/_ansi.h
@@ -47,7 +47,6 @@
#endif
#ifdef _HAVE_STDC
-#define _PTR void *
#define _VOLATILE volatile
#define _SIGNED signed
#define _VOID void
@@ -69,7 +68,6 @@
#define _LONG_DOUBLE long double
#endif
#else
-#define _PTR char *
#define _VOLATILE
#define _SIGNED
#define _VOID void
diff --git a/newlib/libc/include/malloc.h b/newlib/libc/include/malloc.h
index b1e0a09..f9144cd 100644
--- a/newlib/libc/include/malloc.h
+++ b/newlib/libc/include/malloc.h
@@ -34,44 +34,44 @@ struct mallinfo {
/* The routines. */
-extern _PTR malloc (size_t);
+extern void *malloc (size_t);
#ifdef __CYGWIN__
#undef _malloc_r
#define _malloc_r(r, s) malloc (s)
#else
-extern _PTR _malloc_r (struct _reent *, size_t);
+extern void *_malloc_r (struct _reent *, size_t);
#endif
-extern _VOID free (_PTR);
+extern _VOID free (void *);
#ifdef __CYGWIN__
#undef _free_r
#define _free_r(r, p) free (p)
#else
-extern _VOID _free_r (struct _reent *, _PTR);
+extern _VOID _free_r (struct _reent *, void *);
#endif
-extern _PTR realloc (_PTR, size_t);
+extern void *realloc (void *, size_t);
#ifdef __CYGWIN__
#undef _realloc_r
#define _realloc_r(r, p, s) realloc (p, s)
#else
-extern _PTR _realloc_r (struct _reent *, _PTR, size_t);
+extern void *_realloc_r (struct _reent *, void *, size_t);
#endif
-extern _PTR calloc (size_t, size_t);
+extern void *calloc (size_t, size_t);
#ifdef __CYGWIN__
#undef _calloc_r
#define _calloc_r(r, s1, s2) calloc (s1, s2);
#else
-extern _PTR _calloc_r (struct _reent *, size_t, size_t);
+extern void *_calloc_r (struct _reent *, size_t, size_t);
#endif
-extern _PTR memalign (size_t, size_t);
+extern void *memalign (size_t, size_t);
#ifdef __CYGWIN__
#undef _memalign_r
#define _memalign_r(r, s1, s2) memalign (s1, s2);
#else
-extern _PTR _memalign_r (struct _reent *, size_t, size_t);
+extern void *_memalign_r (struct _reent *, size_t, size_t);
#endif
extern struct mallinfo mallinfo (void);
@@ -98,31 +98,31 @@ extern int mallopt (int, int);
extern int _mallopt_r (struct _reent *, int, int);
#endif
-extern size_t malloc_usable_size (_PTR);
+extern size_t malloc_usable_size (void *);
#ifdef __CYGWIN__
#undef _malloc_usable_size_r
#define _malloc_usable_size_r(r, p) malloc_usable_size (p)
#else
-extern size_t _malloc_usable_size_r (struct _reent *, _PTR);
+extern size_t _malloc_usable_size_r (struct _reent *, void *);
#endif
/* These aren't too useful on an embedded system, but we define them
anyhow. */
-extern _PTR valloc (size_t);
+extern void *valloc (size_t);
#ifdef __CYGWIN__
#undef _valloc_r
#define _valloc_r(r, s) valloc (s)
#else
-extern _PTR _valloc_r (struct _reent *, size_t);
+extern void *_valloc_r (struct _reent *, size_t);
#endif
-extern _PTR pvalloc (size_t);
+extern void *pvalloc (size_t);
#ifdef __CYGWIN__
#undef _pvalloc_r
#define _pvalloc_r(r, s) pvalloc (s)
#else
-extern _PTR _pvalloc_r (struct _reent *, size_t);
+extern void *_pvalloc_r (struct _reent *, size_t);
#endif
extern int malloc_trim (size_t);
@@ -159,7 +159,7 @@ extern _VOID _mstats_r (struct _reent *, char *);
#ifndef __CYGWIN__
/* Some systems provide this, so do too for compatibility. */
-extern void cfree (_PTR);
+extern void cfree (void *);
#endif /* __CYGWIN__ */
#ifdef __cplusplus
diff --git a/newlib/libc/include/stdio.h b/newlib/libc/include/stdio.h
index 9152bf0..fe0a318 100644
--- a/newlib/libc/include/stdio.h
+++ b/newlib/libc/include/stdio.h
@@ -220,8 +220,8 @@ int _EXFUN(putc, (int, FILE *));
int _EXFUN(putchar, (int));
int _EXFUN(puts, (const char *));
int _EXFUN(ungetc, (int, FILE *));
-size_t _EXFUN(fread, (_PTR __restrict, size_t _size, size_t _n, FILE *__restrict));
-size_t _EXFUN(fwrite, (const _PTR __restrict , size_t _size, size_t _n, FILE *));
+size_t _EXFUN(fread, (void *__restrict, size_t _size, size_t _n, FILE *__restrict));
+size_t _EXFUN(fwrite, (const void *__restrict , size_t _size, size_t _n, FILE *));
#ifdef _COMPILING_NEWLIB
int _EXFUN(fgetpos, (FILE *, _fpos_t *));
#else
@@ -434,8 +434,8 @@ int _EXFUN(_fputc_r, (struct _reent *, int, FILE *));
int _EXFUN(_fputc_unlocked_r, (struct _reent *, int, FILE *));
int _EXFUN(_fputs_r, (struct _reent *, const char *__restrict, FILE *__restrict));
int _EXFUN(_fputs_unlocked_r, (struct _reent *, const char *__restrict, FILE *__restrict));
-size_t _EXFUN(_fread_r, (struct _reent *, _PTR __restrict, size_t _size, size_t _n, FILE *__restrict));
-size_t _EXFUN(_fread_unlocked_r, (struct _reent *, _PTR __restrict, size_t _size, size_t _n, FILE *__restrict));
+size_t _EXFUN(_fread_r, (struct _reent *, void *__restrict, size_t _size, size_t _n, FILE *__restrict));
+size_t _EXFUN(_fread_unlocked_r, (struct _reent *, void *__restrict, size_t _size, size_t _n, FILE *__restrict));
int _EXFUN(_fscanf_r, (struct _reent *, FILE *__restrict, const char *__restrict, ...)
_ATTRIBUTE ((__format__ (__scanf__, 3, 4))));
int _EXFUN(_fseek_r, (struct _reent *, FILE *, long, int));
@@ -443,8 +443,8 @@ int _EXFUN(_fseeko_r,(struct _reent *, FILE *, _off_t, int));
long _EXFUN(_ftell_r, (struct _reent *, FILE *));
_off_t _EXFUN(_ftello_r,(struct _reent *, FILE *));
void _EXFUN(_rewind_r, (struct _reent *, FILE *));
-size_t _EXFUN(_fwrite_r, (struct _reent *, const _PTR __restrict, size_t _size, size_t _n, FILE *__restrict));
-size_t _EXFUN(_fwrite_unlocked_r, (struct _reent *, const _PTR __restrict, size_t _size, size_t _n, FILE *__restrict));
+size_t _EXFUN(_fwrite_r, (struct _reent *, const void *__restrict, size_t _size, size_t _n, FILE *__restrict));
+size_t _EXFUN(_fwrite_unlocked_r, (struct _reent *, const void *__restrict, size_t _size, size_t _n, FILE *__restrict));
int _EXFUN(_getc_r, (struct _reent *, FILE *));
int _EXFUN(_getc_unlocked_r, (struct _reent *, FILE *));
int _EXFUN(_getchar_r, (struct _reent *));
@@ -539,8 +539,8 @@ int _EXFUN(fileno_unlocked, (FILE *));
int _EXFUN(fflush_unlocked, (FILE *));
int _EXFUN(fgetc_unlocked, (FILE *));
int _EXFUN(fputc_unlocked, (int, FILE *));
-size_t _EXFUN(fread_unlocked, (_PTR __restrict, size_t _size, size_t _n, FILE *__restrict));
-size_t _EXFUN(fwrite_unlocked, (const _PTR __restrict , size_t _size, size_t _n, FILE *));
+size_t _EXFUN(fread_unlocked, (void *__restrict, size_t _size, size_t _n, FILE *__restrict));
+size_t _EXFUN(fwrite_unlocked, (const void *__restrict , size_t _size, size_t _n, FILE *));
#endif
#if __GNU_VISIBLE
@@ -583,35 +583,35 @@ int _EXFUN(__swbuf_r, (struct _reent *, int, FILE *));
#if __BSD_VISIBLE
# ifdef __LARGE64_FILES
-FILE *_EXFUN(funopen,(const _PTR __cookie,
- int (*__readfn)(_PTR __c, char *__buf,
+FILE *_EXFUN(funopen,(const void *__cookie,
+ int (*__readfn)(void *__c, char *__buf,
_READ_WRITE_BUFSIZE_TYPE __n),
- int (*__writefn)(_PTR __c, const char *__buf,
+ int (*__writefn)(void *__c, const char *__buf,
_READ_WRITE_BUFSIZE_TYPE __n),
- _fpos64_t (*__seekfn)(_PTR __c, _fpos64_t __off, int __whence),
- int (*__closefn)(_PTR __c)));
-FILE *_EXFUN(_funopen_r,(struct _reent *, const _PTR __cookie,
- int (*__readfn)(_PTR __c, char *__buf,
+ _fpos64_t (*__seekfn)(void *__c, _fpos64_t __off, int __whence),
+ int (*__closefn)(void *__c)));
+FILE *_EXFUN(_funopen_r,(struct _reent *, const void *__cookie,
+ int (*__readfn)(void *__c, char *__buf,
_READ_WRITE_BUFSIZE_TYPE __n),
- int (*__writefn)(_PTR __c, const char *__buf,
+ int (*__writefn)(void *__c, const char *__buf,
_READ_WRITE_BUFSIZE_TYPE __n),
- _fpos64_t (*__seekfn)(_PTR __c, _fpos64_t __off, int __whence),
- int (*__closefn)(_PTR __c)));
+ _fpos64_t (*__seekfn)(void *__c, _fpos64_t __off, int __whence),
+ int (*__closefn)(void *__c)));
# else
-FILE *_EXFUN(funopen,(const _PTR __cookie,
- int (*__readfn)(_PTR __cookie, char *__buf,
+FILE *_EXFUN(funopen,(const void *__cookie,
+ int (*__readfn)(void *__cookie, char *__buf,
_READ_WRITE_BUFSIZE_TYPE __n),
- int (*__writefn)(_PTR __cookie, const char *__buf,
+ int (*__writefn)(void *__cookie, const char *__buf,
_READ_WRITE_BUFSIZE_TYPE __n),
- fpos_t (*__seekfn)(_PTR __cookie, fpos_t __off, int __whence),
- int (*__closefn)(_PTR __cookie)));
-FILE *_EXFUN(_funopen_r,(struct _reent *, const _PTR __cookie,
- int (*__readfn)(_PTR __cookie, char *__buf,
+ fpos_t (*__seekfn)(void *__cookie, fpos_t __off, int __whence),
+ int (*__closefn)(void *__cookie)));
+FILE *_EXFUN(_funopen_r,(struct _reent *, const void *__cookie,
+ int (*__readfn)(void *__cookie, char *__buf,
_READ_WRITE_BUFSIZE_TYPE __n),
- int (*__writefn)(_PTR __cookie, const char *__buf,
+ int (*__writefn)(void *__cookie, const char *__buf,
_READ_WRITE_BUFSIZE_TYPE __n),
- fpos_t (*__seekfn)(_PTR __cookie, fpos_t __off, int __whence),
- int (*__closefn)(_PTR __cookie)));
+ fpos_t (*__seekfn)(void *__cookie, fpos_t __off, int __whence),
+ int (*__closefn)(void *__cookie)));
# endif /* !__LARGE64_FILES */
# define fropen(__cookie, __fn) funopen(__cookie, __fn, (int (*)())0, \
diff --git a/newlib/libc/include/stdlib.h b/newlib/libc/include/stdlib.h
index ac433db..7213a3c 100644
--- a/newlib/libc/include/stdlib.h
+++ b/newlib/libc/include/stdlib.h
@@ -54,7 +54,7 @@ typedef struct
#ifndef __compar_fn_t_defined
#define __compar_fn_t_defined
-typedef int (*__compar_fn_t) (const _PTR, const _PTR);
+typedef int (*__compar_fn_t) (const void *, const void *);
#endif
#define EXIT_FAILURE 1
@@ -82,15 +82,15 @@ int _EXFUN(atoi,(const char *__nptr));
int _EXFUN(_atoi_r,(struct _reent *, const char *__nptr));
long _EXFUN(atol,(const char *__nptr));
long _EXFUN(_atol_r,(struct _reent *, const char *__nptr));
-_PTR _EXFUN(bsearch,(const _PTR __key,
- const _PTR __base,
+void * _EXFUN(bsearch,(const void *__key,
+ const void *__base,
size_t __nmemb,
size_t __size,
__compar_fn_t _compar));
-_PTR _EXFUN_NOTHROW(calloc,(size_t __nmemb, size_t __size));
+void * _EXFUN_NOTHROW(calloc,(size_t __nmemb, size_t __size));
div_t _EXFUN(div,(int __numer, int __denom));
_VOID _EXFUN(exit,(int __status) _ATTRIBUTE ((__noreturn__)));
-_VOID _EXFUN_NOTHROW(free,(_PTR));
+_VOID _EXFUN_NOTHROW(free,(void *));
char * _EXFUN(getenv,(const char *__string));
char * _EXFUN(_getenv_r,(struct _reent *, const char *__string));
char * _EXFUN(_findenv,(const char *, int *));
@@ -101,7 +101,7 @@ int _EXFUN(getsubopt,(char **, char * const *, char **));
#endif
long _EXFUN(labs,(long));
ldiv_t _EXFUN(ldiv,(long __numer, long __denom));
-_PTR _EXFUN_NOTHROW(malloc,(size_t __size));
+void * _EXFUN_NOTHROW(malloc,(size_t __size));
int _EXFUN(mblen,(const char *, size_t));
int _EXFUN(_mblen_r,(struct _reent *, const char *, size_t, _mbstate_t *));
int _EXFUN(mbtowc,(wchar_t *__restrict, const char *__restrict, size_t));
@@ -136,13 +136,13 @@ int _EXFUN(_mkostemps_r, (struct _reent *, char *, int, int));
int _EXFUN(_mkstemp_r, (struct _reent *, char *));
int _EXFUN(_mkstemps_r, (struct _reent *, char *, int));
char * _EXFUN(_mktemp_r, (struct _reent *, char *) _ATTRIBUTE ((__deprecated__("the use of `mktemp' is dangerous; use `mkstemp' instead"))));
-_VOID _EXFUN(qsort,(_PTR __base, size_t __nmemb, size_t __size, __compar_fn_t _compar));
+_VOID _EXFUN(qsort,(void *__base, size_t __nmemb, size_t __size, __compar_fn_t _compar));
int _EXFUN(rand,(_VOID));
-_PTR _EXFUN_NOTHROW(realloc,(_PTR __r, size_t __size));
+void * _EXFUN_NOTHROW(realloc,(void *__r, size_t __size));
#if __BSD_VISIBLE
void *reallocarray(void *, size_t, size_t) __result_use_check __alloc_size(2)
__alloc_size(3);
-_PTR _EXFUN(reallocf,(_PTR __r, size_t __size));
+void * _EXFUN(reallocf,(void *__r, size_t __size));
#endif
#if __BSD_VISIBLE || __XSI_VISIBLE >= 4
char * _EXFUN(realpath, (const char *__restrict path, char *__restrict resolved_path));
@@ -193,7 +193,7 @@ char * _EXFUN(l64a,(long __input));
char * _EXFUN(_l64a_r,(struct _reent *,long __input));
#endif
#if __MISC_VISIBLE
-int _EXFUN(on_exit,(_VOID (*__func)(int, _PTR),_PTR __arg));
+int _EXFUN(on_exit,(_VOID (*__func)(int, void *),void *__arg));
#endif
#if __ISO_C_VISIBLE >= 1999
_VOID _EXFUN(_Exit,(int __status) _ATTRIBUTE ((__noreturn__)));
@@ -202,7 +202,7 @@ _VOID _EXFUN(_Exit,(int __status) _ATTRIBUTE ((__noreturn__)));
int _EXFUN(putenv,(char *__string));
#endif
int _EXFUN(_putenv_r,(struct _reent *, char *__string));
-_PTR _EXFUN(_reallocf_r,(struct _reent *, _PTR, size_t));
+void * _EXFUN(_reallocf_r,(struct _reent *, void *, size_t));
#if __BSD_VISIBLE || __POSIX_VISIBLE >= 200112
int _EXFUN(setenv,(const char *__string, const char *__value, int __overwrite));
#endif
@@ -273,7 +273,7 @@ unsigned long long _EXFUN(_strtoull_r,(struct _reent *, const char *__restrict _
#ifndef __CYGWIN__
#if __MISC_VISIBLE
-_VOID _EXFUN(cfree,(_PTR));
+_VOID _EXFUN(cfree,(void *));
#endif
#if __BSD_VISIBLE || __POSIX_VISIBLE >= 200112
int _EXFUN(unsetenv,(const char *__string));
@@ -287,10 +287,10 @@ int _EXFUN(__nonnull ((1)) posix_memalign,(void **, size_t, size_t));
char * _EXFUN(_dtoa_r,(struct _reent *, double, int, int, int *, int*, char**));
#ifndef __CYGWIN__
-_PTR _EXFUN_NOTHROW(_malloc_r,(struct _reent *, size_t));
-_PTR _EXFUN_NOTHROW(_calloc_r,(struct _reent *, size_t, size_t));
-_VOID _EXFUN_NOTHROW(_free_r,(struct _reent *, _PTR));
-_PTR _EXFUN_NOTHROW(_realloc_r,(struct _reent *, _PTR, size_t));
+void * _EXFUN_NOTHROW(_malloc_r,(struct _reent *, size_t));
+void * _EXFUN_NOTHROW(_calloc_r,(struct _reent *, size_t, size_t));
+_VOID _EXFUN_NOTHROW(_free_r,(struct _reent *, void *));
+void * _EXFUN_NOTHROW(_realloc_r,(struct _reent *, void *, size_t));
_VOID _EXFUN(_mstats_r,(struct _reent *, char *));
#endif
int _EXFUN(_system_r,(struct _reent *, const char *));
@@ -302,13 +302,13 @@ _VOID _EXFUN(__eprintf,(const char *, const char *, unsigned int, const char *))
version. We want that #undef qsort_r will still let you
invoke the underlying function, but that requires gcc support. */
#if __GNU_VISIBLE
-_VOID _EXFUN(qsort_r,(_PTR __base, size_t __nmemb, size_t __size, int (*_compar)(const _PTR, const _PTR, _PTR), _PTR __thunk));
+_VOID _EXFUN(qsort_r,(void *__base, size_t __nmemb, size_t __size, int (*_compar)(const void *, const void *, void *), void *__thunk));
#elif __BSD_VISIBLE
# ifdef __GNUC__
-_VOID _EXFUN(qsort_r,(_PTR __base, size_t __nmemb, size_t __size, _PTR __thunk, int (*_compar)(_PTR, const _PTR, const _PTR)))
+_VOID _EXFUN(qsort_r,(void *__base, size_t __nmemb, size_t __size, void *__thunk, int (*_compar)(void *, const void *, const void *)))
__asm__ (__ASMNAME ("__bsd_qsort_r"));
# else
-_VOID _EXFUN(__bsd_qsort_r,(_PTR __base, size_t __nmemb, size_t __size, _PTR __thunk, int (*_compar)(_PTR, const _PTR, const _PTR)));
+_VOID _EXFUN(__bsd_qsort_r,(void *__base, size_t __nmemb, size_t __size, void *__thunk, int (*_compar)(void *, const void *, const void *)));
# define qsort_r __bsd_qsort_r
# endif
#endif
diff --git a/newlib/libc/include/string.h b/newlib/libc/include/string.h
index b54b833..e44ac30 100644
--- a/newlib/libc/include/string.h
+++ b/newlib/libc/include/string.h
@@ -26,11 +26,11 @@
_BEGIN_STD_C
-_PTR _EXFUN(memchr,(const _PTR, int, size_t));
-int _EXFUN(memcmp,(const _PTR, const _PTR, size_t));
-_PTR _EXFUN(memcpy,(_PTR __restrict, const _PTR __restrict, size_t));
-_PTR _EXFUN(memmove,(_PTR, const _PTR, size_t));
-_PTR _EXFUN(memset,(_PTR, int, size_t));
+void * _EXFUN(memchr,(const void *, int, size_t));
+int _EXFUN(memcmp,(const void *, const void *, size_t));
+void * _EXFUN(memcpy,(void *__restrict, const void *__restrict, size_t));
+void * _EXFUN(memmove,(void *, const void *, size_t));
+void * _EXFUN(memset,(void *, int, size_t));
char *_EXFUN(strcat,(char *__restrict, const char *__restrict));
char *_EXFUN(strchr,(const char *, int));
int _EXFUN(strcmp,(const char *, const char *));
@@ -64,13 +64,13 @@ int _EXFUN(timingsafe_bcmp,(const void *, const void *, size_t));
int _EXFUN(timingsafe_memcmp,(const void *, const void *, size_t));
#endif
#if __MISC_VISIBLE || __POSIX_VISIBLE
-_PTR _EXFUN(memccpy,(_PTR __restrict, const _PTR __restrict, int, size_t));
+void * _EXFUN(memccpy,(void *__restrict, const void *__restrict, int, size_t));
#endif
#if __GNU_VISIBLE
-_PTR _EXFUN(mempcpy,(_PTR, const _PTR, size_t));
-_PTR _EXFUN(memmem, (const _PTR, size_t, const _PTR, size_t));
-_PTR _EXFUN(memrchr,(const _PTR, int, size_t));
-_PTR _EXFUN(rawmemchr,(const _PTR, int));
+void * _EXFUN(mempcpy,(void *, const void *, size_t));
+void * _EXFUN(memmem, (const void *, size_t, const void *, size_t));
+void * _EXFUN(memrchr,(const void *, int, size_t));
+void * _EXFUN(rawmemchr,(const void *, int));
#endif
#if __POSIX_VISIBLE >= 200809
char *_EXFUN(stpcpy,(char *__restrict, const char *__restrict));
diff --git a/newlib/libc/include/sys/reent.h b/newlib/libc/include/sys/reent.h
index aa352dc..1381db6 100644
--- a/newlib/libc/include/sys/reent.h
+++ b/newlib/libc/include/sys/reent.h
@@ -192,15 +192,15 @@ struct __sFILE {
#endif
/* operations */
- _PTR _cookie; /* cookie passed to io functions */
+ void * _cookie; /* cookie passed to io functions */
- _READ_WRITE_RETURN_TYPE _EXFNPTR(_read, (struct _reent *, _PTR,
+ _READ_WRITE_RETURN_TYPE _EXFNPTR(_read, (struct _reent *, void *,
char *, _READ_WRITE_BUFSIZE_TYPE));
- _READ_WRITE_RETURN_TYPE _EXFNPTR(_write, (struct _reent *, _PTR,
+ _READ_WRITE_RETURN_TYPE _EXFNPTR(_write, (struct _reent *, void *,
const char *,
_READ_WRITE_BUFSIZE_TYPE));
- _fpos_t _EXFNPTR(_seek, (struct _reent *, _PTR, _fpos_t, int));
- int _EXFNPTR(_close, (struct _reent *, _PTR));
+ _fpos_t _EXFNPTR(_seek, (struct _reent *, void *, _fpos_t, int));
+ int _EXFNPTR(_close, (struct _reent *, void *));
/* separate buffer for long sequences of ungetc() */
struct __sbuf _ub; /* ungetc buffer */
@@ -248,15 +248,15 @@ struct __sFILE64 {
struct _reent *_data;
/* operations */
- _PTR _cookie; /* cookie passed to io functions */
+ void * _cookie; /* cookie passed to io functions */
- _READ_WRITE_RETURN_TYPE _EXFNPTR(_read, (struct _reent *, _PTR,
+ _READ_WRITE_RETURN_TYPE _EXFNPTR(_read, (struct _reent *, void *,
char *, _READ_WRITE_BUFSIZE_TYPE));
- _READ_WRITE_RETURN_TYPE _EXFNPTR(_write, (struct _reent *, _PTR,
+ _READ_WRITE_RETURN_TYPE _EXFNPTR(_write, (struct _reent *, void *,
const char *,
_READ_WRITE_BUFSIZE_TYPE));
- _fpos_t _EXFNPTR(_seek, (struct _reent *, _PTR, _fpos_t, int));
- int _EXFNPTR(_close, (struct _reent *, _PTR));
+ _fpos_t _EXFNPTR(_seek, (struct _reent *, void *, _fpos_t, int));
+ int _EXFNPTR(_close, (struct _reent *, void *));
/* separate buffer for long sequences of ungetc() */
struct __sbuf _ub; /* ungetc buffer */
@@ -275,7 +275,7 @@ struct __sFILE64 {
int _flags2; /* for future use */
_off64_t _offset; /* current lseek offset */
- _fpos64_t _EXFNPTR(_seek64, (struct _reent *, _PTR, _fpos64_t, int));
+ _fpos64_t _EXFNPTR(_seek64, (struct _reent *, void *, _fpos64_t, int));
#ifndef __SINGLE_THREAD__
_flock_t _lock; /* for thread-safety locking */