diff options
author | Brian Behlendorf <[email protected]> | 2014-10-17 15:10:19 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2014-10-17 15:11:41 -0700 |
commit | bb4dee3df2a191032201ce7f367be12fd898e08d (patch) | |
tree | ba97503550ad91ba72e88e877c1e1d0798b3c8bc /include | |
parent | aa363c5c0507ed660f57655211df1fe2c30b380e (diff) |
Remove utsname() wrapper
There is no longer a need to wrap this because utsname() is provided
by the kernel and can be called directly. This will require a small
change in the ZFS code because utsname is expected to be a global
structure and not a function.
Signed-off-by: Brian Behlendorf <[email protected]>
Diffstat (limited to 'include')
-rw-r--r-- | include/sys/Makefile.am | 1 | ||||
-rw-r--r-- | include/sys/utsname.h | 34 |
2 files changed, 0 insertions, 35 deletions
diff --git a/include/sys/Makefile.am b/include/sys/Makefile.am index 9d8263657..985c51319 100644 --- a/include/sys/Makefile.am +++ b/include/sys/Makefile.am @@ -90,7 +90,6 @@ KERNEL_H = \ $(top_srcdir)/include/sys/u8_textprep.h \ $(top_srcdir)/include/sys/uio.h \ $(top_srcdir)/include/sys/unistd.h \ - $(top_srcdir)/include/sys/utsname.h \ $(top_srcdir)/include/sys/va_list.h \ $(top_srcdir)/include/sys/varargs.h \ $(top_srcdir)/include/sys/vfs.h \ diff --git a/include/sys/utsname.h b/include/sys/utsname.h deleted file mode 100644 index 3d979c13a..000000000 --- a/include/sys/utsname.h +++ /dev/null @@ -1,34 +0,0 @@ -/*****************************************************************************\ - * Copyright (C) 2007-2010 Lawrence Livermore National Security, LLC. - * Copyright (C) 2007 The Regents of the University of California. - * Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER). - * Written by Brian Behlendorf <[email protected]>. - * UCRL-CODE-235197 - * - * This file is part of the SPL, Solaris Porting Layer. - * For details, see <http://zfsonlinux.org/>. - * - * The SPL 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; either version 2 of the License, or (at your - * option) any later version. - * - * The SPL 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 the SPL. If not, see <http://www.gnu.org/licenses/>. -\*****************************************************************************/ - -#ifndef _SPL_UTSNAME_H -#define _SPL_UTSNAME_H - -#include <linux/utsname.h> - -extern struct new_utsname *__utsname(void); - -#define utsname (*__utsname()) - -#endif /* SPL_UTSNAME_H */ |