#include <sys/disk.h>
#endif
-#ifdef ANDROID
-#include <private/android_filesystem_config.h>
-#endif
-
#include "make_ext4fs.h"
#include "ext4_utils.h"
#include "canned_fs_config.h"
-#ifndef USE_MINGW /* O_BINARY is windows-specific flag */
-#define O_BINARY 0
-#endif
-
extern struct fs_info info;
time_t fixed_time = -1;
FILE* block_list_file = NULL;
- while ((opt = getopt(argc, argv, "l:j:b:g:i:I:L:a:T:C:B:fwzJsctv")) != -1) {
+ while ((opt = getopt(argc, argv, "l:j:b:g:i:I:L:T:C:B:fwzJsctv")) != -1) {
switch (opt) {
case 'l':
info.len = parse_num(optarg);
case 'f':
force = 1;
break;
- case 'a':
-#ifdef ANDROID
- mountpoint = optarg;
-#else
- fprintf(stderr, "can't set android permissions - built without android support\n");
- usage(argv[0]);
- exit(EXIT_FAILURE);
-#endif
- break;
case 'w':
wipe = 1;
break;
}
if (strcmp(filename, "-")) {
- fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, 0644);
+ fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC, 0644);
if (fd < 0) {
perror("open");
return EXIT_FAILURE;