Changeset View
Changeset View
Standalone View
Standalone View
sys/compat/linux/linux_util.h
Show All 32 Lines | |||||
* $FreeBSD$ | * $FreeBSD$ | ||||
*/ | */ | ||||
#ifndef _LINUX_UTIL_H_ | #ifndef _LINUX_UTIL_H_ | ||||
#define _LINUX_UTIL_H_ | #define _LINUX_UTIL_H_ | ||||
#include <sys/uio.h> | #include <sys/uio.h> | ||||
struct nameidata; | |||||
MALLOC_DECLARE(M_LINUX); | MALLOC_DECLARE(M_LINUX); | ||||
MALLOC_DECLARE(M_EPOLL); | MALLOC_DECLARE(M_EPOLL); | ||||
extern char linux_emul_path[]; | extern char linux_emul_path[]; | ||||
extern int linux_use_emul_path; | extern int linux_use_emul_path; | ||||
int linux_emul_convpath(const char *, enum uio_seg, char **, int, int); | int linux_emul_convpath(const char *, enum uio_seg, char **, int, int); | ||||
int linux_alternate_link(struct nameidata *, char *, int *); | |||||
int linux_alternate_interp(struct nameidata *, char *, int *); | |||||
#define LUSECONVPATH(td) atomic_load_int(&linux_use_emul_path) | #define LUSECONVPATH(td) atomic_load_int(&linux_use_emul_path) | ||||
#define LCONVPATH_AT(upath, pathp, i, dfd) \ | #define LCONVPATH_AT(upath, pathp, i, dfd) \ | ||||
do { \ | do { \ | ||||
int _error; \ | int _error; \ | ||||
\ | \ | ||||
_error = linux_emul_convpath(upath, UIO_USERSPACE, \ | _error = linux_emul_convpath(upath, UIO_USERSPACE, \ | ||||
▲ Show 20 Lines • Show All 142 Lines • Show Last 20 Lines |