Artifact 05231f1f0c3faa8d695cb3590e57e873d5751b00a4a13ab3c0e4ae6d47048f8f:
- File
utils/ofzip/OFZIP.h
— part of check-in
[200d385059]
at
2016-05-28 09:54:42
on branch trunk
— OFZIP: Define S_IRWXG / S_IRWXO in OFZIP.h
This makes sure they are always defined and don't need to be defined in
every .m file. (user: js, size: 1178) [annotate] [blame] [check-ins using]
/* * Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016 * Jonathan Schleifer <js@heap.zone> * * All rights reserved. * * This file is part of ObjFW. It may be distributed under the terms of the * Q Public License 1.0, which can be found in the file LICENSE.QPL included in * the packaging of this file. * * Alternatively, it may be distributed under the terms of the GNU General * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #include <sys/stat.h> #import "OFObject.h" #import "OFString.h" #import "Archive.h" #ifndef S_IRWXG # define S_IRWXG 0 #endif #ifndef S_IRWXO # define S_IRWXO 0 #endif @interface OFZIP: OFObject { int8_t _overwrite; @public int8_t _outputLevel; OFString *_archivePath; int _exitStatus; } - (id <Archive>)openArchiveWithPath: (OFString*)path type: (OFString*)type; - (bool)shouldExtractFile: (OFString*)fileName outFileName: (OFString*)outFileName; - (ssize_t)copyBlockFromStream: (OFStream*)input toStream: (OFStream*)output fileName: (OFString*)fileName; @end