summaryrefslogtreecommitdiff
path: root/src/internal/slibtool_symlink_impl.h
blob: fc4c708db1efa0bc4e734a709629f67c9968c1e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef SLIBTOOL_SYMLINK_IMPL_H
#define SLIBTOOL_SYMLINK_IMPL_H

#include <stdbool.h>
#include <slibtool/slibtool.h>

#define SLBT_SYMLINK_DEFAULT    0x0000
#define SLBT_SYMLINK_LITERAL    0x0001
#define SLBT_SYMLINK_WRAPPER    0x0002
#define SLBT_SYMLINK_DEVNULL    0x0004

int slbt_create_symlink(
	const struct slbt_driver_ctx *	dctx,
	struct slbt_exec_ctx *		ectx,
	const char *			target,
	const char *			lnkname,
	uint32_t			options);

int slbt_symlink_is_a_placeholder(int fdcwd, char * lnkpath);

#endif