search for: buff

Displaying 20 results from an estimated 409 matches for "buff".

Did you mean: buf
2020 Jun 01
1
[PATCH] erlang: Port to libei for Erlang 23
...erm); - /* This stops things getting out of hand, but also lets us detect * protocol problems quickly. */ #define MAX_MESSAGE_SIZE (32*1024*1024) -static unsigned char *read_message (void); -static void write_reply (ETERM *); +static char *read_message (void); +static void write_reply (ei_x_buff *); int main (void) { - unsigned char *buf; - ETERM *ret, *message; - - erl_init (NULL, 0); + char *buff; + int index; + int version; + ei_x_buff reply; /* This process has a single libguestfs handle. If the Erlang * system creates more than one handle, then more than one of t...
2005 Apr 11
2
[LLVMdev] JIT and array pointers
...need a few basic building blocks to get > > things started. > > There are many possible ways to do this, can you be a bit more specific > about what you're trying to do? > > -Chris > Here is a basic example: ============================================ unsigned int buff[4096]; int main (void) { buff[0] = 1; // compile and execute code that will change buff[0] to 2 Value *c0 = ConstantUInt::get (Type::UIntTy, 0); Value *c2 = ConstantUInt::get (Type::UIntTy, 2); Module *m = new Module ("test_module"); Function *f = m->getOrInsertFunction...
2005 Apr 11
0
[LLVMdev] JIT and array pointers
...ny possible ways to do this, can you be a bit more specific >> about what you're trying to do? > Here is a basic example: Ah, ok, I see what you're trying to do. Below is some *pseudo* code for the basic idea: > ============================================ > unsigned int buff[4096]; > > int main (void) > { > buff[0] = 1; > > // compile and execute code that will change buff[0] to 2 > Value *c0 = ConstantUInt::get (Type::UIntTy, 0); > Value *c2 = ConstantUInt::get (Type::UIntTy, 2); > > Module *m = new Module ("test_module");...
2002 Jan 13
1
rsynd-2.5.1 / batch.c patch
...t_from_batch(void) { unsigned char flags; @@ -261,7 +262,7 @@ return bytes_read; } -unsigned char read_batch_flags() +unsigned char read_batch_flags(void) { int flags; @@ -339,13 +340,13 @@ if (int_str_len > 0) { read_batch_flist_file(buff, int_str_len); buff[int_str_len] = '\0'; - file[0].sum = strdup(buff); + file[0].sum = (unsigned char *)strdup(buff); } else { file[0].sum = NULL; } } -void write_batch_csums_file(char *buff, int bytes_to_wr...
2015 Oct 11
2
[PATCH] cpu.c: initialize a variable
Some debugging tools don't like if a code uses unitialized variables. The code in cpu.c uses the value of fxsr.buff[50], so it makes sense to explicitely initialize it (because fxsave can fail to do it). -------------- next part -------------- A non-text attachment was scrubbed... Name: cpu_init_val.patch Type: application/octet-stream Size: 409 bytes Desc: not available Url : http://lists.xiph.org/pipermail/fla...
1999 Oct 13
3
main/character.c (et.al): dangerous AllocBuffer()
I was hit by ugly crashes of R, when I tried to read big data sets ("volcano"). So I looked into the code and found the following in character.c (triggered by substr()): I assume that the helper function AllocBuffer() shall facilitate an economic memory management. But the use of realloc() in the else-branch does not conform to ANSI and may hit you with certain compilers. When called with len<0 the code is assumed to re-size buff to MAXELTSIZE: realloc(buff, 0); buff = (char *) realloc(buff, MAXELTS...
1999 Oct 13
3
main/character.c (et.al): dangerous AllocBuffer()
I was hit by ugly crashes of R, when I tried to read big data sets ("volcano"). So I looked into the code and found the following in character.c (triggered by substr()): I assume that the helper function AllocBuffer() shall facilitate an economic memory management. But the use of realloc() in the else-branch does not conform to ANSI and may hit you with certain compilers. When called with len<0 the code is assumed to re-size buff to MAXELTSIZE: realloc(buff, 0); buff = (char *) realloc(buff, MAXELTS...
2004 Sep 12
0
Help needed: division by zero in winword etc.
.... In another program like "Camel join" it quits as soon as i go up to the level of "my computer" with a message "didivsion by zero in ReadFATSuperblock. I was able to track the problem down to the following lines in volume.c (starting from line 502) nsect -= GETWORD(buff, 0x0e) + buff[0x10] * sz + (GETWORD(buff, 0x11) * 32 + (GETWORD(buff, 0x0b) - 1)) / GETWORD(buff, 0x0b); nclust = nsect / buff[0x0d]; when i change these into this: nsect -= GETWORD(buff, 0x0e) + buff[0x10] * sz + (GETWORD(buff, 0x11) * 32 + (GETWORD(buff, 0x0b)...
2004 Aug 06
0
Submission: Patch to libshout/sock.c for MacOSX
...else return fcntl(sockfd, F_SETFL, (block == SOCK_BLOCK) ? 0 : O_NONBLOCK); #endif } int sock_close(SOCKET sockfd) { #ifdef _WIN32 return closesocket(sockfd); #else return close(sockfd); #endif } /* * Write len bytes from buf to the socket. */ int sock_write_bytes(SOCKET sockfd, const char *buff, const int len) { int wrote, res, polled; // struct pollfd socks; // <SKoT> fd_set writefds; // struct timeval timeout; // </SKoT> /* sanity check */ if (!buff) { return SOCKET_ERROR; } else if (len <= 0) { return SOCKET_ERROR;...
2002 Jan 30
1
"Buff" memory grows
Hi. I have shifted from redhat 7.1 to 7.2, and have several machines running both versions now. I have noticed, that the memory usage patern is very different on machines using ext2 and ext3 - the ones using ext2 usually use 5-10 MB of "buff" memory, but the ones with ext3 grow to 50MB on machines with 128MB, and to 250MB with on machine with 512 MB. I have conducted a test, and changed /etc/fstab on the 7.2 machine to mount all partitions ext2 instead of ext3, and the "buff" memory is back to 5 MB, as with normal 7.1 li...
2018 May 21
2
[RFC PATCH net-next 10/12] vhost_net: build xdp buff
On Mon, 21 May 2018 17:04:31 +0800 Jason wrote: > This patch implement build XDP buffers in vhost_net. The idea is do > userspace copy in vhost_net and build XDP buff based on the > page. Vhost_net can then submit one or an array of XDP buffs to > underlayer socket (e.g TUN). TUN can choose to do XDP or call > build_skb() to build skb. To support build skb, vnet header w...
2002 Feb 11
0
RSYNC 2.5.2 type mismatches in batch.c
...ist_from_batch(void) { unsigned char flags; @@ -270,7 +271,7 @@ return bytes_read; } -unsigned char read_batch_flags() +unsigned char read_batch_flags(void) { int flags; @@ -348,7 +349,7 @@ if (int_str_len > 0) { read_batch_flist_file(buff, int_str_len); buff[int_str_len] = '\0'; - file[0].sum = strdup(buff); + file[0].sum = (unsigned char *)strdup(buff); } else { file[0].sum = NULL; } @@ -386,7 +387,7 @@ } } -void close_batch_csums_fi...
2018 May 21
0
[RFC PATCH net-next 10/12] vhost_net: build xdp buff
This patch implement build XDP buffers in vhost_net. The idea is do userspace copy in vhost_net and build XDP buff based on the page. Vhost_net can then submit one or an array of XDP buffs to underlayer socket (e.g TUN). TUN can choose to do XDP or call build_skb() to build skb. To support build skb, vnet header were also stored into...
2006 Jan 10
2
Problem with Action:Originate with ASterisk Manager
Hi Asterisk-users, I am working with Aterisk Manager API's. I can login successfuly with the following. char buff[256]; strcpy(buff, "Action: Login\r\nUsername: admin\r\nSecret: unix\r\n\r\n"); send(msock, buff, 255); Now I want to try Action: Originate, therefore I tried the following char buff1[256]; strcpy(buff1, "Action: Originate\r\nChannel: SIP/101\r\nExten: 102\r\nPriority: 1\r\n...
2002 Feb 07
1
Latest version of the batch mode cleanup patch
...tic char rsync_csums_file[] = ".rsync_csums"; +static char rsync_delta_file[] = ".rsync_delta"; +static char rsync_argvs_file[] = ".rsync_argvs"; + +static int fdb; +static int fdb_delta; +static int fdb_open; +static int fdb_close; void write_batch_flist_file(char *buff, int bytes_to_write) { + char filename[MAXPATHLEN]; if (fdb_open) { /* Set up file extension */ - strcat(rsync_flist_file, batch_file_ext); + strlcpy(filename, batch_prefix, sizeof(filename)); + strlcat(filename, rsync_flist_file, sizeof(filename)); - /* Open batch flist file for writ...
2004 Sep 13
1
bitmap() doesn't finish with file in Windows (PR#7224)
...S file to a PNG, the postscript drive doesn't wait for ghostscript to finish (under Windows). In the Linux version, the postscript driver does wait for the printing command to finish. Compare the following lines of devPS.c that actually call the "cmd": #ifdef Unix err = R_system(buff); #endif #ifdef Win32 err = runcmd(buff, 0, 0, NULL); #endif RECOMMENDATION: Change runcmd(buff, 0, 0, NULL) to runcmd(buff, 1, 0, NULL) in devPS.c to make the driver wait for the command to finish.
2012 Nov 12
3
nomenclature for conf files
It might sound stupid, but I'd like to know if there's any difference. Are those 3 line the same? WITH_KMS=YES WITH_KMS="YES" WITH_KMS=yes Best regards Zoran
2004 Aug 06
0
iceS 0.2.2 bug?
...er in the playlist. my .mp3s check out ok using mp3_check, so i dont think there's any file corruption, and i have to conclude maybe there's a bug in icesS-0.2.2. running the corefile thru gdb, i see that we've died here: (gdb) where #0 0x10018814 in shout_send_data (self=0x100c12c8, buff=0x7fffe0e8 "\212è", len=1) at shout.c:180 #1 0x100128fc in stream_send_data (stream=0x100c12c8, buf=0x7fffe0e8 "\212è", len=1) at stream.c:339 #2 0x1001260c in stream_send (source=0x7ffff538) at stream.c:213 #3 0x10012458 in ices_stream_loop () at stream.c:121 #4 0...
2007 Apr 18
3
Problems with the Speex Jitter Buffer
Hi, I am using the JitterBuffer. Since there is not so much documentation I think I dont use it in a correct way. All the packets are recieved (I control the sequence numbers) but the JitterBuffer often tells me he has no packet. I am using it in the following way: I am not sure if I use the ticks correctly but I think it c...
2008 Feb 01
2
How to read group descriptor?
...is missing. #include<linux/ext3_fs.h> #include<sys/types.h> #include<sys/stat.h> #include<stdio.h> #include<unistd.h> #include<fcntl.h> #include<stdlib.h> #include<string.h> #define block_size 4096 #define boot_block_size 1024 int main() { char *buff = (char *)malloc(block_size); struct ext3_super_block * sblock = (struct ext3_super_block *)malloc(sizeof(struct ext3_super_block)); struct ext3_group_desc * gdesc = (struct ext3_group_desc *)malloc(sizeof(struct ext3_group_desc)); int fd = open("/dev/hda3",O_RDONLY); lseek(fd...