X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=libcfs%2Finclude%2Flibcfs%2Fuser-prim.h;h=eb5bb5a3132a6bd923748ad2834454311d2e5da4;hb=2bcfce77a2712960fadac2f034c1df4826780608;hp=ceef624ba286683e164b042853d0b4f1dc9fef0e;hpb=281671b5ee43c2aea5d5b708aadf10fd1df45b16;p=fs%2Flustre-release.git diff --git a/libcfs/include/libcfs/user-prim.h b/libcfs/include/libcfs/user-prim.h index ceef624..eb5bb5a 100644 --- a/libcfs/include/libcfs/user-prim.h +++ b/libcfs/include/libcfs/user-prim.h @@ -27,7 +27,7 @@ * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved. * Use is subject to license terms. * - * Copyright (c) 2012, Intel Corporation. + * Copyright (c) 2012, 2014, Intel Corporation. */ /* * This file is part of Lustre, http://www.lustre.org/ @@ -55,8 +55,6 @@ # define EXPORT_SYMBOL(s) #endif -typedef struct proc_dir_entry cfs_proc_dir_entry_t; - /* * Just present a single processor until will add thread support. */ @@ -238,41 +236,10 @@ struct group_info{ }; #define get_random_bytes(val, size) (*val) = 0 /* utility libcfs init/fini entries */ -#ifdef __WINNT__ -extern int libcfs_arch_init(void); -extern void libcfs_arch_cleanup(void); -#else /* !__WINNT__ */ static inline int libcfs_arch_init(void) { return 0; } static inline void libcfs_arch_cleanup(void) { } -/* __WINNT__ */ -#endif - -/* proc interface wrappers for non-win OS */ -#ifndef __WINNT__ -#define cfs_proc_open open -#define cfs_proc_mknod mknod -#define cfs_proc_ioctl ioctl -#define cfs_proc_close close -#define cfs_proc_read read -#define cfs_proc_write write -#define cfs_proc_fopen fopen -#define cfs_proc_fclose fclose -#define cfs_proc_fgets fgets -/* !__WINNT__ */ -#endif - -/* __LIBCFS_USER_PRIM_H__ */ -#endif -/* - * Local variables: - * c-indentation-style: "K&R" - * c-basic-offset: 8 - * tab-width: 8 - * fill-column: 80 - * scroll-step: 1 - * End: - */ +#endif /* __LIBCFS_USER_PRIM_H__ */