summaryrefslogtreecommitdiff
path: root/libc/tools/bionic_utils.py
AgeCommit message (Collapse)Author
2014-08-20Clean up some of our python scripts.Elliott Hughes
Change-Id: Ifa75345db43434298cfb6113fbe2f7a33b88c79d
2014-02-18Implement some of the missing LFS64 support.Elliott Hughes
This gives us: * <dirent.h> struct dirent64 readdir64, readdir64_r, alphasort64, scandir64 * <fcntl.h> creat64, openat64, open64. * <sys/stat.h> struct stat64 fstat64, fstatat64, lstat64, stat64. * <sys/statvfs.h> struct statvfs64 statvfs64, fstatvfs64. * <sys/vfs.h> struct statfs64 statfs64, fstatfs64. This also removes some of the incorrect #define hacks we've had in the past (for stat64, for example, which we promised to clean up way back in bug 8472078). Bug: 11865851 Bug: 8472078 Change-Id: Ia46443521918519f2dfa64d4621027dfd13ac566
2014-02-06[MIPS64] Add syscall related filesChris Dearman
Change-Id: I2f5d05df0e767538a6fe467ca0a2386325f8b71f Signed-off-by: Chris Dearman <chris.dearman@imgtec.com> Signed-off-by: Raghu Gandham <raghu.gandham@imgtec.com> Signed-off-by: Duane Sand <duane.sand@imgtec.com>
2014-01-23bionic: rename aarch64 target to arm64Colin Cross
Rename aarch64 build targets to arm64. The gcc toolchain is still aarch64. Change-Id: Ia92d8a50824e5329cf00fd6f4f92eae112b7f3a3
2013-10-28AArch64: Add support for AArch64 to the syscall interfaceSerban Constantinescu
This patch adds support for AArch64 to the syscall interface. The kernel implementation exports a set of canonical syscalls, therefore some of the userspace exported syscalls are implemented as stubs based on the canonical set. Change-Id: Ia965d71e97769b8be9d7655193fc40303964c4df Signed-off-by: Serban Constantinescu <serban.constantinescu@arm.com>
2013-10-15Remove support for the useless 'custom' option in SYSCALLS.TXT.Elliott Hughes
This cruft dates from a time when bionic would only output syscall contants for the syscalls mentioned in SYSCALLS.TXT. I fixed that a long time ago, but never followed through with the removal of what was then confusingly called "stub" and was recently renamed "custom". Change-Id: I8f3872a200b2dc8325e357cc5ee505ea4212ef95
2013-10-07Add an optional alias list to SYSCALLS.TXTH.J. Lu
This patch adds an optional alias list to SYSCALLS.TXT. It is used to create aliases for a syscall. For x86-64, lseek64 is an alias for lseek. Change-Id: Icb11fd2bb461ea4f5f0a26bfc585471d7d7cc468 Signed-off-by: H.J. Lu <hjl.tools@gmail.com> Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
2013-10-01x86_64: Add x86_64 syscalls and tune gen scripts for x86_64Pavel Chupin
* Tune syscall stubs generator for 4th target: x86_64 * Update SYSCALLS.TXT with x86_64 syscalls: - Most of the x86 syscalls are equally supported - *32 syscalls are not supported on 64-bit - *64 syscalls are replaced accordingly without 64 suffix - Some syscalls are not supported, replaced with x86_64 analog Syscalls are regenerated as separate patch for review convenience. Change-Id: I4ea2e0f13759b0aa61f05208ca68da8d6bc7c048 Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
2013-09-26Make it easier to add syscalls for another architecture.Elliott Hughes
Much of the per-architecture duplication can be removed, so let's do so before we add the 64-bit architectures. Change-Id: Ieb796503c8e5353ea38c3bab768bb9a690c9a767
2013-09-24Simplify the SYSCALLS.TXT format.Elliott Hughes
This will make addition of new architectures less unpleasant. Change-Id: I77c866a63b686e8e70709d08fcf52e8a2d37310a
2013-06-17Slight script cleanup; make gensyscalls work from any directory.Elliott Hughes
Also remove a ton of dead code. Change-Id: I1315623695a004f643b155f121cbafe24b715b8a
2013-01-30Clean up trailing whitespace in the kernel headers.Elliott Hughes
And fix the scripts so they stop letting trailing whitespace through. Change-Id: Ie109fbe1f63321e565ba0fa60fee8e9cf3a61cfc
2012-05-09[MIPS] Add support for MIPS syscallsRaghu Gandham
Change-Id: I4deba67e15c865c4c2db03064c04098a09828ea6 Signed-off-by: Raghu Gandham <raghu@mips.com> Signed-off-by: Chris Dearman <chris@mips.com>
2012-01-31remove obsolete SuperH supportDavid 'Digit' Turner
We don't have a toolchain anymore, we don't have working original kernel headers, and nobody is maintaining this so there is really no point in keeping this here. Details of the patch: - removed code paths from Android.mk files related to the SuperH architecture ("sh") - removed libc/arch-sh, linker/arch-sh, libc/kernel/arch-sh - simplified libc/SYSCALLS.TXT - simplified the scripts in libc/tools/ and libc/kernel/tools Change-Id: I26b0e1422bdc347489e4573e2fbec0e402f75560 Signed-off-by: David 'Digit' Turner <digit@android.com>
2011-02-03libc: Update auto-gen scriptsDavid 'Digit' Turner
Make the scripts use external/kernel-headers/original by default. clean_header.py: Document -k<path>, add -d<path> find_headers.py: Make kernel config files optional update_all.py: Allow setting the path to kernel headers on the command-line update_all.py: Better formatting of output on ttys update_all.py: Automatically perform "git add/rm" on affected files. SYSCALLS.TXT: Fix typo in __socketcall definition. checksyscalls.py: Add support for superH architecture in the checks. gensyscalls.py: Automatically perform "git add/rm" on affected files. cpp.py: Fixed a bug that prevented certain type definitions to be kept in the generated clean header (e.g. struct ethtool_drvinfo in <linux/ethtool.h>) All scripts will use the content of external/kernel-headers/original by default now. The generated code removes all empty lines and trailing whitespace. This is useful to ensure a unified output even if we change the parser again in the future. The top-level disclaimer has been edited with update instructions to regenerate the headers when needed. Also, a warning is now inserted every 8th line in the final output: /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ Changes under kernel/arch-arm and kernel/arch-x86 should correspond to whitespace differences and additionnal struct definitions that were missed by the previous parser implementation. Change-Id: Icd1c056bacd766759f3e9b7bb5d63a246f3d656a WARNING: If you run these script, do not submit the result to gerrit for now. It seems there are discrepancies between the content of original headers and those currently commited under bionic/libc/kernel/. (This problem is the main motivation to insert the warning repeatedly). Current list of issues: - Missing SuperH headers (i.e. external/kernel-headers/original/asm-sh)
2009-09-01modified SYSCALLS.TXT to support SuperH architectureShin-ichiro KAWASAKI
2008-12-17Code drop from //branches/cupcake/...@124589The Android Open Source Project
2008-10-21Initial ContributionThe Android Open Source Project