From 94ad148625df56065dae0c8cd5474111d5b9cbdb Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Thu, 5 Mar 2009 18:13:41 +0000 Subject: [PATCH] added the QSE_CHROOT() macro --- qse/lib/cmn/syscall.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qse/lib/cmn/syscall.h b/qse/lib/cmn/syscall.h index 84c8e728..8ff2808e 100644 --- a/qse/lib/cmn/syscall.h +++ b/qse/lib/cmn/syscall.h @@ -165,4 +165,9 @@ # define QSE_GETEGID() getegid() #endif +#ifdef SYS_chroot +# define QSE_CHROOT(path) syscall(SYS_chroot,path) +#else +# define QSE_cHROOT(path) chroot(path) +#endif #endif