Debian Codegraph @

src/OVAL/probes/SEAP/generic/strbuf.h

raw symbols SCIP
1 /*
2 * Copyright 2009 Red Hat Inc., Durham, North Carolina.
3 * All Rights Reserved.
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 *
19 * Authors:
20 * "Daniel Kopecek" <[email protected]>
21 */
22
23 #pragma once
24 #ifndef STRBUF_H
25 #define STRBUF_Hcxx . . $ `src/OVAL/probes/SEAP/generic/strbuf.h:25:9`!
26
27 #include <stddef.h>
28 #ifdef _WIN32
29 #include <io.h>
30 #else
31 #include <unistd.h>
32 #endif
33 #include <stdio.h>
34 #include <sys/types.h>
35 #include "oscap_export.h"cxx . . $ `<file>/src/common/public/oscap_export.h`/
36
37 #ifdef __cplusplus
38 extern "C" {
39 #endif
40
41 #define SEAP_STRBUF_MAXcxx . . $ `src/OVAL/probes/SEAP/generic/strbuf.h:41:9`! 8192
42
43 struct strblkcxx . . $ strblk# {
44 struct strblkcxx . . $ strblk# *nextcxx . . $ strblk#next.;
45 size_t sizecxx . . $ strblk#size.;
46 char datacxx . . $ strblk#data.[];
47 };
48
49 typedef structcxx . . $ $anonymous_type_5d3f97eecdd1a313_0# {
50 struct strblkcxx . . $ strblk# *begcxx . . $ $anonymous_type_5d3f97eecdd1a313_0#beg.;
51 struct strblkcxx . . $ strblk# *lbocxx . . $ $anonymous_type_5d3f97eecdd1a313_0#lbo.;
52 size_t blkmaxcxx . . $ $anonymous_type_5d3f97eecdd1a313_0#blkmax.;
53 size_t blkoffcxx . . $ $anonymous_type_5d3f97eecdd1a313_0#blkoff.;
54 size_t sizecxx . . $ $anonymous_type_5d3f97eecdd1a313_0#size.;
55 } strbuf_tcxx . . $ strbuf_t#;
56
57 strbuf_tcxx . . $ strbuf_t# *strbuf_newcxx . . $ strbuf_new(1b232a40e90dbc0f).(size_t max);
58 void strbuf_freecxx . . $ strbuf_free(b8a819aa52f3caa).(strbuf_tcxx . . $ strbuf_t# *buf);
59
60 int strbuf_addcxx . . $ strbuf_add(ce72e1452ef7fae).(strbuf_tcxx . . $ strbuf_t# *buf, const char *str, size_t len);
61 int strbuf_addfcxx . . $ strbuf_addf(13069e52f7633c24).(strbuf_tcxx . . $ strbuf_t# *buf, char *str, size_t len);
62 int strbuf_addccxx . . $ strbuf_addc(8b9209537472a2cf).(strbuf_tcxx . . $ strbuf_t# *buf, char ch);
63
64 size_t strbuf_sizecxx . . $ strbuf_size(950dc711ba0a4ba2).(strbuf_tcxx . . $ strbuf_t# *buf);
65 int strbuf_trunccxx . . $ strbuf_trunc(80f54fdde92cae7a).(strbuf_tcxx . . $ strbuf_t# *buf, size_t len);
66 size_t strbuf_lengthcxx . . $ strbuf_length(950dc711ba0a4ba2).(strbuf_tcxx . . $ strbuf_t# *buf);
67
68 char *strbuf_cstrcxx . . $ strbuf_cstr(91286d43c69cc643).(strbuf_tcxx . . $ strbuf_t# *buf);
69 char *strbuf_cstr_rcxx . . $ strbuf_cstr_r(8668bcafc67224c9).(strbuf_tcxx . . $ strbuf_t# *buf, char *str, size_t len);
70 char *strbuf_copycxx . . $ strbuf_copy(ebd6e8c8a33143d6).(strbuf_tcxx . . $ strbuf_t# *buf, void *dst, size_t len);
71
72 size_t strbuf_fwritecxx . . $ strbuf_fwrite(8591c3e7bbcbdcee).(FILEcxx . . $ FILE# *fp, strbuf_tcxx . . $ strbuf_t# *buf);
73 ssize_tcxx . . $ ssize_t# strbuf_writecxx . . $ strbuf_write(12057389d972c9be).(strbuf_tcxx . . $ strbuf_t# *buf, int fd);
74
75 #ifdef __cplusplus
76 }
77 #endif
78
79 #endif /* STRBUF_H */