Displaying 2 results from an estimated 2 matches for "fd_offset".
Did you mean:
fb_offset
2010 Nov 19
3
File Offsets for SCP (patch)
...or suggestions are welcome.
--- ../canonical-openssh5.6/scp.c 2010-07-01 23:37:33.000000000 -0400
+++ scp.c 2010-11-19 17:17:26.000000000 -0500
@@ -302,6 +302,7 @@ struct passwd *pwd;
uid_t userid;
int errs, remin, remout;
int pflag, iamremote, iamrecursive, targetshouldbedirectory;
+double fd_offset, fd_inset;
#define CMDNEEDS 64
char cmd[CMDNEEDS]; /* must hold "rcp -r -p -d\0" */
@@ -324,6 +325,9 @@ main(int argc, char **argv)
extern char *optarg;
extern int optind;
+ fd_inset = 0;
+ fd_offset = 0;
+
/* Ensure that fds 0, 1 and 2 are open or directed to /dev/null */...
2001 Mar 13
5
is this null block OK?
...write_lock(&fd->fd_lock);
/* deal with 64K boundaries - set for KML records*/
if ( rec->chunked ) {
int chunk = 1 << fset->fset_chunkbits;
int chunk_mask = ~(chunk -1);
loff_t boundary;
offset = fd->fd_offset;
boundary = (fd->fd_offset + chunk - 1) & chunk_mask;
if ( fd->fd_offset + rec->size >= boundary ) {
offset = boundary;
fd->fd_offset = boundary;
}
}
if (rec->size...