diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2019-03-29 23:47:21 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2019-03-29 23:47:21 +0000 |
commit | a7011fcad8cc9c19d4c37b6a4cf61033aeafcb7d (patch) | |
tree | f4359d2488477890ab594acbce3373b892063ea5 | |
parent | ea674f802c02273b5c62072a58d8dac9b5aa8185 (diff) | |
parent | 5ccc165094e85ee48ba6317a1e7fd36d1a78a542 (diff) | |
download | toybox-a7011fcad8cc9c19d4c37b6a4cf61033aeafcb7d.tar.gz |
Merge "Add fsync."
-rw-r--r-- | .config | 2 | ||||
-rw-r--r-- | Android.bp | 2 | ||||
-rw-r--r-- | generated/config.h | 4 | ||||
-rw-r--r-- | generated/flags.h | 4 |
4 files changed, 7 insertions, 5 deletions
@@ -121,7 +121,7 @@ CONFIG_FREE=y # CONFIG_FSCK is not set CONFIG_FSFREEZE=y # CONFIG_FSTYPE is not set -# CONFIG_FSYNC is not set +CONFIG_FSYNC=y # CONFIG_FTPGET is not set # CONFIG_FTPPUT is not set CONFIG_GETCONF=y @@ -107,6 +107,7 @@ cc_defaults { "toys/other/free.c", "toys/other/freeramdisk.c", "toys/other/fsfreeze.c", + "toys/other/fsync.c", "toys/other/help.c", "toys/other/hwclock.c", "toys/other/i2ctools.c", @@ -299,6 +300,7 @@ cc_defaults { "flock", "fmt", "free", + "fsync", "getconf", "getenforce", "groups", diff --git a/generated/config.h b/generated/config.h index eccfc954..d018081a 100644 --- a/generated/config.h +++ b/generated/config.h @@ -216,8 +216,8 @@ #define USE_FSFREEZE(...) __VA_ARGS__ #define CFG_FSTYPE 0 #define USE_FSTYPE(...) -#define CFG_FSYNC 0 -#define USE_FSYNC(...) +#define CFG_FSYNC 1 +#define USE_FSYNC(...) __VA_ARGS__ #define CFG_FTPGET 0 #define USE_FTPGET(...) #define CFG_FTPPUT 0 diff --git a/generated/flags.h b/generated/flags.h index 3be9e367..0e74cc9e 100644 --- a/generated/flags.h +++ b/generated/flags.h @@ -934,7 +934,7 @@ #undef FOR_fstype #endif -// fsync <1d +// fsync <1d <1d #undef OPTSTR_fsync #define OPTSTR_fsync "<1d" #ifdef CLEANUP_fsync @@ -4131,7 +4131,7 @@ #ifndef TT #define TT this.fsync #endif -#define FLAG_d (FORCED_FLAG<<0) +#define FLAG_d (1<<0) #endif #ifdef FOR_ftpget |