/system/extras/ANRdaemon/ |
ANRdaemon.cpp | 353 int output_fd = creat(path_buf, S_IRWXU); local 354 if (output_fd == -1) { 359 if (write(output_fd, header, strlen(header)) != header_len) { 361 close(output_fd); 368 close(output_fd); 381 close(output_fd); 409 result = write(output_fd, out, bufSize); 428 result = write(output_fd, out, bytes); 443 close(output_fd);
|
/external/autotest/contrib/virt/ |
site_job.py | 160 output_fd, path = tempfile.mkstemp(prefix='atest_control_', dir='/tmp') 164 os.write(output_fd, control_file_text) 165 os.close(output_fd)
|
/external/selinux/policycoreutils/semodule/ |
semodule.c | 432 FILE *output_fd = NULL; local 498 output_fd = fopen(output_path, "w"); 499 if (output_fd == NULL) { 505 if (fwrite(data, 1, data_len, output_fd) < data_len) { 511 if (output_fd != NULL) { 512 fclose(output_fd);
|
/bootable/recovery/applypatch/ |
applypatch.cpp | 892 int output_fd = -1; local 899 output_fd = ota_open(tmp_target_filename.c_str(), O_WRONLY | O_CREAT | O_TRUNC | O_SYNC, 901 if (output_fd < 0) [all...] |
/external/selinux/libsemanage/src/ |
direct_api.c | 681 int output_fd[2]; local 709 retval = pipe(output_fd); 731 retval = dup2(output_fd[PIPE_WRITE], STDOUT_FILENO); 747 retval = close(output_fd[PIPE_READ]); 770 retval = close(output_fd[PIPE_WRITE]); 771 output_fd[PIPE_WRITE] = -1; 797 retval = read_from_pipe_to_data(sh, initial_len, output_fd[PIPE_READ], &data_read, &data_read_len); 801 retval = close(output_fd[PIPE_READ]); 802 output_fd[PIPE_READ] = -1; 847 if (output_fd[PIPE_READ] != -1) [all...] |
/frameworks/native/cmds/installd/ |
commands.cpp | 1328 fd_t output_fd = open(out_file_name.c_str(), O_WRONLY | O_CREAT | O_TRUNC | O_NOFOLLOW); local [all...] |