added AppRoot::chroot()

This commit is contained in:
2017-10-27 06:56:31 +00:00
parent 38102f659e
commit 25de06d195
2 changed files with 34 additions and 2 deletions

View File

@ -429,6 +429,12 @@
# define QSE_CHDIR(path) chdir(path)
#endif
#if defined(SYS_fchdir) && defined(QSE_USE_SYSCALL)
# define QSE_FCHDIR(handle) syscall(SYS_fchdir,handle)
#else
# define QSE_FCHDIR(handle) fchdir(handle)
#endif
#if defined(SYS_symlink) && defined(QSE_USE_SYSCALL)
# define QSE_SYMLINK(oldpath,newpath) syscall(SYS_symlink,oldpath,newpath)
#else