Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

zip_set_file_comment(3) [centos man page]

ZIP_SET_FILE_COMMENT(3) 				     Library Functions Manual					   ZIP_SET_FILE_COMMENT(3)

NAME
zip_set_file_comment - set comment for file in zip LIBRARY
libzip (-lzip) SYNOPSIS
#include <zip.h> int zip_set_file_comment(struct zip *archive, zip_uint64_t index); "const char *comment" "int len" DESCRIPTION
The zip_set_file_comment function sets the comment for the file at position index in the zip archive to comment of length len. If comment is NULL and len is 0, the file comment 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_comment 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 comment length in a zip file (65535). [ZIP_ER_MEMORY] Required memory could not be allocated. SEE ALSO
libzip(3), zip_get_archive_comment(3), zip_get_file_comment(3), zip_set_archive_comment(3) AUTHORS
Dieter Baron <dillo@giga.or.at> and Thomas Klausner <tk@giga.or.at> NiH March 10, 2009 ZIP_SET_FILE_COMMENT(3)

Check Out this Related Man Page

ZIP_SET_ARCHIVE_COMMENT(3)				     Library Functions Manual					ZIP_SET_ARCHIVE_COMMENT(3)

NAME
zip_set_archive_comment - set zip archive comment LIBRARY
libzip (-lzip) SYNOPSIS
#include <zip.h> int zip_set_archive_comment(struct zip *archive); "const char *comment" "int len" DESCRIPTION
The zip_set_archive_comment function sets the comment for the entire zip archive. If comment is NULL and len is 0, the archive comment 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_archive_comment fails if: [ZIP_ER_INVAL] len is less than 0 or longer than the maximum comment length in a zip file (65535). [ZIP_ER_MEMORY] Required memory could not be allocated. SEE ALSO
libzip(3), zip_get_archive_comment(3), zip_get_file_comment(3), zip_set_file_comment(3) AUTHORS
Dieter Baron <dillo@giga.or.at> and Thomas Klausner <tk@giga.or.at> NiH October 26, 2007 ZIP_SET_ARCHIVE_COMMENT(3)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

# comment

Hi guys and Gals AIX 5.1 If I had a # above several scripts would it comment out everything below it? Like this # 01 2 ** ..................................... 02 31 ......................................... # this is a script 03 12 **.......................... Would... (6 Replies)
Discussion started by: rocker40
6 Replies

2. UNIX for Dummies Questions & Answers

zip utility on HP-UX

where can i find an zip utility similar than windows zip for HP-UX? Jesus (1 Reply)
Discussion started by: jgutierrez29
1 Replies

3. 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

4. Shell Programming and Scripting

Picking the file based on Date..Requirement

Dear frnds My requirement is as follows -rw-r----- 1 f02 dd 109428250 May 18 14:02 Extracts_20070518104730.zip -rw-r----- 1 f02 dd 109493187 May 21 13:30 Extracts_20070521091700.zip -rw-r----- 1 f02 dd 109993058 May 23 14:14 Extracts_20070523085955.zip -rw-r----- 1... (5 Replies)
Discussion started by: sureshg_sampat
5 Replies

5. Shell Programming and Scripting

comment and Uncomment single task out of multiple task

I have a file contains TASK gsnmpproxy { CommandLine = $SMCHOME/bin/gsnmpProxy.exe } TASK gsnmpdbgui { CommandLine = $SMCHOME/bin/gsnmpdbgui.exe I would like to comment and than uncomment specific task eg TASK gsnmpproxy Pls suggest how to do in shell script (9 Replies)
Discussion started by: madhusmita
9 Replies

6. UNIX for Dummies Questions & Answers

Unix command to veiw a zip file

Hello, Is there a unix command to view the following zip file? I just need to see the content of it. -rw-r--r-- 1 oracle dba 58403 Jun 28 13:04 test_digital.log.Z Thanks! (3 Replies)
Discussion started by: syang68
3 Replies

7. Solaris

Add a file to existing zip file

Hi, I was trying to add a file to the existing zip file and i was using the below command but could not able to succeed. Could you please throw some light on this. Thanks for your time. Syntax zip 20081029.zip Siebel_DW_Rep_Dev2_20081016.rep Error message: zip warning: missing end... (2 Replies)
Discussion started by: Ariean
2 Replies

8. Shell Programming and Scripting

zip command

Hi All, I have the following requirement. Source file Products_Extract.dat contains <CTRL M > characters and hence is in DOS format. I zip this file using zip command in UNIX BOX as follows: find . -name Products_Extract.dat|zip Target.zip -@ Next I ftp (in Binary MODE) this output zip... (3 Replies)
Discussion started by: sureshg_sampat
3 Replies

9. Solaris

flarcreat : comment supprimer le test de la taille d'archive

Bonjour, Quelle est l'option pour éviter le test interminable de la taille approximative de la flash archive par la commande flarcreate ? si quelqu'un connait l'option, je suis preneur. merci (1 Reply)
Discussion started by: adminman
1 Replies

10. Shell Programming and Scripting

Use awk to pick out zip code

Hi, Suppose I have a csv file, each line look like this: ABC Company, 1999, March, caucasian owned, 123 BroadWay NY 92939-2222 How do I create two new columns at the end, one for state, one for zip. So that the line is ABC Company, 1999, March, caucasian owned, 123 BroadWay NY... (2 Replies)
Discussion started by: grossgermany
2 Replies

11. Shell Programming and Scripting

Troubles with zip command

Hello, I have some troubles with script that creates a zip archive. First I added following command: zip -r /path/to/folder/packed_file.zip /another/path/folder_for_packing But there is a problem: how to zip the folder without adding full path inside the archive? 'folder_for_backing'... (3 Replies)
Discussion started by: assamalla
3 Replies

12. UNIX for Dummies Questions & Answers

multiline comment in shell script

Is thery any way to give comment to multiple line without explicitly specifying # at the begining of each line ? (2 Replies)
Discussion started by: hiten.r.chauhan
2 Replies

13. Shell Programming and Scripting

how to ignore multiline comment from a file while reading it

Hi friends , I want to ignore single and multiline comment( enclosed by " \* *\" ) of a file whle reading it. I am using the below code. nawk '/\/\*/{f=1} /\*\//{f=0;next} !f' proc.txt | while read str do ... done The problem is its working partially. that is its failing in one... (1 Reply)
Discussion started by: neelmani
1 Replies

14. Solaris

10_Recommended.zip

Does anyone have md5 or sha sum of Solaris10 updates file (10_Recommended.zip) for SPARC? (3 Replies)
Discussion started by: orange47
3 Replies

15. UNIX for Dummies Questions & Answers

What is the difference between zip and gunzip?

what is the difference between zip and gunzip this is interview question (1 Reply)
Discussion started by: pspriyanka
1 Replies