From: Stephen Hemminger Date: Wed, 17 Apr 2013 20:26:47 +0000 (-0700) Subject: add linux/fs.h X-Git-Tag: v3.9.0~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5abe4685b6aad913535116dd256a9e3f465ae0f1;p=thirdparty%2Fiproute2.git add linux/fs.h The ipnetns nees MS_SLAVE, MS_SHARED etc definitions which are in include/linux/fs.h. --- diff --git a/include/linux/fs.h b/include/linux/fs.h new file mode 100644 index 000000000..c7fc1e651 --- /dev/null +++ b/include/linux/fs.h @@ -0,0 +1,205 @@ +#ifndef _UAPI_LINUX_FS_H +#define _UAPI_LINUX_FS_H + +/* + * This file has definitions for some important file table + * structures etc. + */ + +#include +#include +#include + +/* + * It's silly to have NR_OPEN bigger than NR_FILE, but you can change + * the file limit at runtime and only root can increase the per-process + * nr_file rlimit, so it's safe to set up a ridiculously high absolute + * upper limit on files-per-process. + * + * Some programs (notably those using select()) may have to be + * recompiled to take full advantage of the new limits.. + */ + +/* Fixed constants first: */ +#undef NR_OPEN +#define INR_OPEN_CUR 1024 /* Initial setting for nfile rlimits */ +#define INR_OPEN_MAX 4096 /* Hard limit for nfile rlimits */ + +#define BLOCK_SIZE_BITS 10 +#define BLOCK_SIZE (1<