search for: gzread

Displaying 20 results from an estimated 25 matches for "gzread".

2010 Feb 03
2
[BUG] problem with zlib plugin
Hi, i think i've the same problem as described here: http://www.dovecot.org/list/dovecot/2009-June/040687.html when opening a folder without an index (?) and bzip-compressed files i get following error message: 2010-02-03T14:12:10.026452+01:00 server dovecot: IMAP(user): gzread() failed: PARAM_ERROR 2010-02-03T14:12:10.026477+01:00 server dovecot: IMAP(user): FETCH for mailbox folder UID 105 failed to read message input: Invalid argument Matthias -- dovecot -n # 1.2.10: /etc/dovecot/dovecot.conf # OS: Linux 2.6.26-2-vserver-amd64 x86_64 Ubuntu 9.04 listen: *:143...
2010 Feb 16
4
zlib plugin trouble
...14:22:25 dovecot: IMAP(hidden at domain.com): zlib_istream.seek() failed: Invalid argument mail.err: Feb 16 14:22:25 dovecot: IMAP(hidden at domain.com): FETCH for mailbox Meursault UID 101 failed to read message input: Invalid argument mail.err: Feb 16 14:22:26 dovecot: IMAP(hidden at domain.com): gzread() failed: DATA_ERROR_MAGIC mail.err: Feb 16 14:22:26 dovecot: IMAP(hidden at domain.com): zlib_istream.seek() failed: Invalid argument mail.err: Feb 16 14:22:26 dovecot: IMAP(hidden at domain.com): FETCH for mailbox Meursault UID 101 failed to read message input: Invalid argument mail.err: Feb 16 1...
2007 Apr 18
2
[Patch]: Drive/Partition and extensible filesystem support for syslinux
...en(fs, "MYFILE CFG", O_RDONLY); // This will give you a open descriptor // Now on, you can read files just like any other *nix file...! :) read(fd, mybuf, 128); // read 128 bytes from file.. OR you can use zlib funtionality of syslinux with: gzFile gzf = gzdopen(fd, "r"); gzread(gzf, mybuffer, 128); etc... //After you are done, you can close the descriptor with close(fd); // FS can be closed with libfat_close(fs); One thing which is missing is the way you specify file names for open. It is the short name format of DOS. Would appreciate if someone can add long file nam...
2014 Jul 29
4
[PATCH 0/2] supermin: improve handling of memory
Hi, the two patches improve the way memory is handled in supermin, by cleanly exiting on memory allocation failures, and free'ing memory when not needed (to keep working and not run out of memory). Pino Toscano (2): Check for failures in memory allocations Free memory buffers when not used src/ext2fs-c.c | 13 +++++++++++-- src/init.c | 13 +++++++++++++ 2 files changed, 24
2002 Jan 30
1
Patch: update zlib/* to 1.1.3
...1.1 ChangeLog --- zlib/ChangeLog 7 May 1998 06:19:41 -0000 1.1 +++ zlib/ChangeLog 30 Jan 2002 01:12:41 -0000 @@ -1,6 +1,54 @@ ChangeLog file for zlib +Changes in 1.1.3 (9 July 1998) +- fix "an inflate input buffer bug that shows up on rare but persistent + occasions" (Mark) +- fix gzread and gztell for concatenated .gz files (Didier Le Botlan) +- fix gzseek(..., SEEK_SET) in write mode +- fix crc check after a gzeek (Frank Faubert) +- fix miniunzip when the last entry in a zip file is itself a zip file + (J Lillge) +- add contrib/asm586 and contrib/asm686 (Brian Raiter) + See htt...
2006 Mar 11
5
mboot.c32, weird e820 map on HP blade machine, possible memory corruption
I'm seeing this on a HP Blade and i'm not sure why this is happning since the nature of the issue is so wierd. I compiled mboot.c with a DEBUG defined in the mboot.c file. In the funciton init_mmap(), it prints the e820 map and on the HP blade this map values come out to be totally random. Some weird numbers which dont make any sense at all. However, if i add a while(1); or a exit(1); at
2016 Feb 17
0
[PATCH supermin v2 1/4] init: Uncompress modules before adding them to the mini initrd.
...- if (verbose) - fprintf (stderr, "done with xz %d read\n", size); - } else { -#endif - gzFile gzfp = gzopen (filename, "rb"); - if (gzfp == NULL) { - fprintf (stderr, "insmod: gzopen failed: %s", filename); - exit (EXIT_FAILURE); - } - while ((num = gzread (gzfp, tmp, tmpsize)) > 0) { - if (num > capacity) { - buf = (char*) realloc (buf, size*2); - if (!buf) { - perror("realloc"); - exit (EXIT_FAILURE); - } - capacity = size; - } - memcpy (buf+size, tmp, num); - capacity -= num; - size...
2004 Aug 06
1
Icecast2: undefined reference to `xmlDocGetRootElement'
...' config.o(.text+0x932): more undefined references to `xmlIsBlankNode' follow stats.o: In function `stats_sendxml': stats.o(.text+0x9eb): undefined reference to `xmlDocSetRootElement' /usr/lib/libxml.so: undefined reference to `gzopen' /usr/lib/libxml.so: undefined reference to `gzread' /usr/lib/libxml.so: undefined reference to `gzclose' /usr/lib/libxml.so: undefined reference to `gzwrite' collect2: ld returned 1 exit status What do I have to do to get this to compile? Regards, Simon B. --- >8 ---- List archives: http://www.xiph.org/archives/ icecast project h...
2016 Feb 17
2
[PATCH supermin 0/2] Allow an alternate libc to be used for init.
Allow an alternate libc, such as dietlibc, to be used for the init binary in the supermin appliance. Rich.
2001 Sep 29
0
configure.in fixes for 2.9.9p2
...+ +dnl zlib is required +AC_ARG_WITH(zlib, + [ --with-zlib=PATH Use zlib in PATH], + [ + if test -d "$withval"; then + CPPFLAGS="${CPPFLAGS} -I$withval/include" + LDFLAGS="${LDFLAGS} -L$withval/lib" + fi + ] +) + +AC_CHECK_HEADER(zlib.h, + AC_CHECK_LIB(z, gzread, , + AC_MSG_ERROR([*** zlib missing. install first or check config.log ***])), + AC_MSG_ERROR([*** zlib missing. install first or check config.log ***])) -AC_CHECK_LIB(gen, getspnam, LIBS="$LIBS -lgen") -AC_CHECK_LIB(z, deflate, ,AC_MSG_ERROR([*** zlib missing - please install first or...
2007 May 04
1
[PATCH 1/3] Documentation and example updates
...o bridge */ +#endif static bool verbose; #define verbose(args...) \ @@ -166,8 +169,6 @@ static unsigned long unpack_bzimage(int void *img = (void *)0x100000; f = gzdopen(fd, "rb"); - if (gzdirect(f)) - errx(1, "did not find correct gzip header"); while ((ret = gzread(f, img + len, 65536)) > 0) len += ret; if (ret < 0) @@ -820,6 +821,7 @@ static void setup_tun_net(const char *ar strcpy(ifr.ifr_name, "tap%d"); if (ioctl(netfd, TUNSETIFF, &ifr) != 0) err(1, "configuring /dev/net/tun"); + ioctl(netfd, TUNSETNOCSUM, 1);...
2007 May 04
1
[PATCH 1/3] Documentation and example updates
...o bridge */ +#endif static bool verbose; #define verbose(args...) \ @@ -166,8 +169,6 @@ static unsigned long unpack_bzimage(int void *img = (void *)0x100000; f = gzdopen(fd, "rb"); - if (gzdirect(f)) - errx(1, "did not find correct gzip header"); while ((ret = gzread(f, img + len, 65536)) > 0) len += ret; if (ret < 0) @@ -820,6 +821,7 @@ static void setup_tun_net(const char *ar strcpy(ifr.ifr_name, "tap%d"); if (ioctl(netfd, TUNSETIFF, &ifr) != 0) err(1, "configuring /dev/net/tun"); + ioctl(netfd, TUNSETNOCSUM, 1);...
2007 Jan 30
1
Solaris 10 compilation issue
...n.o dtrsl_ registration.o wilcox_free registration.o fdhess optimize.o R_ShowFiles platform.o gzgetc connections.o gzopen connections.o gzread connections.o gzseek connections.o gztell connections.o BZ2_bzReadOpen connections.o R_zeroin optimize.o ptr_R_savehistory ../unix/libunix.a(stubs...
2007 Jan 30
1
Difficulty with compiling R-2.4.1 on solaris 10
...n.o dtrsl_ registration.o wilcox_free registration.o fdhess optimize.o R_ShowFiles platform.o gzgetc connections.o gzopen connections.o gzread connections.o gzseek connections.o gztell connections.o BZ2_bzReadOpen connections.o R_zeroin optimize.o ptr_R_savehistory ../unix/libunix.a(stubs...
2016 Feb 17
8
[PATCH supermin 0/2] Allow an alternate libc to be used for init.
v1 -> v2: - If we split out the init program into a separate init/ directory, that makes it much easier to build against an alternate libc. I tried to build against uClibc, but uClibc requires an entire build chain, which looked like it was going to be a massive ballache. Rich.
2007 Jan 30
0
R Compiling issue
...dpofa_ registration.o dposl_ registration.o dqrdc_ registration.o dqrls_ registration.o dqrsl_ registration.o dsvdc_ registration.o dtrco_ registration.o dtrsl_ registration.o wilcox_free registration.o fdhess optimize.o R_ShowFiles platform.o gzgetc connections.o gzopen connections.o gzread connections.o gzseek connections.o gztell connections.o BZ2_bzReadOpen connections.o R_zeroin optimize.o ptr_R_savehistory ../unix/libunix.a(stubs.o) loglin registration.o lowess registration.o machar platform.o ptr_R_loadhistory ../unix/libunix.a(stubs.o) Rf_pnchisq arithmetic.o Rf_pnbi...
2007 Jan 30
0
Issue with compiling R on solaris 10
...n.o dtrsl_ registration.o wilcox_free registration.o fdhess optimize.o R_ShowFiles platform.o gzgetc connections.o gzopen connections.o gzread connections.o gzseek connections.o gztell connections.o BZ2_bzReadOpen connections.o R_zeroin optimize.o ptr_R_savehistory ../unix/libunix.a(stubs...
2001 May 21
1
2.9p1 patches
...;)) + +dnl zlib is required +AC_ARG_WITH(zlib, +[ --with-zlib=PATH Use zlib in PATH],[ + if test -d "$withval"; then + CPPFLAGS="${CPPFLAGS} -I$withval/include" + LDFLAGS="${LDFLAGS} -L$withval/lib" + fi +]) + +AC_CHECK_HEADER(zlib.h, + AC_CHECK_LIB(z, gzread, , + AC_MSG_ERROR([*** zlib missing. install first or check config.log ***])), + AC_MSG_ERROR([*** zlib missing. install first or check config.log ***])) # We don't want to check if we did an pcre override. if test -z "$no_comp_check" ; then @@ -396,7 +388,7 @@ # Check whethe...
2005 Jun 15
6
Compressed maildir
Greetings, I noticed a while back someone posted a patch/plugin that allowed Dovecot to use compressed mbox files. I'm now wondering how far that would put us from having compressed maildir? I have a server with more CPU than disk space, and while I can buy more HDD space, my backup solution doesn't make that practical. It seems to me that when looking for a message file, if it
2007 Apr 18
0
[RFC/PATCH LGUEST X86_64 07/13] lguest64 loader
...const char *initrd, unsigned long *ird_size, + unsigned long *page_offset) +{ + gzFile f; + int ret, len = 0; + void *img = (void *)0x100000; + + map_memory(mem); + + f = gzdopen(fd, "rb"); + if (gzdirect(f)) + errx(1, "did not find correct gzip header"); + while ((ret = gzread(f, img + len, 65536)) > 0) + len += ret; + if (ret < 0) + err(1, "reading image from bzImage"); + + verbose("Unpacked size %i addr %p\n", len, img); + *page_offset = intuit_page_offset(img, len); + *pgdir_addr = finish(mem, page_offset, initrd, ird_size); + + /* Entry is...