SHA256
3
0
forked from pool/libzio
OBS User unknown 2009-03-03 17:34:28 +00:00 committed by Git OBS Bridge
parent da24b04b7f
commit 01857cba4c
5 changed files with 14 additions and 63 deletions

View File

@ -1,55 +0,0 @@
--- zio.c
+++ zio.c
@@ -62,7 +62,7 @@ static ssize_t bzwrite(void *cookie, c
return (ssize_t)BZ2_bzwrite((BZFILE*)cookie, (void*)buf, count);
}
-static zio_int_t bzseek(void *cookie __unused, zio_off_t *poffset __unused, int whence __unused)
+static zio_int_t bzseek(void *cookie unused, zio_off_t *poffset unused, int whence unused)
{
errno = ESPIPE;
return -1;
@@ -327,7 +327,7 @@ static ssize_t lzwwrite(void *cookie,
return -1;
}
-static zio_int_t lzwseek(void *cookie __unused, zio_off_t *poffset __unused, int whence __unused)
+static zio_int_t lzwseek(void *cookie unused, zio_off_t *poffset unused, int whence unused)
{
errno = ESPIPE;
return -1;
--- zioP.h
+++ zioP.h
@@ -33,14 +33,14 @@
#include <stdlib.h>
#include <errno.h>
-#ifndef __unused
-# define __unused __attribute__((__unused__))
+#ifndef unused
+# define unused __attribute__((__unused__))
#endif
-#ifndef __nonnull
-# define __nonnull(parm) __attribute__((__nonnull__ parm))
+#ifndef nonnull
+# define nonnull(parm) __attribute__((__nonnull__ parm))
#endif
-#ifndef __wur
-# define __wur __attribute__((__warn_unused_result__))
+#ifndef wur
+# define wur __attribute__((__warn_unused_result__))
#endif
#if !defined(HAVE_FOPENCOOKIE) && !defined(HAVE_FUNOPEN)
@@ -161,9 +161,9 @@ __extension__ typedef struct
} cookie_io_functions_t;
static __inline__ FILE *fopencookie(void *__restrict,
const char *__restrict,
- cookie_io_functions_t) __nonnull((1,2)) __wur;
+ cookie_io_functions_t) nonnull((1,2)) wur;
static __inline__ FILE *fopencookie(void *__restrict cookie,
- const char *__restrict mode __unused,
+ const char *__restrict mode unused,
cookie_io_functions_t io_funcs)
{
return funopen(cookie, io_funcs.read, io_funcs.write, io_funcs.seek, io_funcs.close);

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:95ae2ba76dbfc9c03caa70cc52b5b1a522e41f811336bf7e6c5e16b2fc7e1b78
size 20596

3
libzio-0.99.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:05dc10958d91bb90404eaef843183117e38cd3fda531755edffc28d86cdfd24d
size 21389

View File

@ -1,9 +1,15 @@
-------------------------------------------------------------------
Mon Feb 23 16:01:17 CET 2009 - werner@suse.de
- Add fseek(3) support for bzip and LZW files
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Feb 23 11:05:37 CET 2009 - schwab@suse.de Mon Feb 23 11:05:37 CET 2009 - schwab@suse.de
- Fix namespace violations. - Fix namespace violations.
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Feb 13 14:05:11 CET 2009 - werner@suse.de Fri Feb 13 14:05:11 CET 2009 - werner@suse.de
- Use liblzma from xz package if available - Use liblzma from xz package if available

View File

@ -1,5 +1,5 @@
# #
# spec file for package libzio (Version 0.93) # spec file for package libzio (Version 0.99)
# #
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
# #
@ -33,12 +33,11 @@ AutoReqProv: on
Obsoletes: libzio-64bit Obsoletes: libzio-64bit
%endif %endif
# #
Version: 0.93 Version: 0.99
Release: 2 Release: 1
Summary: A Library for Accessing Compressed Text Files Summary: A Library for Accessing Compressed Text Files
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source: libzio-%{version}.tar.bz2 Source: libzio-%{version}.tar.bz2
Patch: libzio-%{version}.diff
%description %description
Libzio provides a wrapper function for reading or writing gzip or bzip2 Libzio provides a wrapper function for reading or writing gzip or bzip2
@ -74,7 +73,6 @@ Authors:
%prep %prep
%setup -q %setup -q
%patch
%build %build
make make
@ -114,6 +112,8 @@ make DESTDIR=$RPM_BUILD_ROOT install libdir=%{_libdir} mandir=%{_mandir}
/usr/include/zio.h /usr/include/zio.h
%changelog %changelog
* Mon Feb 23 2009 werner@suse.de
- Add fseek(3) support for bzip and LZW files
* Mon Feb 23 2009 schwab@suse.de * Mon Feb 23 2009 schwab@suse.de
- Fix namespace violations. - Fix namespace violations.
* Fri Feb 13 2009 werner@suse.de * Fri Feb 13 2009 werner@suse.de