*
* Note that if the file is found in the normal fs-directory the
* returned structure is mostly empty and the => zzip_read call will
- * use the libc => read to obtain data. Otherwise a => zzip_file_open
+ * use the libc => read(2) to obtain data. Otherwise a => zzip_file_open
* is performed and any error mapped to => errno(3).
*
* unlike the posix-wrapper => zzip_open the mode-argument is
*
* Note that if the file is found in the normal fs-directory the
* returned structure is mostly empty and the => zzip_read call will
- * use the libc => read to obtain data. Otherwise a => zzip_file_open
+ * use the libc => read(2) to obtain data. Otherwise a => zzip_file_open
* is performed and any error mapped to => errno(3).
*
* There was a possibility to transfer zziplib-specific openmodes
/*
- * Author:
+ * Author:
* Guido Draheim <guidod@gmx.de>
*
* Copyright (c) 2000,2001,2002,2003 Guido Draheim
* All rights reserved,
* use under the restrictions of the
* Lesser GNU General Public License
- * or alternatively the restrictions
+ * or alternatively the restrictions
* of the Mozilla Public License 1.1
*/
#include <stdio.h>
#endif
-/**
- * just returns dir->errcode of the ZZIP_DIR handle
- * see: => zzip_dir_open, => zzip_diropen, => zzip_readdir, => zzip_dir_read
+/**
+ * just returns dir->errcode of the ZZIP_DIR handle
+ * see: => zzip_dir_open, => zzip_dir_open, => zzip_readdir, => zzip_dir_read
*/
int
zzip_error(ZZIP_DIR * dir)
}
/** => zzip_error
- * This function just does dir->errcode = errcode
+ * This function just does dir->errcode = errcode
*/
void
zzip_seterror(ZZIP_DIR * dir, int errcode) { dir->errcode = errcode; }
-/**
- * This function will just return fp->dir
+/**
+ * This function will just return fp->dir
*
* If a ZZIP_FILE is contained within a zip-file that one will be a valid
* pointer, otherwise a NULL is returned and the ZZIP_FILE wraps a real file.
}
/** => zzip_dirhandle
- * This function will just return dir->fd
+ * This function will just return dir->fd
*
* If a ZZIP_DIR does point to a zipfile then the file-descriptor of that
- * zipfile is returned, otherwise a NULL is returned and the ZZIP_DIR wraps
+ * zipfile is returned, otherwise a NULL is returned and the ZZIP_DIR wraps
* a real directory DIR (if you have dirent on your system).
*/
int
}
/**
- * return static const string of the known compression methods,
+ * return static const string of the known compression methods,
* otherwise just "zipped" is returned
*/
zzip_char_t *
case ZZIP_IS_DEFLATED_BETTER: return "deflatedX";
case ZZIP_IS_IMPLODED_BETTER: return "implodedX";
default:
- if (0 < compr && compr < 256) return "zipped";
+ if (0 < compr && compr < 256) return "zipped";
else
{
# ifdef S_ISDIR
}
/** => zzip_file_real
- * This function checks if the ZZIP_DIR-handle is wrapping
- * a real directory or a zip-archive.
+ * This function checks if the ZZIP_DIR-handle is wrapping
+ * a real directory or a zip-archive.
* Returns 1 for a stat'able directory, and 0 for a handle to zip-archive.
*/
int
}
/**
- * This function checks if the ZZIP_FILE-handle is wrapping
- * a real file or a zip-contained file.
+ * This function checks if the ZZIP_FILE-handle is wrapping
+ * a real file or a zip-contained file.
* Returns 1 for a stat'able file, and 0 for a file inside a zip-archive.
*/
int
return fp->fd;
}
-/*
+/*
* Local variables:
* c-file-style: "stroustrup"
* End: