Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

zip_set_file_extra(3) [debian man page]

ZIP_SET_FILE_EXTRA(3)					     Library Functions Manual					     ZIP_SET_FILE_EXTRA(3)

NAME
zip_set_file_extra - set extra field for file in zip LIBRARY
libzip (-lzip) SYNOPSIS
#include <zip.h> int zip_set_file_extra(struct zip *archive, zip_uint64_t index); "const char *extra" "int len" DESCRIPTION
The zip_set_file_extra function sets the extra field for the file at position index in the zip archive to extra of length len. If extra is NULL and len is 0, the file extra field will be removed. RETURN VALUES
Upon successful completion 0 is returned. Otherwise, -1 is returned and the error information in archive is set to indicate the error. ERRORS
zip_set_file_extra fails if: [ZIP_ER_INVAL] index is not a valid file index in archive, or len is less than 0 or longer than the maximum extra field length in a zip file (65535). [ZIP_ER_MEMORY] Required memory could not be allocated. SEE ALSO
libzip(3), zip_get_file_extra(3) AUTHORS
Dieter Baron <dillo@giga.or.at> and Thomas Klausner <tk@giga.or.at> NiH February 13, 2011 ZIP_SET_FILE_EXTRA(3)

Check Out this Related Man Page

ZIP_GET_FILE_EXTRA(3)					     Library Functions Manual					     ZIP_GET_FILE_EXTRA(3)

NAME
zip_get_file_extra - get extra field for file in zip LIBRARY
libzip (-lzip) SYNOPSIS
#include <zip.h> const char * zip_get_file_extra(struct zip *archive, zip_uint64_t index); "int *lenp" "int flags" DESCRIPTION
The zip_get_file_extra function returns the extra field for the file at position index in the zip archive. This pointer should not be mod- ified or free(3) Ap d. If lenp is not NULL, the integer to which it points will be set to the length of the extra. If flags is set to ZIP_FL_UNCHANGED, the original unchanged extra field is returned. RETURN VALUES
Upon successful completion, a pointer to the extra field is returned, or NULL if there is no extra field. In case of an error, NULL is returned and the error code in archive is set to indicate the error. ERRORS
zip_get_file_extra fails if: [ZIP_ER_INVAL] index is not a valid file index in archive. SEE ALSO
libzip(3), zip_set_file_extra(3) AUTHORS
Dieter Baron <dillo@giga.or.at> and Thomas Klausner <tk@giga.or.at> NiH February 13, 2011 ZIP_GET_FILE_EXTRA(3)
Man Page

5 More Discussions You Might Find Interesting

1. AIX

Limitations of a file size for zipping

what is the maximum file size that i can zip in aix. (1 Reply)
Discussion started by: ramky79
1 Replies

2. UNIX for Dummies Questions & Answers

SORT question

I'm looking for a sort command that will sort by zip code first then by last name. (zip code is the last field, last name is first field) data file looks like this. Hope Bob 1234 Main ST. Colorado Springs, CO 80920 I was thinking along the lines of: sort -k9n address.data //for the... (2 Replies)
Discussion started by: ssgatbliss
2 Replies

3. Shell Programming and Scripting

csh script for deleting extra spaces in text file

I am new to scripting and I needed to know if there would be an easy way to delete extra spaces in a text file. I have a file with three rows with 22 numbers each, but there is extra spaces between the numbers when it gets output by this program AFNI that I am using. What script would help delete... (2 Replies)
Discussion started by: hertingm
2 Replies

4. UNIX for Dummies Questions & Answers

How to zip up a series of log files in one shot?

Hi, I'm trying to zip up the first half year's application logs into one zip file. The logs are in the format of log.2011-01-01 to log.2011-06-30. I tried to use this command at ksh: zip logs.jan-jun2011.zip *2011-01* *2011-02* *2011-03* *2011-04* *2011-05* *2011-06* It works. However, I... (4 Replies)
Discussion started by: hyang
4 Replies

5. UNIX for Dummies Questions & Answers

installation on extra HD

3/19 List members: I have an extra HD in my early 2009 Intel Mac running OS 10.7.3 and Windows. Both of the latter systems have their own HD's devoted to them. On this extra HD I'd like to install Free BSD or any other version of Unix that is close to the version on which Apple bases its... (0 Replies)
Discussion started by: mark1411
0 Replies