<commit_before>/* $Id$ */
/* Copyright (c) 2009 <NAME> <<EMAIL>> */
/* This file is part of DeforaOS System libc */
/* This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, version 3 of the License.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>. */



#ifndef LIBC_KERNEL_NETBSD_SYS_MOUNT_H
# define LIBC_KERNEL_NETBSD_SYS_MOUNT_H


/* constants */
/* mount type */
# define MT_EXT2FS	"ext2fs"
# define MT_EXT3FS	MT_EXT2FS
# define MT_FFS		"ffs"
# define MT_HFS		"hfs"
# define MT_ISO9660	"cd9660"
# define MT_LFS		"lfs"
# define MT_MFS		"mfs"
# define MT_MSDOS	"msdos"
# define MT_NFS		"nfs"
# define MT_NTFS	"ntfs"
# define MT_PROCFS	"procfs"
# define MT_SMBFS	"smbfs"
# define MT_TMPFS	"tmpfs"
# define MT_UFS		MT_FFS

/* mount flags */
# define MF_ASYNC	0x00000040
# define MF_NOATIME	0x04000000
# define MF_NODEV	0x00000010
# define MF_NOEXEC	0x00000004
# define MF_NOSUID	0x00000008
# define MF_RDONLY	0x00000001
# define MF_SYNC	0x00000002

#endif /* !LIBC_KERNEL_NETBSD_SYS_MOUNT_H */<commit_msg>Tweaked to support more filesystems on DeforaOS/NetBSD<commit_after>/* $Id$ */
/* Copyright (c) 2009 <NAME> <<EMAIL>> */
/* This file is part of DeforaOS System libc */
/* This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, version 3 of the License.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>. */



#ifndef LIBC_KERNEL_NETBSD_SYS_MOUNT_H
# define LIBC_KERNEL_NETBSD_SYS_MOUNT_H

# include <sys/stat.h> /* XXX either one should not be included */
# include <sys/types.h>


/* types */
struct export_args30
{
	int ex_flags;
	uid_t ex_root;
	/* struct uucred ex_anon; */
	unsigned short ex_anon_cr_unused;
	uid_t ex_anon_cr_uid;
	gid_t ex_anon_cr_gid;
	short ex_anon_cr_ngroups;
	gid_t ex_anon_cr_groups[16];
	void * ex_addr;
	int ex_addrlen;
	void * ex_mask;
	int ex_masklen;
	void * ex_indexfile;
};

struct iso_args
{
	char * fspec;
	struct export_args30 _padding0;
	int flags;
};
# define MT_ISO9660	"cd9660"

struct hfs_args
{
	char * fspec;
};
# define MT_HFS		"hfs"

struct mfs_args
{
	char * fspec;
	struct export_args30 _padding0;
	void * base;
	unsigned long size;
};
# define MT_MFS		"mfs"

struct nfs_args
{
	int version;
	void * addr;
	int addrlen;
	int sotype;
	int proto;
	void * fh;
	int fhsize;
	int flags;
	int wsize;
	int rsize;
	int readdirsize;
	int timeo;
	int retrans;
	int maxgrouplist;
	int readahead;
	int leaseterm;
	int deadthresh;
	char * hostname;
};
# define NFS_ARGSVERSION 3
# define MT_NFS		"nfs"

struct ntfs_args
{
	char * fspec;
	struct export_args30 _padding0;
	uid_t uid;
	gid_t gid;
	mode_t mode;
	unsigned long flag;
};
# define MT_NTFS	"ntfs"

struct procfs_args
{
	int version;
	int flags;
};
# define PROCFS_ARGS_VERSION 1
# define MT_PROCFS	"procfs"

struct tmpfs_args
{
	int ta_version;
	ino_t ta_nodes_max;
	off_t ta_size_max;
	uid_t ta_root_uid;
	gid_t ta_root_gid;
	mode_t ta_root_mode;
};
# define TMPFS_ARGS_VERSION 1
# define MT_TMPFS	"tmpfs"

struct ufs_args
{
	char * fspec;
};
# define MT_FFS		"ffs"
# define MT_UFS		MT_FFS


/* constants */
/* mount type */
# define MT_EXT2FS	"ext2fs"
# define MT_EXT3FS	MT_EXT2FS
# define MT_LFS		"lfs"
# define MT_MSDOS	"msdos"
# define MT_SMBFS	"smbfs"

/* mount flags */
# define MF_ASYNC	0x00000040
# define MF_NOATIME	0x04000000
# define MF_NODEV	0x00000010
# define MF_NOEXEC	0x00000004
# define MF_NOSUID	0x00000008
# define MF_RDONLY	0x00000001
# define MF_SYNC	0x00000002

#endif /* !LIBC_KERNEL_NETBSD_SYS_MOUNT_H */
{'fraction_non_alphanumeric': 0.08467186782927949, 'fraction_numerical': 0.04038549793483249, 'mean_word_length': 4.214114832535885, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 8, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4990644', 'n_tokens_mistral': 1804, 'n_tokens_neox': 1647, 'n_words': 520}