Displaying 20 results from an estimated 279 matches for "len1".
Did you mean:
len
2002 Feb 19
1
rsync bug in clean_flist() while removing duplicted names
...ched/lib/compat.c
*** rsync-2.3.2/lib/compat.c Mon Nov 8 14:15:04 1999
--- rsync-2.3.2-patched/lib/compat.c Mon Feb 18 18:26:18 2002
***************
*** 131,139 ****
be one more than the maximum resulting string length */
size_t strlcat(char *d, const char *s, size_t bufsize)
{
! size_t len1 = strlen(d);
! size_t len2 = strlen(s);
! size_t ret = len1 + len2;
if (len1+len2 >= bufsize) {
len2 = bufsize - (len1+1);
--- 131,149 ----
be one more than the maximum resulting string length */
size_t strlcat(char *d, const char *s, size_t bufsize)
{
! size_t len1;
! si...
2003 Apr 27
4
Bogus rsync "Success" message when out of disk space
...07:34 2002
+++ fileio.c Sat Apr 26 12:16:25 2003
@@ -69,25 +69,28 @@
return len;
}
int write_file(int f,char *buf,size_t len)
{
int ret = 0;
- if (!sparse_files) {
- return write(f,buf,len);
- }
-
while (len>0) {
- int len1 = MIN(len, SPARSE_WRITE_SIZE);
- int r1 = write_sparse(f, buf, len1);
+ int r1;
+ if (sparse_files) {
+ int len1 = MIN(len, SPARSE_WRITE_SIZE);
+ r1 = write_sparse(f, buf, len1);
+ } else {
+...
2013 Jun 19
3
[PATCH] virtio-spec: add field for scsi command size
Il 19/06/2013 10:24, Michael S. Tsirkin ha scritto:
>> > 2) We introduce VIRTIO_NET_F_ANY_LAYOUT and VIRTIO_BLK_F_ANY_LAYOUT
>> > specifically for net and block (note the new names).
So why not a transport feature? Is it just because the SCSI commands
for virtio-blk also require a config space field? Sorry if I missed
this upthread.
Paolo
>> > 3) I note the
2013 Jun 19
3
[PATCH] virtio-spec: add field for scsi command size
Il 19/06/2013 10:24, Michael S. Tsirkin ha scritto:
>> > 2) We introduce VIRTIO_NET_F_ANY_LAYOUT and VIRTIO_BLK_F_ANY_LAYOUT
>> > specifically for net and block (note the new names).
So why not a transport feature? Is it just because the SCSI commands
for virtio-blk also require a config space field? Sorry if I missed
this upthread.
Paolo
>> > 3) I note the
2008 Jun 29
1
Calculating quarterly statistics for time series object
I have time series observation on daily frequencies :
library(zoo)
SD=1
date1 = seq(as.Date("01/01/01", format = "%m/%d/%y"), as.Date("12/31/02", format = "%m/%d/%y"), by = 1)
len1 = length(date1); data1 = zoo(matrix(rnorm(len1, mean=0, sd=SD*0.5), nrow = len1), date1)
plot(data1)
Now I want to calculate 1. Quarterly statistics like mean, variance etc and 2. Weekly statistics, where as per my definition week starts from Wednesday and ends on Tuesday.
I can define some ...
2013 Jun 20
0
[PATCH] virtio-spec: add field for scsi command size
...dnum == 0);
+ dst++;
+ dnum--;
+ d = *dst;
+ }
+ }
+}
+
+static bool torture_replace(struct scatterlist **sg,
+ unsigned int *out,
+ unsigned int *in,
+ void **data,
+ gfp_t gfp)
+{
+ static size_t seed;
+ struct torture *t;
+ unsigned long outlen, inlen, ourseed, len1;
+ void *buf;
+
+ if (!device_torture)
+ return true;
+
+ outlen = tot_len(*sg, *out);
+ inlen = tot_len(*sg + *out, *in);
+
+ /* This will break horribly on large block requests. */
+ t = kmalloc(sizeof(*t) + (*out + *in) * sizeof(t->orig_sg[1])
+ + outlen + 1 + inlen + 1, gfp);
+ if (!t)...
2013 Jun 20
3
[PATCH] virtio-spec: add field for scsi command size
...}
> +}
> +
> +static bool torture_replace(struct scatterlist **sg,
> + unsigned int *out,
> + unsigned int *in,
> + void **data,
> + gfp_t gfp)
> +{
> + static size_t seed;
> + struct torture *t;
> + unsigned long outlen, inlen, ourseed, len1;
> + void *buf;
> +
> + if (!device_torture)
> + return true;
> +
> + outlen = tot_len(*sg, *out);
> + inlen = tot_len(*sg + *out, *in);
> +
> + /* This will break horribly on large block requests. */
> + t = kmalloc(sizeof(*t) + (*out + *in) * sizeof(t->orig_sg[1]...
2013 Jun 20
3
[PATCH] virtio-spec: add field for scsi command size
...}
> +}
> +
> +static bool torture_replace(struct scatterlist **sg,
> + unsigned int *out,
> + unsigned int *in,
> + void **data,
> + gfp_t gfp)
> +{
> + static size_t seed;
> + struct torture *t;
> + unsigned long outlen, inlen, ourseed, len1;
> + void *buf;
> +
> + if (!device_torture)
> + return true;
> +
> + outlen = tot_len(*sg, *out);
> + inlen = tot_len(*sg + *out, *in);
> +
> + /* This will break horribly on large block requests. */
> + t = kmalloc(sizeof(*t) + (*out + *in) * sizeof(t->orig_sg[1]...
2018 Mar 27
2
Unable to access AD with ADExplorer
...b_wrap open of secrets.ldb
[2018/03/26 16:32:38.896147, 3] ../auth/ntlmssp/ntlmssp_util.c:69(debug_ntlmssp_flags)
Got NTLMSSP neg_flags=0xe2088297
[2018/03/26 16:32:38.897060, 3] ../auth/ntlmssp/ntlmssp_server.c:452(ntlmssp_server_preauth)
Got user=[administrator] domain=[] workstation=[TEST] len1=24 len2=266
[2018/03/26 16:32:38.897302, 3] ../source4/auth/ntlm/auth.c:271(auth_check_password_send)
auth_check_password_send: Checking password for unmapped user []\[administrator]@[TEST]
auth_check_password_send: mapped user is: [SAMDOM]\[administrator]@[TEST]
[2018/03/26 16:32:38.901252,...
2008 Mar 10
1
Error in extracting monthly observation from a daily time series data
Hi all,
Suppose I have following dataset :
library(zoo)
SD = 1
date1 = seq(as.Date("01/01/90", format = "%m/%d/%y"), as.Date("12/31/08", format = "%m/%d/%y"), by = 1)
len1 = length(date1); data1 = zoo(matrix(rnorm(len1, mean=0, sd=SD*0.5), nrow = len1), date1)
Now I want to extract monthly observation.
obs = split(as.data.frame(data1), format(index(data1), "%y%m"))
However surprisingly order of the observation has been changed :
> head(ob...
2001 Jul 05
1
Streaming buffers/ov_read question
...g that i converted to the vorbis format
(Gorillaz - Cling Eastwood)
pcmData is defined like this: char pcmData[4096];
the ogg file and the directsound buffer (lpdsBuffer and vorbisFile) have
already been set up properly.
// code start
void PlaybackThread(void *param)
{
UCHAR *ptr1, *ptr2;
DWORD len1, len2;
long retVal;
int bytes_to_read = 4096;
int writeCursor = 0;
int bufferReadCursor = 0;
bool begPlay = true;
int len1_copy, len2_copy;
HWND hDlg = (HWND)param;
while (!eof)
{
if (bufferReadCursor > 4096)
{
// fill more data into the buffer;
bytes_to_read = 4096;
while...
2018 Mar 27
0
Unable to access AD with ADExplorer
....ldb
> [2018/03/26 16:32:38.896147, 3] ../auth/ntlmssp/ntlmssp_util.c:69(debug_ntlmssp_flags)
> Got NTLMSSP neg_flags=0xe2088297
> [2018/03/26 16:32:38.897060, 3] ../auth/ntlmssp/ntlmssp_server.c:452(ntlmssp_server_preauth)
> Got user=[administrator] domain=[] workstation=[TEST] len1=24 len2=266
> [2018/03/26 16:32:38.897302, 3] ../source4/auth/ntlm/auth.c:271(auth_check_password_send)
> auth_check_password_send: Checking password for unmapped user []\[administrator]@[TEST]
> auth_check_password_send: mapped user is: [SAMDOM]\[administrator]@[TEST]
> [2018/03...
2012 Sep 28
6
[PATCH 0/3] virtio-net: inline header support
Thinking about Sasha's patches, we can reduce ring usage
for virtio net small packets dramatically if we put
virtio net header inline with the data.
This can be done for free in case guest net stack allocated
extra head room for the packet, and I don't see
why would this have any downsides.
Even though with my recent patches qemu
no longer requires header to be the first s/g element,
we
2012 Sep 28
6
[PATCH 0/3] virtio-net: inline header support
Thinking about Sasha's patches, we can reduce ring usage
for virtio net small packets dramatically if we put
virtio net header inline with the data.
This can be done for free in case guest net stack allocated
extra head room for the packet, and I don't see
why would this have any downsides.
Even though with my recent patches qemu
no longer requires header to be the first s/g element,
we
2005 May 19
1
ssh-keygen private keys export - new feature
...return (-1);
+ }
+
+ buffer_put_int(b, bignum_bits);
+ /* Store the binary data. */
+ buffer_append(b, (char *)buf, oi);
+
+ memset(buf, 0, bytes);
+ xfree(buf);
+
+ return (0);
+}
+
+static int
+do_convert_private_ssh2_to_blob(const Key *key, u_char **blobp, u_int *lenp)
+{
+ Buffer b;
+ int len, len1;
+ char *pb;
+
+ if (key == NULL) {
+ error("do_convert_private_ssh2_to_blob: key == NULL");
+ return 0;
+ }
+ buffer_init(&b);
+ buffer_put_int(&b, SSH_COM_PRIVATE_KEY_MAGIC);
+ buffer_put_int(&b, 0);
+
+ switch (key->type) {
+ case KEY_DSA:
+ buffer_put_cstring(...
2011 Sep 15
1
[LLVMdev] getelementptr with dynamic index
Hi,
the following llvm-ir is manipulated by the optimizers:
%target2 = getelementptr %.string %result, i32 0, i32 3, i32 %len1
(%_.string = type {i32, i32, i32, [0 x i8]})
the last parameter i32 %len1 is replaced by i32 0 by the optimizers. (both,
2.9 and 2.8). When i turn optmization off, it works correctly.
How can i use an optimizer-safe dynamic indexing of arrays?
-------------- next part --------------
An HTML attach...
2005 Jan 22
0
chan_capi patch: app_capiFax modifications
...sc = "(CAPI*) Receive Faxes.";
static char *app = "capiAnswerFax2";
static char *synopsis = "Answer Fax with CAPI (Allow Station ID Setting)";
STANDARD_LOCAL_USER;
LOCAL_USER_DECL;
void SetupB3Config(B3_PROTO_FAXG3 *B3conf, int FAX_Format, char* stationID) {
int len1;
int len2;
char *headLine = "CAPI FAXServer";
B3conf->resolution = FAX_HIGH_RESOLUTION;
B3conf->format = (unsigned short)FAX_Format;
len1 = strlen(stationID);
B3conf->Infos[0] = (unsigned char)len1;
strcpy((char *)&B3conf->Infos[1], stationID)...
2018 Mar 27
2
Unable to access AD with ADExplorer
.../03/26 16:32:38.896147, 3] ../auth/ntlmssp/ntlmssp_util.c:69(debug_ntlmssp_flags)
> Got NTLMSSP neg_flags=0xe2088297
> [2018/03/26 16:32:38.897060, 3] ../auth/ntlmssp/ntlmssp_server.c:452(ntlmssp_server_preauth)
> Got user=[administrator] domain=[] workstation=[TEST] len1=24 len2=266
> [2018/03/26 16:32:38.897302, 3] ../source4/auth/ntlm/auth.c:271(auth_check_password_send)
> auth_check_password_send: Checking password for unmapped user []\[administrator]@[TEST]
> auth_check_password_send: mapped user is: [SAMDOM]\[administrator]@[TEST...
2020 Feb 23
0
Mac OS and interpretation of @ in a username. Ex user@mds.xyz doesn't work on Mac OS but does on Win 10
...yz | doing parameter valid users = bob at mds.xyz
doing parameter valid users = root | doing parameter valid users = root
Got user=[joe] domain=[mds.xyz] workstation=[MACBOOKPRO-0138] len1=24 len2=222 | Got user=[joe] domain=[joe-PC] workstation=[JOE-PC] len1=24 len2=284
doing parameter security = user | doing parameter security = user
doing parameter valid users = %S, %D%w%S...
2010 Jun 09
2
cbind with vectors of different lengths?
Hello R help
I have a dataframe, with 71 samples (rows) and 30 variables. I got linear models for some of the variables,? and I want to join fitted and residuals of these models to the data frame. Sometimes, these vectors have the same length of the dependant variable, but in a few cases, NA values can be found on my data, and therefore, both fitted and residuals have a few rows less than the