Merge "Pretend the <fts.h> functions didn't appear until 21."

This commit is contained in:
Treehugger Robot 2017-08-26 00:02:50 +00:00 committed by Gerrit Code Review
commit 8468a1be01
8 changed files with 45 additions and 40 deletions

View File

@ -116,11 +116,16 @@ typedef struct _ftsent {
__BEGIN_DECLS
FTSENT* fts_children(FTS* __fts, int __options);
int fts_close(FTS* __fts);
FTS* fts_open(char* const* __path, int __options, int (*__comparator)(const FTSENT** __lhs, const FTSENT** __rhs));
FTSENT* fts_read(FTS* __fts);
int fts_set(FTS* __fts, FTSENT* __entry, int __options);
/*
* Strictly these functions were available before Lollipop/21, but there was an accidental ABI
* breakage in 21 that means you can't write code that runs on current devices and pre-21 devices,
* so we break the tie in favor of current and future devices.
*/
FTSENT* fts_children(FTS* __fts, int __options) __INTRODUCED_IN(21);
int fts_close(FTS* __fts) __INTRODUCED_IN(21);
FTS* fts_open(char* const* __path, int __options, int (*__comparator)(const FTSENT** __lhs, const FTSENT** __rhs)) __INTRODUCED_IN(21);
FTSENT* fts_read(FTS* __fts) __INTRODUCED_IN(21);
int fts_set(FTS* __fts, FTSENT* __entry, int __options) __INTRODUCED_IN(21);
__END_DECLS

View File

@ -399,11 +399,11 @@ LIBC {
ftruncate;
ftruncate64; # introduced-arm=12 introduced-arm64=21 introduced-mips=12 introduced-mips64=21 introduced-x86=12 introduced-x86_64=21
ftrylockfile;
fts_children;
fts_close;
fts_open;
fts_read;
fts_set;
fts_children; # introduced=21
fts_close; # introduced=21
fts_open; # introduced=21
fts_read; # introduced=21
fts_set; # introduced=21
ftw; # introduced-arm=17 introduced-arm64=21 introduced-mips=17 introduced-mips64=21 introduced-x86=17 introduced-x86_64=21
ftw64; # introduced=21
funlockfile;

View File

@ -328,11 +328,11 @@ LIBC {
ftruncate;
ftruncate64; # introduced-arm=12 introduced-arm64=21 introduced-mips=12 introduced-mips64=21 introduced-x86=12 introduced-x86_64=21
ftrylockfile;
fts_children;
fts_close;
fts_open;
fts_read;
fts_set;
fts_children; # introduced=21
fts_close; # introduced=21
fts_open; # introduced=21
fts_read; # introduced=21
fts_set; # introduced=21
ftw; # introduced-arm=17 introduced-arm64=21 introduced-mips=17 introduced-mips64=21 introduced-x86=17 introduced-x86_64=21
ftw64; # introduced=21
funlockfile;

View File

@ -401,11 +401,11 @@ LIBC {
ftruncate;
ftruncate64; # introduced-arm=12 introduced-arm64=21 introduced-mips=12 introduced-mips64=21 introduced-x86=12 introduced-x86_64=21
ftrylockfile;
fts_children;
fts_close;
fts_open;
fts_read;
fts_set;
fts_children; # introduced=21
fts_close; # introduced=21
fts_open; # introduced=21
fts_read; # introduced=21
fts_set; # introduced=21
ftw; # introduced-arm=17 introduced-arm64=21 introduced-mips=17 introduced-mips64=21 introduced-x86=17 introduced-x86_64=21
ftw64; # introduced=21
funlockfile;

View File

@ -397,11 +397,11 @@ LIBC {
ftruncate;
ftruncate64; # introduced-arm=12 introduced-arm64=21 introduced-mips=12 introduced-mips64=21 introduced-x86=12 introduced-x86_64=21
ftrylockfile;
fts_children;
fts_close;
fts_open;
fts_read;
fts_set;
fts_children; # introduced=21
fts_close; # introduced=21
fts_open; # introduced=21
fts_read; # introduced=21
fts_set; # introduced=21
ftw; # introduced-arm=17 introduced-arm64=21 introduced-mips=17 introduced-mips64=21 introduced-x86=17 introduced-x86_64=21
ftw64; # introduced=21
funlockfile;

View File

@ -328,11 +328,11 @@ LIBC {
ftruncate;
ftruncate64; # introduced-arm=12 introduced-arm64=21 introduced-mips=12 introduced-mips64=21 introduced-x86=12 introduced-x86_64=21
ftrylockfile;
fts_children;
fts_close;
fts_open;
fts_read;
fts_set;
fts_children; # introduced=21
fts_close; # introduced=21
fts_open; # introduced=21
fts_read; # introduced=21
fts_set; # introduced=21
ftw; # introduced-arm=17 introduced-arm64=21 introduced-mips=17 introduced-mips64=21 introduced-x86=17 introduced-x86_64=21
ftw64; # introduced=21
funlockfile;

View File

@ -395,11 +395,11 @@ LIBC {
ftruncate;
ftruncate64; # introduced-arm=12 introduced-arm64=21 introduced-mips=12 introduced-mips64=21 introduced-x86=12 introduced-x86_64=21
ftrylockfile;
fts_children;
fts_close;
fts_open;
fts_read;
fts_set;
fts_children; # introduced=21
fts_close; # introduced=21
fts_open; # introduced=21
fts_read; # introduced=21
fts_set; # introduced=21
ftw; # introduced-arm=17 introduced-arm64=21 introduced-mips=17 introduced-mips64=21 introduced-x86=17 introduced-x86_64=21
ftw64; # introduced=21
funlockfile;

View File

@ -328,11 +328,11 @@ LIBC {
ftruncate;
ftruncate64; # introduced-arm=12 introduced-arm64=21 introduced-mips=12 introduced-mips64=21 introduced-x86=12 introduced-x86_64=21
ftrylockfile;
fts_children;
fts_close;
fts_open;
fts_read;
fts_set;
fts_children; # introduced=21
fts_close; # introduced=21
fts_open; # introduced=21
fts_read; # introduced=21
fts_set; # introduced=21
ftw; # introduced-arm=17 introduced-arm64=21 introduced-mips=17 introduced-mips64=21 introduced-x86=17 introduced-x86_64=21
ftw64; # introduced=21
funlockfile;