Searched refs:write (Results 1 - 25 of 101) sorted by last modified time

12345

/system/security/keystore/
H A Dkeystore.cpp217 ssize_t n = TEMP_FAILURE_RETRY(write(fd, data, size));
526 // if salt was missing, generate one and write a new master key file with the salt.
793 * and write it.
809 // We won't even write to the blob directly with this BIO, so const_cast is okay.
1032 // generate master key, encrypt with password, write to file, initialize mMasterKey*.
/system/vold/
H A DVolumeManager.cpp348 SLOGE("Failed to open new DM device for superblock write (%s)", strerror(errno));
368 if (write(sbfd, &sb, sizeof(sb)) != sizeof(sb)) {
370 SLOGE("Failed to write superblock (%s)", strerror(errno));
831 SLOGE("Couldn't allocate string to write ASEC name");
1234 if (write(fd, nodepath, strlen(nodepath)) < 0) {
1235 SLOGE("Unable to write to ums lunfile (%s)", strerror(errno));
1285 if (write(fd, &ch, 1) < 0) {
1286 SLOGE("Unable to write to ums lunfile (%s)", strerror(errno));
H A DXwarp.cpp75 if (write(fd, tmp, strlen(tmp)+1) < 0) {
76 SLOGE("Failed to write xwarp cfg (%s)", strerror(errno));
H A Dcryptfs.c191 if ((cnt = write(fd, crypt_ftr, sizeof(struct crypt_mnt_ftr))) != sizeof(struct crypt_mnt_ftr)) {
192 SLOGE("Cannot write real block device footer\n");
203 if ( (cnt = write(fd, key, crypt_ftr->keysize)) != crypt_ftr->keysize) {
204 SLOGE("Cannot write key for real block device %s\n", fname);
210 /* Compute the offset from the last write to the salt */
220 if ( (cnt = write(fd, salt, SALT_LEN)) != SALT_LEN) {
221 SLOGE("Cannot write salt for real block device %s\n", fname);
367 /* For each byte, write out two ascii hex digits */
1040 do { ret = write(fd, buff, len); } while (ret < 0 && errno == EINTR);
1069 * So compute the number of whole 4K blocks we should read/write,
[all...]
H A Dmain.cpp109 write(fd, "add\n", 4);
H A Dvdc.c76 if (write(sock, final_cmd, strlen(final_cmd) + 1) < 0) {
77 perror("write");
/system/bluetooth/bluedroid/
H A Dbluetooth.c123 ALOGE("open(%s) for write failed: %s (%d)", rfkill_state_path,
127 sz = write(fd, &buffer, 1);
129 ALOGE("write(%s) failed: %s (%d)", rfkill_state_path, strerror(errno),
/system/bluetooth/brcm_patchram_plus/
H A Dbrcm_patchram_plus.c604 write(uart_fd, buf, len);
/system/bluetooth/tools/
H A Dasocket_test.c278 printf("%d: write(%d)\n", gettid(), fd);
279 ret = write(fd, &buf, 1);
280 printf("%d: write(%d) = %d\n", gettid(), fd, ret);
495 // accept in one thread. close then write in another
H A Dpipetest.c75 printf("%d: write(%d)\n", gettid(), fd);
76 ret = write(fd, buf, len);
77 printf("%d: write(%d) = %d\n", gettid(), fd, ret);
H A Dsocktest.c292 printf("%ld: write(%d)\n", pthread_self(), fd);
293 ret = write(fd, &buf, 1);
294 printf("%ld: write(%d) = %d\n", pthread_self(), fd, ret);
567 // accept in one thread. close then write in another
/system/core/adb/
H A Dadb.c152 * Redefine open and write for qemu_pipe.h that contains inlined references
157 #undef write macro
159 #define write adb_write macro
162 #undef write macro
164 #define write ___xxx_write macro
H A Dservices.c215 r = write(fd, p, c);
H A Dsysdeps.h137 return write(fd, buf, len);
139 #undef write macro
140 #define write ___xxx_write macro
368 return write(fd, buf, len);
370 #undef write macro
371 #define write ___xxx_write macro
H A Dtest_track_devices.c21 int len2 = write(fd, buf, len);
H A Dtest_track_jdwp.c21 int len2 = write(fd, buf, len);
H A Dtransport_local.c93 D("write remote packet: %04x arg0=%0x arg1=%0x data_length=%0x data_check=%0x magic=%0x\n",
97 D("remote local: write terminated\n");
191 * Redefine open and write for qemu_pipe.h that contains inlined references
195 #undef write macro
197 #define write adb_write macro
200 #undef write macro
202 #define write ___xxx_write macro
H A Dusb_linux_client.c45 int (*write)(usb_handle *h, const void *data, int len); member in struct:usb_handle
190 D("about to write (fd=%d, len=%d)\n", h->fd, len);
236 h->write = usb_adb_write;
276 D("[ %s: write descriptors failed: errno=%d ]\n", USB_FFS_ADB_EP0, errno);
367 D("about to write (fd=%d, len=%d)\n", h->bulk_in, len);
446 h->write = usb_ffs_write;
477 return h->write(h, data, len);
/system/core/charger/
H A Dcharger.c536 write(fd, event, strlen(event));
/system/core/debuggerd/
H A Dcrasher.c58 write(2, &c, 1);
H A Ddebuggerd.c67 amt = write(fd, string, len);
279 * currently assume it does.) We write to the file descriptor to
289 if (TEMP_FAILURE_RETRY(write(fd, "\0", 1)) != 1) {
363 write(fd, tombstone_path, strlen(tombstone_path));
H A Dutility.c44 write(log->tfd, buf, len);
/system/core/gpttool/
H A Dgpttool.c151 "usage: gpttool write <disk> [ <partition> ]*\n"
267 if (!strcmp(argv[1], "write")) {
367 write(fd, &ptbl, sizeof(ptbl));
/system/core/include/private/pixelflinger/
H A Dggl_context.h357 void (*write)(const surface_t* s, context_t* c, member in struct:android::surface_t
/system/core/init/
H A Dbootchart.c61 do { ret = write(fd, buff, len); } while (ret < 0 && errno == EINTR);

Completed in 1239 milliseconds

12345