Searched refs:write (Results 1 - 25 of 101) sorted by relevance

12345

/system/core/toolbox/
H A Dreadtty.c123 write(STDERR_FILENO, &current_char, 1);
124 write(STDOUT_FILENO, &current_char, 1);
140 write(STDOUT_FILENO, rejectstring, strlen(rejectstring));
154 write(STDERR_FILENO, &current_char, 1);
155 write(STDERR_FILENO, "\b", 1);
160 write(STDERR_FILENO, &current_char, 1);
161 write(STDOUT_FILENO, &current_char, 1);
173 write(STDERR_FILENO, &current_char, 1);
174 write(STDERR_FILENO, "\b", 1);
177 write(STDOUT_FILEN
[all...]
H A Dsmd.c29 r = write(fd, argv[0], len);
31 fprintf(stderr,"failed to write smd0 (%d) %s\n",
37 write(fd, argc ? " " : "\r", 1);
H A Ddmesg.c31 while((ret = write(STDOUT_FILENO, p, n))) {
35 perror("write");
/system/extras/libublock/include/ublock/
H A Dublock.h29 int (*write)(const char *buf, uint64_t length, uint64_t offset); member in struct:ublock_ops
35 * May call your read and write functions as the kernel scans partition
/system/core/libcutils/
H A Ddebugger.c35 if (TEMP_FAILURE_RETRY(write(s, &msg, sizeof(msg))) != sizeof(msg)) {
68 if (TEMP_FAILURE_RETRY(write(s, &msg, sizeof(msg))) != sizeof(msg)) {
78 if (TEMP_FAILURE_RETRY(write(fd, buffer, n)) != n) {
H A Dklog.c59 write(klog_fd, buf, strlen(buf));
H A Dprocess_name.c83 write(fd, process_name, strlen(process_name) + 1);
H A Duio.c58 int ret = write( fd, buf, len );
H A Dqtaguid.c70 res = TEMP_FAILURE_RETRY(write(fd, cmd, strlen(cmd)));
91 res = TEMP_FAILURE_RETRY(write(param_fd, value, strlen(value)));
H A Dandroid_reboot.c90 write(fd, "u", 1);
/system/media/audio_utils/include/audio_utils/
H A Decho_reference.h25 /* Buffer descriptor used by read() and write() methods, including the time stamp and delay. */
51 int (*write)(struct echo_reference_itfe *echo_reference, struct echo_reference_buffer *buffer); member in struct:echo_reference_itfe
/system/core/libsparse/
H A Doutput_file.c73 int (*write)(struct output_file *, void *, int); member in struct:output_file_ops
119 int (*write)(void *priv, const void *buf, int len); member in struct:output_file_callback
164 ret = write(outn->fd, data, len);
166 error_errno("write");
169 error("incomplete write");
187 .write = file_write,
271 .write = gz_file_write,
288 ret = outc->write(outc->priv, NULL, to_write);
308 return outc->write(outc->priv, data, len);
322 .write
[all...]
H A Doutput_file.h26 struct output_file *output_file_open_callback(int (*write)(void *, const void *, int),
/system/core/libsuspend/
H A Dautosuspend_autosleep.c43 ret = write(autosleep_fd, sleep_state, strlen(sleep_state));
65 ret = write(autosleep_fd, on_state, strlen(on_state));
H A Dautosuspend_earlysuspend.c112 ret = write(sPowerStatefd, pwr_state_mem, strlen(pwr_state_mem));
142 ret = write(sPowerStatefd, pwr_state_on, strlen(pwr_state_on));
211 ret = write(sPowerStatefd, "on", 2);
/system/core/init/
H A Dwatchdogd.c73 write(fd, "", 1);
/system/core/libsysutils/src/
H A DFrameworkClient.cpp24 ret = TEMP_FAILURE_RETRY(write(mSocket, msg, strlen(msg) +1));
/system/extras/tests/sdcard/
H A Dprofile_sdcard.sh40 adb shell sdcard_perf_test --test=write --procnb=${p} --size=1000 --chunk-size=100 --iterations=50 >/tmp/tmp-sdcard.txt
/system/core/liblinenoise/
H A Dlinenoise.c202 if (write(fd,seq,strlen(seq)) == -1) return;
204 if (write(fd,prompt,strlen(prompt)) == -1) return;
205 if (write(fd,buf,len) == -1) return;
208 if (write(fd,seq,strlen(seq)) == -1) return;
211 if (write(fd,seq,strlen(seq)) == -1) return;
228 if (write(fd,prompt,plen) == -1) return -1;
327 if (write(fd,&c,1) == -1) return -1;
/system/core/mkbootimg/
H A Dmkbootimg.c88 if(write(fd, padding, count) != count) {
245 if(write(fd, &hdr, sizeof(hdr)) != sizeof(hdr)) goto fail;
248 if(write(fd, kernel_data, hdr.kernel_size) != hdr.kernel_size) goto fail;
251 if(write(fd, ramdisk_data, hdr.ramdisk_size) != hdr.ramdisk_size) goto fail;
255 if(write(fd, second_data, hdr.second_size) != hdr.second_size) goto fail;
/system/extras/sound/
H A Dplaywav.c73 if (write(afd, buf, sz) != sz)
87 if (write(afd, buf, sz) != sz)
220 write(fd, &hdr, sizeof(hdr));
229 /* config change should be a read-modify-write operation */
238 perror("cannot write audio config");
270 if (write(fd, buf, sz) != sz) {
271 perror("cannot write buffer");
284 write(fd, &hdr, sizeof(hdr));
320 r = write(afd, buf, r);
/system/core/debuggerd/
H A Dcrasher.c58 write(2, &c, 1);
H A Dutility.c44 write(log->tfd, buf, len);
/system/core/libdiskconfig/
H A Ddiskutils.c51 ALOGE("Could not open '%s' for read/write (errno=%d).", dst, errno);
78 /* skip the write loop if we're testing */
83 if ((tmp = write(dst_fd, buffer, nr_bytes)) < 0) {
97 ALOGE("Exited read/write loop without setting flag! WTF?!");
H A Dwrite_lst.c79 if (write(fd, lst->data, lst->len) != (int)lst->len) {
85 ALOGI("Would write %d bytes @ offset %lld.", lst->len, lst->offset);

Completed in 156 milliseconds

12345