forked from gap-system/gap
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsysroots.h
More file actions
69 lines (56 loc) · 2.24 KB
/
sysroots.h
File metadata and controls
69 lines (56 loc) · 2.24 KB
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
58
59
60
61
62
63
64
65
66
67
68
69
/****************************************************************************
**
** This file is part of GAP, a system for computational discrete algebra.
**
** Copyright of GAP belongs to its developers, whose names are too numerous
** to list here. Please refer to the COPYRIGHT file for details.
**
** SPDX-License-Identifier: GPL-2.0-or-later
**
*/
#ifndef GAP_SYSROOTS_H
#define GAP_SYSROOTS_H
#include "common.h"
#include "system.h"
/****************************************************************************
**
*V SyDefaultRootPath
**
** Default initial root path. Default is the current directory, if we have
** no other idea, for backwards compatibility.
*/
extern char SyDefaultRootPath[GAP_PATH_MAX];
#include <stddef.h>
/****************************************************************************
**
*F SySetGapRootPath( <string> ) . . . . . . . . . set the root directories
**
** 'SySetGapRootPath' takes a string and modifies a list of root directories
** in 'SyGapRootPaths'.
**
** A leading semicolon in <string> means that the list of directories in
** <string> is appended to the existing list of root paths. A trailing
** semicolon means they are prepended. If there is no leading or trailing
** semicolon, then the root paths are overwritten.
*/
void SySetGapRootPath(const Char * string);
/****************************************************************************
**
*F SyFindGapRootFile( <filename>, <buf>, <size> ) . find file in system area
**
** <buf> must point to a buffer of at least <size> characters. This function
** then searches for a readable file with the name <filename> in the system
** area. If sich a file is found then its absolute path is copied into
** <buf>, and <buf> is returned. If no file is found or if <buf> is not big
** enough, then <buf> is set to an empty string and NULL is returned.
*/
Char * SyFindGapRootFile(const Char * filename, Char * buf, size_t size);
/****************************************************************************
**
*F SyGetGapRootPaths() . . . . . . . . . return the list of root directories
**
** Returns a plain list containing absolute paths of the root directories as
** string objects.
*/
Obj SyGetGapRootPaths(void);
#endif // GAP_SYSROOTS_H