| 1 |
/*************************************************************************** |
/* SPDX-License-Identifier: GPL-3.0-or-later */ |
| 2 |
file_loader.c - description |
/* |
| 3 |
------------------- |
* test_file_loader |
| 4 |
Copyright : (C) 2004-2025 by Leaflet |
* - tester for shared memory based file loader |
| 5 |
Email : leaflet@leafok.com |
* |
| 6 |
***************************************************************************/ |
* Copyright (C) 2004-2025 Leaflet <leaflet@leafok.com> |
| 7 |
|
*/ |
|
/*************************************************************************** |
|
|
* * |
|
|
* This program is free software; you can redistribute it and/or modify * |
|
|
* it under the terms of the GNU General Public License as published by * |
|
|
* the Free Software Foundation; either version 3 of the License, or * |
|
|
* (at your option) any later version. * |
|
|
* * |
|
|
***************************************************************************/ |
|
| 8 |
|
|
| 9 |
#include "file_loader.h" |
#include "file_loader.h" |
|
#include "trie_dict.h" |
|
| 10 |
#include "log.h" |
#include "log.h" |
| 11 |
|
#include "trie_dict.h" |
| 12 |
|
#include <errno.h> |
| 13 |
#include <stdio.h> |
#include <stdio.h> |
| 14 |
#include <unistd.h> |
#include <unistd.h> |
|
#include <errno.h> |
|
| 15 |
#include <sys/shm.h> |
#include <sys/shm.h> |
| 16 |
|
|
| 17 |
#define TRIE_DICT_SHM_FILE "~trie_dict_shm.dat" |
#define TRIE_DICT_SHM_FILE "~trie_dict_shm.dat" |