Searched refs:dst_fd (Results 1 - 12 of 12) sorted by relevance

/netgear-R7000-V1.0.7.12_1.2.5/src/router/busybox-1.x/libbb/
H A Dcopyfd.c19 static off_t bb_full_fd_action(int src_fd, int dst_fd, off_t size) argument
46 /* dst_fd == -1 is a fake, else... */
47 if (dst_fd >= 0) {
48 ssize_t wr = full_write(dst_fd, buffer, rd);
H A Dcopy_file.c227 int dst_fd; local
260 dst_fd = open(dest, O_WRONLY|O_CREAT|O_TRUNC, source_stat.st_mode);
262 dst_fd = open(dest, O_WRONLY|O_CREAT|O_EXCL, source_stat.st_mode);
263 if (dst_fd == -1) {
270 dst_fd = open3_or_warn(dest, O_WRONLY|O_CREAT|O_EXCL, source_stat.st_mode);
271 if (dst_fd < 0) {
297 if (bb_copyfd_eof(src_fd, dst_fd) == -1)
300 if (close(dst_fd) < 0) {
/netgear-R7000-V1.0.7.12_1.2.5/src/router/busybox-1.x/include/
H A Dunarchive.h113 extern USE_DESKTOP(long long) int unpack_bz2_stream(int src_fd, int dst_fd);
114 extern USE_DESKTOP(long long) int inflate_unzip(inflate_unzip_result *res, unsigned bufsize, int src_fd, int dst_fd);
115 extern USE_DESKTOP(long long) int unpack_gz_stream(int src_fd, int dst_fd);
116 extern USE_DESKTOP(long long) int unpack_lzma_stream(int src_fd, int dst_fd);
120 USE_DESKTOP(long long) int (*transformer)(int src_fd, int dst_fd));
/netgear-R7000-V1.0.7.12_1.2.5/src/router/busybox-1.x/archival/
H A Dunzip.c70 static int unzip_extract(zip_header_t *zip_header, int src_fd, int dst_fd) argument
76 bb_copyfd_exact_size(src_fd, dst_fd, size);
80 /* err = */ inflate_unzip(&res, zip_header->formatted.cmpsize, src_fd, dst_fd);
104 int src_fd = -1, dst_fd = -1; local
130 dst_fd = STDOUT_FILENO;
274 } else if (dst_fd == STDOUT_FILENO) { /* Extracting to STDOUT */
327 dst_fd = xopen(dst_fn, O_WRONLY | O_CREAT | O_TRUNC);
332 if (unzip_extract(&zip_header, src_fd, dst_fd)) {
335 if (dst_fd != STDOUT_FILENO) {
337 close(dst_fd);
[all...]
H A Drpm.c193 USE_DESKTOP(long long) int (*xformer)(int src_fd, int dst_fd);
/netgear-R7000-V1.0.7.12_1.2.5/src/router/busybox-1.x/archival/libunarchive/
H A Ddata_extract_all.c12 int dst_fd; local
72 dst_fd = xopen3(file_header->name, O_WRONLY | O_CREAT | O_EXCL,
74 bb_copyfd_exact_size(archive_handle->src_fd, dst_fd, file_header->size);
75 close(dst_fd);
H A Dopen_transformer.c15 USE_DESKTOP(long long) int (*transformer)(int src_fd, int dst_fd),
14 open_transformer(int src_fd, USE_DESKTOP(long long) int (*transformer)(int src_fd, int dst_fd), const char *transform_prog, ...) argument
H A Ddecompress_unlzma.c233 unpack_lzma_stream(int src_fd, int dst_fd) argument
326 if (full_write(dst_fd, buffer, header.dict_size) != header.dict_size)
368 if (full_write(dst_fd, buffer, header.dict_size) != header.dict_size)
481 if (full_write(dst_fd, buffer, header.dict_size) != header.dict_size)
491 if (full_write(dst_fd, buffer, buffer_pos) != buffer_pos) {
H A Ddecompress_bunzip2.c700 /* Decompress src_fd to dst_fd. Stops at end of bzip data, not end of file. */
703 unpack_bz2_stream(int src_fd, int dst_fd) argument
716 if (i != safe_write(dst_fd, outbuf, i)) {
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/hfs/
H A Dcatalog.c273 struct hfs_find_data src_fd, dst_fd; local
282 dst_fd = src_fd;
298 hfs_cat_build_key(sb, dst_fd.search_key, dst_dir->i_ino, dst_name);
299 err = hfs_brec_find(&dst_fd);
306 err = hfs_brec_insert(&dst_fd, &entry, src_fd.entrylength);
339 hfs_cat_build_key(sb, dst_fd.search_key, cnid, NULL);
342 err = hfs_brec_find(&dst_fd);
348 err = hfs_brec_insert(&dst_fd, &entry, entry_size);
350 hfs_bnode_put(dst_fd.bnode);
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/hfsplus/
H A Dcatalog.c311 struct hfs_find_data src_fd, dst_fd; local
320 dst_fd = src_fd;
332 hfsplus_cat_build_key(sb, dst_fd.search_key, dst_dir->i_ino, dst_name);
333 err = hfs_brec_find(&dst_fd);
340 err = hfs_brec_insert(&dst_fd, &entry, src_fd.entrylength);
370 hfsplus_cat_build_key(sb, dst_fd.search_key, cnid, NULL);
372 err = hfs_brec_find(&dst_fd);
378 err = hfs_brec_insert(&dst_fd, &entry, entry_size);
380 hfs_bnode_put(dst_fd.bnode);
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/hfsplus_journal/
H A Dcatalog.c325 struct hfs_find_data src_fd, dst_fd; local
336 dst_fd = src_fd;
352 hfsplus_cat_build_key(sb, dst_fd.search_key, dst_dir->i_ino, dst_name);
353 err = hfs_brec_find(hfsplus_handle, &dst_fd);
360 err = hfs_brec_insert(hfsplus_handle, &dst_fd, &entry, src_fd.entrylength);
390 hfsplus_cat_build_key(sb, dst_fd.search_key, cnid, NULL);
392 err = hfs_brec_find(hfsplus_handle, &dst_fd);
398 err = hfs_brec_insert(hfsplus_handle, &dst_fd, &entry, entry_size);
400 hfs_bnode_put(hfsplus_handle, dst_fd.bnode);

Completed in 203 milliseconds