Searched refs:input_fd (Results 1 - 2 of 2) sorted by relevance

/external/vboot_reference/host/lib/
H A Dfile_keys.c63 int input_fd, len; local
68 if( (input_fd = open(input_file, O_RDONLY)) == -1 ) {
73 while ( (len = read(input_fd, data, SHA1_BLOCK_SIZE)) ==
79 close(input_fd);
/external/selinux/libsemanage/src/
H A Ddirect_api.c750 int input_fd[2] = {-1, -1}; local
766 /* This is needed in case the read end of input_fd is closed causing a SIGPIPE signal to be sent.
774 retval = pipe(input_fd);
796 retval = dup2(input_fd[PIPE_READ], STDIN_FILENO);
812 retval = close(input_fd[PIPE_WRITE]);
833 retval = close(input_fd[PIPE_READ]);
834 input_fd[PIPE_READ] = -1;
854 retval = write(input_fd[PIPE_WRITE], in_data, in_data_len);
859 retval = close(input_fd[PIPE_WRITE]);
860 input_fd[PIPE_WRIT
[all...]

Completed in 232 milliseconds