| /src/usr.bin/mkubootimage/ | 
| mkubootimage.c | 407 write_image(void *hdr, size_t hdrlen, int kernel_fd, int image_fd) 421 	wlen = write(image_fd, hdr, hdrlen);
 430 		wlen = write(image_fd, &size_buf, sizeof(size_buf));
 445 		wlen = write(image_fd, buf, rlen);
 462 	int kernel_fd, image_fd;  local in function:main
 581 	image_fd = open(dest, O_WRONLY|O_CREAT|O_TRUNC, 0666);
 582 	if (image_fd == -1) {
 595 		    kernel_fd, image_fd) != 0)
 604 		    kernel_fd, image_fd) != 0)
 612 	close(image_fd);
 [all...]
 | 
| /src/usr.bin/vndcompress/ | 
| vnduncompress.c | 72 	const int image_fd = open(image_pathname,  local in function:vnduncompress 74 	if (image_fd == -1)
 215 		const ssize_t n_written = write(image_fd, uncompbuf,
 236 	if (close(image_fd) == -1)
 
 | 
| vndcompress.c | 75 	int		image_fd;  member in struct:compress_state 124 	S->image_fd = -1;
 192 		    compress_block(S->image_fd, S->cloop2_fd, S->blkno,
 363 	assert(S->image_fd >= 0);
 440 	S->image_fd = open(image_pathname, O_RDONLY);
 441 	if (S->image_fd == -1)
 461 		if (fstat(S->image_fd, &st) == -1)
 527 				if (lseek(S->image_fd, 0, SEEK_SET) == -1)
 713 	if (lseek(S->image_fd, restart_position, SEEK_SET) == -1) {
 726 			const ssize_t n_read = read_block(S->image_fd, buffer
 [all...]
 |