aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-file-utils.h
blob: e261ead16b0bf1a53eeb9b0e667b9c1b43d2eba1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */

/* 
 * Authors:
 *   Michael Zucchi <notzed@ximian.com>
 *   Dan Winship <danw@ximian.com>
 *
 * Copyright (C) 2000, 2001 Ximian, Inc.
 *
 * This program is free software; you can redistribute it and/or 
 * modify it under the terms of version 2 of the GNU General Public 
 * License as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
 * USA
 */


#ifndef CAMEL_FILE_UTILS_H
#define CAMEL_FILE_UTILS_H 1

#ifdef __cplusplus
extern "C" {
#pragma }
#endif /* __cplusplus }*/

#include <glib.h>
#include <stdio.h>
#include <sys/types.h>
#include <time.h>

int camel_file_util_encode_fixed_int32 (FILE *out, gint32);
int camel_file_util_decode_fixed_int32 (FILE *in, gint32 *);
int camel_file_util_encode_uint32 (FILE *out, guint32);
int camel_file_util_decode_uint32 (FILE *in, guint32 *);
int camel_file_util_encode_time_t (FILE *out, time_t);
int camel_file_util_decode_time_t (FILE *in, time_t *);
int camel_file_util_encode_off_t (FILE *out, off_t);
int camel_file_util_decode_off_t (FILE *in, off_t *);
int camel_file_util_encode_string (FILE *out, const char *);
int camel_file_util_decode_string (FILE *in, char **);

int camel_file_util_mkdir(const char *path, mode_t mode);
char *camel_file_util_safe_filename(const char *name);

#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif /* CAMEL_FILE_UTILS_H */
int-utils-1.4.3&id=2cd7e345ddbc5b320790dda0cbd371089d462b15'>Cosmetic changesunpoet2019-07-131-7/+7 * Update to 6.10.0sunpoet2019-07-054-85/+181 * Compile and install .pyc files for node-gypsunpoet2019-06-102-1/+47 * www/npm: Fix the python executable nameyuri2019-05-292-0/+12 * Remove NODE6 optionsunpoet2019-05-251-4/+2 * Update NODE_DESC after r499831sunpoet2019-04-251-1/+1 * Update to 6.9.0sunpoet2019-03-092-4/+4 * Update to 6.8.0sunpoet2019-02-193-14/+94 * Update to 6.7.0sunpoet2019-02-023-245/+598 * Fix DEPENDSantoine2018-11-051-1/+1 * Add NODE10 optionsunpoet2018-11-041-3/+6 * Update to 6.4.1sunpoet2018-09-073-37/+20 * Update extra-patch-bug-178881sunpoet2018-08-311-11/+4 * Update to 6.4.0sunpoet2018-08-303-208/+139 * Update to 6.3.0sunpoet2018-08-114-4769/+1993 * Remove NODE4 optionsunpoet2018-06-021-3/+1 * Update patch to fix build on i386sunpoet2018-05-181-7/+7 * Update to 5.10.0sunpoet2018-05-173-934/+2142 * Update NODE_DESCsunpoet2018-05-021-1/+1 * Update to 5.8.0sunpoet2018-04-073-446/+405 * Update to 5.7.1sunpoet2018-03-043-117/+435 * Fix permission of node-gypsunpoet2018-02-182-3/+3 * Fix LICENSEsunpoet2018-01-041-1/+2 * Update to 5.6.0sunpoet2017-12-164-83/+185 * Update CONFLICTS_INSTALLsunpoet2017-12-141-1/+1 * Update to 5.6.0sunpoet2017-12-113-94/+1275 * Fix npx permissionsunpoet2017-12-072-2/+2 * Change from USES=python:2 to USES=python:2.7sunpoet2017-12-041-2/+2 * Add Node.js 9.x support manuallysunpoet2017-11-202-1/+13 * Update options for Node.js 8.x and 9.xsunpoet2017-11-181-4/+7 * Update to 5.4.2sunpoet2017-09-193-530/+222 * Add NODE4, NODE6 and NODE8 optionssunpoet2017-09-181-3/+13 * Fix shebangsunpoet2017-07-281-1/+5 * Update to 5.3.0sunpoet2017-07-163-706/+235 * Update to 5.2.0sunpoet2017-07-153-167/+1010 * Update to 5.0.4sunpoet2017-06-303-7/+4 * Update to 5.0.3sunpoet2017-06-183-154/+610 * Update to 4.6.1sunpoet2017-06-023-58/+12 * Fix CONFLICTS_INSTALLsunpoet2017-05-281-1/+1 * Update to 4.5.0sunpoet2017-04-303-7/+6 * Use USES=python:2 instead of USES=python:2.7sunpoet2017-04-011-1/+2 * Update to 4.4.4sunpoet2017-03-283-314/+597 * Silence patch messagesunpoet2017-03-151-3/+3 * Set executable bit on lib/node_modules/npm/bin/npm-cli.jsantoine2017-03-142-1/+2 * Update to 4.3.0sunpoet2017-03-135-188/+61 * - Update to 4.1.2sunpoet2017-01-293-945/+5 * - Update to 4.1.1sunpoet2017-01-153-118/+75 * Update maintainer section: use FETCH_CMDsunpoet2017-01-151-2/+2 * - Update to 4.0.5sunpoet2016-12-183-29/+30 * - Update to 4.0.3sunpoet2016-12-093-12/+7 * Don't quote {} in find -exec calls.mat2016-12-011-3/+3 * - Update to 4.0.2sunpoet2016-11-234-88/+337 * - Update to 3.10.10sunpoet2016-11-223-7/+7 * - Update to 3.10.9sunpoet2016-11-024-312/+405 * - Update to 3.9.2sunpoet2016-05-233-220/+30 * - Update to 3.8.8sunpoet2016-05-023-14/+336 * - Remove all options: npm 3.x will be available only for current version of N...sunpoet2016-04-301-14/+2 * Remove port: www/node-develpi2016-04-141-3/+1 * - Update to 3.8.6sunpoet2016-04-103-699/+1604 * Remove ${PORTSDIR}/ from dependencies, categories v, w, x, y, and z.mat2016-04-011-6/+6 * - Add NODE010, NODE012 and NODE4 optionssunpoet2016-01-191-1/+7 * - Add gmake to RUN_DEPENDSsunpoet2015-12-072-1/+17 * - Fix shebangsamdmi32015-10-271-0/+2 * - Update to 2.14.7sunpoet2015-10-103-37/+69 * - Update to 2.14.4sunpoet2015-09-243-113/+18 * - Update to 2.14.3sunpoet2015-09-133-12/+25 * - Update to 2.14.1sunpoet2015-09-033-120/+19 * - Update to 2.13.5sunpoet2015-08-163-5/+4 * - Update to 2.13.4sunpoet2015-08-143-36/+43 * - Fix shebangsamdmi32015-07-301-1/+8 * - Update to 2.13.2sunpoet2015-07-253-70/+217 * - Update to 2.12.1sunpoet2015-07-053-3/+6 * - Update to 2.12.0sunpoet2015-07-023-33/+59 * - Update maintainer sectionsunpoet2015-06-251-0/+6 * - Update to 2.11.3sunpoet2015-06-203-7/+10 * - Update to 2.11.2sunpoet2015-06-143-93/+37 * - Update to 2.11.1sunpoet2015-06-083-21/+96 * - Update to 2.11.0sunpoet2015-06-023-15/+30 * - Update to 2.10.1sunpoet2015-05-233-6/+14 * - Update to 2.10.0sunpoet2015-05-223-4/+24 * - Revert r386459sunpoet2015-05-172-3/+38 * - Add ONLY_FOR_ARCHS=amd64sunpoet2015-05-161-0/+2 * - Update to 2.9.1sunpoet2015-05-103-4/+19 * - Update to 2.8.4sunpoet2015-04-263-4/+8 * - Update to 2.8.3sunpoet2015-04-223-128/+312 * - Update to 2.7.4sunpoet2015-04-011-22/+136 * - Update to 2.7.4sunpoet2015-03-312-3/+3 * - Update to 2.7.3sunpoet2015-03-223-15/+7 * - Update to 2.7.1sunpoet2015-03-203-9/+48 * - Update to 2.7.0sunpoet2015-03-123-8/+9 * - Add NODE010 optionsunpoet2015-03-061