summaryrefslogtreecommitdiffstats
path: root/cpukit/zlib/gzclose.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel@rtems.org>2023-05-26 10:40:13 -0500
committerJoel Sherrill <joel@rtems.org>2023-06-06 09:09:44 -0500
commitbb5dbff74a135957f3774e0ee1175bf7cf06edce (patch)
treecdaa375617f3577d0736aeae1dd84daf35c21f5a /cpukit/zlib/gzclose.c
parenttermios: Install <rtems/termiosdevice.h> (diff)
downloadrtems-bb5dbff74a135957f3774e0ee1175bf7cf06edce.tar.bz2
Move various compression libraries into single subdirectory
This improves the organization of the cpukit. Closes #4912.
Diffstat (limited to 'cpukit/zlib/gzclose.c')
-rw-r--r--cpukit/zlib/gzclose.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/cpukit/zlib/gzclose.c b/cpukit/zlib/gzclose.c
deleted file mode 100644
index caeb99a317..0000000000
--- a/cpukit/zlib/gzclose.c
+++ /dev/null
@@ -1,25 +0,0 @@
-/* gzclose.c -- zlib gzclose() function
- * Copyright (C) 2004, 2010 Mark Adler
- * For conditions of distribution and use, see copyright notice in zlib.h
- */
-
-#include "gzguts.h"
-
-/* gzclose() is in a separate file so that it is linked in only if it is used.
- That way the other gzclose functions can be used instead to avoid linking in
- unneeded compression or decompression routines. */
-int ZEXPORT gzclose(file)
- gzFile file;
-{
-#ifndef NO_GZCOMPRESS
- gz_statep state;
-
- if (file == NULL)
- return Z_STREAM_ERROR;
- state = (gz_statep)file;
-
- return state->mode == GZ_READ ? gzclose_r(file) : gzclose_w(file);
-#else
- return gzclose_r(file);
-#endif
-}