Lines Matching refs:open
2 * Copyright (C) 2010 The Android Open Source Project
159 if ((fd = open(dev, O_RDONLY)) < 0) {
160 SLOGE("Cannot open device to get filesystem size ");
199 if ( (fd = open(real_blkdev, O_RDWR)) < 0) {
200 SLOGE("Cannot open real block device %s\n", real_blkdev);
259 if ( (fd = open(fname, O_RDWR | O_CREAT, 0600)) < 0) {
260 SLOGE("Cannot open footer file %s for put\n", fname);
311 * fd is open read/write on the device that holds the crypto footer and persistent
389 if ( (fd = open(fname, O_RDWR)) < 0) {
390 SLOGE("Cannot open footer file %s for get\n", fname);
513 fd = open(fname, O_RDONLY);
515 SLOGE("Cannot open %s metadata file", fname);
594 fd = open(fname, O_RDWR);
596 SLOGE("Cannot open %s metadata file", fname);
783 if ((fd = open("/dev/device-mapper", O_RDWR)) < 0 ) {
784 SLOGE("Cannot open device-mapper\n");
836 close(fd); /* If fd is <0 from a failed open call, it's safe to just ignore the close error */
848 if ((fd = open("/dev/device-mapper", O_RDWR)) < 0 ) {
849 SLOGE("Cannot open device-mapper\n");
865 close(fd); /* If fd is <0 from a failed open call, it's safe to just ignore the close error */
997 fd = open("/dev/urandom", O_RDONLY);
1325 fd = open(real_blkdev, O_RDONLY);
1509 if ( (realfd = open(real_blkdev, O_RDONLY)) < 0) {
1514 if ( (cryptofd = open(crypto_blkdev, O_WRONLY)) < 0) {
1627 fd = open(real_blkdev, O_RDONLY);
1669 fd = open(vol_list[i].blk_dev, O_RDONLY);
1870 int fd = open("/cache/recovery/command", O_RDWR|O_CREAT|O_TRUNC, 0600);
1875 SLOGE("could not open /cache/recovery/command\n");