mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-21 01:12:26 +08:00
63eb8df85a
Presently sys/sysmacros.h is entirely defined in sysdeps. This would mean that the deprecation logic coming up in the next patch would have to be written twice (in generic/ and unix/sysv/linux/). To avoid that, hoist all but the unavoidably system-dependent logic to misc/, leaving a bits/ header behind. This also promotes the Linux-specific encoding of dev_t, which accommodates 32-bit major and minor numbers in a 64-bit dev_t, to generic, as glibc's dev_t is always 64 bits wide. The former Linux implementation used inline functions to avoid evaluating arguments more than once. After this change, all platforms use inline functions, which means that three new symbols are added to the generic ABI. (These symbols are in the user namespace, which is how they have always been on Linux. They begin with "gnu_dev_", so collisions with user code are pretty unlikely.) New ports henceforth need only provide a bits/sysmacros.h defining internal macros __SYSMACROS_{DECLARE,DEFINE}_{MAJOR,MINOR,MAKEDEV}. This is only necessary if the kernel encoding is incompatible with the now-generic encoding (for instance, it would be necessary for FreeBSD). While I was at it, I added a basic round-trip test for these functions. * sysdeps/generic/sys/sysmacros.h: Delete file. * sysdeps/unix/sysv/linux/makedev.c: Delete file. * sysdeps/unix/sysv/linux/sys/sysmacros.h: Move file ... * bits/sysmacros.h: ... here; this encoding is now the generic encoding. Now defines only the following macros: __SYSMACROS_DECLARE_MAJOR, __SYSMACROS_DEFINE_MAJOR, __SYSMACROS_DECLARE_MINOR, __SYSMACROS_DEFINE_MINOR, __SYSMACROS_DECLARE_MAKEDEV, __SYSMACROS_DEFINE_MAKEDEV. * misc/sys/sysmacros.h, misc/makedev.c: New files that use bits/sysmacros.h and the above new macros to generate the public implementations of major, minor, and makedev. * misc/tst-makedev.c: New test. * include/sys/sysmacros.h: New wrapper. * misc/Makefile (headers): Add sys/sysmacros.h, bits/sysmacros.h. (routines): Add makedev. (tests): Add tst-makedev. * misc/Versions [GLIBC_2.25]: Add gnu_dev_major, gnu_dev_minor, gnu_dev_makedev. * posix/Makefile (headers): Remove sys/sysmacros.h. * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove makedev. * sysdeps/arm/nacl/libc.abilist: Add GLIBC_2.25, gnu_dev_major, gnu_dev_makedev, gnu_dev_minor. * sysdeps/unix/sysv/linux/aarch64/libc.abilist * sysdeps/unix/sysv/linux/alpha/libc.abilist * sysdeps/unix/sysv/linux/arm/libc.abilist * sysdeps/unix/sysv/linux/hppa/libc.abilist * sysdeps/unix/sysv/linux/i386/libc.abilist * sysdeps/unix/sysv/linux/ia64/libc.abilist * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist * sysdeps/unix/sysv/linux/microblaze/libc.abilist * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist * sysdeps/unix/sysv/linux/nios2/libc.abilist * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist * sysdeps/unix/sysv/linux/sh/libc.abilist * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Add GLIBC_2.25.
165 lines
2.9 KiB
Plaintext
165 lines
2.9 KiB
Plaintext
libc {
|
|
GLIBC_2.0 {
|
|
# global variables
|
|
___brk_addr; __curbrk; __progname; __progname_full;
|
|
|
|
# interface of malloc functions
|
|
__sbrk; __getpagesize;
|
|
|
|
# functions used in other libraries
|
|
__select;
|
|
|
|
# variables in normal name space
|
|
error_message_count; error_one_per_line; error_print_progname;
|
|
|
|
# variables in normal name space
|
|
loc1; loc2; locs;
|
|
program_invocation_name; program_invocation_short_name;
|
|
|
|
# a*
|
|
acct; addmntent; advance;
|
|
|
|
# b*
|
|
brk;
|
|
|
|
# c*
|
|
chflags; chroot; closelog;
|
|
|
|
# d*
|
|
daemon; dirname;
|
|
|
|
# e*
|
|
ecvt; ecvt_r; endfsent; endmntent; endttyent; endusershell;
|
|
|
|
# e*
|
|
err; error; error_at_line; errx;
|
|
|
|
# f*
|
|
fchflags; fcvt; fcvt_r; fdatasync; fsync; ftruncate;
|
|
|
|
# g*
|
|
gcvt; get_avphys_pages; get_nprocs; get_nprocs_conf; get_phys_pages;
|
|
getfsent; getfsfile; getfsspec; gethostid; gethostname; getmntent;
|
|
getmntent_r; getpagesize; getpass; getttyent; getttynam; getusershell;
|
|
gtty;
|
|
|
|
# h*
|
|
hasmntopt; hcreate; hcreate_r; hdestroy; hdestroy_r; hsearch; hsearch_r;
|
|
|
|
# i*
|
|
insque; ioctl;
|
|
|
|
# j*
|
|
jrand48; jrand48_r; lfind; lsearch;
|
|
|
|
# m*
|
|
madvise; mkstemp; mktemp; mlock; mlockall; mmap; mount; mprotect; msync;
|
|
munlock; munlockall; munmap;
|
|
|
|
# o*
|
|
openlog;
|
|
|
|
# p*
|
|
ptrace;
|
|
|
|
# q*
|
|
qecvt; qecvt_r; qfcvt; qfcvt_r; qgcvt;
|
|
|
|
# r*
|
|
readv; reboot; remque; revoke;
|
|
|
|
# s*
|
|
sbrk; select; setdomainname; setfsent; sethostent; sethostid; sethostname;
|
|
setlogmask; setmntent; setregid; setreuid; setttyent; setusershell; sstk;
|
|
stty; sync; syscall; syslog;
|
|
|
|
# t*
|
|
tdelete; tfind; truncate; tsearch; ttyslot; twalk;
|
|
|
|
# u*
|
|
ualarm; usleep; ustat; utimes;
|
|
|
|
# v*
|
|
verr; verrx; vhangup; vsyslog; vwarn; vwarnx;
|
|
|
|
# w*
|
|
warn; warnx;
|
|
|
|
# w*
|
|
writev;
|
|
}
|
|
GLIBC_2.1 {
|
|
# f*
|
|
ftruncate64;
|
|
|
|
# m*
|
|
mmap64;
|
|
|
|
# t*
|
|
tdestroy; truncate64;
|
|
}
|
|
GLIBC_2.2 {
|
|
# g*
|
|
getloadavg;
|
|
|
|
# m*
|
|
mincore; mkdtemp; mkstemp64;
|
|
|
|
# p*
|
|
posix_madvise;
|
|
}
|
|
GLIBC_2.3 {
|
|
# f*
|
|
fgetxattr; flistxattr; fremovexattr; fsetxattr;
|
|
futimes;
|
|
|
|
# g*
|
|
getxattr;
|
|
|
|
# l*
|
|
listxattr;
|
|
lgetxattr; llistxattr; lremovexattr; lsetxattr;
|
|
lutimes;
|
|
|
|
# r*
|
|
removexattr;
|
|
|
|
# s*
|
|
setxattr;
|
|
}
|
|
GLIBC_2.3.3 {
|
|
remap_file_pages;
|
|
}
|
|
GLIBC_2.4 {
|
|
futimesat;
|
|
__syslog_chk; __vsyslog_chk;
|
|
}
|
|
GLIBC_2.7 {
|
|
mkostemp; mkostemp64;
|
|
}
|
|
GLIBC_2.10 {
|
|
preadv; preadv64; pwritev; pwritev64;
|
|
}
|
|
GLIBC_2.11 {
|
|
mkstemps; mkstemps64; mkostemps; mkostemps64;
|
|
}
|
|
GLIBC_2.14 {
|
|
syncfs;
|
|
}
|
|
GLIBC_2.16 {
|
|
__getauxval; getauxval;
|
|
}
|
|
GLIBC_2.23 {
|
|
# SHLIB_COMPAT(GLIBC_2_0, GLIBC_2_23) used in regexp.c
|
|
}
|
|
GLIBC_2.25 {
|
|
gnu_dev_major; gnu_dev_minor; gnu_dev_makedev;
|
|
}
|
|
GLIBC_PRIVATE {
|
|
__madvise;
|
|
__mktemp;
|
|
__libc_ifunc_impl_list;
|
|
__tdelete; __tfind; __tsearch; __twalk;
|
|
}
|
|
}
|