Server IP : 13.213.54.232 / Your IP : 216.73.216.72 Web Server : Apache/2.4.52 (Ubuntu) System : Linux ip-172-31-17-110 6.8.0-1029-aws #31~22.04.1-Ubuntu SMP Thu Apr 24 21:16:18 UTC 2025 x86_64 User : www-data ( 33) PHP Version : 7.1.33-67+ubuntu22.04.1+deb.sury.org+1 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/modules/6.8.0-1029-aws/build/arch/um/include/shared/ |
Upload File : |
/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2000 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com) */ #ifndef __USER_H__ #define __USER_H__ #include <generated/asm-offsets.h> /* * The usual definition - copied here because the kernel provides its own, * fancier, type-safe, definition. Using that one would require * copying too much infrastructure for my taste, so userspace files * get less checking than kernel files. */ #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) /* This is to get size_t and NULL */ #ifndef __UM_HOST__ #include <linux/types.h> #else #include <stddef.h> #include <sys/types.h> #endif extern void panic(const char *fmt, ...) __attribute__ ((format (printf, 1, 2))); /* Requires preincluding include/linux/kern_levels.h */ #define UM_KERN_EMERG KERN_EMERG #define UM_KERN_ALERT KERN_ALERT #define UM_KERN_CRIT KERN_CRIT #define UM_KERN_ERR KERN_ERR #define UM_KERN_WARNING KERN_WARNING #define UM_KERN_NOTICE KERN_NOTICE #define UM_KERN_INFO KERN_INFO #define UM_KERN_DEBUG KERN_DEBUG #define UM_KERN_CONT KERN_CONT #ifdef UML_CONFIG_PRINTK #define printk(...) _printk(__VA_ARGS__) extern int _printk(const char *fmt, ...) __attribute__ ((format (printf, 1, 2))); #else static inline int printk(const char *fmt, ...) { return 0; } #endif extern int in_aton(char *str); extern size_t strlcat(char *, const char *, size_t); extern size_t strscpy(char *, const char *, size_t); /* Copied from linux/compiler-gcc.h since we can't include it directly */ #define barrier() __asm__ __volatile__("": : :"memory") #endif