mirror of
https://github.com/rofl0r/proxychains-ng
synced 2025-01-23 17:53:14 +08:00
f570a66902
wasn't threadsafe before.
18 lines
332 B
C
18 lines
332 B
C
#ifndef SHM_H
|
|
#define SHM_H
|
|
#include <unistd.h>
|
|
|
|
struct stringpool {
|
|
size_t alloced;
|
|
size_t used;
|
|
char* start;
|
|
};
|
|
|
|
void stringpool_init(struct stringpool* sp);
|
|
char* stringpool_add(struct stringpool *sp, char* s, size_t len);
|
|
#if 0
|
|
void *shm_realloc(void* old, size_t old_size, size_t new_size);
|
|
#endif
|
|
//RcB: DEP "shm.c"
|
|
#endif
|