mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-23 11:20:07 +00:00
f17a42333f
sys/cdefs.h has a macro __ptr_t, which a few places in glibc use instead of void *. void * is a well-understood standard type for that purpose and in a post-C89 context there is no need for a macro for it; this patch changes those places to use void * directly instead. Unlike __long_double_t, __ptr_t is widely used outside glibc (or at least has many hits on codesearch.debian.net). I don't know how many of those uses would break if sys/cdefs.h ceased to define the macro, but there's enough risk that this patch leaves the definition and just removes the uses within glibc; removal of the definition can be considered separately if desired. Tested for x86_64, and with build-many-glibcs.py. * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t. (old_malloc_hook): Likewise. (old_memalign_hook): Likewise. (old_realloc_hook): Likewise. (struct hdr): Likewise. (flood): Likewise. (freehook): Likewise. (mallochook): Likewise. (memalignhook): Likewise. (reallochook): Likewise. (mprobe): Likewise. * malloc/mtrace.c (mallwatch): Likewise. (tr_old_free_hook): Likewise. (tr_old_malloc_hook): Likewise. (tr_old_realloc_hook): Likewise. (tr_old_memalign_hook): Likewise. (tr_where): Likewise. (lock_and_info): Likewise. (tr_freehook): Likewise. (tr_mallochook): Likewise. (tr_reallochook): Likewise. (tr_memalignhook): Likewise. * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise. * misc/mmap.c (__mmap): Likewise. * misc/mmap64.c (__mmap64): Likewise. * misc/mprotect.c (__mprotect): Likewise. * misc/msync.c (msync): Likewise. * misc/munmap.c (__munmap): Likewise. * posix/posix_madvise.c (posix_madvise): Likewise. * socket/send.c (__send): Likewise. * socket/sendto.c (__sendto): Likewise. * socket/setsockopt.c (__setsockopt): Likewise. * string/memcmp.c (__ptr_t): Remove macro. (MEMCMP): Use void * instead of ptr_t. * string/memrchr.c (__ptr_t): Remove macro. (__memrchr): Use void * instead of ptr_t. * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise. * sysdeps/mach/hurd/mmap.c (__mmap): Likewise. * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise. * sysdeps/mach/mprotect.c (__mprotect): Likewise. * sysdeps/mach/msync.c (msync): Likewise. * sysdeps/mach/munmap.c (__munmap): Likewise. * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag): Likewise. * sysdeps/posix/getcwd.c (__getcwd): Likewise. * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise. * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise. * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise. * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise. * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise. * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise. * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy): Likewise. * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise. * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise. * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise. * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise. * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise. * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise. * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise. * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise. * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy): Likewise. * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise. * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise. * sysdeps/tile/memcmp.c (__ptr_t): Remove macro. (MEMCMP): Use void * instead of ptr_t. * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise. * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise. |
||
---|---|---|
.. | ||
alarm.c | ||
clock_getres.c | ||
clock.c | ||
closedir.c | ||
ctermid.c | ||
cuserid.c | ||
dirfd.c | ||
dirstream.h | ||
dl-fileid.h | ||
dup2.c | ||
dup.c | ||
euidaccess.c | ||
fdopendir.c | ||
flock.c | ||
fpathconf.c | ||
gai_strerror-strs.h | ||
gai_strerror.c | ||
getaddrinfo.c | ||
getcwd.c | ||
getdtsz.c | ||
gethostname.c | ||
getpagesize.c | ||
gettimeofday.c | ||
isatty.c | ||
isfdtype.c | ||
killpg.c | ||
libc_fatal.c | ||
Makefile | ||
mkfifo.c | ||
mkfifoat.c | ||
nice.c | ||
open64.c | ||
opendir.c | ||
pathconf.c | ||
pause.c | ||
posix_fallocate64.c | ||
posix_fallocate.c | ||
pread64.c | ||
pread.c | ||
preadv2.c | ||
preadv64.c | ||
preadv64v2.c | ||
preadv_common.c | ||
preadv.c | ||
profil.c | ||
pwrite64.c | ||
pwrite.c | ||
pwritev2.c | ||
pwritev64.c | ||
pwritev64v2.c | ||
pwritev_common.c | ||
pwritev.c | ||
raise.c | ||
readdir_r.c | ||
readdir.c | ||
readv.c | ||
remove.c | ||
rename.c | ||
rewinddir.c | ||
seekdir.c | ||
shm_open.c | ||
shm_unlink.c | ||
shm-directory.c | ||
shm-directory.h | ||
sigblock.c | ||
sigignore.c | ||
sigintr.c | ||
signal.c | ||
sigpause.c | ||
sigset.c | ||
sigsetmask.c | ||
sigsuspend.c | ||
sigwait.c | ||
sleep.c | ||
spawni.c | ||
sprofil.c | ||
Subdirs | ||
sysconf.c | ||
system.c | ||
sysv_signal.c | ||
telldir.c | ||
tempname.c | ||
time.c | ||
timespec_get.c | ||
truncate.c | ||
ttyname_r.c | ||
ttyname.c | ||
ulimit.c | ||
usleep.c | ||
utime.c | ||
utimes.c | ||
wait3.c | ||
wait.c | ||
waitid.c | ||
writev.c |