<commit_before>/* $Id$ */

#ifndef ZFS_SLASHLIB_H
#define ZFS_SLASHLIB_H

#include <sys/types.h>
#include <sys/statvfs.h>

#define ZFS_MAGIC 0x2f52f5

#ifdef SLASHLIB
typedef uint64_t __u64;
typedef uint32_t __u32;
typedef struct fidgen {
	uint64_t fid;
	uint64_t gen;
} fidgen_t;
#else
typedef void vnode_t;
typedef struct slash_fidgen fidgen_t;
#endif

typedef struct file_info {
	vnode_t *vp;
	int flags;
} file_info_t;

int zfs_lib_start(const char *, const char *);
void zfs_lib_stop(void);

int zfsslash2_access(void *, uint64_t, int, cred_t *);
int zfsslash2_fsync(void *, uint64_t, cred_t *, int, void *);
int zfsslash2_getattr(void *, uint64_t, cred_t *, struct stat *, uint64_t *);
int zfsslash2_gets2szattr(void *, uint64_t, off64_t *, void *);
int zfsslash2_link(void *, uint64_t, uint64_t, const char *, fidgen_t *, cred_t *, struct stat *);
int zfsslash2_lookup(void *, uint64_t, const char *, fidgen_t *, cred_t *, struct stat *);
int zfsslash2_mkdir(void *, uint64_t, const char *, mode_t, cred_t *, struct stat *, fidgen_t *, int);
int zfsslash2_mknod(void *, uint64_t, const char *, mode_t, dev_t);
int zfsslash2_opencreate(void *, uint64_t, cred_t *, int, mode_t, const char *, fidgen_t *, struct stat *, void **);
int zfsslash2_opendir(void *, uint64_t, cred_t *, fidgen_t *, struct stat *, void **);
int zfsslash2_read(void *, uint64_t, cred_t *, void *, size_t, size_t *, off_t, void *);
int zfsslash2_readdir(void *, uint64_t, cred_t *, size_t, off_t, void *, size_t *, void  *, int, void *);
int zfsslash2_readlink(void *, uint64_t, char *, cred_t *);
int zfsslash2_release(void *, uint64_t, cred_t *, void *);
int zfsslash2_rename(void *, uint64_t, const char *, uint64_t, const char *, cred_t *);
int zfsslash2_rmdir(void *, uint64_t, const char *, cred_t *);
int zfsslash2_setattr(void *, uint64_t, struct stat *, int, cred_t *, struct stat *, void *);
int zfsslash2_sets2szattr(void *, uint64_t, off64_t, void *);
int zfsslash2_stat(vnode_t *, struct stat *, cred_t *);
int zfsslash2_statfs(void *, struct statvfs *);
int zfsslash2_symlink(void *, const char *, uint64_t, const char *, cred_t *, struct stat *, fidgen_t *);
int zfsslash2_unlink(void *, uint64_t, const char *, cred_t *);
int zfsslash2_write(void *, uint64_t, cred_t *, const void *, size_t, size_t *, off_t, void *);

int  do_init(void);
void do_exit(void);

extern void *zfsVfs;

#endif
<commit_msg>alias do_init() to zfs_init()<commit_after>/* $Id$ */

#ifndef ZFS_SLASHLIB_H
#define ZFS_SLASHLIB_H

#include <sys/types.h>
#include <sys/statvfs.h>

#define ZFS_MAGIC 0x2f52f5

#ifdef SLASHLIB
typedef uint64_t __u64;
typedef uint32_t __u32;
typedef struct fidgen {
	uint64_t fid;
	uint64_t gen;
} fidgen_t;
#else
typedef void vnode_t;
typedef struct slash_fidgen fidgen_t;
#endif

typedef struct file_info {
	vnode_t *vp;
	int flags;
} file_info_t;

int zfs_lib_start(const char *, const char *);
void zfs_lib_stop(void);

int zfsslash2_access(void *, uint64_t, int, cred_t *);
int zfsslash2_fsync(void *, uint64_t, cred_t *, int, void *);
int zfsslash2_getattr(void *, uint64_t, cred_t *, struct stat *, uint64_t *);
int zfsslash2_gets2szattr(void *, uint64_t, off64_t *, void *);
int zfsslash2_link(void *, uint64_t, uint64_t, const char *, fidgen_t *, cred_t *, struct stat *);
int zfsslash2_lookup(void *, uint64_t, const char *, fidgen_t *, cred_t *, struct stat *);
int zfsslash2_mkdir(void *, uint64_t, const char *, mode_t, cred_t *, struct stat *, fidgen_t *, int);
int zfsslash2_mknod(void *, uint64_t, const char *, mode_t, dev_t);
int zfsslash2_opencreate(void *, uint64_t, cred_t *, int, mode_t, const char *, fidgen_t *, struct stat *, void **);
int zfsslash2_opendir(void *, uint64_t, cred_t *, fidgen_t *, struct stat *, void **);
int zfsslash2_read(void *, uint64_t, cred_t *, void *, size_t, size_t *, off_t, void *);
int zfsslash2_readdir(void *, uint64_t, cred_t *, size_t, off_t, void *, size_t *, void  *, int, void *);
int zfsslash2_readlink(void *, uint64_t, char *, cred_t *);
int zfsslash2_release(void *, uint64_t, cred_t *, void *);
int zfsslash2_rename(void *, uint64_t, const char *, uint64_t, const char *, cred_t *);
int zfsslash2_rmdir(void *, uint64_t, const char *, cred_t *);
int zfsslash2_setattr(void *, uint64_t, struct stat *, int, cred_t *, struct stat *, void *);
int zfsslash2_sets2szattr(void *, uint64_t, off64_t, void *);
int zfsslash2_stat(vnode_t *, struct stat *, cred_t *);
int zfsslash2_statfs(void *, struct statvfs *);
int zfsslash2_symlink(void *, const char *, uint64_t, const char *, cred_t *, struct stat *, fidgen_t *);
int zfsslash2_unlink(void *, uint64_t, const char *, cred_t *);
int zfsslash2_write(void *, uint64_t, cred_t *, const void *, size_t, size_t *, off_t, void *);

int  do_init(void);
void do_exit(void);

#define zfs_init()	do_init()

extern void *zfsVfs;

#endif

{'fraction_non_alphanumeric': 0.13668320926385444, 'fraction_numerical': 0.03887510339123242, 'mean_word_length': 5.718055555555556, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, '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': '6264578', 'n_tokens_mistral': 2065, 'n_tokens_neox': 1952, 'n_words': 480}