ansification: remove _PTR

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
This commit is contained in:
Yaakov Selkowitz
2017-12-03 20:53:22 -06:00
parent 0403b9c8c4
commit e6321aa6a6
72 changed files with 228 additions and 230 deletions

View File

@ -9,7 +9,7 @@ ssize_t
_DEFUN (_pread_r, (rptr, fd, buf, n, off),
struct _reent *rptr,
int fd,
_PTR buf,
void *buf,
size_t n,
off_t off)
{
@ -35,7 +35,7 @@ _DEFUN (_pread_r, (rptr, fd, buf, n, off),
ssize_t
_DEFUN (__libc_pread, (fd, buf, n, off),
int fd,
_PTR buf,
void *buf,
size_t n,
off_t off)
{

View File

@ -32,7 +32,7 @@ Supporting OS subroutine required: <<read>>, <<lseek64>>.
ssize_t
_DEFUN (__libc_pread64, (fd, buf, n, off),
int fd,
_PTR buf,
void *buf,
size_t n,
loff_t off)
{

View File

@ -9,7 +9,7 @@ ssize_t
_DEFUN (_pwrite_r, (rptr, fd, buf, n, off),
struct _reent *rptr,
int fd,
const _PTR buf,
const void *buf,
size_t n,
off_t off)
{
@ -35,7 +35,7 @@ _DEFUN (_pwrite_r, (rptr, fd, buf, n, off),
ssize_t
_DEFUN (__libc_pwrite, (fd, buf, n, off),
int fd,
const _PTR buf,
const void *buf,
size_t n,
off_t off)
{

View File

@ -32,7 +32,7 @@ Supporting OS subroutine required: <<write>>, <<lseek64>>.
ssize_t
_DEFUN (__libc_pwrite64, (fd, buf, n, off),
int fd,
_PTR buf,
void *buf,
size_t n,
loff_t off)
{

View File

@ -30,7 +30,7 @@ ret func body
RTEMS_STUB(void *,malloc(size_t s), { return 0; })
RTEMS_STUB(void *,realloc(void* p, size_t s), { return 0; })
RTEMS_STUB(void, free(void* ptr), { })
RTEMS_STUB(_PTR, calloc(size_t s1, size_t s2), { return 0; })
RTEMS_STUB(void *, calloc(size_t s1, size_t s2), { return 0; })
RTEMS_STUB(int, posix_memalign(void **p, size_t si, size_t s2), { return -1; })
/* Stubs for routines from RTEMS <sys/lock.h> */
@ -186,10 +186,10 @@ RTEMS_STUB(int, issetugid (void), { return 0; })
#endif
/* stdlib.h */
RTEMS_STUB(_PTR, _realloc_r(struct _reent *r, _PTR p, size_t s), { return 0; })
RTEMS_STUB(_PTR, _calloc_r(struct _reent *r, size_t s1, size_t s2), { return 0; })
RTEMS_STUB(_PTR, _malloc_r(struct _reent * r, size_t s), { return 0; })
RTEMS_STUB(_VOID, _free_r(struct _reent *r, _PTR *p), { })
RTEMS_STUB(void *, _realloc_r(struct _reent *r, void *p, size_t s), { return 0; })
RTEMS_STUB(void *, _calloc_r(struct _reent *r, size_t s1, size_t s2), { return 0; })
RTEMS_STUB(void *, _malloc_r(struct _reent * r, size_t s), { return 0; })
RTEMS_STUB(_VOID, _free_r(struct _reent *r, void **p), { })
/* stubs for functions required by libc/stdlib */
RTEMS_STUB(void, __assert_func(const char *file, int line, const char *failedexpr), { })