File: xpath.h

package info (click to toggle)
siridb-server 2.0.53-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,612 kB
  • sloc: ansic: 47,501; python: 6,263; sh: 254; makefile: 149
file content (22 lines) | stat: -rw-r--r-- 431 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
 * xpath.h - Path and file tools.
 */
#ifndef XPATH_H_
#define XPATH_H_

#include <stdio.h>
#include <limits.h>

#ifndef PATH_MAX
#define XPATH_MAX 4096
#else
#define XPATH_MAX PATH_MAX
#endif

int xpath_file_exist(const char * fn);
int xpath_is_dir(const char * path);
ssize_t xpath_get_content(char ** buffer, const char * fn);
int xpath_get_exec_path(char * path);
int xpath_rmdir(const char * path);

#endif  /* XPATH_H_ */