File: str_pile.h

package info (click to toggle)
ceccomp 4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,648 kB
  • sloc: ansic: 6,531; python: 1,078; makefile: 248; sh: 145
file content (25 lines) | stat: -rw-r--r-- 590 bytes parent folder | download
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
#ifndef STRING_PILE_H
#define STRING_PILE_H

#include "main.h"
#include <stdbool.h>
#include <stddef.h>

/**
 * Initialize string pile with init_size to mmap. init_size will be aligned up
 * to 0x1000.
 * Returns if mmap succeeded.
 */
extern bool init_pile (size_t init_size);

/**
 * Slice some mmap memory to store syscall name.
 * sysname: syscall name string. NULL-terminated.
 * arch: a token from token_pairs. if not NULL, store "arch.sysname", else
 * "sysname".
 */
extern string_t persist_object (const char *sysname, const string_t *arch);

extern void free_pile (void);

#endif