summaryrefslogtreecommitdiff
path: root/minix/lib/libc/sys/chroot.c
blob: 3ce90705d6e6159c49327c944763bc85cb8e177d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <sys/cdefs.h>
#include "namespace.h"
#include <lib.h>

#include <string.h>
#include <unistd.h>

int chroot(name)
const char *name;
{
  message m;

  memset(&m, 0, sizeof(m));
  _loadname(name, &m);
  return(_syscall(VFS_PROC_NR, VFS_CHROOT, &m));
}