libspl: move remaining ddi_* prototypes from zfs_context.h

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #17861
This commit is contained in:
Rob Norris 2025-10-19 13:34:14 +11:00 committed by Brian Behlendorf
parent 559597b66c
commit 03b2e5c40c
2 changed files with 7 additions and 9 deletions

View File

@ -77,8 +77,6 @@ extern "C" {
#include <sys/zfs_context_os.h>
#else /* _KERNEL || _STANDALONE */
#define _SYS_SUNDDI_H
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
@ -210,12 +208,6 @@ typedef off_t loff_t;
extern int highbit64(uint64_t i);
extern int lowbit64(uint64_t i);
/*
* Hostname information
*/
extern int ddi_strtoull(const char *str, char **nptr, int base,
u_longlong_t *result);
/*
* Kernel modules
*/

View File

@ -21,10 +21,16 @@
* CDDL HEADER END
*/
/*
* Copyright (c) 2008 by Sun Microsystems, Inc.
* Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
* Copyright 2011 Nexenta Systems, Inc. All rights reserved.
* Copyright (c) 2012, 2018 by Delphix. All rights reserved.
* Copyright (c) 2012, Joyent, Inc. All rights reserved.
*/
#ifndef _SYS_SUNDDI_H
#define _SYS_SUNDDI_H
extern int ddi_strtoull(const char *str, char **nptr, int base,
u_longlong_t *result);
#endif /* _SYS_SUNDDI_H */