# 1 "" # 1 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/tinfo/read_termcap.c" /**************************************************************************** * Copyright 2018-2019,2020 Thomas E. Dickey * * Copyright 1998-2016,2017 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * * "Software"), to deal in the Software without restriction, including * * without limitation the rights to use, copy, modify, merge, publish, * * distribute, distribute with modifications, sublicense, and/or sell * * copies of the Software, and to permit persons to whom the Software is * * furnished to do so, subject to the following conditions: * * * * The above copyright notice and this permission notice shall be included * * in all copies or substantial portions of the Software. * * * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. * * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, * * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * * THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * * * Except as contained in this notice, the name(s) of the above copyright * * holders shall not be used in advertising or otherwise to promote the * * sale, use or other dealings in this Software without prior written * * authorization. * ****************************************************************************/ /**************************************************************************** * Author: Zeyd M. Ben-Halim 1992,1995 * * and: Eric S. Raymond * * and: Thomas E. Dickey 1996-on * ****************************************************************************/ /* * Termcap compatibility support * * If your OS integrator didn't install a terminfo database, you can call * _nc_read_termcap_entry() to support reading and translating capabilities * from the system termcap file. This is a kludge; it will bulk up and slow * down every program that uses ncurses, and translated termcap entries cannot * use full terminfo capabilities. Don't use it unless you absolutely have to; * instead, get your system people to run tic(1) from root on the terminfo * master included with ncurses to translate it into a terminfo database. * * If USE_GETCAP is enabled, we use what is effectively a copy of the 4.4BSD * getcap code to fetch entries. There are disadvantages to this; mainly that * getcap(3) does its own resolution, meaning that entries read in in this way * can't reference the terminfo tree. The only thing it buys is faster startup * time, getcap(3) is much faster than our tic parser. */ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 54 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/tinfo/read_termcap.c" # 1 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" 1 /**************************************************************************** * Copyright 2018-2019,2020 Thomas E. Dickey * * Copyright 1998-2017,2018 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * * "Software"), to deal in the Software without restriction, including * * without limitation the rights to use, copy, modify, merge, publish, * * distribute, distribute with modifications, sublicense, and/or sell * * copies of the Software, and to permit persons to whom the Software is * * furnished to do so, subject to the following conditions: * * * * The above copyright notice and this permission notice shall be included * * in all copies or substantial portions of the Software. * * * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. * * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, * * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * * THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * * * Except as contained in this notice, the name(s) of the above copyright * * holders shall not be used in advertising or otherwise to promote the * * sale, use or other dealings in this Software without prior written * * authorization. * ****************************************************************************/ /**************************************************************************** * Author: Zeyd M. Ben-Halim 1992,1995 * * and: Eric S. Raymond * * and: Thomas E. Dickey 1996-on * * and: Juergen Pfeifer * ****************************************************************************/ /* * $Id: curses.priv.h,v 1.639 2020/11/14 23:37:54 tom Exp $ * * curses.priv.h * * Header file for curses library objects which are private to * the library. * */ #ifndef CURSES_PRIV_H #define CURSES_PRIV_H 1 /* *INDENT-OFF* */ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 51 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" # 1 "./ncurses_dll.h" 1 /**************************************************************************** * Copyright 2018,2020 Thomas E. Dickey * * Copyright 2009,2014 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * * "Software"), to deal in the Software without restriction, including * * without limitation the rights to use, copy, modify, merge, publish, * * distribute, distribute with modifications, sublicense, and/or sell * * copies of the Software, and to permit persons to whom the Software is * * furnished to do so, subject to the following conditions: * * * * The above copyright notice and this permission notice shall be included * * in all copies or substantial portions of the Software. * * * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. * * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, * * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * * THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * * * Except as contained in this notice, the name(s) of the above copyright * * holders shall not be used in advertising or otherwise to promote the * * sale, use or other dealings in this Software without prior written * * authorization. * ****************************************************************************/ /* $Id: ncurses_dll.h.in,v 1.17 2020/09/05 17:58:47 juergen Exp $ */ #ifndef NCURSES_DLL_H_incl #define NCURSES_DLL_H_incl 1 /* * MinGW gcc (unlike MSYS2 and Cygwin) should define _WIN32 and possibly _WIN64. */ #if 0 /* disabled by -frewrite-includes */ #if defined(__MINGW64__) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 38 "./ncurses_dll.h" #ifndef _WIN64 #define _WIN64 1 #endif # 42 "./ncurses_dll.h" #if 0 /* disabled by -frewrite-includes */ #if 0 #elif defined(__MINGW32__) #endif #endif /* disabled by -frewrite-includes */ #elif 0 /* evaluated by -frewrite-includes */ # 44 "./ncurses_dll.h" #ifndef _WIN32 #define _WIN32 1 #endif # 48 "./ncurses_dll.h" /* 2014-08-02 workaround for broken MinGW compiler. * Oddly, only TRACE is mapped to trace - the other -D's are okay. * suggest TDM as an alternative. */ #if 0 /* disabled by -frewrite-includes */ #if (__GNUC__ == 4) && (__GNUC_MINOR__ == 8) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 54 "./ncurses_dll.h" #ifdef trace #undef trace #define TRACE #endif # 59 "./ncurses_dll.h" #endif /* broken compiler */ # 61 "./ncurses_dll.h" #endif /* MingW */ # 63 "./ncurses_dll.h" /* * For reentrant code, we map the various global variables into SCREEN by * using functions to access them. */ #define NCURSES_PUBLIC_VAR(name) _nc_##name #if 0 /* disabled by -frewrite-includes */ #if defined(BUILDING_NCURSES) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 71 "./ncurses_dll.h" # define NCURSES_IMPEXP NCURSES_EXPORT_GENERAL_EXPORT #else # 73 "./ncurses_dll.h" # define NCURSES_IMPEXP NCURSES_EXPORT_GENERAL_IMPORT #endif # 75 "./ncurses_dll.h" #define NCURSES_WRAPPED_VAR(type,name) extern NCURSES_IMPEXP type NCURSES_PUBLIC_VAR(name)(void) #define NCURSES_EXPORT(type) NCURSES_IMPEXP type NCURSES_API #define NCURSES_EXPORT_VAR(type) NCURSES_IMPEXP type /* * These symbols hide dllimport/dllexport, for compilers which care about it. */ #if 0 /* disabled by -frewrite-includes */ #if defined(__CYGWIN__) || (defined(_WIN32) || defined(_WIN64)) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 85 "./ncurses_dll.h" #if 0 /* disabled by -frewrite-includes */ # if defined(NCURSES_STATIC) /* "static" here only implies "not-a-DLL" */ #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 86 "./ncurses_dll.h" # define NCURSES_EXPORT_GENERAL_IMPORT # define NCURSES_EXPORT_GENERAL_EXPORT # else # 89 "./ncurses_dll.h" # define NCURSES_EXPORT_GENERAL_IMPORT __declspec(dllimport) # define NCURSES_EXPORT_GENERAL_EXPORT __declspec(dllexport) # endif # 92 "./ncurses_dll.h" # define NCURSES_API __cdecl #else # 94 "./ncurses_dll.h" # define NCURSES_EXPORT_GENERAL_IMPORT # define NCURSES_EXPORT_GENERAL_EXPORT # define NCURSES_API /* FIXME: __attribute__ ((cdecl)) is only available on x86 */ #endif # 98 "./ncurses_dll.h" #endif /* NCURSES_DLL_H_incl */ # 100 "./ncurses_dll.h" # 52 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" 2 #ifdef __cplusplus extern "C" { #endif # 56 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 57 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" # 1 "/usr/home/avg/devel/freebsd/machines/uprising/lib/ncurses/tinfo/ncurses_cfg.h" 1 /* include/ncurses_cfg.h. Generated automatically by configure. */ /**************************************************************************** * Copyright 2020 Thomas E. Dickey * * Copyright 1998-2016,2017 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * * "Software"), to deal in the Software without restriction, including * * without limitation the rights to use, copy, modify, merge, publish, * * distribute, distribute with modifications, sublicense, and/or sell * * copies of the Software, and to permit persons to whom the Software is * * furnished to do so, subject to the following conditions: * * * * The above copyright notice and this permission notice shall be included * * in all copies or substantial portions of the Software. * * * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. * * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, * * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * * THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * * * Except as contained in this notice, the name(s) of the above copyright * * holders shall not be used in advertising or otherwise to promote the * * sale, use or other dealings in this Software without prior written * * authorization. * ****************************************************************************/ /**************************************************************************** * Author: Thomas E. Dickey 1997-on * ****************************************************************************/ /* * $Id: ncurses_cfg.hin,v 1.13 2020/03/08 12:37:59 tom Exp $ * * Both ncurses_cfg.h and ncurses_def.h are internal header-files used when * building ncurses. * * This is a template-file used to generate the "ncurses_cfg.h" file. * * Rather than list every definition, the configuration script substitutes the * definitions that it finds using 'sed'. You need a patch (original date * 971222) to autoconf 2.12 or 2.13 to do this. * * See: * https://invisible-island.net/autoconf/ * ftp://ftp.invisible-island.net/autoconf/ */ /* $FreeBSD$ */ #ifndef NC_CONFIG_H #define NC_CONFIG_H #define PACKAGE "ncurses" #define NCURSES_VERSION "6.2" #define NCURSES_PATCHDATE 20210220 #define SYSTEM_NAME "FreeBSD" #if 0 /* disabled by -frewrite-includes */ #if 0 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 61 "/usr/home/avg/devel/freebsd/machines/uprising/lib/ncurses/tinfo/ncurses_cfg.h" #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 61 "/usr/home/avg/devel/freebsd/machines/uprising/lib/ncurses/tinfo/ncurses_cfg.h" # 62 "/usr/home/avg/devel/freebsd/machines/uprising/lib/ncurses/tinfo/ncurses_cfg.h" #endif # 63 "/usr/home/avg/devel/freebsd/machines/uprising/lib/ncurses/tinfo/ncurses_cfg.h" #define HAVE_LONG_FILE_NAMES 1 #define MIXEDCASE_FILENAMES 1 #ifdef __FreeBSD__ #define USE_SYSMOUSE 1 #endif # 68 "/usr/home/avg/devel/freebsd/machines/uprising/lib/ncurses/tinfo/ncurses_cfg.h" #define TERMINFO_DIRS "/usr/share/terminfo:/usr/local/share/terminfo:/usr/local/share/site-terminfo" #define TERMINFO "/usr/share/terminfo" #define HAVE_BIG_CORE 1 #define TERMPATH "/etc/termcap:/usr/share/misc/termcap" #define USE_GETCAP 1 #define HAVE_UNISTD_H 1 #define HAVE_REMOVE 1 #define HAVE_UNLINK 1 #define HAVE_LINK 1 #define HAVE_SYMLINK 1 #define USE_LINKS 1 #define BSD_TPUTS 1 #define HAVE_LANGINFO_CODESET 1 #define USE_WIDEC_SUPPORT 1 #define NCURSES_WIDECHAR 1 #define HAVE_WCHAR_H 1 #define HAVE_WCTYPE_H 1 #define HAVE_PUTWC 1 #define HAVE_BTOWC 1 #define HAVE_WCTOB 1 #define HAVE_MBTOWC 1 #define HAVE_WCTOMB 1 #define HAVE_MBLEN 1 #define HAVE_MBRLEN 1 #define HAVE_MBRTOWC 1 #define HAVE_WCSRTOMBS 1 #define HAVE_MBSRTOWCS 1 #define HAVE_WCSTOMBS 1 #define HAVE_MBSTOWCS 1 #define NEED_WCHAR_H 1 #define HAVE_FSEEKO 1 #define STDC_HEADERS 1 #define HAVE_SYS_TYPES_H 1 #define HAVE_SYS_STAT_H 1 #define HAVE_STDLIB_H 1 #define HAVE_STRING_H 1 #define HAVE_MEMORY_H 1 #define HAVE_STRINGS_H 1 #define HAVE_INTTYPES_H 1 #define HAVE_STDINT_H 1 #define HAVE_UNISTD_H 1 #define SIZEOF_SIGNED_CHAR 1 #define NCURSES_EXT_FUNCS 1 #define HAVE_ASSUME_DEFAULT_COLORS 1 #define HAVE_CURSES_VERSION 1 #define HAVE_HAS_KEY 1 #define HAVE_RESIZETERM 1 #define HAVE_RESIZE_TERM 1 #define HAVE_TERM_ENTRY_H 1 #define HAVE_USE_DEFAULT_COLORS 1 #define HAVE_USE_EXTENDED_NAMES 1 #define HAVE_USE_SCREEN 1 #define HAVE_USE_WINDOW 1 #define HAVE_WRESIZE 1 #define NCURSES_SP_FUNCS 1 #define HAVE_TPUTS_SP 1 #define NCURSES_EXT_COLORS 1 #define HAVE_ALLOC_PAIR 1 #define HAVE_INIT_EXTENDED_COLOR 1 #define HAVE_RESET_COLOR_PAIRS 1 #define NCURSES_EXT_PUTWIN 1 #define NCURSES_NO_PADDING 1 #define USE_SIGWINCH 1 #define NCURSES_WRAP_PREFIX "_nc_" #define USE_ASSUMED_COLOR 1 #define USE_HASHMAP 1 #define USE_COLORFGBG 1 #define GCC_SCANF 1 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var))) #define GCC_PRINTF 1 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var))) #define GCC_UNUSED __attribute__((unused)) #define GCC_NORETURN __attribute__((noreturn)) #define HAVE_NC_ALLOC_H 1 #define HAVE_GETTIMEOFDAY 1 #define STDC_HEADERS 1 #define HAVE_DIRENT_H 1 #define TIME_WITH_SYS_TIME 1 #define HAVE_REGEX_H_FUNCS 1 #define HAVE_FCNTL_H 1 #define HAVE_GETOPT_H 1 #define HAVE_LIMITS_H 1 #define HAVE_LOCALE_H 1 #define HAVE_MATH_H 1 #define HAVE_POLL_H 1 #define HAVE_SYS_IOCTL_H 1 #define HAVE_SYS_PARAM_H 1 #define HAVE_SYS_POLL_H 1 #define HAVE_SYS_SELECT_H 1 #define HAVE_SYS_TIME_H 1 #define HAVE_SYS_TIMES_H 1 #define HAVE_TTYENT_H 1 #define HAVE_UNISTD_H 1 #define HAVE_WCTYPE_H 1 #define HAVE_UNISTD_H 1 #define HAVE_GETOPT_H 1 #define HAVE_GETOPT_HEADER 1 #define DECL_ENVIRON 1 #define HAVE_ENVIRON 1 #define HAVE_PUTENV 1 #define HAVE_SETENV 1 #define HAVE_STRDUP 1 #define HAVE_SYS_TIME_SELECT 1 #define SIG_ATOMIC_T volatile sig_atomic_t #define HAVE_ERRNO 1 #define HAVE_GETCWD 1 #define HAVE_GETEGID 1 #define HAVE_GETEUID 1 #define HAVE_GETOPT 1 #define HAVE_GETTTYNAM 1 #define HAVE_ISSETUGID 1 #define HAVE_LOCALECONV 1 #define HAVE_POLL 1 #define HAVE_PUTENV 1 #define HAVE_REMOVE 1 #define HAVE_SELECT 1 #define HAVE_SETBUF 1 #define HAVE_SETBUFFER 1 #define HAVE_SETENV 1 #define HAVE_SETVBUF 1 #define HAVE_SIGACTION 1 #define HAVE_SIGVEC 1 #define HAVE_SNPRINTF 1 #define HAVE_STRDUP 1 #define HAVE_STRSTR 1 #define HAVE_SYSCONF 1 #define HAVE_TCGETPGRP 1 #define HAVE_TIMES 1 #define HAVE_TSEARCH 1 #define HAVE_VSNPRINTF 1 #define HAVE_BSD_CGETENT 1 #define HAVE_ISASCII 1 #define HAVE_NANOSLEEP 1 #define HAVE_TERMIOS_H 1 #define HAVE_UNISTD_H 1 #define HAVE_SYS_IOCTL_H 1 #define HAVE_TCGETATTR 1 #define HAVE_VSSCANF 1 #define HAVE_UNISTD_H 1 #define HAVE_MKSTEMP 1 #define HAVE_SIZECHANGE 1 #define HAVE_WORKING_POLL 1 #define HAVE_VA_COPY 1 #define HAVE_UNISTD_H 1 #define HAVE_FORK 1 #define HAVE_VFORK 1 #define HAVE_WORKING_VFORK 1 #define HAVE_WORKING_FORK 1 #define USE_FOPEN_BIN_R 1 #define USE_OPENPTY_HEADER #define USE_XTERM_PTY 1 #define HAVE_TYPEINFO 1 #define HAVE_IOSTREAM 1 #define IOSTREAM_NAMESPACE 1 #define SIZEOF_BOOL 1 #define CPP_HAS_STATIC_CAST 1 #define SIZEOF_WCHAR_T 4 #define HAVE_SLK_COLOR 1 #define HAVE_PANEL_H 1 #define HAVE_LIBPANEL 1 #define HAVE_MENU_H 1 #define HAVE_LIBMENU 1 #define HAVE_FORM_H 1 #define HAVE_LIBFORM 1 #define NCURSES_PATHSEP ':' #define NCURSES_VERSION_STRING "6.2.20210220" #define NCURSES_OSPEED_COMPAT 1 #define HAVE_CURSES_DATA_BOOLNAMES 1 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 237 "/usr/home/avg/devel/freebsd/machines/uprising/lib/ncurses/tinfo/ncurses_cfg.h" # 1 "./ncurses_def.h" 1 /* * This file is generated by /usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/MKncurses_def.sh */ #ifndef NC_DEFINE_H #define NC_DEFINE_H 1 #ifndef BROKEN_LINKER #define BROKEN_LINKER 0 #endif # 11 "./ncurses_def.h" #ifndef BSD_TPUTS #define BSD_TPUTS 0 #endif # 15 "./ncurses_def.h" #ifndef CGETENT_CONST #define CGETENT_CONST /* nothing */ #endif # 19 "./ncurses_def.h" #ifndef CPP_HAS_PARAM_INIT #define CPP_HAS_PARAM_INIT 0 #endif # 23 "./ncurses_def.h" #ifndef CURSES_ACS_ARRAY #define CURSES_ACS_ARRAY acs_map #endif # 27 "./ncurses_def.h" #ifndef CURSES_WACS_ARRAY #define CURSES_WACS_ARRAY _nc_wacs #endif # 31 "./ncurses_def.h" #ifndef DECL_ERRNO #define DECL_ERRNO 0 #endif # 35 "./ncurses_def.h" #ifndef ETIP_NEEDS_MATH_H #define ETIP_NEEDS_MATH_H 0 #endif # 39 "./ncurses_def.h" #ifndef GCC_NORETURN #define GCC_NORETURN /* nothing */ #endif # 43 "./ncurses_def.h" #ifndef GCC_UNUSED #define GCC_UNUSED /* nothing */ #endif # 47 "./ncurses_def.h" #ifndef HAVE_ALLOC_PAIR #define HAVE_ALLOC_PAIR 0 #endif # 51 "./ncurses_def.h" #ifndef HAVE_ASSUME_DEFAULT_COLORS #define HAVE_ASSUME_DEFAULT_COLORS 0 #endif # 55 "./ncurses_def.h" #ifndef HAVE_BIG_CORE #define HAVE_BIG_CORE 0 #endif # 59 "./ncurses_def.h" #ifndef HAVE_BSD_CGETENT #define HAVE_BSD_CGETENT 0 #endif # 63 "./ncurses_def.h" #ifndef HAVE_BSD_SIGNAL_H #define HAVE_BSD_SIGNAL_H 0 #endif # 67 "./ncurses_def.h" #ifndef HAVE_BSD_STRING_H #define HAVE_BSD_STRING_H 0 #endif # 71 "./ncurses_def.h" #ifndef HAVE_BTOWC #define HAVE_BTOWC 0 #endif # 75 "./ncurses_def.h" #ifndef HAVE_BUILTIN_H #define HAVE_BUILTIN_H 0 #endif # 79 "./ncurses_def.h" #ifndef HAVE_CHGAT #define HAVE_CHGAT 1 #endif # 83 "./ncurses_def.h" #ifndef HAVE_COLOR_CONTENT #define HAVE_COLOR_CONTENT 1 #endif # 87 "./ncurses_def.h" #ifndef HAVE_COLOR_SET #define HAVE_COLOR_SET 1 #endif # 91 "./ncurses_def.h" #ifndef HAVE_CONSISTENT_GETENV #define HAVE_CONSISTENT_GETENV 0 #endif # 95 "./ncurses_def.h" #ifndef HAVE_COPYWIN #define HAVE_COPYWIN 1 #endif # 99 "./ncurses_def.h" #ifndef HAVE_CURSCR #define HAVE_CURSCR 1 #endif # 103 "./ncurses_def.h" #ifndef HAVE_CURSES_DATA_TABSIZE #define HAVE_CURSES_DATA_TABSIZE 1 #endif # 107 "./ncurses_def.h" #ifndef HAVE_CURSES_DATA_TTYTYPE #define HAVE_CURSES_DATA_TTYTYPE 1 #endif # 111 "./ncurses_def.h" #ifndef HAVE_DELSCREEN #define HAVE_DELSCREEN 1 #endif # 115 "./ncurses_def.h" #ifndef HAVE_DERWIN #define HAVE_DERWIN 1 #endif # 119 "./ncurses_def.h" #ifndef HAVE_DIRENT_H #define HAVE_DIRENT_H 0 #endif # 123 "./ncurses_def.h" #ifndef HAVE_DUPWIN #define HAVE_DUPWIN 1 #endif # 127 "./ncurses_def.h" #ifndef HAVE_ERRNO #define HAVE_ERRNO 0 #endif # 131 "./ncurses_def.h" #ifndef HAVE_EXIT_CURSES #define HAVE_EXIT_CURSES 1 #endif # 135 "./ncurses_def.h" #ifndef HAVE_EXIT_TERMINFO #define HAVE_EXIT_TERMINFO 1 #endif # 139 "./ncurses_def.h" #ifndef HAVE_FCNTL_H #define HAVE_FCNTL_H 0 #endif # 143 "./ncurses_def.h" #ifndef HAVE_FILTER #define HAVE_FILTER 1 #endif # 147 "./ncurses_def.h" #ifndef HAVE_FORM_H #define HAVE_FORM_H 0 #endif # 151 "./ncurses_def.h" #ifndef HAVE_GETBEGX #define HAVE_GETBEGX 1 #endif # 155 "./ncurses_def.h" #ifndef HAVE_GETCURX #define HAVE_GETCURX 1 #endif # 159 "./ncurses_def.h" #ifndef HAVE_GETCWD #define HAVE_GETCWD 0 #endif # 163 "./ncurses_def.h" #ifndef HAVE_GETEGID #define HAVE_GETEGID 0 #endif # 167 "./ncurses_def.h" #ifndef HAVE_GETEUID #define HAVE_GETEUID 0 #endif # 171 "./ncurses_def.h" #ifndef HAVE_GETMAXX #define HAVE_GETMAXX 1 #endif # 175 "./ncurses_def.h" #ifndef HAVE_GETNSTR #define HAVE_GETNSTR 0 #endif # 179 "./ncurses_def.h" #ifndef HAVE_GETOPT_H #define HAVE_GETOPT_H 0 #endif # 183 "./ncurses_def.h" #ifndef HAVE_GETPARX #define HAVE_GETPARX 1 #endif # 187 "./ncurses_def.h" #ifndef HAVE_GETTIMEOFDAY #define HAVE_GETTIMEOFDAY 0 #endif # 191 "./ncurses_def.h" #ifndef HAVE_GETTTYNAM #define HAVE_GETTTYNAM 0 #endif # 195 "./ncurses_def.h" #ifndef HAVE_GETWIN #define HAVE_GETWIN 1 #endif # 199 "./ncurses_def.h" #ifndef HAVE_GPM_H #define HAVE_GPM_H 0 #endif # 203 "./ncurses_def.h" #ifndef HAVE_GPP_BUILTIN_H #define HAVE_GPP_BUILTIN_H 0 #endif # 207 "./ncurses_def.h" #ifndef HAVE_GXX_BUILTIN_H #define HAVE_GXX_BUILTIN_H 0 #endif # 211 "./ncurses_def.h" #ifndef HAVE_HALFDELAY #define HAVE_HALFDELAY 1 #endif # 215 "./ncurses_def.h" #ifndef HAVE_HAS_KEY #define HAVE_HAS_KEY 0 #endif # 219 "./ncurses_def.h" #ifndef HAVE_INIT_EXTENDED_COLOR #define HAVE_INIT_EXTENDED_COLOR 0 #endif # 223 "./ncurses_def.h" #ifndef HAVE_INTTYPES_H #define HAVE_INTTYPES_H 0 #endif # 227 "./ncurses_def.h" #ifndef HAVE_IOSTREAM #define HAVE_IOSTREAM 0 #endif # 231 "./ncurses_def.h" #ifndef HAVE_ISASCII #define HAVE_ISASCII 0 #endif # 235 "./ncurses_def.h" #ifndef HAVE_ISSETUGID #define HAVE_ISSETUGID 0 #endif # 239 "./ncurses_def.h" #ifndef HAVE_LANGINFO_CODESET #define HAVE_LANGINFO_CODESET 0 #endif # 243 "./ncurses_def.h" #ifndef HAVE_LIBC_H #define HAVE_LIBC_H 0 #endif # 247 "./ncurses_def.h" #ifndef HAVE_LIBDBMALLOC #define HAVE_LIBDBMALLOC 0 #endif # 251 "./ncurses_def.h" #ifndef HAVE_LIBDMALLOC #define HAVE_LIBDMALLOC 0 #endif # 255 "./ncurses_def.h" #ifndef HAVE_LIBFORM #define HAVE_LIBFORM 0 #endif # 259 "./ncurses_def.h" #ifndef HAVE_LIBGPM #define HAVE_LIBGPM 0 #endif # 263 "./ncurses_def.h" #ifndef HAVE_LIBMENU #define HAVE_LIBMENU 0 #endif # 267 "./ncurses_def.h" #ifndef HAVE_LIBMPATROL #define HAVE_LIBMPATROL 0 #endif # 271 "./ncurses_def.h" #ifndef HAVE_LIBPANEL #define HAVE_LIBPANEL 0 #endif # 275 "./ncurses_def.h" #ifndef HAVE_LIB_PCRE2 #define HAVE_LIB_PCRE2 0 #endif # 279 "./ncurses_def.h" #ifndef HAVE_LIMITS_H #define HAVE_LIMITS_H 0 #endif # 283 "./ncurses_def.h" #ifndef HAVE_LINK #define HAVE_LINK 0 #endif # 287 "./ncurses_def.h" #ifndef HAVE_LOCALECONV #define HAVE_LOCALECONV 0 #endif # 291 "./ncurses_def.h" #ifndef HAVE_LOCALE_H #define HAVE_LOCALE_H 0 #endif # 295 "./ncurses_def.h" #ifndef HAVE_LONG_FILE_NAMES #define HAVE_LONG_FILE_NAMES 0 #endif # 299 "./ncurses_def.h" #ifndef HAVE_MATH_H #define HAVE_MATH_H 0 #endif # 303 "./ncurses_def.h" #ifndef HAVE_MBLEN #define HAVE_MBLEN 0 #endif # 307 "./ncurses_def.h" #ifndef HAVE_MBRLEN #define HAVE_MBRLEN 0 #endif # 311 "./ncurses_def.h" #ifndef HAVE_MBRTOWC #define HAVE_MBRTOWC 0 #endif # 315 "./ncurses_def.h" #ifndef HAVE_MBSRTOWCS #define HAVE_MBSRTOWCS 0 #endif # 319 "./ncurses_def.h" #ifndef HAVE_MBSTOWCS #define HAVE_MBSTOWCS 0 #endif # 323 "./ncurses_def.h" #ifndef HAVE_MBTOWC #define HAVE_MBTOWC 0 #endif # 327 "./ncurses_def.h" #ifndef HAVE_MENU_H #define HAVE_MENU_H 0 #endif # 331 "./ncurses_def.h" #ifndef HAVE_MKSTEMP #define HAVE_MKSTEMP 0 #endif # 335 "./ncurses_def.h" #ifndef HAVE_MVDERWIN #define HAVE_MVDERWIN 1 #endif # 339 "./ncurses_def.h" #ifndef HAVE_MVVLINE #define HAVE_MVVLINE 1 #endif # 343 "./ncurses_def.h" #ifndef HAVE_MVWIN #define HAVE_MVWIN 1 #endif # 347 "./ncurses_def.h" #ifndef HAVE_MVWVLINE #define HAVE_MVWVLINE 1 #endif # 351 "./ncurses_def.h" #ifndef HAVE_NANOSLEEP #define HAVE_NANOSLEEP 0 #endif # 355 "./ncurses_def.h" #ifndef HAVE_NC_ALLOC_H #define HAVE_NC_ALLOC_H 0 #endif # 359 "./ncurses_def.h" #ifndef HAVE_NEWPAD #define HAVE_NEWPAD 1 #endif # 363 "./ncurses_def.h" #ifndef HAVE_PANEL_H #define HAVE_PANEL_H 0 #endif # 367 "./ncurses_def.h" #ifndef HAVE_PCRE2POSIX_H #define HAVE_PCRE2POSIX_H 0 #endif # 371 "./ncurses_def.h" #ifndef HAVE_PCREPOSIX_H #define HAVE_PCREPOSIX_H 0 #endif # 375 "./ncurses_def.h" #ifndef HAVE_POLL #define HAVE_POLL 0 #endif # 379 "./ncurses_def.h" #ifndef HAVE_POLL_H #define HAVE_POLL_H 0 #endif # 383 "./ncurses_def.h" #ifndef HAVE_PURIFY #define HAVE_PURIFY 0 #endif # 387 "./ncurses_def.h" #ifndef HAVE_PUTENV #define HAVE_PUTENV 0 #endif # 391 "./ncurses_def.h" #ifndef HAVE_PUTWC #define HAVE_PUTWC 0 #endif # 395 "./ncurses_def.h" #ifndef HAVE_PUTWIN #define HAVE_PUTWIN 1 #endif # 399 "./ncurses_def.h" #ifndef HAVE_REGEXPR_H_FUNCS #define HAVE_REGEXPR_H_FUNCS 0 #endif # 403 "./ncurses_def.h" #ifndef HAVE_REGEXP_H_FUNCS #define HAVE_REGEXP_H_FUNCS 0 #endif # 407 "./ncurses_def.h" #ifndef HAVE_REGEX_H_FUNCS #define HAVE_REGEX_H_FUNCS 0 #endif # 411 "./ncurses_def.h" #ifndef HAVE_REMOVE #define HAVE_REMOVE 0 #endif # 415 "./ncurses_def.h" #ifndef HAVE_RESET_COLOR_PAIRS #define HAVE_RESET_COLOR_PAIRS 0 #endif # 419 "./ncurses_def.h" #ifndef HAVE_RESIZETERM #define HAVE_RESIZETERM 0 #endif # 423 "./ncurses_def.h" #ifndef HAVE_RESIZE_TERM #define HAVE_RESIZE_TERM 0 #endif # 427 "./ncurses_def.h" #ifndef HAVE_RESTARTTERM #define HAVE_RESTARTTERM 1 #endif # 431 "./ncurses_def.h" #ifndef HAVE_RIPOFFLINE #define HAVE_RIPOFFLINE 1 #endif # 435 "./ncurses_def.h" #ifndef HAVE_SCR_DUMP #define HAVE_SCR_DUMP 1 #endif # 439 "./ncurses_def.h" #ifndef HAVE_SELECT #define HAVE_SELECT 0 #endif # 443 "./ncurses_def.h" #ifndef HAVE_SETBUF #define HAVE_SETBUF 0 #endif # 447 "./ncurses_def.h" #ifndef HAVE_SETBUFFER #define HAVE_SETBUFFER 0 #endif # 451 "./ncurses_def.h" #ifndef HAVE_SETENV #define HAVE_SETENV 0 #endif # 455 "./ncurses_def.h" #ifndef HAVE_SETUPTERM #define HAVE_SETUPTERM 1 #endif # 459 "./ncurses_def.h" #ifndef HAVE_SETVBUF #define HAVE_SETVBUF 0 #endif # 463 "./ncurses_def.h" #ifndef HAVE_SGTTY_H #define HAVE_SGTTY_H 0 #endif # 467 "./ncurses_def.h" #ifndef HAVE_SIGACTION #define HAVE_SIGACTION 0 #endif # 471 "./ncurses_def.h" #ifndef HAVE_SIGVEC #define HAVE_SIGVEC 0 #endif # 475 "./ncurses_def.h" #ifndef HAVE_SIZECHANGE #define HAVE_SIZECHANGE 0 #endif # 479 "./ncurses_def.h" #ifndef HAVE_SLK_COLOR #define HAVE_SLK_COLOR 0 #endif # 483 "./ncurses_def.h" #ifndef HAVE_SLK_INIT #define HAVE_SLK_INIT 1 #endif # 487 "./ncurses_def.h" #ifndef HAVE_SNPRINTF #define HAVE_SNPRINTF 0 #endif # 491 "./ncurses_def.h" #ifndef HAVE_STDINT_H #define HAVE_STDINT_H 0 #endif # 495 "./ncurses_def.h" #ifndef HAVE_STRDUP #define HAVE_STRDUP 0 #endif # 499 "./ncurses_def.h" #ifndef HAVE_STRLCAT #define HAVE_STRLCAT 0 #endif # 503 "./ncurses_def.h" #ifndef HAVE_STRLCPY #define HAVE_STRLCPY 0 #endif # 507 "./ncurses_def.h" #ifndef HAVE_STRSTR #define HAVE_STRSTR 0 #endif # 511 "./ncurses_def.h" #ifndef HAVE_SYMLINK #define HAVE_SYMLINK 0 #endif # 515 "./ncurses_def.h" #ifndef HAVE_SYSCONF #define HAVE_SYSCONF 0 #endif # 519 "./ncurses_def.h" #ifndef HAVE_SYS_BSDTYPES_H #define HAVE_SYS_BSDTYPES_H 0 #endif # 523 "./ncurses_def.h" #ifndef HAVE_SYS_IOCTL_H #define HAVE_SYS_IOCTL_H 0 #endif # 527 "./ncurses_def.h" #ifndef HAVE_SYS_PARAM_H #define HAVE_SYS_PARAM_H 0 #endif # 531 "./ncurses_def.h" #ifndef HAVE_SYS_POLL_H #define HAVE_SYS_POLL_H 0 #endif # 535 "./ncurses_def.h" #ifndef HAVE_SYS_SELECT_H #define HAVE_SYS_SELECT_H 0 #endif # 539 "./ncurses_def.h" #ifndef HAVE_SYS_TERMIO_H #define HAVE_SYS_TERMIO_H 0 #endif # 543 "./ncurses_def.h" #ifndef HAVE_SYS_TIMES_H #define HAVE_SYS_TIMES_H 0 #endif # 547 "./ncurses_def.h" #ifndef HAVE_SYS_TIME_H #define HAVE_SYS_TIME_H 0 #endif # 551 "./ncurses_def.h" #ifndef HAVE_SYS_TIME_SELECT #define HAVE_SYS_TIME_SELECT 0 #endif # 555 "./ncurses_def.h" #ifndef HAVE_TCGETATTR #define HAVE_TCGETATTR 0 #endif # 559 "./ncurses_def.h" #ifndef HAVE_TCGETPGRP #define HAVE_TCGETPGRP 0 #endif # 563 "./ncurses_def.h" #ifndef HAVE_TELL #define HAVE_TELL 0 #endif # 567 "./ncurses_def.h" #ifndef HAVE_TERMATTRS #define HAVE_TERMATTRS 1 #endif # 571 "./ncurses_def.h" #ifndef HAVE_TERMCAP_H #define HAVE_TERMCAP_H 1 #endif # 575 "./ncurses_def.h" #ifndef HAVE_TERMIOS_H #define HAVE_TERMIOS_H 0 #endif # 579 "./ncurses_def.h" #ifndef HAVE_TERMIO_H #define HAVE_TERMIO_H 0 #endif # 583 "./ncurses_def.h" #ifndef HAVE_TERMNAME #define HAVE_TERMNAME 1 #endif # 587 "./ncurses_def.h" #ifndef HAVE_TERM_ENTRY_H #define HAVE_TERM_ENTRY_H 1 #endif # 591 "./ncurses_def.h" #ifndef HAVE_TERM_H #define HAVE_TERM_H 1 #endif # 595 "./ncurses_def.h" #ifndef HAVE_TGETENT #define HAVE_TGETENT 1 #endif # 599 "./ncurses_def.h" #ifndef HAVE_TIGETNUM #define HAVE_TIGETNUM 1 #endif # 603 "./ncurses_def.h" #ifndef HAVE_TIGETSTR #define HAVE_TIGETSTR 1 #endif # 607 "./ncurses_def.h" #ifndef HAVE_TIMES #define HAVE_TIMES 0 #endif # 611 "./ncurses_def.h" #ifndef HAVE_TPUTS_SP #define HAVE_TPUTS_SP 0 #endif # 615 "./ncurses_def.h" #ifndef HAVE_TSEARCH #define HAVE_TSEARCH 0 #endif # 619 "./ncurses_def.h" #ifndef HAVE_TTYENT_H #define HAVE_TTYENT_H 0 #endif # 623 "./ncurses_def.h" #ifndef HAVE_TYPEAHEAD #define HAVE_TYPEAHEAD 1 #endif # 627 "./ncurses_def.h" #ifndef HAVE_TYPEINFO #define HAVE_TYPEINFO 0 #endif # 631 "./ncurses_def.h" #ifndef HAVE_TYPE_ATTR_T #define HAVE_TYPE_ATTR_T 0 #endif # 635 "./ncurses_def.h" #ifndef HAVE_TYPE_SIGACTION #define HAVE_TYPE_SIGACTION 0 #endif # 639 "./ncurses_def.h" #ifndef HAVE_UNCTRL_H #define HAVE_UNCTRL_H 1 #endif # 643 "./ncurses_def.h" #ifndef HAVE_UNISTD_H #define HAVE_UNISTD_H 0 #endif # 647 "./ncurses_def.h" #ifndef HAVE_UNLINK #define HAVE_UNLINK 0 #endif # 651 "./ncurses_def.h" #ifndef HAVE_USE_DEFAULT_COLORS #define HAVE_USE_DEFAULT_COLORS 0 #endif # 655 "./ncurses_def.h" #ifndef HAVE_USE_ENV #define HAVE_USE_ENV 1 #endif # 659 "./ncurses_def.h" #ifndef HAVE_USE_EXTENDED_NAMES #define HAVE_USE_EXTENDED_NAMES 0 #endif # 663 "./ncurses_def.h" #ifndef HAVE_USE_SCREEN #define HAVE_USE_SCREEN 0 #endif # 667 "./ncurses_def.h" #ifndef HAVE_USE_WINDOW #define HAVE_USE_WINDOW 0 #endif # 671 "./ncurses_def.h" #ifndef HAVE_VFSCANF #define HAVE_VFSCANF 0 #endif # 675 "./ncurses_def.h" #ifndef HAVE_VIDPUTS #define HAVE_VIDPUTS 1 #endif # 679 "./ncurses_def.h" #ifndef HAVE_VID_PUTS #define HAVE_VID_PUTS 1 #endif # 683 "./ncurses_def.h" #ifndef HAVE_VSNPRINTF #define HAVE_VSNPRINTF 0 #endif # 687 "./ncurses_def.h" #ifndef HAVE_VSSCANF #define HAVE_VSSCANF 0 #endif # 691 "./ncurses_def.h" #ifndef HAVE_VW_PRINTW #define HAVE_VW_PRINTW 1 #endif # 695 "./ncurses_def.h" #ifndef HAVE_WCHGAT #define HAVE_WCHGAT 1 #endif # 699 "./ncurses_def.h" #ifndef HAVE_WCSRTOMBS #define HAVE_WCSRTOMBS 0 #endif # 703 "./ncurses_def.h" #ifndef HAVE_WCSTOMBS #define HAVE_WCSTOMBS 0 #endif # 707 "./ncurses_def.h" #ifndef HAVE_WCTOB #define HAVE_WCTOB 0 #endif # 711 "./ncurses_def.h" #ifndef HAVE_WCTOMB #define HAVE_WCTOMB 0 #endif # 715 "./ncurses_def.h" #ifndef HAVE_WCTYPE_H #define HAVE_WCTYPE_H 0 #endif # 719 "./ncurses_def.h" #ifndef HAVE_WINSDELLN #define HAVE_WINSDELLN 1 #endif # 723 "./ncurses_def.h" #ifndef HAVE_WINSSTR #define HAVE_WINSSTR 1 #endif # 727 "./ncurses_def.h" #ifndef HAVE_WORKING_POLL #define HAVE_WORKING_POLL 0 #endif # 731 "./ncurses_def.h" #ifndef HAVE_WRESIZE #define HAVE_WRESIZE 0 #endif # 735 "./ncurses_def.h" #ifndef HAVE_WSYNCDOWN #define HAVE_WSYNCDOWN 1 #endif # 739 "./ncurses_def.h" #ifndef HAVE__DOSCAN #define HAVE__DOSCAN 0 #endif # 743 "./ncurses_def.h" #ifndef HAVE__TRACEF #define HAVE__TRACEF 0 #endif # 747 "./ncurses_def.h" #ifndef MIXEDCASE_FILENAMES #define MIXEDCASE_FILENAMES 0 #endif # 751 "./ncurses_def.h" #ifndef NCURSES_CHAR_EQ #define NCURSES_CHAR_EQ 0 #endif # 755 "./ncurses_def.h" #ifndef NCURSES_EXPANDED #define NCURSES_EXPANDED 0 #endif # 759 "./ncurses_def.h" #ifndef NCURSES_EXT_COLORS #define NCURSES_EXT_COLORS 0 #endif # 763 "./ncurses_def.h" #ifndef NCURSES_EXT_FUNCS #define NCURSES_EXT_FUNCS 0 #endif # 767 "./ncurses_def.h" #ifndef NCURSES_EXT_PUTWIN #define NCURSES_EXT_PUTWIN 0 #endif # 771 "./ncurses_def.h" #ifndef NCURSES_NO_PADDING #define NCURSES_NO_PADDING 0 #endif # 775 "./ncurses_def.h" #ifndef NCURSES_OSPEED_COMPAT #define NCURSES_OSPEED_COMPAT 0 #endif # 779 "./ncurses_def.h" #ifndef NCURSES_PATHSEP #define NCURSES_PATHSEP ':' #endif # 783 "./ncurses_def.h" #ifndef NCURSES_WIDECHAR #define NCURSES_WIDECHAR 0 #endif # 787 "./ncurses_def.h" #ifndef NEED_PTEM_H #define NEED_PTEM_H 0 #endif # 791 "./ncurses_def.h" #ifndef NO_LEAKS #define NO_LEAKS 0 #endif # 795 "./ncurses_def.h" #ifndef PURE_TERMINFO #define PURE_TERMINFO 0 #endif # 799 "./ncurses_def.h" #ifndef STDC_HEADERS #define STDC_HEADERS 0 #endif # 803 "./ncurses_def.h" #ifndef SVR4_ACTION #define SVR4_ACTION 0 #endif # 807 "./ncurses_def.h" #ifndef SVR4_TERMIO #define SVR4_TERMIO 0 #endif # 811 "./ncurses_def.h" #ifndef SYSTEM_NAME #define SYSTEM_NAME "unknown" #endif # 815 "./ncurses_def.h" #ifndef TERMINFO #define TERMINFO "none" #endif # 819 "./ncurses_def.h" #ifndef TERMPATH #define TERMPATH "none" #endif # 823 "./ncurses_def.h" #ifndef TIME_WITH_SYS_TIME #define TIME_WITH_SYS_TIME 0 #endif # 827 "./ncurses_def.h" #ifndef TYPEOF_CHTYPE #define TYPEOF_CHTYPE 0 #endif # 831 "./ncurses_def.h" #ifndef USE_COLORFGBG #define USE_COLORFGBG 0 #endif # 835 "./ncurses_def.h" #ifndef USE_FOPEN_BIN_R #define USE_FOPEN_BIN_R 0 #endif # 839 "./ncurses_def.h" #ifndef USE_GETCAP #define USE_GETCAP 0 #endif # 843 "./ncurses_def.h" #ifndef USE_GETCAP_CACHE #define USE_GETCAP_CACHE 0 #endif # 847 "./ncurses_def.h" #ifndef USE_HARD_TABS #define USE_HARD_TABS 0 #endif # 851 "./ncurses_def.h" #ifndef USE_HASHED_DB #define USE_HASHED_DB 0 #endif # 855 "./ncurses_def.h" #ifndef USE_HASHMAP #define USE_HASHMAP 0 #endif # 859 "./ncurses_def.h" #ifndef USE_HOME_TERMINFO #define USE_HOME_TERMINFO 0 #endif # 863 "./ncurses_def.h" #ifndef USE_LINKS #define USE_LINKS 0 #endif # 867 "./ncurses_def.h" #ifndef USE_MY_MEMMOVE #define USE_MY_MEMMOVE 0 #endif # 871 "./ncurses_def.h" #ifndef USE_OK_BCOPY #define USE_OK_BCOPY 0 #endif # 875 "./ncurses_def.h" #ifndef USE_PTHREADS_EINTR #define USE_PTHREADS_EINTR 0 #endif # 879 "./ncurses_def.h" #ifndef USE_RCS_IDS #define USE_RCS_IDS 0 #endif # 883 "./ncurses_def.h" #ifndef USE_REENTRANT #define USE_REENTRANT 0 #endif # 887 "./ncurses_def.h" #ifndef USE_SAFE_SPRINTF #define USE_SAFE_SPRINTF 0 #endif # 891 "./ncurses_def.h" #ifndef USE_SCROLL_HINTS #define USE_SCROLL_HINTS 0 #endif # 895 "./ncurses_def.h" #ifndef USE_SIGWINCH #define USE_SIGWINCH 0 #endif # 899 "./ncurses_def.h" #ifndef USE_STRING_HACKS #define USE_STRING_HACKS 0 #endif # 903 "./ncurses_def.h" #ifndef USE_SYMLINKS #define USE_SYMLINKS 0 #endif # 907 "./ncurses_def.h" #ifndef USE_SYSMOUSE #define USE_SYSMOUSE 0 #endif # 911 "./ncurses_def.h" #ifndef USE_WEAK_SYMBOLS #define USE_WEAK_SYMBOLS 0 #endif # 915 "./ncurses_def.h" #ifndef USE_WIDEC_SUPPORT #define USE_WIDEC_SUPPORT 0 #endif # 919 "./ncurses_def.h" #ifndef USE_XMC_SUPPORT #define USE_XMC_SUPPORT 0 #endif # 923 "./ncurses_def.h" #endif /* NC_DEFINE_H */ # 925 "./ncurses_def.h" # 238 "/usr/home/avg/devel/freebsd/machines/uprising/lib/ncurses/tinfo/ncurses_cfg.h" 2 /* The C compiler may not treat these properly but C++ has to */ #ifdef __cplusplus #undef const #undef inline #endif # 244 "/usr/home/avg/devel/freebsd/machines/uprising/lib/ncurses/tinfo/ncurses_cfg.h" /* On HP-UX, the C compiler doesn't grok mbstate_t without -D_XOPEN_SOURCE=500. However, this causes problems on IRIX. So, we #define mbstate_t to int in configure.in only for the C compiler if needed. */ #ifndef __cplusplus #ifdef NEED_MBSTATE_T_DEF #define mbstate_t int #endif # 253 "/usr/home/avg/devel/freebsd/machines/uprising/lib/ncurses/tinfo/ncurses_cfg.h" #endif # 254 "/usr/home/avg/devel/freebsd/machines/uprising/lib/ncurses/tinfo/ncurses_cfg.h" /* * vile:cmode */ #endif /* NC_CONFIG_H */ # 259 "/usr/home/avg/devel/freebsd/machines/uprising/lib/ncurses/tinfo/ncurses_cfg.h" # 58 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" 2 #if 0 /* disabled by -frewrite-includes */ #if USE_RCS_IDS #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 60 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define MODULE_ID(id) static const char Ident[] = id; #else # 62 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define MODULE_ID(id) /*nothing*/ #endif # 64 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #if 0 /* expanded by -frewrite-includes */ #include /* for offsetof */ #endif /* expanded by -frewrite-includes */ # 65 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" # 1 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stddef.h" 1 3 4 /*- * SPDX-License-Identifier: BSD-3-Clause * * Copyright (c) 1990, 1993 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * @(#)stddef.h 8.1 (Berkeley) 6/2/93 * * $FreeBSD$ */ #ifndef _STDDEF_H_ #define _STDDEF_H_ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 39 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stddef.h" 3 4 # 1 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 1 3 4 /*- * SPDX-License-Identifier: BSD-3-Clause * * Copyright (c) 1991, 1993 * The Regents of the University of California. All rights reserved. * * This code is derived from software contributed to Berkeley by * Berkeley Software Design, Inc. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * @(#)cdefs.h 8.8 (Berkeley) 1/9/95 * $FreeBSD$ */ #ifndef _SYS_CDEFS_H_ #define _SYS_CDEFS_H_ #if 0 /* disabled by -frewrite-includes */ #if defined(_KERNEL) && defined(_STANDALONE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 42 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #error "_KERNEL and _STANDALONE are mutually exclusive" #endif # 44 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 /* * Testing against Clang-specific extensions. */ #ifndef __has_attribute #define __has_attribute(x) 0 #endif # 51 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #ifndef __has_extension #define __has_extension __has_feature #endif # 54 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #ifndef __has_feature #define __has_feature(x) 0 #endif # 57 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #ifndef __has_include #define __has_include(x) 0 #endif # 60 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #ifndef __has_builtin #define __has_builtin(x) 0 #endif # 63 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(__cplusplus) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 65 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __BEGIN_DECLS extern "C" { #define __END_DECLS } #else # 68 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __BEGIN_DECLS #define __END_DECLS #endif # 71 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 /* * This code has been put in place to help reduce the addition of * compiler specific defines in FreeBSD code. It helps to aid in * having a compiler-agnostic source tree. */ #if 0 /* disabled by -frewrite-includes */ #if defined(__GNUC__) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 79 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __GNUC__ >= 3 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 81 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __GNUCLIKE_ASM 3 #define __GNUCLIKE_MATH_BUILTIN_CONSTANTS #else # 84 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __GNUCLIKE_ASM 2 #endif # 86 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __GNUCLIKE___TYPEOF 1 #define __GNUCLIKE___SECTION 1 #define __GNUCLIKE_CTOR_SECTION_HANDLING 1 #define __GNUCLIKE_BUILTIN_CONSTANT_P 1 #if 0 /* disabled by -frewrite-includes */ #if (__GNUC_MINOR__ > 95 || __GNUC__ >= 3) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 94 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __GNUCLIKE_BUILTIN_VARARGS 1 #define __GNUCLIKE_BUILTIN_STDARG 1 #define __GNUCLIKE_BUILTIN_VAALIST 1 #endif # 98 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __GNUC_VA_LIST_COMPATIBILITY 1 /* * Compiler memory barriers, specific to gcc and clang. */ #define __compiler_membar() __asm __volatile(" " : : : "memory") #define __GNUCLIKE_BUILTIN_NEXT_ARG 1 #define __GNUCLIKE_MATH_BUILTIN_RELOPS #define __GNUCLIKE_BUILTIN_MEMCPY 1 /* XXX: if __GNUC__ >= 2: not tested everywhere originally, where replaced */ #define __CC_SUPPORTS_INLINE 1 #define __CC_SUPPORTS___INLINE 1 #define __CC_SUPPORTS___INLINE__ 1 #define __CC_SUPPORTS___FUNC__ 1 #define __CC_SUPPORTS_WARNING 1 #define __CC_SUPPORTS_VARADIC_XXX 1 /* see varargs.h */ #define __CC_SUPPORTS_DYNAMIC_ARRAY_INIT 1 #endif /* __GNUC__ */ # 124 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 /* * Macro to test if we're using a specific version of gcc or later. */ #if 0 /* disabled by -frewrite-includes */ #if defined(__GNUC__) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 129 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __GNUC_PREREQ__(ma, mi) \ (__GNUC__ > (ma) || __GNUC__ == (ma) && __GNUC_MINOR__ >= (mi)) #else # 132 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __GNUC_PREREQ__(ma, mi) 0 #endif # 134 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 /* * The __CONCAT macro is used to concatenate parts of symbol names, e.g. * with "#define OLD(foo) __CONCAT(old,foo)", OLD(foo) produces oldfoo. * The __CONCAT macro is a bit tricky to use if it must work in non-ANSI * mode -- there must be no spaces between its arguments, and for nested * __CONCAT's, all the __CONCAT's must be at the left. __CONCAT can also * concatenate double-quoted strings produced by the __STRING macro, but * this only works with ANSI C. * * __XSTRING is like __STRING, but it expands any macros in its argument * first. It is only available with ANSI C. */ #if 0 /* disabled by -frewrite-includes */ #if defined(__STDC__) || defined(__cplusplus) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 148 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __P(protos) protos /* full-blown ANSI C */ #define __CONCAT1(x,y) x ## y #define __CONCAT(x,y) __CONCAT1(x,y) #define __STRING(x) #x /* stringify without expanding x */ #define __XSTRING(x) __STRING(x) /* expand x, then stringify */ #define __const const /* define reserved names to standard */ #define __signed signed #define __volatile volatile #if 0 /* disabled by -frewrite-includes */ #if defined(__cplusplus) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 158 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __inline inline /* convert to C++ keyword */ #else # 160 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if !(defined(__CC_SUPPORTS___INLINE)) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 161 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __inline /* delete GCC keyword */ #endif /* ! __CC_SUPPORTS___INLINE */ # 163 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #endif /* !__cplusplus */ # 164 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #else /* !(__STDC__ || __cplusplus) */ # 166 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __P(protos) () /* traditional C preprocessor */ #define __CONCAT(x,y) x/**/y #define __STRING(x) "x" #if 0 /* disabled by -frewrite-includes */ #if !defined(__CC_SUPPORTS___INLINE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 171 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __const /* delete pseudo-ANSI C keywords */ #define __inline #define __signed #define __volatile /* * In non-ANSI C environments, new programs will want ANSI-only C keywords * deleted from the program and old programs will want them left alone. * When using a compiler other than gcc, programs using the ANSI C keywords * const, inline etc. as normal identifiers should define -DNO_ANSI_KEYWORDS. * When using "gcc -traditional", we assume that this is the intent; if * __GNUC__ is defined but __STDC__ is not, we leave the new keywords alone. */ #ifndef NO_ANSI_KEYWORDS #define const /* delete ANSI C keywords */ #define inline #define signed #define volatile #endif /* !NO_ANSI_KEYWORDS */ # 189 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #endif /* !__CC_SUPPORTS___INLINE */ # 190 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #endif /* !(__STDC__ || __cplusplus) */ # 191 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 /* * Compiler-dependent macros to help declare dead (non-returning) and * pure (no side effects) functions, and unused variables. They are * null except for versions of gcc that are known to support the features * properly (old versions of gcc-2 supported the dead and pure features * in a different (wrong) way). If we do not provide an implementation * for a given compiler, let the compile fail if it is told to use * a feature that we cannot live without. */ #define __weak_symbol __attribute__((__weak__)) #if 0 /* disabled by -frewrite-includes */ #if !__GNUC_PREREQ__(2, 5) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 203 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __dead2 #define __pure2 #define __unused #endif # 207 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __GNUC__ == 2 && __GNUC_MINOR__ >= 5 && __GNUC_MINOR__ < 7 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 208 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __dead2 __attribute__((__noreturn__)) #define __pure2 __attribute__((__const__)) #define __unused /* XXX Find out what to do for __packed, __aligned and __section */ #endif # 213 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __GNUC_PREREQ__(2, 7) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 214 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __dead2 __attribute__((__noreturn__)) #define __pure2 __attribute__((__const__)) #define __unused __attribute__((__unused__)) #define __used __attribute__((__used__)) #define __packed __attribute__((__packed__)) #define __aligned(x) __attribute__((__aligned__(x))) #define __section(x) __attribute__((__section__(x))) #endif # 222 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __GNUC_PREREQ__(4, 3) || __has_attribute(__alloc_size__) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 223 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __alloc_size(x) __attribute__((__alloc_size__(x))) #define __alloc_size2(n, x) __attribute__((__alloc_size__(n, x))) #else # 226 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __alloc_size(x) #define __alloc_size2(n, x) #endif # 229 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __GNUC_PREREQ__(4, 9) || __has_attribute(__alloc_align__) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 230 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __alloc_align(x) __attribute__((__alloc_align__(x))) #else # 232 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __alloc_align(x) #endif # 234 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if !__GNUC_PREREQ__(2, 95) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 236 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __alignof(x) __offsetof(struct { char __a; x __b; }, __b) #endif # 238 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 /* * Keywords added in C11. */ #if 0 /* disabled by -frewrite-includes */ #if !defined(__STDC_VERSION__) || __STDC_VERSION__ < 201112L #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 244 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if !__has_extension(c_alignas) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 246 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if (defined(__cplusplus) && __cplusplus >= 201103L) || \ __has_extension(cxx_alignas) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 248 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define _Alignas(x) alignas(x) #else # 250 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 /* XXX: Only emulates _Alignas(constant-expression); not _Alignas(type-name). */ #define _Alignas(x) __aligned(x) #endif # 253 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #endif # 254 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(__cplusplus) && __cplusplus >= 201103L #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 256 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define _Alignof(x) alignof(x) #else # 258 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define _Alignof(x) __alignof(x) #endif # 260 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if !defined(__cplusplus) && !__has_extension(c_atomic) && \ !__has_extension(cxx_atomic) && !__GNUC_PREREQ__(4, 7) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 263 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 /* * No native support for _Atomic(). Place object in structure to prevent * most forms of direct non-atomic access. */ #define _Atomic(T) struct { T volatile __val; } #endif # 269 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(__cplusplus) && __cplusplus >= 201103L #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 271 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define _Noreturn [[noreturn]] #else # 273 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define _Noreturn __dead2 #endif # 275 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if !__has_extension(c_static_assert) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 277 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if (defined(__cplusplus) && __cplusplus >= 201103L) || \ __has_extension(cxx_static_assert) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 279 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define _Static_assert(x, y) static_assert(x, y) #if 0 /* disabled by -frewrite-includes */ #if 0 #elif __GNUC_PREREQ__(4,6) && !defined(__cplusplus) #endif #endif /* disabled by -frewrite-includes */ #elif 0 /* evaluated by -frewrite-includes */ # 281 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 /* Nothing, gcc 4.6 and higher has _Static_assert built-in */ #if 0 /* disabled by -frewrite-includes */ #if 0 #elif defined(__COUNTER__) #endif #endif /* disabled by -frewrite-includes */ #elif 0 /* evaluated by -frewrite-includes */ # 283 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define _Static_assert(x, y) __Static_assert(x, __COUNTER__) #define __Static_assert(x, y) ___Static_assert(x, y) #define ___Static_assert(x, y) typedef char __assert_ ## y[(x) ? 1 : -1] \ __unused #else # 288 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define _Static_assert(x, y) struct __hack #endif # 290 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #endif # 291 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if !__has_extension(c_thread_local) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 293 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 /* * XXX: Some compilers (Clang 3.3, GCC 4.7) falsely announce C++11 mode * without actually supporting the thread_local keyword. Don't check for * the presence of C++11 when defining _Thread_local. */ #if 0 /* disabled by -frewrite-includes */ #if /* (defined(__cplusplus) && __cplusplus >= 201103L) || */ \ __has_extension(cxx_thread_local) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 300 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define _Thread_local thread_local #else # 302 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define _Thread_local __thread #endif # 304 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #endif # 305 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #endif /* __STDC_VERSION__ || __STDC_VERSION__ < 201112L */ # 307 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 /* * Emulation of C11 _Generic(). Unlike the previously defined C11 * keywords, it is not possible to implement this using exactly the same * syntax. Therefore implement something similar under the name * __generic(). Unlike _Generic(), this macro can only distinguish * between a single type, so it requires nested invocations to * distinguish multiple cases. */ #if 0 /* disabled by -frewrite-includes */ #if (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L) || \ __has_extension(c_generic_selections) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 319 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __generic(expr, t, yes, no) \ _Generic(expr, t: yes, default: no) #if 0 /* disabled by -frewrite-includes */ #if 0 #elif __GNUC_PREREQ__(3, 1) && !defined(__cplusplus) #endif #endif /* disabled by -frewrite-includes */ #elif 0 /* evaluated by -frewrite-includes */ # 322 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __generic(expr, t, yes, no) \ __builtin_choose_expr( \ __builtin_types_compatible_p(__typeof(expr), t), yes, no) #endif # 326 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 /* * C99 Static array indices in function parameter declarations. Syntax such as: * void bar(int myArray[static 10]); * is allowed in C99 but not in C++. Define __min_size appropriately so * headers using it can be compiled in either language. Use like this: * void bar(int myArray[__min_size(10)]); */ #if 0 /* disabled by -frewrite-includes */ #if !defined(__cplusplus) && \ (defined(__clang__) || __GNUC_PREREQ__(4, 6)) && \ (!defined(__STDC_VERSION__) || (__STDC_VERSION__ >= 199901)) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 337 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __min_size(x) static (x) #else # 339 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __min_size(x) (x) #endif # 341 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __GNUC_PREREQ__(2, 96) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 343 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __malloc_like __attribute__((__malloc__)) #define __pure __attribute__((__pure__)) #else # 346 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __malloc_like #define __pure #endif # 349 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __GNUC_PREREQ__(3, 1) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 351 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __always_inline __attribute__((__always_inline__)) #else # 353 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __always_inline #endif # 355 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __GNUC_PREREQ__(3, 1) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 357 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __noinline __attribute__ ((__noinline__)) #else # 359 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __noinline #endif # 361 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __GNUC_PREREQ__(3, 4) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 363 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __fastcall __attribute__((__fastcall__)) #define __result_use_check __attribute__((__warn_unused_result__)) #else # 366 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __fastcall #define __result_use_check #endif # 369 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __GNUC_PREREQ__(4, 1) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 371 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __returns_twice __attribute__((__returns_twice__)) #else # 373 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __returns_twice #endif # 375 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __GNUC_PREREQ__(4, 6) || __has_builtin(__builtin_unreachable) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 377 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __unreachable() __builtin_unreachable() #else # 379 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __unreachable() ((void)0) #endif # 381 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 /* XXX: should use `#if __STDC_VERSION__ < 199901'. */ #if 0 /* disabled by -frewrite-includes */ #if !__GNUC_PREREQ__(2, 7) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 384 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __func__ NULL #endif # 386 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if (defined(__GNUC__) && __GNUC__ >= 2) && !defined(__STRICT_ANSI__) || __STDC_VERSION__ >= 199901 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 388 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __LONG_LONG_SUPPORTED #endif # 390 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 /* C++11 exposes a load of C99 stuff */ #if 0 /* disabled by -frewrite-includes */ #if defined(__cplusplus) && __cplusplus >= 201103L #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 393 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __LONG_LONG_SUPPORTED #ifndef __STDC_LIMIT_MACROS #define __STDC_LIMIT_MACROS #endif # 397 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #ifndef __STDC_CONSTANT_MACROS #define __STDC_CONSTANT_MACROS #endif # 400 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #endif # 401 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 /* * GCC 2.95 provides `__restrict' as an extension to C90 to support the * C99-specific `restrict' type qualifier. We happen to use `__restrict' as * a way to define the `restrict' type qualifier without disturbing older * software that is unaware of C99 keywords. */ #if 0 /* disabled by -frewrite-includes */ #if !(__GNUC__ == 2 && __GNUC_MINOR__ == 95) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 409 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if !defined(__STDC_VERSION__) || __STDC_VERSION__ < 199901 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 410 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __restrict #else # 412 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __restrict restrict #endif # 414 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #endif # 415 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 /* * GNU C version 2.96 adds explicit branch prediction so that * the CPU back-end can hint the processor and also so that * code blocks can be reordered such that the predicted path * sees a more linear flow, thus improving cache behavior, etc. * * The following two macros provide us with a way to utilize this * compiler feature. Use __predict_true() if you expect the expression * to evaluate to true, and __predict_false() if you expect the * expression to evaluate to false. * * A few notes about usage: * * * Generally, __predict_false() error condition checks (unless * you have some _strong_ reason to do otherwise, in which case * document it), and/or __predict_true() `no-error' condition * checks, assuming you want to optimize for the no-error case. * * * Other than that, if you don't know the likelihood of a test * succeeding from empirical or other `hard' evidence, don't * make predictions. * * * These are meant to be used in places that are run `a lot'. * It is wasteful to make predictions in code that is run * seldomly (e.g. at subsystem initialization time) as the * basic block reordering that this affects can often generate * larger code. */ #if 0 /* disabled by -frewrite-includes */ #if __GNUC_PREREQ__(2, 96) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 445 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __predict_true(exp) __builtin_expect((exp), 1) #define __predict_false(exp) __builtin_expect((exp), 0) #else # 448 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __predict_true(exp) (exp) #define __predict_false(exp) (exp) #endif # 451 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __GNUC_PREREQ__(4, 0) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 453 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __null_sentinel __attribute__((__sentinel__)) #define __exported __attribute__((__visibility__("default"))) #define __hidden __attribute__((__visibility__("hidden"))) #else # 457 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __null_sentinel #define __exported #define __hidden #endif # 461 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 /* * We define this here since , , and * require it. */ #if 0 /* disabled by -frewrite-includes */ #if __GNUC_PREREQ__(4, 1) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 467 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __offsetof(type, field) __builtin_offsetof(type, field) #else # 469 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #ifndef __cplusplus #define __offsetof(type, field) \ ((__size_t)(__uintptr_t)((const volatile void *)&((type *)0)->field)) #else # 473 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __offsetof(type, field) \ (__offsetof__ (reinterpret_cast <__size_t> \ (&reinterpret_cast \ (static_cast (0)->field)))) #endif # 478 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #endif # 479 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __rangeof(type, start, end) \ (__offsetof(type, end) - __offsetof(type, start)) /* * Given the pointer x to the member m of the struct s, return * a pointer to the containing structure. When using GCC, we first * assign pointer x to a local variable, to check that its type is * compatible with member m. */ #if 0 /* disabled by -frewrite-includes */ #if __GNUC_PREREQ__(3, 1) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 489 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __containerof(x, s, m) ({ \ const volatile __typeof(((s *)0)->m) *__x = (x); \ __DEQUALIFY(s *, (const volatile char *)__x - __offsetof(s, m));\ }) #else # 494 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __containerof(x, s, m) \ __DEQUALIFY(s *, (const volatile char *)(x) - __offsetof(s, m)) #endif # 497 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 /* * Compiler-dependent macros to declare that functions take printf-like * or scanf-like arguments. They are null except for versions of gcc * that are known to support the features properly (old versions of gcc-2 * didn't permit keeping the keywords out of the application namespace). */ #if 0 /* disabled by -frewrite-includes */ #if !__GNUC_PREREQ__(2, 7) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 505 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __printflike(fmtarg, firstvararg) #define __scanflike(fmtarg, firstvararg) #define __format_arg(fmtarg) #define __strfmonlike(fmtarg, firstvararg) #define __strftimelike(fmtarg, firstvararg) #else # 511 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __printflike(fmtarg, firstvararg) \ __attribute__((__format__ (__printf__, fmtarg, firstvararg))) #define __scanflike(fmtarg, firstvararg) \ __attribute__((__format__ (__scanf__, fmtarg, firstvararg))) #define __format_arg(fmtarg) __attribute__((__format_arg__ (fmtarg))) #define __strfmonlike(fmtarg, firstvararg) \ __attribute__((__format__ (__strfmon__, fmtarg, firstvararg))) #define __strftimelike(fmtarg, firstvararg) \ __attribute__((__format__ (__strftime__, fmtarg, firstvararg))) #endif # 521 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 /* Compiler-dependent macros that rely on FreeBSD-specific extensions. */ #if 0 /* disabled by -frewrite-includes */ #if defined(__FreeBSD_cc_version) && __FreeBSD_cc_version >= 300001 && \ defined(__GNUC__) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 525 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __printf0like(fmtarg, firstvararg) \ __attribute__((__format__ (__printf0__, fmtarg, firstvararg))) #else # 528 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __printf0like(fmtarg, firstvararg) #endif # 530 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(__GNUC__) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 532 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __strong_reference(sym,aliassym) \ extern __typeof (sym) aliassym __attribute__ ((__alias__ (#sym))) #ifdef __STDC__ #define __weak_reference(sym,alias) \ __asm__(".weak " #alias); \ __asm__(".equ " #alias ", " #sym) #define __warn_references(sym,msg) \ __asm__(".section .gnu.warning." #sym); \ __asm__(".asciz \"" msg "\""); \ __asm__(".previous") #define __sym_compat(sym,impl,verid) \ __asm__(".symver " #impl ", " #sym "@" #verid) #define __sym_default(sym,impl,verid) \ __asm__(".symver " #impl ", " #sym "@@@" #verid) #else # 547 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __weak_reference(sym,alias) \ __asm__(".weak alias"); \ __asm__(".equ alias, sym") #define __warn_references(sym,msg) \ __asm__(".section .gnu.warning.sym"); \ __asm__(".asciz \"msg\""); \ __asm__(".previous") #define __sym_compat(sym,impl,verid) \ __asm__(".symver impl, sym@verid") #define __sym_default(impl,sym,verid) \ __asm__(".symver impl, sym@@@verid") #endif /* __STDC__ */ # 559 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #endif /* __GNUC__ */ # 560 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __GLOBL(sym) __asm__(".globl " __XSTRING(sym)) #define __WEAK(sym) __asm__(".weak " __XSTRING(sym)) #if 0 /* disabled by -frewrite-includes */ #if defined(__GNUC__) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 565 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __IDSTRING(name,string) __asm__(".ident\t\"" string "\"") #else # 567 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 /* * The following definition might not work well if used in header files, * but it should be better than nothing. If you want a "do nothing" * version, then it should generate some harmless declaration, such as: * #define __IDSTRING(name,string) struct __hack */ #define __IDSTRING(name,string) static const char name[] __unused = string #endif # 575 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 /* * Embed the rcs id of a source file in the resulting library. Note that in * more recent ELF binutils, we use .ident allowing the ID to be stripped. * Usage: * __FBSDID("$FreeBSD$"); */ #ifndef __FBSDID #if 0 /* disabled by -frewrite-includes */ #if !defined(STRIP_FBSDID) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 584 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __FBSDID(s) __IDSTRING(__CONCAT(__rcsid_,__LINE__),s) #else # 586 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __FBSDID(s) struct __hack #endif # 588 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #endif # 589 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #ifndef __RCSID #ifndef NO__RCSID #define __RCSID(s) __IDSTRING(__CONCAT(__rcsid_,__LINE__),s) #else # 594 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __RCSID(s) struct __hack #endif # 596 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #endif # 597 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #ifndef __RCSID_SOURCE #ifndef NO__RCSID_SOURCE #define __RCSID_SOURCE(s) __IDSTRING(__CONCAT(__rcsid_source_,__LINE__),s) #else # 602 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __RCSID_SOURCE(s) struct __hack #endif # 604 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #endif # 605 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #ifndef __SCCSID #ifndef NO__SCCSID #define __SCCSID(s) __IDSTRING(__CONCAT(__sccsid_,__LINE__),s) #else # 610 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __SCCSID(s) struct __hack #endif # 612 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #endif # 613 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #ifndef __COPYRIGHT #ifndef NO__COPYRIGHT #define __COPYRIGHT(s) __IDSTRING(__CONCAT(__copyright_,__LINE__),s) #else # 618 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __COPYRIGHT(s) struct __hack #endif # 620 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #endif # 621 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #ifndef __DECONST #define __DECONST(type, var) ((type)(__uintptr_t)(const void *)(var)) #endif # 625 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #ifndef __DEVOLATILE #define __DEVOLATILE(type, var) ((type)(__uintptr_t)(volatile void *)(var)) #endif # 629 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #ifndef __DEQUALIFY #define __DEQUALIFY(type, var) ((type)(__uintptr_t)(const volatile void *)(var)) #endif # 633 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 /*- * The following definitions are an extension of the behavior originally * implemented in , but with a different level of granularity. * POSIX.1 requires that the macros we test be defined before any standard * header file is included. * * Here's a quick run-down of the versions: * defined(_POSIX_SOURCE) 1003.1-1988 * _POSIX_C_SOURCE == 1 1003.1-1990 * _POSIX_C_SOURCE == 2 1003.2-1992 C Language Binding Option * _POSIX_C_SOURCE == 199309 1003.1b-1993 * _POSIX_C_SOURCE == 199506 1003.1c-1995, 1003.1i-1995, * and the omnibus ISO/IEC 9945-1: 1996 * _POSIX_C_SOURCE == 200112 1003.1-2001 * _POSIX_C_SOURCE == 200809 1003.1-2008 * * In addition, the X/Open Portability Guide, which is now the Single UNIX * Specification, defines a feature-test macro which indicates the version of * that specification, and which subsumes _POSIX_C_SOURCE. * * Our macros begin with two underscores to avoid namespace screwage. */ /* Deal with IEEE Std. 1003.1-1990, in which _POSIX_C_SOURCE == 1. */ #if 0 /* disabled by -frewrite-includes */ #if defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE == 1 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 659 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #undef _POSIX_C_SOURCE /* Probably illegal, but beyond caring now. */ #define _POSIX_C_SOURCE 199009 #endif # 662 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 /* Deal with IEEE Std. 1003.2-1992, in which _POSIX_C_SOURCE == 2. */ #if 0 /* disabled by -frewrite-includes */ #if defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE == 2 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 665 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #undef _POSIX_C_SOURCE #define _POSIX_C_SOURCE 199209 #endif # 668 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 /* Deal with various X/Open Portability Guides and Single UNIX Spec. */ #ifdef _XOPEN_SOURCE #if 0 /* disabled by -frewrite-includes */ #if _XOPEN_SOURCE - 0 >= 700 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 672 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __XSI_VISIBLE 700 #undef _POSIX_C_SOURCE #define _POSIX_C_SOURCE 200809 #if 0 /* disabled by -frewrite-includes */ #if 0 #elif _XOPEN_SOURCE - 0 >= 600 #endif #endif /* disabled by -frewrite-includes */ #elif 0 /* evaluated by -frewrite-includes */ # 676 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __XSI_VISIBLE 600 #undef _POSIX_C_SOURCE #define _POSIX_C_SOURCE 200112 #if 0 /* disabled by -frewrite-includes */ #if 0 #elif _XOPEN_SOURCE - 0 >= 500 #endif #endif /* disabled by -frewrite-includes */ #elif 0 /* evaluated by -frewrite-includes */ # 680 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __XSI_VISIBLE 500 #undef _POSIX_C_SOURCE #define _POSIX_C_SOURCE 199506 #endif # 684 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #endif # 685 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 /* * Deal with all versions of POSIX. The ordering relative to the tests above is * important. */ #if 0 /* disabled by -frewrite-includes */ #if defined(_POSIX_SOURCE) && !defined(_POSIX_C_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 691 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define _POSIX_C_SOURCE 198808 #endif # 693 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #ifdef _POSIX_C_SOURCE #if 0 /* disabled by -frewrite-includes */ #if _POSIX_C_SOURCE >= 200809 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 695 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __POSIX_VISIBLE 200809 #define __ISO_C_VISIBLE 1999 #if 0 /* disabled by -frewrite-includes */ #if 0 #elif _POSIX_C_SOURCE >= 200112 #endif #endif /* disabled by -frewrite-includes */ #elif 0 /* evaluated by -frewrite-includes */ # 698 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __POSIX_VISIBLE 200112 #define __ISO_C_VISIBLE 1999 #if 0 /* disabled by -frewrite-includes */ #if 0 #elif _POSIX_C_SOURCE >= 199506 #endif #endif /* disabled by -frewrite-includes */ #elif 0 /* evaluated by -frewrite-includes */ # 701 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __POSIX_VISIBLE 199506 #define __ISO_C_VISIBLE 1990 #if 0 /* disabled by -frewrite-includes */ #if 0 #elif _POSIX_C_SOURCE >= 199309 #endif #endif /* disabled by -frewrite-includes */ #elif 0 /* evaluated by -frewrite-includes */ # 704 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __POSIX_VISIBLE 199309 #define __ISO_C_VISIBLE 1990 #if 0 /* disabled by -frewrite-includes */ #if 0 #elif _POSIX_C_SOURCE >= 199209 #endif #endif /* disabled by -frewrite-includes */ #elif 0 /* evaluated by -frewrite-includes */ # 707 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __POSIX_VISIBLE 199209 #define __ISO_C_VISIBLE 1990 #if 0 /* disabled by -frewrite-includes */ #if 0 #elif _POSIX_C_SOURCE >= 199009 #endif #endif /* disabled by -frewrite-includes */ #elif 0 /* evaluated by -frewrite-includes */ # 710 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __POSIX_VISIBLE 199009 #define __ISO_C_VISIBLE 1990 #else # 713 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __POSIX_VISIBLE 198808 #define __ISO_C_VISIBLE 0 #endif /* _POSIX_C_SOURCE */ # 716 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 /* * Both glibc and OpenBSD enable c11 features when _ISOC11_SOURCE is defined, or * when compiling with -stdc=c11. A strict reading of the standard would suggest * doing it only for the former. However, a strict reading also requires C99 * mode only, so building with C11 is already undefined. Follow glibc's and * OpenBSD's lead for this non-standard configuration for maximum compatibility. */ #if 0 /* disabled by -frewrite-includes */ #if _ISOC11_SOURCE || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 724 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #undef __ISO_C_VISIBLE #define __ISO_C_VISIBLE 2011 #endif # 727 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #else # 728 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 /*- * Deal with _ANSI_SOURCE: * If it is defined, and no other compilation environment is explicitly * requested, then define our internal feature-test macros to zero. This * makes no difference to the preprocessor (undefined symbols in preprocessing * expressions are defined to have value zero), but makes it more convenient for * a test program to print out the values. * * If a program mistakenly defines _ANSI_SOURCE and some other macro such as * _POSIX_C_SOURCE, we will assume that it wants the broader compilation * environment (and in fact we will never get here). */ #if 0 /* disabled by -frewrite-includes */ #if defined(_ANSI_SOURCE) /* Hide almost everything. */ #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 741 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __POSIX_VISIBLE 0 #define __XSI_VISIBLE 0 #define __BSD_VISIBLE 0 #define __ISO_C_VISIBLE 1990 #define __EXT1_VISIBLE 0 #if 0 /* disabled by -frewrite-includes */ #if 0 #elif defined(_C99_SOURCE) /* Localism to specify strict C99 env. */ #endif #endif /* disabled by -frewrite-includes */ #elif 0 /* evaluated by -frewrite-includes */ # 747 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __POSIX_VISIBLE 0 #define __XSI_VISIBLE 0 #define __BSD_VISIBLE 0 #define __ISO_C_VISIBLE 1999 #define __EXT1_VISIBLE 0 #if 0 /* disabled by -frewrite-includes */ #if 0 #elif defined(_C11_SOURCE) /* Localism to specify strict C11 env. */ #endif #endif /* disabled by -frewrite-includes */ #elif 0 /* evaluated by -frewrite-includes */ # 753 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __POSIX_VISIBLE 0 #define __XSI_VISIBLE 0 #define __BSD_VISIBLE 0 #define __ISO_C_VISIBLE 2011 #define __EXT1_VISIBLE 0 #else /* Default environment: show everything. */ # 759 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __POSIX_VISIBLE 200809 #define __XSI_VISIBLE 700 #define __BSD_VISIBLE 1 #define __ISO_C_VISIBLE 2011 #define __EXT1_VISIBLE 1 #endif # 765 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #endif # 766 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 /* User override __EXT1_VISIBLE */ #if 0 /* disabled by -frewrite-includes */ #if defined(__STDC_WANT_LIB_EXT1__) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 769 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #undef __EXT1_VISIBLE #if 0 /* disabled by -frewrite-includes */ #if __STDC_WANT_LIB_EXT1__ #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 771 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __EXT1_VISIBLE 1 #else # 773 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __EXT1_VISIBLE 0 #endif # 775 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #endif /* __STDC_WANT_LIB_EXT1__ */ # 776 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 /* * Old versions of GCC use non-standard ARM arch symbols; acle-compat.h * translates them to __ARM_ARCH and the modern feature symbols defined by ARM. */ #if 0 /* disabled by -frewrite-includes */ #if defined(__arm__) && !defined(__ARM_ARCH) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 782 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 782 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 # 783 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #endif # 784 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 /* * Nullability qualifiers: currently only supported by Clang. */ #if 0 /* disabled by -frewrite-includes */ #if !(defined(__clang__) && __has_feature(nullability)) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 789 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define _Nonnull #define _Nullable #define _Null_unspecified #define __NULLABILITY_PRAGMA_PUSH #define __NULLABILITY_PRAGMA_POP #else # 795 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __NULLABILITY_PRAGMA_PUSH _Pragma("clang diagnostic push") \ _Pragma("clang diagnostic ignored \"-Wnullability-completeness\"") #define __NULLABILITY_PRAGMA_POP _Pragma("clang diagnostic pop") #endif # 799 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 /* * Type Safety Checking * * Clang provides additional attributes to enable checking type safety * properties that cannot be enforced by the C type system. */ #if 0 /* disabled by -frewrite-includes */ #if __has_attribute(__argument_with_type_tag__) && \ __has_attribute(__type_tag_for_datatype__) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 809 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __arg_type_tag(arg_kind, arg_idx, type_tag_idx) \ __attribute__((__argument_with_type_tag__(arg_kind, arg_idx, type_tag_idx))) #define __datatype_type_tag(kind, type) \ __attribute__((__type_tag_for_datatype__(kind, type))) #else # 814 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __arg_type_tag(arg_kind, arg_idx, type_tag_idx) #define __datatype_type_tag(kind, type) #endif # 817 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 /* * Lock annotations. * * Clang provides support for doing basic thread-safety tests at * compile-time, by marking which locks will/should be held when * entering/leaving a functions. * * Furthermore, it is also possible to annotate variables and structure * members to enforce that they are only accessed when certain locks are * held. */ #if 0 /* disabled by -frewrite-includes */ #if __has_extension(c_thread_safety_attributes) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 831 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __lock_annotate(x) __attribute__((x)) #else # 833 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __lock_annotate(x) #endif # 835 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 /* Structure implements a lock. */ #define __lockable __lock_annotate(lockable) /* Function acquires an exclusive or shared lock. */ #define __locks_exclusive(...) \ __lock_annotate(exclusive_lock_function(__VA_ARGS__)) #define __locks_shared(...) \ __lock_annotate(shared_lock_function(__VA_ARGS__)) /* Function attempts to acquire an exclusive or shared lock. */ #define __trylocks_exclusive(...) \ __lock_annotate(exclusive_trylock_function(__VA_ARGS__)) #define __trylocks_shared(...) \ __lock_annotate(shared_trylock_function(__VA_ARGS__)) /* Function releases a lock. */ #define __unlocks(...) __lock_annotate(unlock_function(__VA_ARGS__)) /* Function asserts that an exclusive or shared lock is held. */ #define __asserts_exclusive(...) \ __lock_annotate(assert_exclusive_lock(__VA_ARGS__)) #define __asserts_shared(...) \ __lock_annotate(assert_shared_lock(__VA_ARGS__)) /* Function requires that an exclusive or shared lock is or is not held. */ #define __requires_exclusive(...) \ __lock_annotate(exclusive_locks_required(__VA_ARGS__)) #define __requires_shared(...) \ __lock_annotate(shared_locks_required(__VA_ARGS__)) #define __requires_unlocked(...) \ __lock_annotate(locks_excluded(__VA_ARGS__)) /* Function should not be analyzed. */ #define __no_lock_analysis __lock_annotate(no_thread_safety_analysis) /* * Function or variable should not be sanitized, e.g., by AddressSanitizer. * GCC has the nosanitize attribute, but as a function attribute only, and * warns on use as a variable attribute. */ #if 0 /* disabled by -frewrite-includes */ #if __has_attribute(no_sanitize) && defined(__clang__) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 877 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #ifdef _KERNEL #define __nosanitizeaddress __attribute__((no_sanitize("kernel-address"))) #define __nosanitizememory __attribute__((no_sanitize("kernel-memory"))) #else # 881 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __nosanitizeaddress __attribute__((no_sanitize("address"))) #define __nosanitizememory __attribute__((no_sanitize("memory"))) #endif # 884 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __nosanitizethread __attribute__((no_sanitize("thread"))) #else # 886 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __nosanitizeaddress #define __nosanitizememory #define __nosanitizethread #endif # 890 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 /* Guard variables and structure members by lock. */ #define __guarded_by(x) __lock_annotate(guarded_by(x)) #define __pt_guarded_by(x) __lock_annotate(pt_guarded_by(x)) /* Alignment builtins for better type checking and improved code generation. */ /* Provide fallback versions for other compilers (GCC/Clang < 10): */ #if 0 /* disabled by -frewrite-includes */ #if !__has_builtin(__builtin_is_aligned) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 898 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __builtin_is_aligned(x, align) \ (((__uintptr_t)x & ((align) - 1)) == 0) #endif # 901 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if !__has_builtin(__builtin_align_up) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 902 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __builtin_align_up(x, align) \ ((__typeof__(x))(((__uintptr_t)(x)+((align)-1))&(~((align)-1)))) #endif # 905 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if !__has_builtin(__builtin_align_down) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 906 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __builtin_align_down(x, align) \ ((__typeof__(x))((x)&(~((align)-1)))) #endif # 909 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 #define __align_up(x, y) __builtin_align_up(x, y) #define __align_down(x, y) __builtin_align_down(x, y) #define __is_aligned(x, y) __builtin_is_aligned(x, y) #endif /* !_SYS_CDEFS_H_ */ # 915 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/cdefs.h" 3 4 # 40 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stddef.h" 2 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 40 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stddef.h" 3 4 # 1 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_null.h" 1 3 4 /*- * SPDX-License-Identifier: BSD-2-Clause-FreeBSD * * Copyright (c) 2003 Marcel Moolenaar * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * $FreeBSD$ */ #ifndef NULL #if 0 /* disabled by -frewrite-includes */ #if !defined(__cplusplus) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 34 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_null.h" 3 4 #define NULL ((void *)0) #else # 36 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_null.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __cplusplus >= 201103L #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 37 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_null.h" 3 4 #define NULL nullptr #if 0 /* disabled by -frewrite-includes */ #if 0 #elif defined(__GNUG__) && defined(__GNUC__) && __GNUC__ >= 4 #endif #endif /* disabled by -frewrite-includes */ #elif 0 /* evaluated by -frewrite-includes */ # 39 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_null.h" 3 4 #define NULL __null #else # 41 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_null.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(__LP64__) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 42 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_null.h" 3 4 #define NULL (0L) #else # 44 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_null.h" 3 4 #define NULL 0 #endif /* __LP64__ */ # 46 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_null.h" 3 4 #endif /* __GNUG__ */ # 47 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_null.h" 3 4 #endif /* !__cplusplus */ # 48 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_null.h" 3 4 #endif # 50 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_null.h" 3 4 # 41 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stddef.h" 2 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 41 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stddef.h" 3 4 # 1 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_types.h" 1 3 4 /*- * SPDX-License-Identifier: BSD-2-Clause-FreeBSD * * Copyright (c) 2002 Mike Barcroft * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * $FreeBSD$ */ #ifndef _SYS__TYPES_H_ #define _SYS__TYPES_H_ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 34 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_types.h" 3 4 # 35 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_types.h" 3 4 /* * Basic types upon which most other types are built. * * Note: It would be nice to simply use the compiler-provided __FOO_TYPE__ * macros. However, in order to do so we have to check that those match the * previous typedefs exactly (not just that they have the same size) since any * change would be an ABI break. For example, changing `long` to `long long` * results in different C++ name mangling. */ typedef signed char __int8_t; typedef unsigned char __uint8_t; typedef short __int16_t; typedef unsigned short __uint16_t; typedef int __int32_t; typedef unsigned int __uint32_t; #if 0 /* disabled by -frewrite-includes */ #if __SIZEOF_LONG__ == 8 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 52 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_types.h" 3 4 typedef long __int64_t; typedef unsigned long __uint64_t; #if 0 /* disabled by -frewrite-includes */ #if 0 #elif __SIZEOF_LONG__ == 4 #endif #endif /* disabled by -frewrite-includes */ #elif 0 /* evaluated by -frewrite-includes */ # 55 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_types.h" 3 4 __extension__ typedef long long __int64_t; __extension__ typedef unsigned long long __uint64_t; #else # 60 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_types.h" 3 4 #error unsupported long size #endif # 62 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_types.h" 3 4 typedef __int8_t __int_least8_t; typedef __int16_t __int_least16_t; typedef __int32_t __int_least32_t; typedef __int64_t __int_least64_t; typedef __int64_t __intmax_t; typedef __uint8_t __uint_least8_t; typedef __uint16_t __uint_least16_t; typedef __uint32_t __uint_least32_t; typedef __uint64_t __uint_least64_t; typedef __uint64_t __uintmax_t; #if 0 /* disabled by -frewrite-includes */ #if __SIZEOF_POINTER__ == 8 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 75 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_types.h" 3 4 typedef __int64_t __intptr_t; typedef __int64_t __intfptr_t; typedef __uint64_t __uintptr_t; typedef __uint64_t __uintfptr_t; typedef __uint64_t __vm_offset_t; typedef __uint64_t __vm_size_t; #if 0 /* disabled by -frewrite-includes */ #if 0 #elif __SIZEOF_POINTER__ == 4 #endif #endif /* disabled by -frewrite-includes */ #elif 0 /* evaluated by -frewrite-includes */ # 82 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_types.h" 3 4 typedef __int32_t __intptr_t; typedef __int32_t __intfptr_t; typedef __uint32_t __uintptr_t; typedef __uint32_t __uintfptr_t; typedef __uint32_t __vm_offset_t; typedef __uint32_t __vm_size_t; #else # 89 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_types.h" 3 4 #error unsupported pointer size #endif # 91 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_types.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __SIZEOF_SIZE_T__ == 8 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 93 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_types.h" 3 4 typedef __uint64_t __size_t; /* sizeof() */ typedef __int64_t __ssize_t; /* byte count or error */ #if 0 /* disabled by -frewrite-includes */ #if 0 #elif __SIZEOF_SIZE_T__ == 4 #endif #endif /* disabled by -frewrite-includes */ #elif 0 /* evaluated by -frewrite-includes */ # 96 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_types.h" 3 4 typedef __uint32_t __size_t; /* sizeof() */ typedef __int32_t __ssize_t; /* byte count or error */ #else # 99 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_types.h" 3 4 #error unsupported size_t size #endif # 101 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_types.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __SIZEOF_PTRDIFF_T__ == 8 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 103 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_types.h" 3 4 typedef __int64_t __ptrdiff_t; /* ptr1 - ptr2 */ #if 0 /* disabled by -frewrite-includes */ #if 0 #elif __SIZEOF_PTRDIFF_T__ == 4 #endif #endif /* disabled by -frewrite-includes */ #elif 0 /* evaluated by -frewrite-includes */ # 105 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_types.h" 3 4 typedef __int32_t __ptrdiff_t; /* ptr1 - ptr2 */ #else # 107 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_types.h" 3 4 #error unsupported ptrdiff_t size #endif # 109 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_types.h" 3 4 /* * Target-dependent type definitions. */ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 113 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_types.h" 3 4 # 1 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/machine/_types.h" 1 3 4 /*- * This file is in the public domain. */ /* $FreeBSD$ */ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 6 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/machine/_types.h" 3 4 # 1 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/x86/_types.h" 1 3 4 /*- * SPDX-License-Identifier: BSD-4-Clause * * Copyright (c) 2002 Mike Barcroft * Copyright (c) 1990, 1993 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. All advertising materials mentioning features or use of this software * must display the following acknowledgement: * This product includes software developed by the University of * California, Berkeley and its contributors. * 4. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * From: @(#)ansi.h 8.2 (Berkeley) 1/4/94 * From: @(#)types.h 8.3 (Berkeley) 1/5/94 * $FreeBSD$ */ #ifndef _MACHINE__TYPES_H_ #define _MACHINE__TYPES_H_ #ifndef _SYS__TYPES_H_ #error do not include this header, use sys/_types.h #endif # 47 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/x86/_types.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 48 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/x86/_types.h" 3 4 # 1 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/machine/_limits.h" 1 3 4 /*- * This file is in the public domain. */ /* $FreeBSD$ */ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 6 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/machine/_limits.h" 3 4 # 1 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/x86/_limits.h" 1 3 4 /*- * SPDX-License-Identifier: BSD-3-Clause * * Copyright (c) 1988, 1993 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * @(#)limits.h 8.3 (Berkeley) 1/4/94 * $FreeBSD$ */ #ifndef _MACHINE__LIMITS_H_ #define _MACHINE__LIMITS_H_ /* * According to ANSI (section 2.2.4.2), the values below must be usable by * #if preprocessing directives. Additionally, the expression must have the * same type as would an expression that is an object of the corresponding * type converted according to the integral promotions. The subtraction for * INT_MIN, etc., is so the value is not unsigned; e.g., 0x80000000 is an * unsigned int for 32-bit two's complement ANSI compilers (section 3.1.3.2). */ #define __CHAR_BIT 8 /* number of bits in a char */ #define __SCHAR_MAX 0x7f /* max value for a signed char */ #define __SCHAR_MIN (-0x7f - 1) /* min value for a signed char */ #define __UCHAR_MAX 0xff /* max value for an unsigned char */ #define __USHRT_MAX 0xffff /* max value for an unsigned short */ #define __SHRT_MAX 0x7fff /* max value for a short */ #define __SHRT_MIN (-0x7fff - 1) /* min value for a short */ #define __UINT_MAX 0xffffffff /* max value for an unsigned int */ #define __INT_MAX 0x7fffffff /* max value for an int */ #define __INT_MIN (-0x7fffffff - 1) /* min value for an int */ #ifdef __LP64__ #define __ULONG_MAX 0xffffffffffffffff /* max for an unsigned long */ #define __LONG_MAX 0x7fffffffffffffff /* max for a long */ #define __LONG_MIN (-0x7fffffffffffffff - 1) /* min for a long */ #else # 67 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/x86/_limits.h" 3 4 #define __ULONG_MAX 0xffffffffUL #define __LONG_MAX 0x7fffffffL #define __LONG_MIN (-0x7fffffffL - 1) #endif # 71 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/x86/_limits.h" 3 4 /* max value for an unsigned long long */ #define __ULLONG_MAX 0xffffffffffffffffULL #define __LLONG_MAX 0x7fffffffffffffffLL /* max value for a long long */ #define __LLONG_MIN (-0x7fffffffffffffffLL - 1) /* min for a long long */ #ifdef __LP64__ #define __SSIZE_MAX __LONG_MAX /* max value for a ssize_t */ #define __SIZE_T_MAX __ULONG_MAX /* max value for a size_t */ #define __OFF_MAX __LONG_MAX /* max value for an off_t */ #define __OFF_MIN __LONG_MIN /* min value for an off_t */ /* Quads and longs are the same on the amd64. Ensure they stay in sync. */ #define __UQUAD_MAX __ULONG_MAX /* max value for a uquad_t */ #define __QUAD_MAX __LONG_MAX /* max value for a quad_t */ #define __QUAD_MIN __LONG_MIN /* min value for a quad_t */ #define __LONG_BIT 64 #else # 88 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/x86/_limits.h" 3 4 #define __SSIZE_MAX __INT_MAX #define __SIZE_T_MAX __UINT_MAX #define __OFF_MAX __LLONG_MAX #define __OFF_MIN __LLONG_MIN #define __UQUAD_MAX __ULLONG_MAX #define __QUAD_MAX __LLONG_MAX #define __QUAD_MIN __LLONG_MIN #define __LONG_BIT 32 #endif # 97 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/x86/_limits.h" 3 4 #define __WORD_BIT 32 /* Minimum signal stack size. */ #define __MINSIGSTKSZ (512 * 4) #endif /* !_MACHINE__LIMITS_H_ */ # 104 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/x86/_limits.h" 3 4 # 7 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/machine/_limits.h" 2 3 4 # 49 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/x86/_types.h" 2 3 4 #define __NO_STRICT_ALIGNMENT /* * Standard type definitions. */ #ifdef __LP64__ typedef __int32_t __clock_t; /* clock()... */ typedef __int64_t __critical_t; #ifndef _STANDALONE typedef double __double_t; typedef float __float_t; #endif # 62 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/x86/_types.h" 3 4 #else # 63 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/x86/_types.h" 3 4 typedef unsigned long __clock_t; typedef __int32_t __critical_t; #ifndef _STANDALONE typedef long double __double_t; typedef long double __float_t; #endif # 69 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/x86/_types.h" 3 4 #endif # 70 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/x86/_types.h" 3 4 typedef __int32_t __int_fast8_t; typedef __int32_t __int_fast16_t; typedef __int32_t __int_fast32_t; typedef __int64_t __int_fast64_t; #ifdef __LP64__ typedef __int64_t __register_t; typedef __int64_t __segsz_t; /* segment size (in pages) */ typedef __int64_t __time_t; /* time()... */ #else # 79 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/x86/_types.h" 3 4 typedef __int32_t __register_t; typedef __int32_t __segsz_t; typedef __int32_t __time_t; #endif # 83 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/x86/_types.h" 3 4 typedef __uint32_t __uint_fast8_t; typedef __uint32_t __uint_fast16_t; typedef __uint32_t __uint_fast32_t; typedef __uint64_t __uint_fast64_t; #ifdef __LP64__ typedef __uint64_t __u_register_t; typedef __uint64_t __vm_paddr_t; #else # 91 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/x86/_types.h" 3 4 typedef __uint32_t __u_register_t; typedef __uint64_t __vm_paddr_t; #endif # 94 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/x86/_types.h" 3 4 typedef int ___wchar_t; #define __WCHAR_MIN __INT_MIN /* min value for a wchar_t */ #define __WCHAR_MAX __INT_MAX /* max value for a wchar_t */ #endif /* !_MACHINE__TYPES_H_ */ # 100 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/x86/_types.h" 3 4 # 7 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/machine/_types.h" 2 3 4 # 114 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_types.h" 2 3 4 /* * Standard type definitions. */ typedef __int32_t __blksize_t; /* file block size */ typedef __int64_t __blkcnt_t; /* file block count */ typedef __int32_t __clockid_t; /* clock_gettime()... */ typedef __uint32_t __fflags_t; /* file flags */ typedef __uint64_t __fsblkcnt_t; typedef __uint64_t __fsfilcnt_t; typedef __uint32_t __gid_t; typedef __int64_t __id_t; /* can hold a gid_t, pid_t, or uid_t */ typedef __uint64_t __ino_t; /* inode number */ typedef long __key_t; /* IPC key (for Sys V IPC) */ typedef __int32_t __lwpid_t; /* Thread ID (a.k.a. LWP) */ typedef __uint16_t __mode_t; /* permissions */ typedef int __accmode_t; /* access permissions */ typedef int __nl_item; typedef __uint64_t __nlink_t; /* link count */ typedef __int64_t __off_t; /* file offset */ typedef __int64_t __off64_t; /* file offset (alias) */ typedef __int32_t __pid_t; /* process [group] */ typedef __int64_t __rlim_t; /* resource limit - intentionally */ /* signed, because of legacy code */ /* that uses -1 for RLIM_INFINITY */ typedef __uint8_t __sa_family_t; typedef __uint32_t __socklen_t; typedef long __suseconds_t; /* microseconds (signed) */ typedef struct __timer *__timer_t; /* timer_gettime()... */ typedef struct __mq *__mqd_t; /* mq_open()... */ typedef __uint32_t __uid_t; typedef unsigned int __useconds_t; /* microseconds (unsigned) */ typedef int __cpuwhich_t; /* which parameter for cpuset. */ typedef int __cpulevel_t; /* level parameter for cpuset. */ typedef int __cpusetid_t; /* cpuset identifier. */ typedef __int64_t __daddr_t; /* bwrite(3), FIOBMAP2, etc */ /* * Unusual type definitions. */ /* * rune_t is declared to be an ``int'' instead of the more natural * ``unsigned long'' or ``long''. Two things are happening here. It is not * unsigned so that EOF (-1) can be naturally assigned to it and used. Also, * it looks like 10646 will be a 31 bit standard. This means that if your * ints cannot hold 32 bits, you will be in trouble. The reason an int was * chosen over a long is that the is*() and to*() routines take ints (says * ANSI C), but they use __ct_rune_t instead of int. * * NOTE: rune_t is not covered by ANSI nor other standards, and should not * be instantiated outside of lib/libc/locale. Use wchar_t. wint_t and * rune_t must be the same type. Also, wint_t should be able to hold all * members of the largest character set plus one extra value (WEOF), and * must be at least 16 bits. */ typedef int __ct_rune_t; /* arg type for ctype funcs */ typedef __ct_rune_t __rune_t; /* rune_t (see above) */ typedef __ct_rune_t __wint_t; /* wint_t (see above) */ /* Clang already provides these types as built-ins, but only in C++ mode. */ #if 0 /* disabled by -frewrite-includes */ #if !defined(__clang__) || !defined(__cplusplus) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 175 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_types.h" 3 4 typedef __uint_least16_t __char16_t; typedef __uint_least32_t __char32_t; #endif # 178 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_types.h" 3 4 /* In C++11, char16_t and char32_t are built-in types. */ #if 0 /* disabled by -frewrite-includes */ #if defined(__cplusplus) && __cplusplus >= 201103L #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 180 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_types.h" 3 4 #define _CHAR16_T_DECLARED #define _CHAR32_T_DECLARED #endif # 183 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_types.h" 3 4 typedef struct { long long __max_align1 __aligned(_Alignof(long long)); #ifndef _STANDALONE long double __max_align2 __aligned(_Alignof(long double)); #endif # 189 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_types.h" 3 4 } __max_align_t; typedef __uint64_t __dev_t; /* device number */ typedef __uint32_t __fixpt_t; /* fixed point number */ /* * mbstate_t is an opaque object to keep conversion state during multibyte * stream conversions. */ typedef union { char __mbstate8[128]; __int64_t _mbstateL; /* for alignment */ } __mbstate_t; typedef __uintmax_t __rman_res_t; /* * Types for varargs. These are all provided by builtin types these * days, so centralize their definition. */ #ifdef __GNUCLIKE_BUILTIN_VARARGS typedef __builtin_va_list __va_list; /* internally known to gcc */ #else # 213 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_types.h" 3 4 #error "No support for your compiler for stdargs" #endif # 215 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_types.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(__GNUC_VA_LIST_COMPATIBILITY) && !defined(__GNUC_VA_LIST) \ && !defined(__NO_GNUC_VA_LIST) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 217 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_types.h" 3 4 #define __GNUC_VA_LIST typedef __va_list __gnuc_va_list; /* compatibility w/GNU headers*/ #endif # 220 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_types.h" 3 4 /* * When the following macro is defined, the system uses 64-bit inode numbers. * Programs can use this to avoid including , with its associated * namespace pollution. */ #define __INO64 #endif /* !_SYS__TYPES_H_ */ # 229 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_types.h" 3 4 # 42 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stddef.h" 2 3 4 #ifndef _PTRDIFF_T_DECLARED typedef __ptrdiff_t ptrdiff_t; #define _PTRDIFF_T_DECLARED #endif # 47 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stddef.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 49 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stddef.h" 3 4 #ifndef _RUNE_T_DECLARED typedef __rune_t rune_t; #define _RUNE_T_DECLARED #endif # 53 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stddef.h" 3 4 #endif # 54 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stddef.h" 3 4 #ifndef _SIZE_T_DECLARED typedef __size_t size_t; #define _SIZE_T_DECLARED #endif # 59 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stddef.h" 3 4 #ifndef __cplusplus #ifndef _WCHAR_T_DECLARED typedef ___wchar_t wchar_t; #define _WCHAR_T_DECLARED #endif # 65 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stddef.h" 3 4 #endif # 66 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stddef.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __ISO_C_VISIBLE >= 2011 || __cplusplus >= 201103L #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 68 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stddef.h" 3 4 #ifndef __CLANG_MAX_ALIGN_T_DEFINED typedef __max_align_t max_align_t; #define __CLANG_MAX_ALIGN_T_DEFINED #define _GCC_MAX_ALIGN_T #endif # 73 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stddef.h" 3 4 #endif # 74 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stddef.h" 3 4 #define offsetof(type, field) __offsetof(type, field) #if 0 /* disabled by -frewrite-includes */ #if __EXT1_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 78 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stddef.h" 3 4 /* ISO/IEC 9899:2011 K.3.3.2 */ #ifndef _RSIZE_T_DEFINED #define _RSIZE_T_DEFINED typedef size_t rsize_t; #endif # 83 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stddef.h" 3 4 #endif /* __EXT1_VISIBLE */ # 84 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stddef.h" 3 4 #endif /* _STDDEF_H_ */ # 86 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stddef.h" 3 4 # 66 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" 2 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 66 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" # 1 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdlib.h" 1 3 4 /*- * SPDX-License-Identifier: BSD-3-Clause * * Copyright (c) 1990, 1993 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * @(#)stdlib.h 8.5 (Berkeley) 5/19/95 * $FreeBSD$ */ #ifndef _STDLIB_H_ #define _STDLIB_H_ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 38 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdlib.h" 3 4 # 39 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdlib.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 39 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdlib.h" 3 4 # 40 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdlib.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 40 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdlib.h" 3 4 # 41 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdlib.h" 3 4 __NULLABILITY_PRAGMA_PUSH #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 45 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdlib.h" 3 4 #ifndef _RUNE_T_DECLARED typedef __rune_t rune_t; #define _RUNE_T_DECLARED #endif # 49 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdlib.h" 3 4 #endif # 50 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdlib.h" 3 4 #ifndef _SIZE_T_DECLARED typedef __size_t size_t; #define _SIZE_T_DECLARED #endif # 55 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdlib.h" 3 4 #ifndef __cplusplus #ifndef _WCHAR_T_DECLARED typedef ___wchar_t wchar_t; #define _WCHAR_T_DECLARED #endif # 61 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdlib.h" 3 4 #endif # 62 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdlib.h" 3 4 typedef struct { int quot; /* quotient */ int rem; /* remainder */ } div_t; typedef struct { long quot; long rem; } ldiv_t; #define EXIT_FAILURE 1 #define EXIT_SUCCESS 0 /* * I.e., INT_MAX; rand(3) returns a signed integer but must produce output in * the range [0, RAND_MAX], so half of the possible output range is unused. */ #define RAND_MAX 0x7fffffff __BEGIN_DECLS #ifdef _XLOCALE_H_ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 84 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdlib.h" 3 4 # 85 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdlib.h" 3 4 #endif # 86 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdlib.h" 3 4 extern int __mb_cur_max; extern int ___mb_cur_max(void); #define MB_CUR_MAX ((size_t)___mb_cur_max()) _Noreturn void abort(void); int abs(int) __pure2; int atexit(void (* _Nonnull)(void)); double atof(const char *); int atoi(const char *); long atol(const char *); void *bsearch(const void *, const void *, size_t, size_t, int (*)(const void * _Nonnull, const void *)); void *calloc(size_t, size_t) __malloc_like __result_use_check __alloc_size2(1, 2); div_t div(int, int) __pure2; _Noreturn void exit(int); void free(void *); char *getenv(const char *); long labs(long) __pure2; ldiv_t ldiv(long, long) __pure2; void *malloc(size_t) __malloc_like __result_use_check __alloc_size(1); int mblen(const char *, size_t); size_t mbstowcs(wchar_t * __restrict , const char * __restrict, size_t); int mbtowc(wchar_t * __restrict, const char * __restrict, size_t); void qsort(void *, size_t, size_t, int (* _Nonnull)(const void *, const void *)); int rand(void); void *realloc(void *, size_t) __result_use_check __alloc_size(2); void srand(unsigned); double strtod(const char * __restrict, char ** __restrict); float strtof(const char * __restrict, char ** __restrict); long strtol(const char * __restrict, char ** __restrict, int); long double strtold(const char * __restrict, char ** __restrict); unsigned long strtoul(const char * __restrict, char ** __restrict, int); int system(const char *); int wctomb(char *, wchar_t); size_t wcstombs(char * __restrict, const wchar_t * __restrict, size_t); /* * Functions added in C99 which we make conditionally available in the * BSD^C89 namespace if the compiler supports `long long'. * The #if test is more complicated than it ought to be because * __BSD_VISIBLE implies __ISO_C_VISIBLE == 1999 *even if* `long long' * is not supported in the compilation environment (which therefore means * that it can't really be ISO C99). * * (The only other extension made by C99 in thie header is _Exit().) */ #if 0 /* disabled by -frewrite-includes */ #if __ISO_C_VISIBLE >= 1999 || defined(__cplusplus) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 137 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdlib.h" 3 4 #ifdef __LONG_LONG_SUPPORTED /* LONGLONG */ typedef struct { long long quot; long long rem; } lldiv_t; /* LONGLONG */ long long atoll(const char *); /* LONGLONG */ long long llabs(long long) __pure2; /* LONGLONG */ lldiv_t lldiv(long long, long long) __pure2; /* LONGLONG */ long long strtoll(const char * __restrict, char ** __restrict, int); /* LONGLONG */ unsigned long long strtoull(const char * __restrict, char ** __restrict, int); #endif /* __LONG_LONG_SUPPORTED */ # 159 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdlib.h" 3 4 _Noreturn void _Exit(int); #endif /* __ISO_C_VISIBLE >= 1999 */ # 162 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdlib.h" 3 4 /* * If we're in a mode greater than C99, expose C11 functions. */ #if 0 /* disabled by -frewrite-includes */ #if __ISO_C_VISIBLE >= 2011 || __cplusplus >= 201103L #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 167 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdlib.h" 3 4 void * aligned_alloc(size_t, size_t) __malloc_like __alloc_align(1) __alloc_size(2); int at_quick_exit(void (*)(void)); _Noreturn void quick_exit(int); #endif /* __ISO_C_VISIBLE >= 2011 */ # 173 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdlib.h" 3 4 /* * Extensions made by POSIX relative to C. */ #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 199506 || __XSI_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 177 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdlib.h" 3 4 char *realpath(const char * __restrict, char * __restrict); #endif # 179 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdlib.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 199506 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 180 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdlib.h" 3 4 int rand_r(unsigned *); /* (TSF) */ #endif # 182 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdlib.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 200112 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 183 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdlib.h" 3 4 int posix_memalign(void **, size_t, size_t); /* (ADV) */ int setenv(const char *, const char *, int); int unsetenv(const char *); #endif # 187 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdlib.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 200809 || __XSI_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 189 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdlib.h" 3 4 int getsubopt(char **, char *const *, char **); #ifndef _MKDTEMP_DECLARED char *mkdtemp(char *); #define _MKDTEMP_DECLARED #endif # 194 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdlib.h" 3 4 #ifndef _MKSTEMP_DECLARED int mkstemp(char *); #define _MKSTEMP_DECLARED #endif # 198 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdlib.h" 3 4 #endif /* __POSIX_VISIBLE >= 200809 || __XSI_VISIBLE */ # 199 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdlib.h" 3 4 /* * The only changes to the XSI namespace in revision 6 were the deletion * of the ttyslot() and valloc() functions, which FreeBSD never declared * in this header. For revision 7, ecvt(), fcvt(), and gcvt(), which * FreeBSD also does not have, and mktemp(), are to be deleted. */ #if 0 /* disabled by -frewrite-includes */ #if __XSI_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 207 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdlib.h" 3 4 /* XXX XSI requires pollution from here. We'd rather not. */ long a64l(const char *); double drand48(void); /* char *ecvt(double, int, int * __restrict, int * __restrict); */ double erand48(unsigned short[3]); /* char *fcvt(double, int, int * __restrict, int * __restrict); */ /* char *gcvt(double, int, int * __restrict, int * __restrict); */ char *initstate(unsigned int, char *, size_t); long jrand48(unsigned short[3]); char *l64a(long); void lcong48(unsigned short[7]); long lrand48(void); #if 0 /* disabled by -frewrite-includes */ #if !defined(_MKTEMP_DECLARED) && (__BSD_VISIBLE || __XSI_VISIBLE <= 600) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 220 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdlib.h" 3 4 char *mktemp(char *); #define _MKTEMP_DECLARED #endif # 223 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdlib.h" 3 4 long mrand48(void); long nrand48(unsigned short[3]); int putenv(char *); long random(void); unsigned short *seed48(unsigned short[3]); char *setstate(/* const */ char *); void srand48(long); void srandom(unsigned int); #endif /* __XSI_VISIBLE */ # 233 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdlib.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __XSI_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 235 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdlib.h" 3 4 int grantpt(int); int posix_openpt(int); char *ptsname(int); int unlockpt(int); #endif /* __XSI_VISIBLE */ # 240 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdlib.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 241 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdlib.h" 3 4 /* ptsname_r will be included in POSIX issue 8 */ int ptsname_r(int, char *, size_t); #endif # 244 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdlib.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 246 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdlib.h" 3 4 extern const char *malloc_conf; extern void (*malloc_message)(void *, const char *); /* * The alloca() function can't be implemented in C, and on some * platforms it can't be implemented at all as a callable function. * The GNU C compiler provides a built-in alloca() which we can use. * On platforms where alloca() is not in libc, programs which use it * will fail to link when compiled with non-GNU compilers. */ #if 0 /* disabled by -frewrite-includes */ #if __GNUC__ >= 2 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 257 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdlib.h" 3 4 #undef alloca /* some GNU bits try to get cute and define this on their own */ #define alloca(sz) __builtin_alloca(sz) #endif # 260 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdlib.h" 3 4 void abort2(const char *, int, void **) __dead2; __uint32_t arc4random(void); void arc4random_buf(void *, size_t); __uint32_t arc4random_uniform(__uint32_t); #ifdef __BLOCKS__ int atexit_b(void (^ _Nonnull)(void)); void *bsearch_b(const void *, const void *, size_t, size_t, int (^ _Nonnull)(const void *, const void *)); #endif # 273 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdlib.h" 3 4 char *getbsize(int *, long *); /* getcap(3) functions */ char *cgetcap(char *, const char *, int); int cgetclose(void); int cgetent(char **, char **, const char *); int cgetfirst(char **, char **); int cgetmatch(const char *, const char *); int cgetnext(char **, char **); int cgetnum(char *, const char *, long *); int cgetset(const char *); int cgetstr(char *, const char *, char **); int cgetustr(char *, const char *, char **); int clearenv(void); int daemon(int, int); int daemonfd(int, int); char *devname(__dev_t, __mode_t); char *devname_r(__dev_t, __mode_t, char *, int); char *fdevname(int); char *fdevname_r(int, char *, int); int getloadavg(double [], int); const char * getprogname(void); int heapsort(void *, size_t, size_t, int (* _Nonnull)(const void *, const void *)); #ifdef __BLOCKS__ int heapsort_b(void *, size_t, size_t, int (^ _Nonnull)(const void *, const void *)); void qsort_b(void *, size_t, size_t, int (^ _Nonnull)(const void *, const void *)); #endif # 306 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdlib.h" 3 4 int l64a_r(long, char *, int); int mergesort(void *, size_t, size_t, int (*)(const void *, const void *)); #ifdef __BLOCKS__ int mergesort_b(void *, size_t, size_t, int (^)(const void *, const void *)); #endif # 311 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdlib.h" 3 4 int mkostemp(char *, int); int mkostemps(char *, int, int); int mkostempsat(int, char *, int, int); void qsort_r(void *, size_t, size_t, void *, int (*)(void *, const void *, const void *)); int radixsort(const unsigned char **, int, const unsigned char *, unsigned); void *reallocarray(void *, size_t, size_t) __result_use_check __alloc_size2(2, 3); void *reallocf(void *, size_t) __result_use_check __alloc_size(2); int rpmatch(const char *); void setprogname(const char *); int sradixsort(const unsigned char **, int, const unsigned char *, unsigned); void srandomdev(void); long long strtonum(const char *, long long, long long, const char **); /* Deprecated interfaces, to be removed. */ __int64_t strtoq(const char *, char **, int); __uint64_t strtouq(const char *, char **, int); extern char *suboptarg; /* getsubopt(3) external variable */ #endif /* __BSD_VISIBLE */ # 337 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdlib.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __EXT1_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 339 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdlib.h" 3 4 #ifndef _RSIZE_T_DEFINED #define _RSIZE_T_DEFINED typedef size_t rsize_t; #endif # 344 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdlib.h" 3 4 #ifndef _ERRNO_T_DEFINED #define _ERRNO_T_DEFINED typedef int errno_t; #endif # 349 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdlib.h" 3 4 /* K.3.6 */ typedef void (*constraint_handler_t)(const char * __restrict, void * __restrict, errno_t); /* K.3.6.1.1 */ constraint_handler_t set_constraint_handler_s(constraint_handler_t handler); /* K.3.6.1.2 */ _Noreturn void abort_handler_s(const char * __restrict, void * __restrict, errno_t); /* K3.6.1.3 */ void ignore_handler_s(const char * __restrict, void * __restrict, errno_t); /* K.3.6.3.2 */ errno_t qsort_s(void *, rsize_t, rsize_t, int (*)(const void *, const void *, void *), void *); #endif /* __EXT1_VISIBLE */ # 364 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdlib.h" 3 4 __END_DECLS __NULLABILITY_PRAGMA_POP #endif /* !_STDLIB_H_ */ # 369 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdlib.h" 3 4 # 67 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" 2 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 67 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" # 1 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/string.h" 1 3 4 /*- * SPDX-License-Identifier: BSD-3-Clause * * Copyright (c) 1990, 1993 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * @(#)string.h 8.1 (Berkeley) 6/2/93 * $FreeBSD$ */ #ifndef _STRING_H_ #define _STRING_H_ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 38 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/string.h" 3 4 # 39 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/string.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 39 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/string.h" 3 4 # 40 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/string.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 40 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/string.h" 3 4 # 41 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/string.h" 3 4 /* * Prototype functions which were historically defined in , but * are required by POSIX to be prototyped in . */ #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 47 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/string.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 47 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/string.h" 3 4 # 1 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/strings.h" 1 3 4 /*- * SPDX-License-Identifier: BSD-2-Clause-FreeBSD * * Copyright (c) 2002 Mike Barcroft * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * $FreeBSD$ */ #ifndef _STRINGS_H_ #define _STRINGS_H_ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 34 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/strings.h" 3 4 # 35 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/strings.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 35 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/strings.h" 3 4 # 36 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/strings.h" 3 4 #ifndef _SIZE_T_DECLARED typedef __size_t size_t; #define _SIZE_T_DECLARED #endif # 41 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/strings.h" 3 4 __BEGIN_DECLS #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE || __POSIX_VISIBLE <= 200112 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 44 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/strings.h" 3 4 int bcmp(const void *, const void *, size_t) __pure; /* LEGACY */ void bcopy(const void *, void *, size_t); /* LEGACY */ void bzero(void *, size_t); /* LEGACY */ #endif # 48 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/strings.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 49 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/strings.h" 3 4 void explicit_bzero(void *, size_t); #endif # 51 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/strings.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __XSI_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 52 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/strings.h" 3 4 int ffs(int) __pure2; #endif # 54 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/strings.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 55 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/strings.h" 3 4 int ffsl(long) __pure2; int ffsll(long long) __pure2; int fls(int) __pure2; int flsl(long) __pure2; int flsll(long long) __pure2; #endif # 61 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/strings.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE || __POSIX_VISIBLE <= 200112 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 62 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/strings.h" 3 4 char *index(const char *, int) __pure; /* LEGACY */ char *rindex(const char *, int) __pure; /* LEGACY */ #endif # 65 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/strings.h" 3 4 int strcasecmp(const char *, const char *) __pure; int strncasecmp(const char *, const char *, size_t) __pure; #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 200809 || defined(_XLOCALE_H_) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 69 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/strings.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 69 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/strings.h" 3 4 # 1 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/xlocale/_strings.h" 1 3 4 /*- * Copyright (c) 2011, 2012 The FreeBSD Foundation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * $FreeBSD$ */ #ifndef _LOCALE_T_DEFINED #define _LOCALE_T_DEFINED typedef struct _xlocale *locale_t; #endif # 33 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/xlocale/_strings.h" 3 4 /* * This file is included from both strings.h and xlocale.h. We need to expose * the declarations unconditionally if we are included from xlocale.h, but only * if we are in POSIX2008 mode if included from string.h. */ #ifndef _XLOCALE_STRINGS1_H #define _XLOCALE_STRINGS1_H /* * POSIX2008 functions */ int strcasecmp_l(const char *, const char *, locale_t); int strncasecmp_l(const char *, const char *, size_t, locale_t); #endif /* _XLOCALE_STRINGS1_H */ # 49 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/xlocale/_strings.h" 3 4 # 70 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/strings.h" 2 3 4 #endif # 71 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/strings.h" 3 4 __END_DECLS #endif /* _STRINGS_H_ */ # 74 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/strings.h" 3 4 # 48 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/string.h" 2 3 4 #endif # 49 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/string.h" 3 4 #ifndef _SIZE_T_DECLARED typedef __size_t size_t; #define _SIZE_T_DECLARED #endif # 54 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/string.h" 3 4 __BEGIN_DECLS #if 0 /* disabled by -frewrite-includes */ #if __XSI_VISIBLE >= 600 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 57 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/string.h" 3 4 void *memccpy(void * __restrict, const void * __restrict, int, size_t); #endif # 59 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/string.h" 3 4 void *memchr(const void *, int, size_t) __pure; #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 61 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/string.h" 3 4 void *memrchr(const void *, int, size_t) __pure; #endif # 63 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/string.h" 3 4 int memcmp(const void *, const void *, size_t) __pure; void *memcpy(void * __restrict, const void * __restrict, size_t); #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 66 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/string.h" 3 4 void *memmem(const void *, size_t, const void *, size_t) __pure; #endif # 68 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/string.h" 3 4 void *memmove(void *, const void *, size_t); #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 70 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/string.h" 3 4 void *mempcpy(void * __restrict, const void * __restrict, size_t); #endif # 72 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/string.h" 3 4 void *memset(void *, int, size_t); #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 200809 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 74 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/string.h" 3 4 char *stpcpy(char * __restrict, const char * __restrict); char *stpncpy(char * __restrict, const char * __restrict, size_t); #endif # 77 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/string.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 78 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/string.h" 3 4 char *strcasestr(const char *, const char *) __pure; #endif # 80 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/string.h" 3 4 char *strcat(char * __restrict, const char * __restrict); char *strchr(const char *, int) __pure; #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 83 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/string.h" 3 4 char *strchrnul(const char*, int) __pure; #endif # 85 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/string.h" 3 4 int strcmp(const char *, const char *) __pure; int strcoll(const char *, const char *); char *strcpy(char * __restrict, const char * __restrict); size_t strcspn(const char *, const char *) __pure; #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 200112 || __XSI_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 90 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/string.h" 3 4 char *strdup(const char *) __malloc_like; #endif # 92 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/string.h" 3 4 char *strerror(int); #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 200112 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 94 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/string.h" 3 4 int strerror_r(int, char *, size_t); #endif # 96 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/string.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 97 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/string.h" 3 4 size_t strlcat(char * __restrict, const char * __restrict, size_t); size_t strlcpy(char * __restrict, const char * __restrict, size_t); #endif # 100 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/string.h" 3 4 size_t strlen(const char *) __pure; #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 102 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/string.h" 3 4 #ifndef _MODE_T_DECLARED typedef __mode_t mode_t; #define _MODE_T_DECLARED #endif # 107 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/string.h" 3 4 void strmode(mode_t, char *); #endif # 110 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/string.h" 3 4 char *strncat(char * __restrict, const char * __restrict, size_t); int strncmp(const char *, const char *, size_t) __pure; char *strncpy(char * __restrict, const char * __restrict, size_t); #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 200809 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 114 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/string.h" 3 4 char *strndup(const char *, size_t) __malloc_like; size_t strnlen(const char *, size_t) __pure; #endif # 117 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/string.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 118 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/string.h" 3 4 char *strnstr(const char *, const char *, size_t) __pure; #endif # 120 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/string.h" 3 4 char *strpbrk(const char *, const char *) __pure; char *strrchr(const char *, int) __pure; #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 123 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/string.h" 3 4 char *strsep(char **, const char *); #endif # 125 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/string.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 200809 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 126 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/string.h" 3 4 char *strsignal(int); #endif # 128 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/string.h" 3 4 size_t strspn(const char *, const char *) __pure; char *strstr(const char *, const char *) __pure; char *strtok(char * __restrict, const char * __restrict); #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 199506 || __XSI_VISIBLE >= 500 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 132 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/string.h" 3 4 char *strtok_r(char *, const char *, char **); #endif # 134 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/string.h" 3 4 size_t strxfrm(char * __restrict, const char * __restrict, size_t); #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 136 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/string.h" 3 4 #ifndef _SWAB_DECLARED #define _SWAB_DECLARED #ifndef _SSIZE_T_DECLARED typedef __ssize_t ssize_t; #define _SSIZE_T_DECLARED #endif /* _SIZE_T_DECLARED */ # 144 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/string.h" 3 4 void swab(const void * __restrict, void * __restrict, ssize_t); #endif /* _SWAB_DECLARED */ # 147 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/string.h" 3 4 int timingsafe_bcmp(const void *, const void *, size_t); int timingsafe_memcmp(const void *, const void *, size_t); #endif /* __BSD_VISIBLE */ # 151 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/string.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 200112 || defined(_XLOCALE_H_) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 153 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/string.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 153 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/string.h" 3 4 # 1 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/xlocale/_string.h" 1 3 4 /*- * SPDX-License-Identifier: BSD-2-Clause-FreeBSD * * Copyright (c) 2011, 2012 The FreeBSD Foundation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * $FreeBSD$ */ #ifndef _LOCALE_T_DEFINED #define _LOCALE_T_DEFINED typedef struct _xlocale *locale_t; #endif # 35 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/xlocale/_string.h" 3 4 /* * This file is included from both string.h and xlocale.h. We need to expose * the declarations unconditionally if we are included from xlocale.h, but only * if we are in POSIX2008 mode if included from string.h. */ #ifndef _XLOCALE_STRING1_H #define _XLOCALE_STRING1_H /* * POSIX2008 functions */ int strcoll_l(const char *, const char *, locale_t); char *strerror_l(int num, locale_t); size_t strxfrm_l(char *, const char *, size_t, locale_t); #endif /* _XLOCALE_STRING1_H */ # 52 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/xlocale/_string.h" 3 4 /* * xlocale extensions */ #ifdef _XLOCALE_H_ #ifndef _XLOCALE_STRING2_H #define _XLOCALE_STRING2_H char *strcasestr_l(const char *, const char *, locale_t); #endif /* _XLOCALE_STRING2_H */ # 62 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/xlocale/_string.h" 3 4 #endif /* _XLOCALE_H_ */ # 63 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/xlocale/_string.h" 3 4 # 154 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/string.h" 2 3 4 #endif # 155 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/string.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __EXT1_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 157 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/string.h" 3 4 #ifndef _RSIZE_T_DEFINED #define _RSIZE_T_DEFINED typedef size_t rsize_t; #endif # 162 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/string.h" 3 4 #ifndef _ERRNO_T_DEFINED #define _ERRNO_T_DEFINED typedef int errno_t; #endif # 167 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/string.h" 3 4 /* ISO/IEC 9899:2011 K.3.7.4.1.1 */ errno_t memset_s(void *, rsize_t, int, rsize_t); #endif /* __EXT1_VISIBLE */ # 171 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/string.h" 3 4 __END_DECLS #endif /* _STRING_H_ */ # 174 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/string.h" 3 4 # 68 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" 2 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 68 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" # 1 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/types.h" 1 3 4 /*- * SPDX-License-Identifier: BSD-3-Clause * * Copyright (c) 1982, 1986, 1991, 1993, 1994 * The Regents of the University of California. All rights reserved. * (c) UNIX System Laboratories, Inc. * All or some portions of this file are derived from material licensed * to the University of California by American Telephone and Telegraph * Co. or Unix System Laboratories, Inc. and are reproduced herein with * the permission of UNIX System Laboratories, Inc. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * @(#)types.h 8.6 (Berkeley) 2/19/95 * $FreeBSD$ */ #ifndef _SYS_TYPES_H_ #define _SYS_TYPES_H_ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 43 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/types.h" 3 4 # 44 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/types.h" 3 4 /* Machine type dependent parameters. */ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 46 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/types.h" 3 4 # 1 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/machine/endian.h" 1 3 4 /*- * This file is in the public domain. */ /* $FreeBSD$ */ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 6 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/machine/endian.h" 3 4 # 1 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/x86/endian.h" 1 3 4 /*- * SPDX-License-Identifier: BSD-3-Clause * * Copyright (c) 1987, 1991 Regents of the University of California. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * @(#)endian.h 7.8 (Berkeley) 4/3/91 * $FreeBSD$ */ #ifndef _MACHINE_ENDIAN_H_ #define _MACHINE_ENDIAN_H_ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 38 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/x86/endian.h" 3 4 # 39 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/x86/endian.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 39 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/x86/endian.h" 3 4 # 1 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_endian.h" 1 3 4 /*- * SPDX-License-Identifier: BSD-3-Clause * * Copyright (c) 1987, 1991 Regents of the University of California. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ #ifndef _SYS__ENDIAN_H_ #define _SYS__ENDIAN_H_ #ifndef _MACHINE_ENDIAN_H_ #error "sys/_endian.h should not be included directly" #endif # 38 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_endian.h" 3 4 /* BSD Compatiblity */ #define _BYTE_ORDER __BYTE_ORDER__ /* * Definitions for byte order, according to byte significance from low * address to high. */ #define _LITTLE_ENDIAN __ORDER_LITTLE_ENDIAN__ /* LSB first: 1234 */ #define _BIG_ENDIAN __ORDER_BIG_ENDIAN__ /* MSB first: 4321 */ #define _PDP_ENDIAN __ORDER_PDP_ENDIAN__ /* LSB first in word, * MSW first in long: 3412 */ /* * Define the order of 32-bit words in 64-bit words. */ #if 0 /* disabled by -frewrite-includes */ #if _BYTE_ORDER == _LITTLE_ENDIAN #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 55 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_endian.h" 3 4 #define _QUAD_HIGHWORD 1 #define _QUAD_LOWWORD 0 #if 0 /* disabled by -frewrite-includes */ #if 0 #elif _BYTE_ORDER == _BIG_ENDIAN #endif #endif /* disabled by -frewrite-includes */ #elif 0 /* evaluated by -frewrite-includes */ # 58 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_endian.h" 3 4 #define _QUAD_HIGHWORD 0 #define _QUAD_LOWWORD 1 #else # 61 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_endian.h" 3 4 #error "Unsupported endian" #endif # 63 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_endian.h" 3 4 /* * Deprecated variants that don't have enough underscores to be useful in more * strict namespaces. */ #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 69 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_endian.h" 3 4 #define LITTLE_ENDIAN _LITTLE_ENDIAN #define BIG_ENDIAN _BIG_ENDIAN #define PDP_ENDIAN _PDP_ENDIAN #define BYTE_ORDER _BYTE_ORDER #endif # 74 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_endian.h" 3 4 /* bswap primitives, based on compiler builtins */ #define __bswap16(x) __builtin_bswap16(x) #define __bswap32(x) __builtin_bswap32(x) #define __bswap64(x) __builtin_bswap64(x) #if 0 /* disabled by -frewrite-includes */ #if _BYTE_ORDER == _LITTLE_ENDIAN #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 81 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_endian.h" 3 4 #define __ntohl(x) (__bswap32(x)) #define __ntohs(x) (__bswap16(x)) #define __htonl(x) (__bswap32(x)) #define __htons(x) (__bswap16(x)) #if 0 /* disabled by -frewrite-includes */ #if 0 #elif _BYTE_ORDER == _BIG_ENDIAN #endif #endif /* disabled by -frewrite-includes */ #elif 0 /* evaluated by -frewrite-includes */ # 86 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_endian.h" 3 4 #define __htonl(x) ((__uint32_t)(x)) #define __htons(x) ((__uint16_t)(x)) #define __ntohl(x) ((__uint32_t)(x)) #define __ntohs(x) ((__uint16_t)(x)) #endif # 91 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_endian.h" 3 4 #endif /* _SYS__ENDIAN_H_ */ # 93 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_endian.h" 3 4 # 40 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/x86/endian.h" 2 3 4 #endif /* !_MACHINE_ENDIAN_H_ */ # 42 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/x86/endian.h" 3 4 # 7 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/machine/endian.h" 2 3 4 # 47 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/types.h" 2 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 47 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/types.h" 3 4 # 48 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/types.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 49 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/types.h" 3 4 # 1 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_pthreadtypes.h" 1 3 4 /*- * SPDX-License-Identifier: BSD-3-Clause * * Copyright (c) 1993, 1994 by Chris Provenzano, proven@mit.edu * Copyright (c) 1995-1998 by John Birrell * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. All advertising materials mentioning features or use of this software * must display the following acknowledgement: * This product includes software developed by Chris Provenzano. * 4. The name of Chris Provenzano may not be used to endorse or promote * products derived from this software without specific prior written * permission. * * THIS SOFTWARE IS PROVIDED BY CHRIS PROVENZANO ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL CHRIS PROVENZANO BE LIABLE FOR ANY * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * $FreeBSD$ */ #ifndef _SYS__PTHREADTYPES_H_ #define _SYS__PTHREADTYPES_H_ /* * Forward structure definitions. * * These are mostly opaque to the user. */ struct pthread; struct pthread_attr; struct pthread_cond; struct pthread_cond_attr; struct pthread_mutex; struct pthread_mutex_attr; struct pthread_once; struct pthread_rwlock; struct pthread_rwlockattr; struct pthread_barrier; struct pthread_barrier_attr; struct pthread_spinlock; /* * Primitive system data type definitions required by P1003.1c. * * Note that P1003.1c specifies that there are no defined comparison * or assignment operators for the types pthread_attr_t, pthread_cond_t, * pthread_condattr_t, pthread_mutex_t, pthread_mutexattr_t. */ #ifndef _PTHREAD_T_DECLARED typedef struct pthread *pthread_t; #define _PTHREAD_T_DECLARED #endif # 70 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_pthreadtypes.h" 3 4 typedef struct pthread_attr *pthread_attr_t; typedef struct pthread_mutex *pthread_mutex_t; typedef struct pthread_mutex_attr *pthread_mutexattr_t; typedef struct pthread_cond *pthread_cond_t; typedef struct pthread_cond_attr *pthread_condattr_t; typedef int pthread_key_t; typedef struct pthread_once pthread_once_t; typedef struct pthread_rwlock *pthread_rwlock_t; typedef struct pthread_rwlockattr *pthread_rwlockattr_t; typedef struct pthread_barrier *pthread_barrier_t; typedef struct pthread_barrierattr *pthread_barrierattr_t; typedef struct pthread_spinlock *pthread_spinlock_t; /* * Additional type definitions: * * Note that P1003.1c reserves the prefixes pthread_ and PTHREAD_ for * use in header symbols. */ typedef void *pthread_addr_t; typedef void *(*pthread_startroutine_t)(void *); /* * Once definitions. */ struct pthread_once { int state; pthread_mutex_t mutex; }; #endif /* ! _SYS__PTHREADTYPES_H_ */ # 101 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_pthreadtypes.h" 3 4 # 50 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/types.h" 2 3 4 #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 52 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/types.h" 3 4 typedef unsigned char u_char; typedef unsigned short u_short; typedef unsigned int u_int; typedef unsigned long u_long; #ifndef _KERNEL typedef unsigned short ushort; /* Sys V compatibility */ typedef unsigned int uint; /* Sys V compatibility */ #endif # 60 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/types.h" 3 4 #endif # 61 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/types.h" 3 4 /* * XXX POSIX sized integrals that should appear only in . */ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 65 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/types.h" 3 4 # 1 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_stdint.h" 1 3 4 /*- * SPDX-License-Identifier: BSD-2-Clause-FreeBSD * * Copyright (c) 2011 David E. O'Brien * Copyright (c) 2001 Mike Barcroft * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * $FreeBSD$ */ #ifndef _SYS__STDINT_H_ #define _SYS__STDINT_H_ #ifndef _INT8_T_DECLARED typedef __int8_t int8_t; #define _INT8_T_DECLARED #endif # 39 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_stdint.h" 3 4 #ifndef _INT16_T_DECLARED typedef __int16_t int16_t; #define _INT16_T_DECLARED #endif # 44 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_stdint.h" 3 4 #ifndef _INT32_T_DECLARED typedef __int32_t int32_t; #define _INT32_T_DECLARED #endif # 49 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_stdint.h" 3 4 #ifndef _INT64_T_DECLARED typedef __int64_t int64_t; #define _INT64_T_DECLARED #endif # 54 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_stdint.h" 3 4 #ifndef _UINT8_T_DECLARED typedef __uint8_t uint8_t; #define _UINT8_T_DECLARED #endif # 59 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_stdint.h" 3 4 #ifndef _UINT16_T_DECLARED typedef __uint16_t uint16_t; #define _UINT16_T_DECLARED #endif # 64 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_stdint.h" 3 4 #ifndef _UINT32_T_DECLARED typedef __uint32_t uint32_t; #define _UINT32_T_DECLARED #endif # 69 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_stdint.h" 3 4 #ifndef _UINT64_T_DECLARED typedef __uint64_t uint64_t; #define _UINT64_T_DECLARED #endif # 74 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_stdint.h" 3 4 #ifndef _INTPTR_T_DECLARED typedef __intptr_t intptr_t; #define _INTPTR_T_DECLARED #endif # 79 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_stdint.h" 3 4 #ifndef _UINTPTR_T_DECLARED typedef __uintptr_t uintptr_t; #define _UINTPTR_T_DECLARED #endif # 83 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_stdint.h" 3 4 #ifndef _INTMAX_T_DECLARED typedef __intmax_t intmax_t; #define _INTMAX_T_DECLARED #endif # 87 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_stdint.h" 3 4 #ifndef _UINTMAX_T_DECLARED typedef __uintmax_t uintmax_t; #define _UINTMAX_T_DECLARED #endif # 91 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_stdint.h" 3 4 #endif /* !_SYS__STDINT_H_ */ # 93 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_stdint.h" 3 4 # 66 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/types.h" 2 3 4 typedef __uint8_t u_int8_t; /* unsigned integrals (deprecated) */ typedef __uint16_t u_int16_t; typedef __uint32_t u_int32_t; typedef __uint64_t u_int64_t; typedef __uint64_t u_quad_t; /* quads (deprecated) */ typedef __int64_t quad_t; typedef quad_t * qaddr_t; typedef char * caddr_t; /* core address */ typedef const char * c_caddr_t; /* core address, pointer to const */ #ifndef _BLKSIZE_T_DECLARED typedef __blksize_t blksize_t; #define _BLKSIZE_T_DECLARED #endif # 83 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/types.h" 3 4 typedef __cpuwhich_t cpuwhich_t; typedef __cpulevel_t cpulevel_t; typedef __cpusetid_t cpusetid_t; #ifndef _BLKCNT_T_DECLARED typedef __blkcnt_t blkcnt_t; #define _BLKCNT_T_DECLARED #endif # 92 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/types.h" 3 4 #ifndef _CLOCK_T_DECLARED typedef __clock_t clock_t; #define _CLOCK_T_DECLARED #endif # 97 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/types.h" 3 4 #ifndef _CLOCKID_T_DECLARED typedef __clockid_t clockid_t; #define _CLOCKID_T_DECLARED #endif # 102 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/types.h" 3 4 typedef __critical_t critical_t; /* Critical section value */ typedef __daddr_t daddr_t; /* disk address */ #ifndef _DEV_T_DECLARED typedef __dev_t dev_t; /* device number or struct cdev */ #define _DEV_T_DECLARED #endif # 110 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/types.h" 3 4 #ifndef _FFLAGS_T_DECLARED typedef __fflags_t fflags_t; /* file flags */ #define _FFLAGS_T_DECLARED #endif # 115 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/types.h" 3 4 typedef __fixpt_t fixpt_t; /* fixed point number */ #ifndef _FSBLKCNT_T_DECLARED /* for statvfs() */ typedef __fsblkcnt_t fsblkcnt_t; typedef __fsfilcnt_t fsfilcnt_t; #define _FSBLKCNT_T_DECLARED #endif # 123 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/types.h" 3 4 #ifndef _GID_T_DECLARED typedef __gid_t gid_t; /* group id */ #define _GID_T_DECLARED #endif # 128 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/types.h" 3 4 #ifndef _IN_ADDR_T_DECLARED typedef __uint32_t in_addr_t; /* base type for internet address */ #define _IN_ADDR_T_DECLARED #endif # 133 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/types.h" 3 4 #ifndef _IN_PORT_T_DECLARED typedef __uint16_t in_port_t; #define _IN_PORT_T_DECLARED #endif # 138 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/types.h" 3 4 #ifndef _ID_T_DECLARED typedef __id_t id_t; /* can hold a uid_t or pid_t */ #define _ID_T_DECLARED #endif # 143 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/types.h" 3 4 #ifndef _INO_T_DECLARED typedef __ino_t ino_t; /* inode number */ #define _INO_T_DECLARED #endif # 148 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/types.h" 3 4 #ifndef _KEY_T_DECLARED typedef __key_t key_t; /* IPC key (for Sys V IPC) */ #define _KEY_T_DECLARED #endif # 153 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/types.h" 3 4 #ifndef _LWPID_T_DECLARED typedef __lwpid_t lwpid_t; /* Thread ID (a.k.a. LWP) */ #define _LWPID_T_DECLARED #endif # 158 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/types.h" 3 4 #ifndef _MODE_T_DECLARED typedef __mode_t mode_t; /* permissions */ #define _MODE_T_DECLARED #endif # 163 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/types.h" 3 4 #ifndef _ACCMODE_T_DECLARED typedef __accmode_t accmode_t; /* access permissions */ #define _ACCMODE_T_DECLARED #endif # 168 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/types.h" 3 4 #ifndef _NLINK_T_DECLARED typedef __nlink_t nlink_t; /* link count */ #define _NLINK_T_DECLARED #endif # 173 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/types.h" 3 4 #ifndef _OFF_T_DECLARED typedef __off_t off_t; /* file offset */ #define _OFF_T_DECLARED #endif # 178 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/types.h" 3 4 #ifndef _OFF64_T_DECLARED typedef __off64_t off64_t; /* file offset (alias) */ #define _OFF64_T_DECLARED #endif # 183 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/types.h" 3 4 #ifndef _PID_T_DECLARED typedef __pid_t pid_t; /* process id */ #define _PID_T_DECLARED #endif # 188 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/types.h" 3 4 typedef __register_t register_t; #ifndef _RLIM_T_DECLARED typedef __rlim_t rlim_t; /* resource limit */ #define _RLIM_T_DECLARED #endif # 195 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/types.h" 3 4 typedef __int64_t sbintime_t; typedef __segsz_t segsz_t; /* segment size (in pages) */ #ifndef _SIZE_T_DECLARED typedef __size_t size_t; #define _SIZE_T_DECLARED #endif # 204 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/types.h" 3 4 #ifndef _SSIZE_T_DECLARED typedef __ssize_t ssize_t; #define _SSIZE_T_DECLARED #endif # 209 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/types.h" 3 4 #ifndef _SUSECONDS_T_DECLARED typedef __suseconds_t suseconds_t; /* microseconds (signed) */ #define _SUSECONDS_T_DECLARED #endif # 214 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/types.h" 3 4 #ifndef _TIME_T_DECLARED typedef __time_t time_t; #define _TIME_T_DECLARED #endif # 219 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/types.h" 3 4 #ifndef _TIMER_T_DECLARED typedef __timer_t timer_t; #define _TIMER_T_DECLARED #endif # 224 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/types.h" 3 4 #ifndef _MQD_T_DECLARED typedef __mqd_t mqd_t; #define _MQD_T_DECLARED #endif # 229 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/types.h" 3 4 typedef __u_register_t u_register_t; #ifndef _UID_T_DECLARED typedef __uid_t uid_t; /* user id */ #define _UID_T_DECLARED #endif # 236 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/types.h" 3 4 #ifndef _USECONDS_T_DECLARED typedef __useconds_t useconds_t; /* microseconds (unsigned) */ #define _USECONDS_T_DECLARED #endif # 241 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/types.h" 3 4 #ifndef _CAP_IOCTL_T_DECLARED #define _CAP_IOCTL_T_DECLARED typedef unsigned long cap_ioctl_t; #endif # 246 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/types.h" 3 4 #ifndef _CAP_RIGHTS_T_DECLARED #define _CAP_RIGHTS_T_DECLARED struct cap_rights; typedef struct cap_rights cap_rights_t; #endif # 253 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/types.h" 3 4 /* * Types suitable for exporting physical addresses, virtual addresses * (pointers), and memory object sizes from the kernel independent of native * word size. These should be used in place of vm_paddr_t, (u)intptr_t, and * size_t in structs which contain such types that are shared with userspace. */ typedef __uint64_t kpaddr_t; typedef __uint64_t kvaddr_t; typedef __uint64_t ksize_t; typedef __int64_t kssize_t; typedef __vm_offset_t vm_offset_t; typedef __uint64_t vm_ooffset_t; typedef __vm_paddr_t vm_paddr_t; typedef __uint64_t vm_pindex_t; typedef __vm_size_t vm_size_t; typedef __rman_res_t rman_res_t; #ifdef _KERNEL typedef int boolean_t; typedef struct _device *device_t; typedef __intfptr_t intfptr_t; /* * XXX this is fixed width for historical reasons. It should have had type * __int_fast32_t. Fixed-width types should not be used unless binary * compatibility is essential. Least-width types should be used even less * since they provide smaller benefits. * * XXX should be MD. * * XXX this is bogus in -current, but still used for spl*(). */ typedef __uint32_t intrmask_t; /* Interrupt mask (spl, xxx_imask...) */ typedef __uintfptr_t uintfptr_t; typedef __uint64_t uoff_t; typedef char vm_memattr_t; /* memory attribute codes */ typedef struct vm_page *vm_page_t; #define offsetof(type, field) __offsetof(type, field) #endif /* _KERNEL */ # 297 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/types.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(_KERNEL) || defined(_STANDALONE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 299 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/types.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if !defined(__bool_true_false_are_defined) && !defined(__cplusplus) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 300 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/types.h" 3 4 #define __bool_true_false_are_defined 1 #define false 0 #define true 1 typedef _Bool bool; #endif /* !__bool_true_false_are_defined && !__cplusplus */ # 305 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/types.h" 3 4 #endif /* KERNEL || _STANDALONE */ # 306 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/types.h" 3 4 /* * The following are all things that really shouldn't exist in this header, * since its purpose is to provide typedefs, not miscellaneous doodads. */ #ifdef __POPCNT__ #define __bitcount64(x) __builtin_popcountll((__uint64_t)(x)) #define __bitcount32(x) __builtin_popcount((__uint32_t)(x)) #define __bitcount16(x) __builtin_popcount((__uint16_t)(x)) #define __bitcountl(x) __builtin_popcountl((unsigned long)(x)) #define __bitcount(x) __builtin_popcount((unsigned int)(x)) #else # 319 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/types.h" 3 4 /* * Population count algorithm using SWAR approach * - "SIMD Within A Register". */ static __inline __uint16_t __bitcount16(__uint16_t _x) { _x = (_x & 0x5555) + ((_x & 0xaaaa) >> 1); _x = (_x & 0x3333) + ((_x & 0xcccc) >> 2); _x = (_x + (_x >> 4)) & 0x0f0f; _x = (_x + (_x >> 8)) & 0x00ff; return (_x); } static __inline __uint32_t __bitcount32(__uint32_t _x) { _x = (_x & 0x55555555) + ((_x & 0xaaaaaaaa) >> 1); _x = (_x & 0x33333333) + ((_x & 0xcccccccc) >> 2); _x = (_x + (_x >> 4)) & 0x0f0f0f0f; _x = (_x + (_x >> 8)); _x = (_x + (_x >> 16)) & 0x000000ff; return (_x); } #ifdef __LP64__ static __inline __uint64_t __bitcount64(__uint64_t _x) { _x = (_x & 0x5555555555555555) + ((_x & 0xaaaaaaaaaaaaaaaa) >> 1); _x = (_x & 0x3333333333333333) + ((_x & 0xcccccccccccccccc) >> 2); _x = (_x + (_x >> 4)) & 0x0f0f0f0f0f0f0f0f; _x = (_x + (_x >> 8)); _x = (_x + (_x >> 16)); _x = (_x + (_x >> 32)) & 0x000000ff; return (_x); } #define __bitcountl(x) __bitcount64((unsigned long)(x)) #else # 362 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/types.h" 3 4 static __inline __uint64_t __bitcount64(__uint64_t _x) { return (__bitcount32(_x >> 32) + __bitcount32(_x)); } #define __bitcountl(x) __bitcount32((unsigned long)(x)) #endif # 371 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/types.h" 3 4 #define __bitcount(x) __bitcount32((unsigned int)(x)) #endif # 373 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/types.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 375 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/types.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 376 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/types.h" 3 4 # 1 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/select.h" 1 3 4 /*- * SPDX-License-Identifier: BSD-3-Clause * * Copyright (c) 1992, 1993 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * $FreeBSD$ */ #ifndef _SYS_SELECT_H_ #define _SYS_SELECT_H_ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 37 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/select.h" 3 4 # 38 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/select.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 38 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/select.h" 3 4 # 39 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/select.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 40 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/select.h" 3 4 # 1 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_sigset.h" 1 3 4 /*- * SPDX-License-Identifier: BSD-3-Clause * * Copyright (c) 1982, 1986, 1989, 1991, 1993 * The Regents of the University of California. All rights reserved. * (c) UNIX System Laboratories, Inc. * All or some portions of this file are derived from material licensed * to the University of California by American Telephone and Telegraph * Co. or Unix System Laboratories, Inc. and are reproduced herein with * the permission of UNIX System Laboratories, Inc. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * @(#)signal.h 8.4 (Berkeley) 5/4/95 * $FreeBSD$ */ #ifndef _SYS__SIGSET_H_ #define _SYS__SIGSET_H_ /* * sigset_t macros. */ #define _SIG_WORDS 4 #define _SIG_MAXSIG 128 #define _SIG_IDX(sig) ((sig) - 1) #define _SIG_WORD(sig) (_SIG_IDX(sig) >> 5) #define _SIG_BIT(sig) (1U << (_SIG_IDX(sig) & 31)) #define _SIG_VALID(sig) ((sig) <= _SIG_MAXSIG && (sig) > 0) typedef struct __sigset { __uint32_t __bits[_SIG_WORDS]; } __sigset_t; #if 0 /* disabled by -frewrite-includes */ #if defined(_KERNEL) && defined(COMPAT_43) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 58 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_sigset.h" 3 4 typedef unsigned int osigset_t; #endif # 60 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_sigset.h" 3 4 #endif /* !_SYS__SIGSET_H_ */ # 62 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_sigset.h" 3 4 # 41 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/select.h" 2 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 41 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/select.h" 3 4 # 1 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_timeval.h" 1 3 4 /*- * SPDX-License-Identifier: BSD-2-Clause-FreeBSD * * Copyright (c) 2002 Mike Barcroft * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * $FreeBSD$ */ #ifndef _SYS__TIMEVAL_H_ #define _SYS__TIMEVAL_H_ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 34 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_timeval.h" 3 4 # 35 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_timeval.h" 3 4 #ifndef _SUSECONDS_T_DECLARED typedef __suseconds_t suseconds_t; #define _SUSECONDS_T_DECLARED #endif # 40 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_timeval.h" 3 4 #ifndef _TIME_T_DECLARED typedef __time_t time_t; #define _TIME_T_DECLARED #endif # 45 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_timeval.h" 3 4 /* * Structure returned by gettimeofday(2) system call, and used in other calls. */ struct timeval { time_t tv_sec; /* seconds */ suseconds_t tv_usec; /* and microseconds */ }; #endif /* !_SYS__TIMEVAL_H_ */ # 55 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_timeval.h" 3 4 # 42 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/select.h" 2 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 42 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/select.h" 3 4 # 1 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/timespec.h" 1 3 4 /*- * SPDX-License-Identifier: BSD-3-Clause * * Copyright (c) 1982, 1986, 1993 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * @(#)time.h 8.5 (Berkeley) 5/4/95 * from: FreeBSD: src/sys/sys/time.h,v 1.43 2000/03/20 14:09:05 phk Exp * $FreeBSD$ */ #ifndef _SYS_TIMESPEC_H_ #define _SYS_TIMESPEC_H_ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 39 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/timespec.h" 3 4 # 40 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/timespec.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 40 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/timespec.h" 3 4 # 1 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_timespec.h" 1 3 4 /*- * SPDX-License-Identifier: BSD-3-Clause * * Copyright (c) 1982, 1986, 1993 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * @(#)time.h 8.5 (Berkeley) 5/4/95 * from: FreeBSD: src/sys/sys/time.h,v 1.43 2000/03/20 14:09:05 phk Exp * $FreeBSD$ */ #ifndef _SYS__TIMESPEC_H_ #define _SYS__TIMESPEC_H_ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 39 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_timespec.h" 3 4 # 40 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_timespec.h" 3 4 #ifndef _TIME_T_DECLARED typedef __time_t time_t; #define _TIME_T_DECLARED #endif # 45 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_timespec.h" 3 4 struct timespec { time_t tv_sec; /* seconds */ long tv_nsec; /* and nanoseconds */ }; #endif /* !_SYS__TIMESPEC_H_ */ # 52 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_timespec.h" 3 4 # 41 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/timespec.h" 2 3 4 #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 43 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/timespec.h" 3 4 #define TIMEVAL_TO_TIMESPEC(tv, ts) \ do { \ (ts)->tv_sec = (tv)->tv_sec; \ (ts)->tv_nsec = (tv)->tv_usec * 1000; \ } while (0) #define TIMESPEC_TO_TIMEVAL(tv, ts) \ do { \ (tv)->tv_sec = (ts)->tv_sec; \ (tv)->tv_usec = (ts)->tv_nsec / 1000; \ } while (0) #endif /* __BSD_VISIBLE */ # 55 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/timespec.h" 3 4 /* * Structure defined by POSIX.1b to be like a itimerval, but with * timespecs. Used in the timer_*() system calls. */ struct itimerspec { struct timespec it_interval; struct timespec it_value; }; #endif /* _SYS_TIMESPEC_H_ */ # 66 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/timespec.h" 3 4 # 43 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/select.h" 2 3 4 typedef unsigned long __fd_mask; #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 46 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/select.h" 3 4 typedef __fd_mask fd_mask; #endif # 48 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/select.h" 3 4 #ifndef _SIGSET_T_DECLARED #define _SIGSET_T_DECLARED typedef __sigset_t sigset_t; #endif # 53 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/select.h" 3 4 /* * Select uses bit masks of file descriptors in longs. These macros * manipulate such bit fields (the filesystem macros use chars). * FD_SETSIZE may be defined by the user, but the default here should * be enough for most uses. */ #ifndef FD_SETSIZE #define FD_SETSIZE 1024 #endif # 63 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/select.h" 3 4 #define _NFDBITS (sizeof(__fd_mask) * 8) /* bits per mask */ #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 66 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/select.h" 3 4 #define NFDBITS _NFDBITS #endif # 68 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/select.h" 3 4 #ifndef _howmany #define _howmany(x, y) (((x) + ((y) - 1)) / (y)) #endif # 72 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/select.h" 3 4 typedef struct fd_set { __fd_mask __fds_bits[_howmany(FD_SETSIZE, _NFDBITS)]; } fd_set; #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 77 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/select.h" 3 4 #define fds_bits __fds_bits #endif # 79 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/select.h" 3 4 #define __fdset_mask(n) ((__fd_mask)1 << ((n) % _NFDBITS)) #define FD_CLR(n, p) ((p)->__fds_bits[(n)/_NFDBITS] &= ~__fdset_mask(n)) #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 83 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/select.h" 3 4 #define FD_COPY(f, t) (void)(*(t) = *(f)) #endif # 85 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/select.h" 3 4 #define FD_ISSET(n, p) (((p)->__fds_bits[(n)/_NFDBITS] & __fdset_mask(n)) != 0) #define FD_SET(n, p) ((p)->__fds_bits[(n)/_NFDBITS] |= __fdset_mask(n)) #define FD_ZERO(p) do { \ fd_set *_p; \ __size_t _n; \ \ _p = (p); \ _n = _howmany(FD_SETSIZE, _NFDBITS); \ while (_n > 0) \ _p->__fds_bits[--_n] = 0; \ } while (0) #ifndef _KERNEL __BEGIN_DECLS int pselect(int, fd_set *__restrict, fd_set *__restrict, fd_set *__restrict, const struct timespec *__restrict, const sigset_t *__restrict); #ifndef _SELECT_DECLARED #define _SELECT_DECLARED /* XXX missing restrict type-qualifier */ int select(int, fd_set *, fd_set *, fd_set *, struct timeval *); #endif # 107 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/select.h" 3 4 __END_DECLS #endif /* !_KERNEL */ # 109 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/select.h" 3 4 #endif /* _SYS_SELECT_H_ */ # 111 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/select.h" 3 4 # 377 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/types.h" 2 3 4 /* * The major and minor numbers are encoded in dev_t as MMMmmmMm (where * letters correspond to bytes). The encoding of the lower 4 bytes is * constrained by compatibility with 16-bit and 32-bit dev_t's. The * encoding of of the upper 4 bytes is the least unnatural one consistent * with this and other constraints. Also, the decoding of the m bytes by * minor() is unnatural to maximize compatibility subject to not discarding * bits. The upper m byte is shifted into the position of the lower M byte * instead of shifting 3 upper m bytes to close the gap. Compatibility for * minor() is achieved iff the upper m byte is 0. */ #define major(d) __major(d) static __inline int __major(dev_t _d) { return (((_d >> 32) & 0xffffff00) | ((_d >> 8) & 0xff)); } #define minor(d) __minor(d) static __inline int __minor(dev_t _d) { return (((_d >> 24) & 0xff00) | (_d & 0xffff00ff)); } #define makedev(M, m) __makedev((M), (m)) static __inline dev_t __makedev(int _Major, int _Minor) { return (((dev_t)(_Major & 0xffffff00) << 32) | ((_Major & 0xff) << 8) | ((dev_t)(_Minor & 0xff00) << 24) | (_Minor & 0xffff00ff)); } /* * These declarations belong elsewhere, but are repeated here and in * to give broken programs a better chance of working with * 64-bit off_t's. */ #ifndef _KERNEL __BEGIN_DECLS #ifndef _FTRUNCATE_DECLARED #define _FTRUNCATE_DECLARED int ftruncate(int, off_t); #endif # 420 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/types.h" 3 4 #ifndef _LSEEK_DECLARED #define _LSEEK_DECLARED off_t lseek(int, off_t, int); #endif # 424 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/types.h" 3 4 #ifndef _MMAP_DECLARED #define _MMAP_DECLARED void * mmap(void *, size_t, int, int, int, off_t); #endif # 428 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/types.h" 3 4 #ifndef _TRUNCATE_DECLARED #define _TRUNCATE_DECLARED int truncate(const char *, off_t); #endif # 432 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/types.h" 3 4 __END_DECLS #endif /* !_KERNEL */ # 434 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/types.h" 3 4 #endif /* __BSD_VISIBLE */ # 436 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/types.h" 3 4 #endif /* !_SYS_TYPES_H_ */ # 438 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/types.h" 3 4 # 69 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" 2 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 69 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" # 1 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stat.h" 1 3 4 /*- * SPDX-License-Identifier: BSD-3-Clause * * Copyright (c) 1982, 1986, 1989, 1993 * The Regents of the University of California. All rights reserved. * (c) UNIX System Laboratories, Inc. * All or some portions of this file are derived from material licensed * to the University of California by American Telephone and Telegraph * Co. or Unix System Laboratories, Inc. and are reproduced herein with * the permission of UNIX System Laboratories, Inc. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * @(#)stat.h 8.12 (Berkeley) 6/16/95 * $FreeBSD$ */ #ifndef _SYS_STAT_H_ #define _SYS_STAT_H_ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 43 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stat.h" 3 4 # 44 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stat.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 44 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stat.h" 3 4 # 45 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stat.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 45 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stat.h" 3 4 # 46 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stat.h" 3 4 #ifndef _BLKSIZE_T_DECLARED typedef __blksize_t blksize_t; #define _BLKSIZE_T_DECLARED #endif # 51 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stat.h" 3 4 #ifndef _BLKCNT_T_DECLARED typedef __blkcnt_t blkcnt_t; #define _BLKCNT_T_DECLARED #endif # 56 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stat.h" 3 4 #ifndef _DEV_T_DECLARED typedef __dev_t dev_t; #define _DEV_T_DECLARED #endif # 61 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stat.h" 3 4 #ifndef _FFLAGS_T_DECLARED typedef __fflags_t fflags_t; #define _FFLAGS_T_DECLARED #endif # 66 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stat.h" 3 4 #ifndef _GID_T_DECLARED typedef __gid_t gid_t; #define _GID_T_DECLARED #endif # 71 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stat.h" 3 4 #ifndef _INO_T_DECLARED typedef __ino_t ino_t; #define _INO_T_DECLARED #endif # 76 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stat.h" 3 4 #ifndef _MODE_T_DECLARED typedef __mode_t mode_t; #define _MODE_T_DECLARED #endif # 81 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stat.h" 3 4 #ifndef _NLINK_T_DECLARED typedef __nlink_t nlink_t; #define _NLINK_T_DECLARED #endif # 86 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stat.h" 3 4 #ifndef _OFF_T_DECLARED typedef __off_t off_t; #define _OFF_T_DECLARED #endif # 91 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stat.h" 3 4 #ifndef _UID_T_DECLARED typedef __uid_t uid_t; #define _UID_T_DECLARED #endif # 96 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stat.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if !defined(_KERNEL) && __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 98 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stat.h" 3 4 /* * XXX We get miscellaneous namespace pollution with this. */ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 101 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stat.h" 3 4 # 1 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/time.h" 1 3 4 /*- * SPDX-License-Identifier: BSD-3-Clause * * Copyright (c) 1982, 1986, 1993 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * @(#)time.h 8.5 (Berkeley) 5/4/95 * $FreeBSD$ */ #ifndef _SYS_TIME_H_ #define _SYS_TIME_H_ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 38 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/time.h" 3 4 # 39 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/time.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 39 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/time.h" 3 4 # 40 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/time.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 40 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/time.h" 3 4 # 41 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/time.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 41 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/time.h" 3 4 # 1 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_clock_id.h" 1 3 4 /*- * SPDX-License-Identifier: BSD-2-Clause * * Copyright (c) 2021 Netflix, Inc. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ #ifndef _SYS_SYS__CLOCK_ID_H #define _SYS_SYS__CLOCK_ID_H /* * These macros are shared between time.h and sys/time.h. */ /* * Note: The values shown below as a comment for the __POSIX_VISIBLE values are * the ones FreeBSD traditionally used based on our reading of the POSIX * standards. However, glibc uses 199309 for all of them, even those many were * not defined there. To remain bug compatible with glibc means more software * that relied on the glibc behavior will compile easily on FreeBSD. * * Also, CLOCK_UPTIME_FAST is improperly visible temporarily for the lang/pocl * port until it can be updated properly. It incorrectly assumes that this was a * standard value. It will be moved back to the __BSD_VISIBLE section once the * issue is corrected. */ #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 199309 /* 199506 */ #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 49 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_clock_id.h" 3 4 #define CLOCK_REALTIME 0 #endif /* __POSIX_VISIBLE >= 199309 */ # 51 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_clock_id.h" 3 4 #ifdef __BSD_VISIBLE #define CLOCK_VIRTUAL 1 #define CLOCK_PROF 2 #endif /* __BSD_VISIBLE */ # 55 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_clock_id.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 199309 /* 200112 */ #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 56 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_clock_id.h" 3 4 #define CLOCK_MONOTONIC 4 #define CLOCK_UPTIME_FAST 8 #endif /* __POSIX_VISIBLE >= 199309 */ # 59 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_clock_id.h" 3 4 #ifdef __BSD_VISIBLE /* * FreeBSD-specific clocks. */ #define CLOCK_UPTIME 5 #define CLOCK_UPTIME_PRECISE 7 #define CLOCK_REALTIME_PRECISE 9 #define CLOCK_REALTIME_FAST 10 #define CLOCK_MONOTONIC_PRECISE 11 #define CLOCK_MONOTONIC_FAST 12 #define CLOCK_SECOND 13 #endif /* __BSD_VISIBLE */ # 71 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_clock_id.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 199309 /* 200112 */ #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 73 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_clock_id.h" 3 4 #define CLOCK_THREAD_CPUTIME_ID 14 #define CLOCK_PROCESS_CPUTIME_ID 15 #endif /* __POSIX_VISIBLE >= 199309 */ # 76 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_clock_id.h" 3 4 /* * Linux compatible names. */ #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 81 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_clock_id.h" 3 4 #define CLOCK_BOOTTIME CLOCK_UPTIME #define CLOCK_REALTIME_COARSE CLOCK_REALTIME_FAST #define CLOCK_MONOTONIC_COARSE CLOCK_MONOTONIC_FAST #endif # 85 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_clock_id.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 87 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_clock_id.h" 3 4 #define TIMER_RELTIME 0x0 /* relative timer */ #endif # 89 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_clock_id.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 199309 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 90 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_clock_id.h" 3 4 #define TIMER_ABSTIME 0x1 /* absolute timer */ #endif /* __POSIX_VISIBLE >= 199309 */ # 92 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_clock_id.h" 3 4 #endif /* _SYS_SYS__CLOCK_ID_H */ # 94 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_clock_id.h" 3 4 # 42 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/time.h" 2 3 4 struct timezone { int tz_minuteswest; /* minutes west of Greenwich */ int tz_dsttime; /* type of dst correction */ }; #define DST_NONE 0 /* not on dst */ #define DST_USA 1 /* USA style dst */ #define DST_AUST 2 /* Australian style dst */ #define DST_WET 3 /* Western European dst */ #define DST_MET 4 /* Middle European dst */ #define DST_EET 5 /* Eastern European dst */ #define DST_CAN 6 /* Canada */ #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 56 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/time.h" 3 4 struct bintime { time_t sec; uint64_t frac; }; static __inline void bintime_addx(struct bintime *_bt, uint64_t _x) { uint64_t _u; _u = _bt->frac; _bt->frac += _x; if (_u > _bt->frac) _bt->sec++; } static __inline void bintime_add(struct bintime *_bt, const struct bintime *_bt2) { uint64_t _u; _u = _bt->frac; _bt->frac += _bt2->frac; if (_u > _bt->frac) _bt->sec++; _bt->sec += _bt2->sec; } static __inline void bintime_sub(struct bintime *_bt, const struct bintime *_bt2) { uint64_t _u; _u = _bt->frac; _bt->frac -= _bt2->frac; if (_u < _bt->frac) _bt->sec--; _bt->sec -= _bt2->sec; } static __inline void bintime_mul(struct bintime *_bt, u_int _x) { uint64_t _p1, _p2; _p1 = (_bt->frac & 0xffffffffull) * _x; _p2 = (_bt->frac >> 32) * _x + (_p1 >> 32); _bt->sec *= _x; _bt->sec += (_p2 >> 32); _bt->frac = (_p2 << 32) | (_p1 & 0xffffffffull); } static __inline void bintime_shift(struct bintime *_bt, int _exp) { if (_exp > 0) { _bt->sec <<= _exp; _bt->sec |= _bt->frac >> (64 - _exp); _bt->frac <<= _exp; } else if (_exp < 0) { _bt->frac >>= -_exp; _bt->frac |= (uint64_t)_bt->sec << (64 + _exp); _bt->sec >>= -_exp; } } #define bintime_clear(a) ((a)->sec = (a)->frac = 0) #define bintime_isset(a) ((a)->sec || (a)->frac) #define bintime_cmp(a, b, cmp) \ (((a)->sec == (b)->sec) ? \ ((a)->frac cmp (b)->frac) : \ ((a)->sec cmp (b)->sec)) #define SBT_1S ((sbintime_t)1 << 32) #define SBT_1M (SBT_1S * 60) #define SBT_1MS (SBT_1S / 1000) #define SBT_1US (SBT_1S / 1000000) #define SBT_1NS (SBT_1S / 1000000000) /* beware rounding, see nstosbt() */ #define SBT_MAX 0x7fffffffffffffffLL static __inline int sbintime_getsec(sbintime_t _sbt) { return (_sbt >> 32); } static __inline sbintime_t bttosbt(const struct bintime _bt) { return (((sbintime_t)_bt.sec << 32) + (_bt.frac >> 32)); } static __inline struct bintime sbttobt(sbintime_t _sbt) { struct bintime _bt; _bt.sec = _sbt >> 32; _bt.frac = _sbt << 32; return (_bt); } /* * Decimal<->sbt conversions. Multiplying or dividing by SBT_1NS results in * large roundoff errors which sbttons() and nstosbt() avoid. Millisecond and * microsecond functions are also provided for completeness. * * These functions return the smallest sbt larger or equal to the * number of seconds requested so that sbttoX(Xtosbt(y)) == y. Unlike * top of second computations below, which require that we tick at the * top of second, these need to be rounded up so we do whatever for at * least as long as requested. * * The naive computation we'd do is this * ((unit * 2^64 / SIFACTOR) + 2^32-1) >> 32 * However, that overflows. Instead, we compute * ((unit * 2^63 / SIFACTOR) + 2^31-1) >> 32 * and use pre-computed constants that are the ceil of the 2^63 / SIFACTOR * term to ensure we are using exactly the right constant. We use the lesser * evil of ull rather than a uint64_t cast to ensure we have well defined * right shift semantics. With these changes, we get all the ns, us and ms * conversions back and forth right. * Note: This file is used for both kernel and userland includes, so we can't * rely on KASSERT being defined, nor can we pollute the namespace by including * assert.h. */ static __inline int64_t sbttons(sbintime_t _sbt) { uint64_t ns; #ifdef KASSERT KASSERT(_sbt >= 0, ("Negative values illegal for sbttons: %jx", _sbt)); #endif # 193 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/time.h" 3 4 ns = _sbt; if (ns >= SBT_1S) ns = (ns >> 32) * 1000000000; else ns = 0; return (ns + (1000000000 * (_sbt & 0xffffffffu) >> 32)); } static __inline sbintime_t nstosbt(int64_t _ns) { sbintime_t sb = 0; #ifdef KASSERT KASSERT(_ns >= 0, ("Negative values illegal for nstosbt: %jd", _ns)); #endif # 210 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/time.h" 3 4 if (_ns >= SBT_1S) { sb = (_ns / 1000000000) * SBT_1S; _ns = _ns % 1000000000; } /* 9223372037 = ceil(2^63 / 1000000000) */ sb += ((_ns * 9223372037ull) + 0x7fffffff) >> 31; return (sb); } static __inline int64_t sbttous(sbintime_t _sbt) { return ((1000000 * _sbt) >> 32); } static __inline sbintime_t ustosbt(int64_t _us) { sbintime_t sb = 0; #ifdef KASSERT KASSERT(_us >= 0, ("Negative values illegal for ustosbt: %jd", _us)); #endif # 234 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/time.h" 3 4 if (_us >= SBT_1S) { sb = (_us / 1000000) * SBT_1S; _us = _us % 1000000; } /* 9223372036855 = ceil(2^63 / 1000000) */ sb += ((_us * 9223372036855ull) + 0x7fffffff) >> 31; return (sb); } static __inline int64_t sbttoms(sbintime_t _sbt) { return ((1000 * _sbt) >> 32); } static __inline sbintime_t mstosbt(int64_t _ms) { sbintime_t sb = 0; #ifdef KASSERT KASSERT(_ms >= 0, ("Negative values illegal for mstosbt: %jd", _ms)); #endif # 258 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/time.h" 3 4 if (_ms >= SBT_1S) { sb = (_ms / 1000) * SBT_1S; _ms = _ms % 1000; } /* 9223372036854776 = ceil(2^63 / 1000) */ sb += ((_ms * 9223372036854776ull) + 0x7fffffff) >> 31; return (sb); } /*- * Background information: * * When converting between timestamps on parallel timescales of differing * resolutions it is historical and scientific practice to round down rather * than doing 4/5 rounding. * * The date changes at midnight, not at noon. * * Even at 15:59:59.999999999 it's not four'o'clock. * * time_second ticks after N.999999999 not after N.4999999999 */ static __inline void bintime2timespec(const struct bintime *_bt, struct timespec *_ts) { _ts->tv_sec = _bt->sec; _ts->tv_nsec = ((uint64_t)1000000000 * (uint32_t)(_bt->frac >> 32)) >> 32; } static __inline uint64_t bintime2ns(const struct bintime *_bt) { uint64_t ret; ret = (uint64_t)(_bt->sec) * (uint64_t)1000000000; ret += (((uint64_t)1000000000 * (uint32_t)(_bt->frac >> 32)) >> 32); return (ret); } static __inline void timespec2bintime(const struct timespec *_ts, struct bintime *_bt) { _bt->sec = _ts->tv_sec; /* 18446744073 = int(2^64 / 1000000000) */ _bt->frac = _ts->tv_nsec * (uint64_t)18446744073LL; } static __inline void bintime2timeval(const struct bintime *_bt, struct timeval *_tv) { _tv->tv_sec = _bt->sec; _tv->tv_usec = ((uint64_t)1000000 * (uint32_t)(_bt->frac >> 32)) >> 32; } static __inline void timeval2bintime(const struct timeval *_tv, struct bintime *_bt) { _bt->sec = _tv->tv_sec; /* 18446744073709 = int(2^64 / 1000000) */ _bt->frac = _tv->tv_usec * (uint64_t)18446744073709LL; } static __inline struct timespec sbttots(sbintime_t _sbt) { struct timespec _ts; _ts.tv_sec = _sbt >> 32; _ts.tv_nsec = sbttons((uint32_t)_sbt); return (_ts); } static __inline sbintime_t tstosbt(struct timespec _ts) { return (((sbintime_t)_ts.tv_sec << 32) + nstosbt(_ts.tv_nsec)); } static __inline struct timeval sbttotv(sbintime_t _sbt) { struct timeval _tv; _tv.tv_sec = _sbt >> 32; _tv.tv_usec = sbttous((uint32_t)_sbt); return (_tv); } static __inline sbintime_t tvtosbt(struct timeval _tv) { return (((sbintime_t)_tv.tv_sec << 32) + ustosbt(_tv.tv_usec)); } #endif /* __BSD_VISIBLE */ # 361 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/time.h" 3 4 #ifdef _KERNEL /* * Simple macros to convert ticks to milliseconds * or microseconds and vice-versa. The answer * will always be at least 1. Note the return * value is a uint32_t however we step up the * operations to 64 bit to avoid any overflow/underflow * problems. */ #define TICKS_2_MSEC(t) max(1, (uint32_t)(hz == 1000) ? \ (t) : (((uint64_t)(t) * (uint64_t)1000)/(uint64_t)hz)) #define TICKS_2_USEC(t) max(1, (uint32_t)(hz == 1000) ? \ ((t) * 1000) : (((uint64_t)(t) * (uint64_t)1000000)/(uint64_t)hz)) #define MSEC_2_TICKS(m) max(1, (uint32_t)((hz == 1000) ? \ (m) : ((uint64_t)(m) * (uint64_t)hz)/(uint64_t)1000)) #define USEC_2_TICKS(u) max(1, (uint32_t)((hz == 1000) ? \ ((u) / 1000) : ((uint64_t)(u) * (uint64_t)hz)/(uint64_t)1000000)) #endif # 381 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/time.h" 3 4 /* Operations on timespecs */ #define timespecclear(tvp) ((tvp)->tv_sec = (tvp)->tv_nsec = 0) #define timespecisset(tvp) ((tvp)->tv_sec || (tvp)->tv_nsec) #define timespeccmp(tvp, uvp, cmp) \ (((tvp)->tv_sec == (uvp)->tv_sec) ? \ ((tvp)->tv_nsec cmp (uvp)->tv_nsec) : \ ((tvp)->tv_sec cmp (uvp)->tv_sec)) #define timespecadd(tsp, usp, vsp) \ do { \ (vsp)->tv_sec = (tsp)->tv_sec + (usp)->tv_sec; \ (vsp)->tv_nsec = (tsp)->tv_nsec + (usp)->tv_nsec; \ if ((vsp)->tv_nsec >= 1000000000L) { \ (vsp)->tv_sec++; \ (vsp)->tv_nsec -= 1000000000L; \ } \ } while (0) #define timespecsub(tsp, usp, vsp) \ do { \ (vsp)->tv_sec = (tsp)->tv_sec - (usp)->tv_sec; \ (vsp)->tv_nsec = (tsp)->tv_nsec - (usp)->tv_nsec; \ if ((vsp)->tv_nsec < 0) { \ (vsp)->tv_sec--; \ (vsp)->tv_nsec += 1000000000L; \ } \ } while (0) #ifdef _KERNEL /* Operations on timevals. */ #define timevalclear(tvp) ((tvp)->tv_sec = (tvp)->tv_usec = 0) #define timevalisset(tvp) ((tvp)->tv_sec || (tvp)->tv_usec) #define timevalcmp(tvp, uvp, cmp) \ (((tvp)->tv_sec == (uvp)->tv_sec) ? \ ((tvp)->tv_usec cmp (uvp)->tv_usec) : \ ((tvp)->tv_sec cmp (uvp)->tv_sec)) /* timevaladd and timevalsub are not inlined */ #endif /* _KERNEL */ # 422 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/time.h" 3 4 #ifndef _KERNEL /* NetBSD/OpenBSD compatible interfaces */ #define timerclear(tvp) ((tvp)->tv_sec = (tvp)->tv_usec = 0) #define timerisset(tvp) ((tvp)->tv_sec || (tvp)->tv_usec) #define timercmp(tvp, uvp, cmp) \ (((tvp)->tv_sec == (uvp)->tv_sec) ? \ ((tvp)->tv_usec cmp (uvp)->tv_usec) : \ ((tvp)->tv_sec cmp (uvp)->tv_sec)) #define timeradd(tvp, uvp, vvp) \ do { \ (vvp)->tv_sec = (tvp)->tv_sec + (uvp)->tv_sec; \ (vvp)->tv_usec = (tvp)->tv_usec + (uvp)->tv_usec; \ if ((vvp)->tv_usec >= 1000000) { \ (vvp)->tv_sec++; \ (vvp)->tv_usec -= 1000000; \ } \ } while (0) #define timersub(tvp, uvp, vvp) \ do { \ (vvp)->tv_sec = (tvp)->tv_sec - (uvp)->tv_sec; \ (vvp)->tv_usec = (tvp)->tv_usec - (uvp)->tv_usec; \ if ((vvp)->tv_usec < 0) { \ (vvp)->tv_sec--; \ (vvp)->tv_usec += 1000000; \ } \ } while (0) #endif # 450 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/time.h" 3 4 /* * Names of the interval timers, and structure * defining a timer setting. */ #define ITIMER_REAL 0 #define ITIMER_VIRTUAL 1 #define ITIMER_PROF 2 struct itimerval { struct timeval it_interval; /* timer interval */ struct timeval it_value; /* current value */ }; /* * Getkerninfo clock information structure */ struct clockinfo { int hz; /* clock frequency */ int tick; /* micro-seconds per hz tick */ int spare; int stathz; /* statistics clock frequency */ int profhz; /* profiling clock frequency */ }; #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 476 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/time.h" 3 4 #define CPUCLOCK_WHICH_PID 0 #define CPUCLOCK_WHICH_TID 1 #endif # 479 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/time.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(_KERNEL) || defined(_STANDALONE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 481 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/time.h" 3 4 /* * Kernel to clock driver interface. */ void inittodr(time_t base); void resettodr(void); extern volatile time_t time_second; extern volatile time_t time_uptime; extern struct bintime tc_tick_bt; extern sbintime_t tc_tick_sbt; extern struct bintime tick_bt; extern sbintime_t tick_sbt; extern int tc_precexp; extern int tc_timepercentage; extern struct bintime bt_timethreshold; extern struct bintime bt_tickthreshold; extern sbintime_t sbt_timethreshold; extern sbintime_t sbt_tickthreshold; extern volatile int rtc_generation; /* * Functions for looking at our clock: [get]{bin,nano,micro}[up]time() * * Functions without the "get" prefix returns the best timestamp * we can produce in the given format. * * "bin" == struct bintime == seconds + 64 bit fraction of seconds. * "nano" == struct timespec == seconds + nanoseconds. * "micro" == struct timeval == seconds + microseconds. * * Functions containing "up" returns time relative to boot and * should be used for calculating time intervals. * * Functions without "up" returns UTC time. * * Functions with the "get" prefix returns a less precise result * much faster than the functions without "get" prefix and should * be used where a precision of 1/hz seconds is acceptable or where * performance is priority. (NB: "precision", _not_ "resolution" !) */ void binuptime(struct bintime *bt); void nanouptime(struct timespec *tsp); void microuptime(struct timeval *tvp); static __inline sbintime_t sbinuptime(void) { struct bintime _bt; binuptime(&_bt); return (bttosbt(_bt)); } void bintime(struct bintime *bt); void nanotime(struct timespec *tsp); void microtime(struct timeval *tvp); void getbinuptime(struct bintime *bt); void getnanouptime(struct timespec *tsp); void getmicrouptime(struct timeval *tvp); static __inline sbintime_t getsbinuptime(void) { struct bintime _bt; getbinuptime(&_bt); return (bttosbt(_bt)); } void getbintime(struct bintime *bt); void getnanotime(struct timespec *tsp); void getmicrotime(struct timeval *tvp); void getboottime(struct timeval *boottime); void getboottimebin(struct bintime *boottimebin); /* Other functions */ int itimerdecr(struct itimerval *itp, int usec); int itimerfix(struct timeval *tv); int ppsratecheck(struct timeval *, int *, int); int ratecheck(struct timeval *, const struct timeval *); void timevaladd(struct timeval *t1, const struct timeval *t2); void timevalsub(struct timeval *t1, const struct timeval *t2); int tvtohz(struct timeval *tv); #define TC_DEFAULTPERC 5 #define BT2FREQ(bt) \ (((uint64_t)0x8000000000000000 + ((bt)->frac >> 2)) / \ ((bt)->frac >> 1)) #define SBT2FREQ(sbt) ((SBT_1S + ((sbt) >> 1)) / (sbt)) #define FREQ2BT(freq, bt) \ { \ (bt)->sec = 0; \ (bt)->frac = ((uint64_t)0x8000000000000000 / (freq)) << 1; \ } #define TIMESEL(sbt, sbt2) \ (((sbt2) >= sbt_timethreshold) ? \ ((*(sbt) = getsbinuptime()), 1) : ((*(sbt) = sbinuptime()), 0)) #else /* !_KERNEL && !_STANDALONE */ # 589 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/time.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 589 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/time.h" 3 4 # 1 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/time.h" 1 3 4 /*- * SPDX-License-Identifier: BSD-3-Clause * * Copyright (c) 1989, 1993 * The Regents of the University of California. All rights reserved. * (c) UNIX System Laboratories, Inc. * All or some portions of this file are derived from material licensed * to the University of California by American Telephone and Telegraph * Co. or Unix System Laboratories, Inc. and are reproduced herein with * the permission of UNIX System Laboratories, Inc. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * @(#)time.h 8.3 (Berkeley) 1/21/94 */ /* * $FreeBSD$ */ #ifndef _TIME_H_ #define _TIME_H_ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 46 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/time.h" 3 4 # 47 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/time.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 47 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/time.h" 3 4 # 48 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/time.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 48 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/time.h" 3 4 # 49 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/time.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 49 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/time.h" 3 4 # 50 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/time.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE > 0 && __POSIX_VISIBLE < 200112 || __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 52 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/time.h" 3 4 /* * Frequency of the clock ticks reported by times(). Deprecated - use * sysconf(_SC_CLK_TCK) instead. (Removed in 1003.1-2001.) */ #define CLK_TCK 128 #endif # 58 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/time.h" 3 4 /* Frequency of the clock ticks reported by clock(). */ #define CLOCKS_PER_SEC 128 #ifndef _CLOCK_T_DECLARED typedef __clock_t clock_t; #define _CLOCK_T_DECLARED #endif # 66 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/time.h" 3 4 #ifndef _TIME_T_DECLARED typedef __time_t time_t; #define _TIME_T_DECLARED #endif # 71 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/time.h" 3 4 #ifndef _SIZE_T_DECLARED typedef __size_t size_t; #define _SIZE_T_DECLARED #endif # 76 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/time.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 199309 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 78 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/time.h" 3 4 /* * New in POSIX 1003.1b-1993. */ #ifndef _CLOCKID_T_DECLARED typedef __clockid_t clockid_t; #define _CLOCKID_T_DECLARED #endif # 85 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/time.h" 3 4 #ifndef _TIMER_T_DECLARED typedef __timer_t timer_t; #define _TIMER_T_DECLARED #endif # 90 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/time.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 91 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/time.h" 3 4 # 92 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/time.h" 3 4 #endif /* __POSIX_VISIBLE >= 199309 */ # 93 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/time.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 200112 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 95 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/time.h" 3 4 #ifndef _PID_T_DECLARED typedef __pid_t pid_t; #define _PID_T_DECLARED #endif # 99 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/time.h" 3 4 #endif # 100 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/time.h" 3 4 struct tm { int tm_sec; /* seconds after the minute [0-60] */ int tm_min; /* minutes after the hour [0-59] */ int tm_hour; /* hours since midnight [0-23] */ int tm_mday; /* day of the month [1-31] */ int tm_mon; /* months since January [0-11] */ int tm_year; /* years since 1900 */ int tm_wday; /* days since Sunday [0-6] */ int tm_yday; /* days since January 1 [0-365] */ int tm_isdst; /* Daylight Savings Time flag */ long tm_gmtoff; /* offset from UTC in seconds */ char *tm_zone; /* timezone abbreviation */ }; #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 116 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/time.h" 3 4 extern char *tzname[]; #endif # 118 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/time.h" 3 4 __BEGIN_DECLS char *asctime(const struct tm *); clock_t clock(void); char *ctime(const time_t *); #ifndef _STANDALONE double difftime(time_t, time_t); #endif # 126 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/time.h" 3 4 /* XXX missing: getdate() */ struct tm *gmtime(const time_t *); struct tm *localtime(const time_t *); time_t mktime(struct tm *); size_t strftime(char * __restrict, size_t, const char * __restrict, const struct tm * __restrict); time_t time(time_t *); #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 200112 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 134 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/time.h" 3 4 struct sigevent; int timer_create(clockid_t, struct sigevent *__restrict, timer_t *__restrict); int timer_delete(timer_t); int timer_gettime(timer_t, struct itimerspec *); int timer_getoverrun(timer_t); int timer_settime(timer_t, int, const struct itimerspec *__restrict, struct itimerspec *__restrict); #endif # 142 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/time.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 143 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/time.h" 3 4 void tzset(void); #endif # 145 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/time.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 199309 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 147 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/time.h" 3 4 int clock_getres(clockid_t, struct timespec *); int clock_gettime(clockid_t, struct timespec *); int clock_settime(clockid_t, const struct timespec *); int nanosleep(const struct timespec *, struct timespec *); #endif /* __POSIX_VISIBLE >= 199309 */ # 152 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/time.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 200112 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 154 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/time.h" 3 4 int clock_getcpuclockid(pid_t, clockid_t *); int clock_nanosleep(clockid_t, int, const struct timespec *, struct timespec *); #endif # 157 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/time.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 199506 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 159 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/time.h" 3 4 char *asctime_r(const struct tm *, char *); char *ctime_r(const time_t *, char *); struct tm *gmtime_r(const time_t *, struct tm *); struct tm *localtime_r(const time_t *, struct tm *); #endif # 164 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/time.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __XSI_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 166 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/time.h" 3 4 char *strptime(const char * __restrict, const char * __restrict, struct tm * __restrict); #endif # 169 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/time.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 171 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/time.h" 3 4 char *timezone(int, int); /* XXX XSI conflict */ void tzsetwall(void); time_t timelocal(struct tm * const); time_t timegm(struct tm * const); int timer_oshandle_np(timer_t timerid); time_t time2posix(time_t t); time_t posix2time(time_t t); #endif /* __BSD_VISIBLE */ # 179 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/time.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 200809 || defined(_XLOCALE_H_) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 181 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/time.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 181 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/time.h" 3 4 # 1 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/xlocale/_time.h" 1 3 4 /*- * SPDX-License-Identifier: BSD-2-Clause-FreeBSD * * Copyright (c) 2011, 2012 The FreeBSD Foundation * All rights reserved. * * This software was developed by David Chisnall under sponsorship from * the FreeBSD Foundation. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * $FreeBSD$ */ #ifndef _LOCALE_T_DEFINED #define _LOCALE_T_DEFINED typedef struct _xlocale *locale_t; #endif # 38 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/xlocale/_time.h" 3 4 /* * This file is included from both locale.h and xlocale.h. We need to expose * the declarations unconditionally if we are included from xlocale.h, but only * if we are in POSIX2008 mode if included from locale.h. */ #ifndef _XLOCALE_LOCALE1_H #define _XLOCALE_LOCALE1_H size_t strftime_l(char * __restrict, size_t, const char * __restrict, const struct tm * __restrict, locale_t) __strftimelike(3, 0); #endif /* _XLOCALE_LOCALE1_H */ # 51 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/xlocale/_time.h" 3 4 #ifdef _XLOCALE_H_ #ifndef _XLOCALE_LOCALE2_H #define _XLOCALE_LOCALE2_H char *strptime_l(const char * __restrict, const char * __restrict, struct tm * __restrict, locale_t); #endif /* _XLOCALE_LOCALE2_H */ # 60 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/xlocale/_time.h" 3 4 #endif /* _XLOCALE_H_ */ # 61 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/xlocale/_time.h" 3 4 # 182 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/time.h" 2 3 4 #endif # 183 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/time.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(__BSD_VISIBLE) || __ISO_C_VISIBLE >= 2011 || \ (defined(__cplusplus) && __cplusplus >= 201703) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 186 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/time.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 186 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/time.h" 3 4 # 187 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/time.h" 3 4 /* ISO/IEC 9899:201x 7.27.2.5 The timespec_get function */ #define TIME_UTC 1 /* time elapsed since epoch */ int timespec_get(struct timespec *ts, int base); #endif # 191 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/time.h" 3 4 __END_DECLS #endif /* !_TIME_H_ */ # 195 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/time.h" 3 4 # 590 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/time.h" 2 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 591 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/time.h" 3 4 # 592 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/time.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 592 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/time.h" 3 4 # 593 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/time.h" 3 4 __BEGIN_DECLS int setitimer(int, const struct itimerval *, struct itimerval *); int utimes(const char *, const struct timeval *); #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 599 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/time.h" 3 4 int adjtime(const struct timeval *, struct timeval *); int clock_getcpuclockid2(id_t, int, clockid_t *); int futimes(int, const struct timeval *); int futimesat(int, const char *, const struct timeval [2]); int lutimes(const char *, const struct timeval *); int settimeofday(const struct timeval *, const struct timezone *); #endif # 606 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/time.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __XSI_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 608 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/time.h" 3 4 int getitimer(int, struct itimerval *); int gettimeofday(struct timeval *, struct timezone *); #endif # 611 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/time.h" 3 4 __END_DECLS #endif /* !_KERNEL */ # 615 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/time.h" 3 4 #endif /* !_SYS_TIME_H_ */ # 617 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/time.h" 3 4 # 102 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stat.h" 2 3 4 #endif # 103 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stat.h" 3 4 #ifdef _KERNEL struct ostat { __uint16_t st_dev; /* inode's device */ __uint32_t st_ino; /* inode's number */ mode_t st_mode; /* inode protection mode */ __uint16_t st_nlink; /* number of hard links */ __uint16_t st_uid; /* user ID of the file's owner */ __uint16_t st_gid; /* group ID of the file's group */ __uint16_t st_rdev; /* device type */ __int32_t st_size; /* file size, in bytes */ struct timespec st_atim; /* time of last access */ struct timespec st_mtim; /* time of last data modification */ struct timespec st_ctim; /* time of last file status change */ __int32_t st_blksize; /* optimal blocksize for I/O */ __int32_t st_blocks; /* blocks allocated for file */ fflags_t st_flags; /* user defined flags for file */ __uint32_t st_gen; /* file generation number */ }; #endif # 123 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stat.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(_WANT_FREEBSD11_STAT) || defined(_KERNEL) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 125 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stat.h" 3 4 struct freebsd11_stat { __uint32_t st_dev; /* inode's device */ __uint32_t st_ino; /* inode's number */ mode_t st_mode; /* inode protection mode */ __uint16_t st_nlink; /* number of hard links */ uid_t st_uid; /* user ID of the file's owner */ gid_t st_gid; /* group ID of the file's group */ __uint32_t st_rdev; /* device type */ struct timespec st_atim; /* time of last access */ struct timespec st_mtim; /* time of last data modification */ struct timespec st_ctim; /* time of last file status change */ off_t st_size; /* file size, in bytes */ blkcnt_t st_blocks; /* blocks allocated for file */ blksize_t st_blksize; /* optimal blocksize for I/O */ fflags_t st_flags; /* user defined flags for file */ __uint32_t st_gen; /* file generation number */ __int32_t st_lspare; struct timespec st_birthtim; /* time of file creation */ /* * Explicitly pad st_birthtim to 16 bytes so that the size of * struct stat is backwards compatible. We use bitfields instead * of an array of chars so that this doesn't require a C99 compiler * to compile if the size of the padding is 0. We use 2 bitfields * to cover up to 64 bits on 32-bit machines. We assume that * CHAR_BIT is 8... */ unsigned int :(8 / 2) * (16 - (int)sizeof(struct timespec)); unsigned int :(8 / 2) * (16 - (int)sizeof(struct timespec)); }; #endif /* _WANT_FREEBSD11_STAT || _KERNEL */ # 155 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stat.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(__i386__) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 157 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stat.h" 3 4 #define __STAT_TIME_T_EXT 1 #endif # 159 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stat.h" 3 4 struct stat { dev_t st_dev; /* inode's device */ ino_t st_ino; /* inode's number */ nlink_t st_nlink; /* number of hard links */ mode_t st_mode; /* inode protection mode */ __int16_t st_padding0; uid_t st_uid; /* user ID of the file's owner */ gid_t st_gid; /* group ID of the file's group */ __int32_t st_padding1; dev_t st_rdev; /* device type */ #ifdef __STAT_TIME_T_EXT __int32_t st_atim_ext; #endif # 173 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stat.h" 3 4 struct timespec st_atim; /* time of last access */ #ifdef __STAT_TIME_T_EXT __int32_t st_mtim_ext; #endif # 177 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stat.h" 3 4 struct timespec st_mtim; /* time of last data modification */ #ifdef __STAT_TIME_T_EXT __int32_t st_ctim_ext; #endif # 181 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stat.h" 3 4 struct timespec st_ctim; /* time of last file status change */ #ifdef __STAT_TIME_T_EXT __int32_t st_btim_ext; #endif # 185 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stat.h" 3 4 struct timespec st_birthtim; /* time of file creation */ off_t st_size; /* file size, in bytes */ blkcnt_t st_blocks; /* blocks allocated for file */ blksize_t st_blksize; /* optimal blocksize for I/O */ fflags_t st_flags; /* user defined flags for file */ __uint64_t st_gen; /* file generation number */ __uint64_t st_spare[10]; }; #ifdef _KERNEL struct nstat { __uint32_t st_dev; /* inode's device */ __uint32_t st_ino; /* inode's number */ __uint32_t st_mode; /* inode protection mode */ __uint32_t st_nlink; /* number of hard links */ uid_t st_uid; /* user ID of the file's owner */ gid_t st_gid; /* group ID of the file's group */ __uint32_t st_rdev; /* device type */ struct timespec st_atim; /* time of last access */ struct timespec st_mtim; /* time of last data modification */ struct timespec st_ctim; /* time of last file status change */ off_t st_size; /* file size, in bytes */ blkcnt_t st_blocks; /* blocks allocated for file */ blksize_t st_blksize; /* optimal blocksize for I/O */ fflags_t st_flags; /* user defined flags for file */ __uint32_t st_gen; /* file generation number */ struct timespec st_birthtim; /* time of file creation */ /* * See comment in the definition of struct freebsd11_stat * above about the following padding. */ unsigned int :(8 / 2) * (16 - (int)sizeof(struct timespec)); unsigned int :(8 / 2) * (16 - (int)sizeof(struct timespec)); }; #endif # 220 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stat.h" 3 4 #ifndef _KERNEL #define st_atime st_atim.tv_sec #define st_mtime st_mtim.tv_sec #define st_ctime st_ctim.tv_sec #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 226 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stat.h" 3 4 #define st_birthtime st_birthtim.tv_sec #define st_atimensec st_atim.tv_nsec #define st_mtimensec st_mtim.tv_nsec #define st_ctimensec st_ctim.tv_nsec #define st_birthtimensec st_birthtim.tv_nsec #endif # 232 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stat.h" 3 4 /* For compatibility. */ #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 235 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stat.h" 3 4 #define st_atimespec st_atim #define st_mtimespec st_mtim #define st_ctimespec st_ctim #define st_birthtimespec st_birthtim #endif # 240 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stat.h" 3 4 #endif /* !_KERNEL */ # 241 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stat.h" 3 4 #define S_ISUID 0004000 /* set user id on execution */ #define S_ISGID 0002000 /* set group id on execution */ #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 245 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stat.h" 3 4 #define S_ISTXT 0001000 /* sticky bit */ #endif # 247 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stat.h" 3 4 #define S_IRWXU 0000700 /* RWX mask for owner */ #define S_IRUSR 0000400 /* R for owner */ #define S_IWUSR 0000200 /* W for owner */ #define S_IXUSR 0000100 /* X for owner */ #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 254 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stat.h" 3 4 #define S_IREAD S_IRUSR #define S_IWRITE S_IWUSR #define S_IEXEC S_IXUSR #endif # 258 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stat.h" 3 4 #define S_IRWXG 0000070 /* RWX mask for group */ #define S_IRGRP 0000040 /* R for group */ #define S_IWGRP 0000020 /* W for group */ #define S_IXGRP 0000010 /* X for group */ #define S_IRWXO 0000007 /* RWX mask for other */ #define S_IROTH 0000004 /* R for other */ #define S_IWOTH 0000002 /* W for other */ #define S_IXOTH 0000001 /* X for other */ #if 0 /* disabled by -frewrite-includes */ #if __XSI_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 270 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stat.h" 3 4 #define S_IFMT 0170000 /* type of file mask */ #define S_IFIFO 0010000 /* named pipe (fifo) */ #define S_IFCHR 0020000 /* character special */ #define S_IFDIR 0040000 /* directory */ #define S_IFBLK 0060000 /* block special */ #define S_IFREG 0100000 /* regular */ #define S_IFLNK 0120000 /* symbolic link */ #define S_IFSOCK 0140000 /* socket */ #define S_ISVTX 0001000 /* save swapped text even after use */ #endif # 280 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stat.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 281 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stat.h" 3 4 #define S_IFWHT 0160000 /* whiteout */ #endif # 283 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stat.h" 3 4 #define S_ISDIR(m) (((m) & 0170000) == 0040000) /* directory */ #define S_ISCHR(m) (((m) & 0170000) == 0020000) /* char special */ #define S_ISBLK(m) (((m) & 0170000) == 0060000) /* block special */ #define S_ISREG(m) (((m) & 0170000) == 0100000) /* regular file */ #define S_ISFIFO(m) (((m) & 0170000) == 0010000) /* fifo or socket */ #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 200112 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 290 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stat.h" 3 4 #define S_ISLNK(m) (((m) & 0170000) == 0120000) /* symbolic link */ #define S_ISSOCK(m) (((m) & 0170000) == 0140000) /* socket */ #endif # 293 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stat.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 294 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stat.h" 3 4 #define S_ISWHT(m) (((m) & 0170000) == 0160000) /* whiteout */ #endif # 296 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stat.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 298 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stat.h" 3 4 #define ACCESSPERMS (S_IRWXU|S_IRWXG|S_IRWXO) /* 0777 */ /* 7777 */ #define ALLPERMS (S_ISUID|S_ISGID|S_ISTXT|S_IRWXU|S_IRWXG|S_IRWXO) /* 0666 */ #define DEFFILEMODE (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH) #define S_BLKSIZE 512 /* block size used in the stat struct */ /* * Definitions of flags stored in file flags word. * * Super-user and owner changeable flags. */ #define UF_SETTABLE 0x0000ffff /* mask of owner changeable flags */ #define UF_NODUMP 0x00000001 /* do not dump file */ #define UF_IMMUTABLE 0x00000002 /* file may not be changed */ #define UF_APPEND 0x00000004 /* writes to file may only append */ #define UF_OPAQUE 0x00000008 /* directory is opaque wrt. union */ #define UF_NOUNLINK 0x00000010 /* file may not be removed or renamed */ /* * These two bits are defined in MacOS X. They are not currently used in * FreeBSD. */ #if 0 /* disabled by -frewrite-includes */ #if 0 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 322 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stat.h" 3 4 #define UF_COMPRESSED 0x00000020 /* file is compressed */ #define UF_TRACKED 0x00000040 /* renames and deletes are tracked */ #endif # 325 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stat.h" 3 4 #define UF_SYSTEM 0x00000080 /* Windows system file bit */ #define UF_SPARSE 0x00000100 /* sparse file */ #define UF_OFFLINE 0x00000200 /* file is offline */ #define UF_REPARSE 0x00000400 /* Windows reparse point file bit */ #define UF_ARCHIVE 0x00000800 /* file needs to be archived */ #define UF_READONLY 0x00001000 /* Windows readonly file bit */ /* This is the same as the MacOS X definition of UF_HIDDEN. */ #define UF_HIDDEN 0x00008000 /* file is hidden */ /* * Super-user changeable flags. */ #define SF_SETTABLE 0xffff0000 /* mask of superuser changeable flags */ #define SF_ARCHIVED 0x00010000 /* file is archived */ #define SF_IMMUTABLE 0x00020000 /* file may not be changed */ #define SF_APPEND 0x00040000 /* writes to file may only append */ #define SF_NOUNLINK 0x00100000 /* file may not be removed or renamed */ #define SF_SNAPSHOT 0x00200000 /* snapshot inode */ #ifdef _KERNEL /* * Shorthand abbreviations of above. */ #define OPAQUE (UF_OPAQUE) #define APPEND (UF_APPEND | SF_APPEND) #define IMMUTABLE (UF_IMMUTABLE | SF_IMMUTABLE) #define NOUNLINK (UF_NOUNLINK | SF_NOUNLINK) #endif # 354 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stat.h" 3 4 #endif /* __BSD_VISIBLE */ # 356 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stat.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 200809 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 358 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stat.h" 3 4 #define UTIME_NOW -1 #define UTIME_OMIT -2 #endif # 361 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stat.h" 3 4 #ifndef _KERNEL __BEGIN_DECLS #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 365 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stat.h" 3 4 int chflags(const char *, unsigned long); int chflagsat(int, const char *, unsigned long, int); #endif # 368 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stat.h" 3 4 int chmod(const char *, mode_t); #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 370 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stat.h" 3 4 int fchflags(int, unsigned long); #endif # 372 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stat.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 200112 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 373 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stat.h" 3 4 int fchmod(int, mode_t); #endif # 375 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stat.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 200809 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 376 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stat.h" 3 4 int fchmodat(int, const char *, mode_t, int); int futimens(int fd, const struct timespec times[2]); int utimensat(int fd, const char *path, const struct timespec times[2], int flag); #endif # 381 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stat.h" 3 4 int fstat(int, struct stat *); #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 383 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stat.h" 3 4 int lchflags(const char *, unsigned long); int lchmod(const char *, mode_t); #endif # 386 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stat.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 200112 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 387 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stat.h" 3 4 int lstat(const char * __restrict, struct stat * __restrict); #endif # 389 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stat.h" 3 4 int mkdir(const char *, mode_t); int mkfifo(const char *, mode_t); #if 0 /* disabled by -frewrite-includes */ #if !defined(_MKNOD_DECLARED) && __XSI_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 392 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stat.h" 3 4 int mknod(const char *, mode_t, dev_t); #define _MKNOD_DECLARED #endif # 395 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stat.h" 3 4 int stat(const char * __restrict, struct stat * __restrict); mode_t umask(mode_t); #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 200809 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 398 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stat.h" 3 4 int fstatat(int, const char *, struct stat *, int); int mkdirat(int, const char *, mode_t); int mkfifoat(int, const char *, mode_t); #endif # 402 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stat.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __XSI_VISIBLE >= 700 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 403 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stat.h" 3 4 int mknodat(int, const char *, mode_t, dev_t); #endif # 405 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stat.h" 3 4 __END_DECLS #endif /* !_KERNEL */ # 407 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stat.h" 3 4 #endif /* !_SYS_STAT_H_ */ # 409 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stat.h" 3 4 # 70 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" 2 #if 0 /* disabled by -frewrite-includes */ #if HAVE_UNISTD_H #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 72 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 72 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" # 1 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/unistd.h" 1 3 4 /*- * SPDX-License-Identifier: BSD-3-Clause * * Copyright (c) 1991, 1993, 1994 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * @(#)unistd.h 8.12 (Berkeley) 4/27/95 * $FreeBSD$ */ #ifndef _UNISTD_H_ #define _UNISTD_H_ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 38 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/unistd.h" 3 4 # 39 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/unistd.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include /* XXX adds too much pollution. */ #endif /* expanded by -frewrite-includes */ # 39 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/unistd.h" 3 4 # 40 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/unistd.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 40 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/unistd.h" 3 4 # 1 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/unistd.h" 1 3 4 /*- * SPDX-License-Identifier: BSD-3-Clause * * Copyright (c) 1989, 1993 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * @(#)unistd.h 8.2 (Berkeley) 1/7/94 * $FreeBSD$ */ #ifndef _SYS_UNISTD_H_ #define _SYS_UNISTD_H_ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 38 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/unistd.h" 3 4 # 39 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/unistd.h" 3 4 /* * POSIX options and option groups we unconditionally do or don't * implement. Those options which are implemented (or not) entirely * in user mode are defined in . Please keep this list in * alphabetical order. * * Anything which is defined as zero below **must** have an * implementation for the corresponding sysconf() which is able to * determine conclusively whether or not the feature is supported. * Anything which is defined as other than -1 below **must** have * complete headers, types, and function declarations as specified by * the POSIX standard; however, if the relevant sysconf() function * returns -1, the functions may be stubbed out. */ #define _POSIX_ADVISORY_INFO 200112L #define _POSIX_ASYNCHRONOUS_IO 200112L #define _POSIX_CHOWN_RESTRICTED 1 #define _POSIX_CLOCK_SELECTION (-1) #define _POSIX_CPUTIME 200112L #define _POSIX_FSYNC 200112L #define _POSIX_IPV6 0 #define _POSIX_JOB_CONTROL 1 #define _POSIX_MAPPED_FILES 200112L #define _POSIX_MEMLOCK (-1) #define _POSIX_MEMLOCK_RANGE 200112L #define _POSIX_MEMORY_PROTECTION 200112L #define _POSIX_MESSAGE_PASSING 200112L #define _POSIX_MONOTONIC_CLOCK 200112L #define _POSIX_NO_TRUNC 1 #define _POSIX_PRIORITIZED_IO (-1) #define _POSIX_PRIORITY_SCHEDULING 0 #define _POSIX_RAW_SOCKETS 200112L #define _POSIX_REALTIME_SIGNALS 200112L #define _POSIX_SEMAPHORES 200112L #define _POSIX_SHARED_MEMORY_OBJECTS 200112L #define _POSIX_SPORADIC_SERVER (-1) #define _POSIX_SYNCHRONIZED_IO (-1) #define _POSIX_TIMEOUTS 200112L #define _POSIX_TIMERS 200112L #define _POSIX_TYPED_MEMORY_OBJECTS (-1) #define _POSIX_VDISABLE 0xff #if 0 /* disabled by -frewrite-includes */ #if __XSI_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 83 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/unistd.h" 3 4 #define _XOPEN_SHM 1 #define _XOPEN_STREAMS (-1) #endif # 86 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/unistd.h" 3 4 /* * Although we have saved user/group IDs, we do not use them in setuid * as described in POSIX 1003.1, because the feature does not work for * root. We use the saved IDs in seteuid/setegid, which are not currently * part of the POSIX 1003.1 specification. XXX revisit for 1003.1-2001 * as this is now mandatory. */ #ifdef _NOT_AVAILABLE #define _POSIX_SAVED_IDS 1 /* saved set-user-ID and set-group-ID */ #endif # 97 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/unistd.h" 3 4 /* Define the POSIX.1 version we target for compliance. */ #define _POSIX_VERSION 200112L /* access function */ #define F_OK 0 /* test for existence of file */ #define X_OK 0x01 /* test for execute or search permission */ #define W_OK 0x02 /* test for write permission */ #define R_OK 0x04 /* test for read permission */ /* whence values for lseek(2) */ #ifndef SEEK_SET #define SEEK_SET 0 /* set file offset to offset */ #define SEEK_CUR 1 /* set file offset to current plus offset */ #define SEEK_END 2 /* set file offset to EOF plus offset */ #endif # 113 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/unistd.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 114 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/unistd.h" 3 4 #define SEEK_DATA 3 /* set file offset to next data past offset */ #define SEEK_HOLE 4 /* set file offset to next hole past offset */ #endif # 117 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/unistd.h" 3 4 #ifndef _POSIX_SOURCE /* whence values for lseek(2); renamed by POSIX 1003.1 */ #define L_SET SEEK_SET #define L_INCR SEEK_CUR #define L_XTND SEEK_END #endif # 124 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/unistd.h" 3 4 /* configurable pathname variables */ #define _PC_LINK_MAX 1 #define _PC_MAX_CANON 2 #define _PC_MAX_INPUT 3 #define _PC_NAME_MAX 4 #define _PC_PATH_MAX 5 #define _PC_PIPE_BUF 6 #define _PC_CHOWN_RESTRICTED 7 #define _PC_NO_TRUNC 8 #define _PC_VDISABLE 9 #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 199309 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 137 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/unistd.h" 3 4 #define _PC_ASYNC_IO 53 #define _PC_PRIO_IO 54 #define _PC_SYNC_IO 55 #endif # 141 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/unistd.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 200112 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 143 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/unistd.h" 3 4 #define _PC_ALLOC_SIZE_MIN 10 #define _PC_FILESIZEBITS 12 #define _PC_REC_INCR_XFER_SIZE 14 #define _PC_REC_MAX_XFER_SIZE 15 #define _PC_REC_MIN_XFER_SIZE 16 #define _PC_REC_XFER_ALIGN 17 #define _PC_SYMLINK_MAX 18 #endif # 151 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/unistd.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 153 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/unistd.h" 3 4 #define _PC_ACL_EXTENDED 59 #define _PC_ACL_PATH_MAX 60 #define _PC_CAP_PRESENT 61 #define _PC_INF_PRESENT 62 #define _PC_MAC_PRESENT 63 #define _PC_ACL_NFS4 64 #define _PC_DEALLOC_PRESENT 65 #endif # 161 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/unistd.h" 3 4 /* From OpenSolaris, used by SEEK_DATA/SEEK_HOLE. */ #define _PC_MIN_HOLE_SIZE 21 #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 166 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/unistd.h" 3 4 /* * rfork() options. * * XXX currently, some operations without RFPROC set are not supported. */ #define RFNAMEG (1<<0) /* UNIMPL new plan9 `name space' */ #define RFENVG (1<<1) /* UNIMPL copy plan9 `env space' */ #define RFFDG (1<<2) /* copy fd table */ #define RFNOTEG (1<<3) /* UNIMPL create new plan9 `note group' */ #define RFPROC (1<<4) /* change child (else changes curproc) */ #define RFMEM (1<<5) /* share `address space' */ #define RFNOWAIT (1<<6) /* give child to init */ #define RFCNAMEG (1<<10) /* UNIMPL zero plan9 `name space' */ #define RFCENVG (1<<11) /* UNIMPL zero plan9 `env space' */ #define RFCFDG (1<<12) /* close all fds, zero fd table */ #define RFTHREAD (1<<13) /* enable kernel thread support */ #define RFSIGSHARE (1<<14) /* share signal handlers */ #define RFLINUXTHPN (1<<16) /* do linux clone exit parent notification */ #define RFSTOPPED (1<<17) /* leave child in a stopped state */ #define RFHIGHPID (1<<18) /* use a pid higher than 10 (idleproc) */ #define RFTSIGZMB (1<<19) /* select signal for exit parent notification */ #define RFTSIGSHIFT 20 /* selected signal number is in bits 20-27 */ #define RFTSIGMASK 0xFF #define RFTSIGNUM(flags) (((flags) >> RFTSIGSHIFT) & RFTSIGMASK) #define RFTSIGFLAGS(signum) ((signum) << RFTSIGSHIFT) #define RFPROCDESC (1<<28) /* return a process descriptor */ /* kernel: parent sleeps until child exits (vfork) */ #define RFPPWAIT (1<<31) /* user: vfork(2) semantics, clear signals */ #define RFSPAWN (1U<<31) #define RFFLAGS (RFFDG | RFPROC | RFMEM | RFNOWAIT | RFCFDG | \ RFTHREAD | RFSIGSHARE | RFLINUXTHPN | RFSTOPPED | RFHIGHPID | RFTSIGZMB | \ RFPROCDESC | RFSPAWN | RFPPWAIT) #define RFKERNELONLY (RFSTOPPED | RFHIGHPID | RFPROCDESC) #endif /* __BSD_VISIBLE */ # 202 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/unistd.h" 3 4 #endif /* !_SYS_UNISTD_H_ */ # 204 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/unistd.h" 3 4 # 41 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/unistd.h" 2 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 41 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/unistd.h" 3 4 # 42 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/unistd.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 42 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/unistd.h" 3 4 # 43 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/unistd.h" 3 4 #ifndef _GID_T_DECLARED typedef __gid_t gid_t; #define _GID_T_DECLARED #endif # 48 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/unistd.h" 3 4 #ifndef _OFF_T_DECLARED typedef __off_t off_t; #define _OFF_T_DECLARED #endif # 53 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/unistd.h" 3 4 #ifndef _PID_T_DECLARED typedef __pid_t pid_t; #define _PID_T_DECLARED #endif # 58 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/unistd.h" 3 4 #ifndef _SIZE_T_DECLARED typedef __size_t size_t; #define _SIZE_T_DECLARED #endif # 63 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/unistd.h" 3 4 #ifndef _SSIZE_T_DECLARED typedef __ssize_t ssize_t; #define _SSIZE_T_DECLARED #endif # 68 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/unistd.h" 3 4 #ifndef _UID_T_DECLARED typedef __uid_t uid_t; #define _UID_T_DECLARED #endif # 73 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/unistd.h" 3 4 #ifndef _USECONDS_T_DECLARED typedef __useconds_t useconds_t; #define _USECONDS_T_DECLARED #endif # 78 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/unistd.h" 3 4 #define STDIN_FILENO 0 /* standard input file descriptor */ #define STDOUT_FILENO 1 /* standard output file descriptor */ #define STDERR_FILENO 2 /* standard error file descriptor */ #if 0 /* disabled by -frewrite-includes */ #if __XSI_VISIBLE || __POSIX_VISIBLE >= 200112 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 84 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/unistd.h" 3 4 #define F_ULOCK 0 /* unlock locked section */ #define F_LOCK 1 /* lock a section for exclusive use */ #define F_TLOCK 2 /* test and lock a section for exclusive use */ #define F_TEST 3 /* test a section for locks by other procs */ #endif # 89 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/unistd.h" 3 4 /* * POSIX options and option groups we unconditionally do or don't * implement. This list includes those options which are exclusively * implemented (or not) in user mode. Please keep this list in * alphabetical order. * * Anything which is defined as zero below **must** have an * implementation for the corresponding sysconf() which is able to * determine conclusively whether or not the feature is supported. * Anything which is defined as other than -1 below **must** have * complete headers, types, and function declarations as specified by * the POSIX standard; however, if the relevant sysconf() function * returns -1, the functions may be stubbed out. */ #define _POSIX_BARRIERS 200112L #define _POSIX_CPUTIME 200112L #define _POSIX_READER_WRITER_LOCKS 200112L #define _POSIX_REGEXP 1 #define _POSIX_SHELL 1 #define _POSIX_SPAWN 200112L #define _POSIX_SPIN_LOCKS 200112L #define _POSIX_THREAD_ATTR_STACKADDR 200112L #define _POSIX_THREAD_ATTR_STACKSIZE 200112L #define _POSIX_THREAD_CPUTIME 200112L #define _POSIX_THREAD_PRIO_INHERIT 200112L #define _POSIX_THREAD_PRIO_PROTECT 200112L #define _POSIX_THREAD_PRIORITY_SCHEDULING 200112L #define _POSIX_THREAD_PROCESS_SHARED 200112L #define _POSIX_THREAD_SAFE_FUNCTIONS -1 #define _POSIX_THREAD_SPORADIC_SERVER -1 #define _POSIX_THREADS 200112L #define _POSIX_TRACE -1 #define _POSIX_TRACE_EVENT_FILTER -1 #define _POSIX_TRACE_INHERIT -1 #define _POSIX_TRACE_LOG -1 #define _POSIX2_C_BIND 200112L /* mandatory */ #define _POSIX2_C_DEV -1 /* need c99 utility */ #define _POSIX2_CHAR_TERM 1 #define _POSIX2_FORT_DEV -1 /* need fort77 utility */ #define _POSIX2_FORT_RUN 200112L #define _POSIX2_LOCALEDEF -1 #define _POSIX2_PBS -1 #define _POSIX2_PBS_ACCOUNTING -1 #define _POSIX2_PBS_CHECKPOINT -1 #define _POSIX2_PBS_LOCATE -1 #define _POSIX2_PBS_MESSAGE -1 #define _POSIX2_PBS_TRACK -1 #define _POSIX2_SW_DEV -1 /* XXX ??? */ #define _POSIX2_UPE 200112L #define _V6_ILP32_OFF32 -1 #define _V6_ILP32_OFFBIG 0 #define _V6_LP64_OFF64 0 #define _V6_LPBIG_OFFBIG -1 #if 0 /* disabled by -frewrite-includes */ #if __XSI_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 145 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/unistd.h" 3 4 #define _XOPEN_CRYPT -1 /* XXX ??? */ #define _XOPEN_ENH_I18N -1 /* mandatory in XSI */ #define _XOPEN_LEGACY -1 #define _XOPEN_REALTIME -1 #define _XOPEN_REALTIME_THREADS -1 #define _XOPEN_UNIX -1 #endif # 152 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/unistd.h" 3 4 /* Define the POSIX.2 version we target for compliance. */ #define _POSIX2_VERSION 199212L /* * POSIX-style system configuration variable accessors (for the * sysconf function). The kernel does not directly implement the * sysconf() interface; rather, a C library stub translates references * to sysconf() into calls to sysctl() using a giant switch statement. * Those that are marked `user' are implemented entirely in the C * library and never query the kernel. pathconf() is implemented * directly by the kernel so those are not defined here. */ #define _SC_ARG_MAX 1 #define _SC_CHILD_MAX 2 #define _SC_CLK_TCK 3 #define _SC_NGROUPS_MAX 4 #define _SC_OPEN_MAX 5 #define _SC_JOB_CONTROL 6 #define _SC_SAVED_IDS 7 #define _SC_VERSION 8 #define _SC_BC_BASE_MAX 9 /* user */ #define _SC_BC_DIM_MAX 10 /* user */ #define _SC_BC_SCALE_MAX 11 /* user */ #define _SC_BC_STRING_MAX 12 /* user */ #define _SC_COLL_WEIGHTS_MAX 13 /* user */ #define _SC_EXPR_NEST_MAX 14 /* user */ #define _SC_LINE_MAX 15 /* user */ #define _SC_RE_DUP_MAX 16 /* user */ #define _SC_2_VERSION 17 /* user */ #define _SC_2_C_BIND 18 /* user */ #define _SC_2_C_DEV 19 /* user */ #define _SC_2_CHAR_TERM 20 /* user */ #define _SC_2_FORT_DEV 21 /* user */ #define _SC_2_FORT_RUN 22 /* user */ #define _SC_2_LOCALEDEF 23 /* user */ #define _SC_2_SW_DEV 24 /* user */ #define _SC_2_UPE 25 /* user */ #define _SC_STREAM_MAX 26 /* user */ #define _SC_TZNAME_MAX 27 /* user */ #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 199309 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 194 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/unistd.h" 3 4 #define _SC_ASYNCHRONOUS_IO 28 #define _SC_MAPPED_FILES 29 #define _SC_MEMLOCK 30 #define _SC_MEMLOCK_RANGE 31 #define _SC_MEMORY_PROTECTION 32 #define _SC_MESSAGE_PASSING 33 #define _SC_PRIORITIZED_IO 34 #define _SC_PRIORITY_SCHEDULING 35 #define _SC_REALTIME_SIGNALS 36 #define _SC_SEMAPHORES 37 #define _SC_FSYNC 38 #define _SC_SHARED_MEMORY_OBJECTS 39 #define _SC_SYNCHRONIZED_IO 40 #define _SC_TIMERS 41 #define _SC_AIO_LISTIO_MAX 42 #define _SC_AIO_MAX 43 #define _SC_AIO_PRIO_DELTA_MAX 44 #define _SC_DELAYTIMER_MAX 45 #define _SC_MQ_OPEN_MAX 46 #define _SC_PAGESIZE 47 #define _SC_RTSIG_MAX 48 #define _SC_SEM_NSEMS_MAX 49 #define _SC_SEM_VALUE_MAX 50 #define _SC_SIGQUEUE_MAX 51 #define _SC_TIMER_MAX 52 #endif # 220 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/unistd.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 200112 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 222 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/unistd.h" 3 4 #define _SC_2_PBS 59 /* user */ #define _SC_2_PBS_ACCOUNTING 60 /* user */ #define _SC_2_PBS_CHECKPOINT 61 /* user */ #define _SC_2_PBS_LOCATE 62 /* user */ #define _SC_2_PBS_MESSAGE 63 /* user */ #define _SC_2_PBS_TRACK 64 /* user */ #define _SC_ADVISORY_INFO 65 #define _SC_BARRIERS 66 /* user */ #define _SC_CLOCK_SELECTION 67 #define _SC_CPUTIME 68 #define _SC_FILE_LOCKING 69 #define _SC_GETGR_R_SIZE_MAX 70 /* user */ #define _SC_GETPW_R_SIZE_MAX 71 /* user */ #define _SC_HOST_NAME_MAX 72 #define _SC_LOGIN_NAME_MAX 73 #define _SC_MONOTONIC_CLOCK 74 #define _SC_MQ_PRIO_MAX 75 #define _SC_READER_WRITER_LOCKS 76 /* user */ #define _SC_REGEXP 77 /* user */ #define _SC_SHELL 78 /* user */ #define _SC_SPAWN 79 /* user */ #define _SC_SPIN_LOCKS 80 /* user */ #define _SC_SPORADIC_SERVER 81 #define _SC_THREAD_ATTR_STACKADDR 82 /* user */ #define _SC_THREAD_ATTR_STACKSIZE 83 /* user */ #define _SC_THREAD_CPUTIME 84 /* user */ #define _SC_THREAD_DESTRUCTOR_ITERATIONS 85 /* user */ #define _SC_THREAD_KEYS_MAX 86 /* user */ #define _SC_THREAD_PRIO_INHERIT 87 /* user */ #define _SC_THREAD_PRIO_PROTECT 88 /* user */ #define _SC_THREAD_PRIORITY_SCHEDULING 89 /* user */ #define _SC_THREAD_PROCESS_SHARED 90 /* user */ #define _SC_THREAD_SAFE_FUNCTIONS 91 /* user */ #define _SC_THREAD_SPORADIC_SERVER 92 /* user */ #define _SC_THREAD_STACK_MIN 93 /* user */ #define _SC_THREAD_THREADS_MAX 94 /* user */ #define _SC_TIMEOUTS 95 /* user */ #define _SC_THREADS 96 /* user */ #define _SC_TRACE 97 /* user */ #define _SC_TRACE_EVENT_FILTER 98 /* user */ #define _SC_TRACE_INHERIT 99 /* user */ #define _SC_TRACE_LOG 100 /* user */ #define _SC_TTY_NAME_MAX 101 /* user */ #define _SC_TYPED_MEMORY_OBJECTS 102 #define _SC_V6_ILP32_OFF32 103 /* user */ #define _SC_V6_ILP32_OFFBIG 104 /* user */ #define _SC_V6_LP64_OFF64 105 /* user */ #define _SC_V6_LPBIG_OFFBIG 106 /* user */ #define _SC_IPV6 118 #define _SC_RAW_SOCKETS 119 #define _SC_SYMLOOP_MAX 120 #endif # 274 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/unistd.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __XSI_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 276 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/unistd.h" 3 4 #define _SC_ATEXIT_MAX 107 /* user */ #define _SC_IOV_MAX 56 #define _SC_PAGE_SIZE _SC_PAGESIZE #define _SC_XOPEN_CRYPT 108 /* user */ #define _SC_XOPEN_ENH_I18N 109 /* user */ #define _SC_XOPEN_LEGACY 110 /* user */ #define _SC_XOPEN_REALTIME 111 #define _SC_XOPEN_REALTIME_THREADS 112 #define _SC_XOPEN_SHM 113 #define _SC_XOPEN_STREAMS 114 #define _SC_XOPEN_UNIX 115 #define _SC_XOPEN_VERSION 116 #define _SC_XOPEN_XCU_VERSION 117 /* user */ #endif # 290 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/unistd.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 292 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/unistd.h" 3 4 #define _SC_NPROCESSORS_CONF 57 #define _SC_NPROCESSORS_ONLN 58 #define _SC_CPUSET_SIZE 122 #endif # 296 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/unistd.h" 3 4 /* Extensions found in Solaris and Linux. */ #define _SC_PHYS_PAGES 121 /* Keys for the confstr(3) function. */ #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 199209 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 302 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/unistd.h" 3 4 #define _CS_PATH 1 /* default value of PATH */ #endif # 304 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/unistd.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 200112 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 306 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/unistd.h" 3 4 #define _CS_POSIX_V6_ILP32_OFF32_CFLAGS 2 #define _CS_POSIX_V6_ILP32_OFF32_LDFLAGS 3 #define _CS_POSIX_V6_ILP32_OFF32_LIBS 4 #define _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS 5 #define _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS 6 #define _CS_POSIX_V6_ILP32_OFFBIG_LIBS 7 #define _CS_POSIX_V6_LP64_OFF64_CFLAGS 8 #define _CS_POSIX_V6_LP64_OFF64_LDFLAGS 9 #define _CS_POSIX_V6_LP64_OFF64_LIBS 10 #define _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS 11 #define _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS 12 #define _CS_POSIX_V6_LPBIG_OFFBIG_LIBS 13 #define _CS_POSIX_V6_WIDTH_RESTRICTED_ENVS 14 #endif # 320 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/unistd.h" 3 4 __BEGIN_DECLS /* 1003.1-1990 */ void _exit(int) __dead2; int access(const char *, int); unsigned int alarm(unsigned int); int chdir(const char *); int chown(const char *, uid_t, gid_t); int close(int); void closefrom(int); int dup(int); int dup2(int, int); int execl(const char *, const char *, ...) __null_sentinel; int execle(const char *, const char *, ...); int execlp(const char *, const char *, ...) __null_sentinel; int execv(const char *, char * const *); int execve(const char *, char * const *, char * const *); int execvp(const char *, char * const *); pid_t fork(void); long fpathconf(int, int); char *getcwd(char *, size_t); gid_t getegid(void); uid_t geteuid(void); gid_t getgid(void); int getgroups(int, gid_t []); char *getlogin(void); pid_t getpgrp(void); pid_t getpid(void); pid_t getppid(void); uid_t getuid(void); int isatty(int); int link(const char *, const char *); #ifndef _LSEEK_DECLARED #define _LSEEK_DECLARED off_t lseek(int, off_t, int); #endif # 356 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/unistd.h" 3 4 long pathconf(const char *, int); int pause(void); int pipe(int *); ssize_t read(int, void *, size_t); int rmdir(const char *); int setgid(gid_t); int setpgid(pid_t, pid_t); pid_t setsid(void); int setuid(uid_t); unsigned int sleep(unsigned int); long sysconf(int); pid_t tcgetpgrp(int); int tcsetpgrp(int, pid_t); char *ttyname(int); int ttyname_r(int, char *, size_t); int unlink(const char *); ssize_t write(int, const void *, size_t); /* 1003.2-1992 */ #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 199209 || __XSI_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 376 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/unistd.h" 3 4 size_t confstr(int, char *, size_t); #ifndef _GETOPT_DECLARED #define _GETOPT_DECLARED int getopt(int, char * const [], const char *); extern char *optarg; /* getopt(3) external variables */ extern int optind, opterr, optopt; #endif /* _GETOPT_DECLARED */ # 384 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/unistd.h" 3 4 #endif # 385 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/unistd.h" 3 4 /* ISO/IEC 9945-1: 1996 */ #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 199506 || __XSI_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 388 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/unistd.h" 3 4 int fsync(int); int fdatasync(int); /* * ftruncate() was in the POSIX Realtime Extension (it's used for shared * memory), but truncate() was not. */ #ifndef _FTRUNCATE_DECLARED #define _FTRUNCATE_DECLARED int ftruncate(int, off_t); #endif # 399 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/unistd.h" 3 4 #endif # 400 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/unistd.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 199506 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 402 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/unistd.h" 3 4 int getlogin_r(char *, size_t); #endif # 404 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/unistd.h" 3 4 /* 1003.1-2001 */ #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 200112 || __XSI_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 407 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/unistd.h" 3 4 int fchown(int, uid_t, gid_t); ssize_t readlink(const char * __restrict, char * __restrict, size_t); #endif # 410 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/unistd.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 200112 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 411 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/unistd.h" 3 4 int gethostname(char *, size_t); int setegid(gid_t); int seteuid(uid_t); #endif # 415 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/unistd.h" 3 4 /* 1003.1-2008 */ #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 200809 || __XSI_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 418 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/unistd.h" 3 4 int getsid(pid_t _pid); int fchdir(int); int getpgid(pid_t _pid); int lchown(const char *, uid_t, gid_t); ssize_t pread(int, void *, size_t, off_t); ssize_t pwrite(int, const void *, size_t, off_t); /* See comment at ftruncate() above. */ #ifndef _TRUNCATE_DECLARED #define _TRUNCATE_DECLARED int truncate(const char *, off_t); #endif # 430 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/unistd.h" 3 4 #endif /* __POSIX_VISIBLE >= 200809 || __XSI_VISIBLE */ # 431 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/unistd.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 200809 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 433 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/unistd.h" 3 4 int faccessat(int, const char *, int, int); int fchownat(int, const char *, uid_t, gid_t, int); int fexecve(int, char *const [], char *const []); int linkat(int, const char *, int, const char *, int); ssize_t readlinkat(int, const char * __restrict, char * __restrict, size_t); int symlinkat(const char *, int, const char *); int unlinkat(int, const char *, int); #endif /* __POSIX_VISIBLE >= 200809 */ # 441 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/unistd.h" 3 4 /* * symlink() was originally in POSIX.1a, which was withdrawn after * being overtaken by events (1003.1-2001). It was in XPG4.2, and of * course has been in BSD since 4.2. */ #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 200112 || __XSI_VISIBLE >= 402 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 448 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/unistd.h" 3 4 int symlink(const char * __restrict, const char * __restrict); #endif # 450 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/unistd.h" 3 4 /* X/Open System Interfaces */ #if 0 /* disabled by -frewrite-includes */ #if __XSI_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 453 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/unistd.h" 3 4 char *crypt(const char *, const char *); long gethostid(void); int lockf(int, int, off_t); int nice(int); int setregid(gid_t, gid_t); int setreuid(uid_t, uid_t); #ifndef _SWAB_DECLARED #define _SWAB_DECLARED void swab(const void * __restrict, void * __restrict, ssize_t); #endif /* _SWAB_DECLARED */ # 464 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/unistd.h" 3 4 void sync(void); #endif /* __XSI_VISIBLE */ # 468 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/unistd.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if (__XSI_VISIBLE && __XSI_VISIBLE <= 500) || __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 470 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/unistd.h" 3 4 int brk(const void *); int chroot(const char *); int getdtablesize(void); int getpagesize(void) __pure2; char *getpass(const char *); void *sbrk(intptr_t); #endif # 477 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/unistd.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if (__XSI_VISIBLE && __XSI_VISIBLE <= 600) || __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 479 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/unistd.h" 3 4 char *getwd(char *); /* obsoleted by getcwd() */ useconds_t ualarm(useconds_t, useconds_t); int usleep(useconds_t); pid_t vfork(void) __returns_twice; #endif # 485 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/unistd.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 487 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/unistd.h" 3 4 struct timeval; /* select(2) */ struct crypt_data { int initialized; /* For compatibility with glibc. */ char __buf[256]; /* Buffer returned by crypt_r(). */ }; int acct(const char *); int async_daemon(void); int check_utility_compat(const char *); int close_range(unsigned int, unsigned int, int); ssize_t copy_file_range(int, off_t *, int, off_t *, size_t, unsigned int); const char * crypt_get_format(void); char *crypt_r(const char *, const char *, struct crypt_data *); int crypt_set_format(const char *); int dup3(int, int, int); int eaccess(const char *, int); void endusershell(void); int exect(const char *, char * const *, char * const *); int execvP(const char *, const char *, char * const *); int feature_present(const char *); char *fflagstostr(u_long); int getdomainname(char *, int); int getentropy(void *, size_t); int getgrouplist(const char *, gid_t, gid_t *, int *); int getloginclass(char *, size_t); mode_t getmode(const void *, mode_t); int getosreldate(void); int getpeereid(int, uid_t *, gid_t *); int getresgid(gid_t *, gid_t *, gid_t *); int getresuid(uid_t *, uid_t *, uid_t *); char *getusershell(void); int initgroups(const char *, gid_t); int iruserok(unsigned long, int, const char *, const char *); int iruserok_sa(const void *, int, int, const char *, const char *); int issetugid(void); void __FreeBSD_libc_enter_restricted_mode(void); long lpathconf(const char *, int); #ifndef _MKDTEMP_DECLARED char *mkdtemp(char *); #define _MKDTEMP_DECLARED #endif # 530 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/unistd.h" 3 4 #ifndef _MKNOD_DECLARED int mknod(const char *, mode_t, dev_t); #define _MKNOD_DECLARED #endif # 534 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/unistd.h" 3 4 #ifndef _MKSTEMP_DECLARED int mkstemp(char *); #define _MKSTEMP_DECLARED #endif # 538 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/unistd.h" 3 4 int mkstemps(char *, int); #ifndef _MKTEMP_DECLARED char *mktemp(char *); #define _MKTEMP_DECLARED #endif # 543 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/unistd.h" 3 4 int nfssvc(int, void *); int nlm_syscall(int, int, int, char **); int pipe2(int *, int); int profil(char *, size_t, vm_offset_t, int); int rcmd(char **, int, const char *, const char *, const char *, int *); int rcmd_af(char **, int, const char *, const char *, const char *, int *, int); int rcmdsh(char **, int, const char *, const char *, const char *, const char *); char *re_comp(const char *); int re_exec(const char *); int reboot(int); int revoke(const char *); pid_t rfork(int) __returns_twice; pid_t rfork_thread(int, void *, int (*)(void *), void *); int rresvport(int *); int rresvport_af(int *, int); int ruserok(const char *, int, const char *, const char *); #ifndef _SELECT_DECLARED #define _SELECT_DECLARED int select(int, fd_set *, fd_set *, fd_set *, struct timeval *); #endif # 565 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/unistd.h" 3 4 int setdomainname(const char *, int); int setgroups(int, const gid_t *); void sethostid(long); int sethostname(const char *, int); int setlogin(const char *); int setloginclass(const char *); void *setmode(const char *); int setpgrp(pid_t, pid_t); /* obsoleted by setpgid() */ void setproctitle(const char *_fmt, ...) __printf0like(1, 2); void setproctitle_fast(const char *_fmt, ...) __printf0like(1, 2); int setresgid(gid_t, gid_t, gid_t); int setresuid(uid_t, uid_t, uid_t); int setrgid(gid_t); int setruid(uid_t); void setusershell(void); int strtofflags(char **, u_long *, u_long *); int swapon(const char *); int swapoff(const char *); int syscall(int, ...); off_t __syscall(quad_t, ...); int undelete(const char *); int unwhiteout(const char *); void *valloc(size_t); /* obsoleted by malloc() */ int funlinkat(int, const char *, int, int); pid_t _Fork(void); #ifndef _OPTRESET_DECLARED #define _OPTRESET_DECLARED extern int optreset; /* getopt(3) external variable */ #endif # 595 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/unistd.h" 3 4 #endif /* __BSD_VISIBLE */ # 596 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/unistd.h" 3 4 __END_DECLS #endif /* !_UNISTD_H_ */ # 599 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/unistd.h" 3 4 # 73 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" 2 #endif # 74 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #if 0 /* disabled by -frewrite-includes */ #if HAVE_LIMITS_H #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 76 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #if 0 /* expanded by -frewrite-includes */ # include #endif /* expanded by -frewrite-includes */ # 76 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" # 1 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/limits.h" 1 3 4 /*- * SPDX-License-Identifier: BSD-3-Clause * * Copyright (c) 1988, 1993 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * @(#)limits.h 8.2 (Berkeley) 1/4/94 * $FreeBSD$ */ #ifndef _LIMITS_H_ #define _LIMITS_H_ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 38 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/limits.h" 3 4 # 39 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/limits.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 41 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/limits.h" 3 4 #define _POSIX_ARG_MAX 4096 #define _POSIX_LINK_MAX 8 #define _POSIX_MAX_CANON 255 #define _POSIX_MAX_INPUT 255 #define _POSIX_NAME_MAX 14 #define _POSIX_PIPE_BUF 512 #define _POSIX_SSIZE_MAX 32767 #define _POSIX_STREAM_MAX 8 #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 200112 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 51 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/limits.h" 3 4 #define _POSIX_CHILD_MAX 25 #define _POSIX_NGROUPS_MAX 8 #define _POSIX_OPEN_MAX 20 #define _POSIX_PATH_MAX 256 #define _POSIX_TZNAME_MAX 6 #else # 57 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/limits.h" 3 4 #define _POSIX_CHILD_MAX 6 #define _POSIX_NGROUPS_MAX 0 #define _POSIX_OPEN_MAX 16 #define _POSIX_PATH_MAX 255 #define _POSIX_TZNAME_MAX 3 #endif # 63 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/limits.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 200112 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 65 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/limits.h" 3 4 #define BC_BASE_MAX 99 /* max ibase/obase values in bc(1) */ #define BC_DIM_MAX 2048 /* max array elements in bc(1) */ #define BC_SCALE_MAX 99 /* max scale value in bc(1) */ #define BC_STRING_MAX 1000 /* max const string length in bc(1) */ #define CHARCLASS_NAME_MAX 14 /* max character class name size */ #define COLL_WEIGHTS_MAX 10 /* max weights for order keyword */ #define EXPR_NEST_MAX 32 /* max expressions nested in expr(1) */ #define LINE_MAX 2048 /* max bytes in an input line */ #define RE_DUP_MAX 255 /* max RE's in interval notation */ #define _POSIX2_BC_BASE_MAX 99 #define _POSIX2_BC_DIM_MAX 2048 #define _POSIX2_BC_SCALE_MAX 99 #define _POSIX2_BC_STRING_MAX 1000 #define _POSIX2_CHARCLASS_NAME_MAX 14 #define _POSIX2_COLL_WEIGHTS_MAX 2 #define _POSIX2_EQUIV_CLASS_MAX 2 #define _POSIX2_EXPR_NEST_MAX 32 #define _POSIX2_LINE_MAX 2048 #define _POSIX2_RE_DUP_MAX 255 #endif # 86 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/limits.h" 3 4 #endif # 87 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/limits.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 199309 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 89 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/limits.h" 3 4 #define _POSIX_AIO_LISTIO_MAX 2 #define _POSIX_AIO_MAX 1 #define _POSIX_DELAYTIMER_MAX 32 #define _POSIX_MQ_OPEN_MAX 8 #define _POSIX_MQ_PRIO_MAX 32 #define _POSIX_RTSIG_MAX 8 #define _POSIX_SEM_NSEMS_MAX 256 #define _POSIX_SEM_VALUE_MAX 32767 #define _POSIX_SIGQUEUE_MAX 32 #define _POSIX_TIMER_MAX 32 #define _POSIX_CLOCKRES_MIN 20000000 #endif # 102 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/limits.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 199506 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 104 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/limits.h" 3 4 #define _POSIX_THREAD_DESTRUCTOR_ITERATIONS 4 #define _POSIX_THREAD_KEYS_MAX 128 #define _POSIX_THREAD_THREADS_MAX 64 #endif # 108 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/limits.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 200112 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 110 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/limits.h" 3 4 #define _POSIX_HOST_NAME_MAX 255 #define _POSIX_LOGIN_NAME_MAX 9 #define _POSIX_SS_REPL_MAX 4 #define _POSIX_SYMLINK_MAX 255 #define _POSIX_SYMLOOP_MAX 8 #define _POSIX_TRACE_EVENT_NAME_MAX 30 #define _POSIX_TRACE_NAME_MAX 8 #define _POSIX_TRACE_SYS_MAX 8 #define _POSIX_TRACE_USER_EVENT_MAX 32 #define _POSIX_TTY_NAME_MAX 9 #define _POSIX_RE_DUP_MAX _POSIX2_RE_DUP_MAX #endif # 123 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/limits.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __XSI_VISIBLE || __POSIX_VISIBLE >= 200809 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 125 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/limits.h" 3 4 #define NL_ARGMAX 4096 /* max # of position args for printf */ #define NL_MSGMAX 32767 #define NL_SETMAX 255 #define NL_TEXTMAX 2048 #endif # 130 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/limits.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __XSI_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 132 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/limits.h" 3 4 #define _XOPEN_IOV_MAX 16 #define _XOPEN_NAME_MAX 255 #define _XOPEN_PATH_MAX 1024 #define PASS_MAX 128 /* _PASSWORD_LEN from */ #define NL_LANGMAX 31 /* max LANG name length */ #define NL_NMAX 1 #endif # 140 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/limits.h" 3 4 #define MB_LEN_MAX 6 /* 31-bit UTF-8 */ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 143 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/limits.h" 3 4 # 1 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/limits.h" 1 3 4 /*- * SPDX-License-Identifier: BSD-3-Clause * * Copyright (c) 1988, 1993 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * $FreeBSD$ */ #ifndef _SYS_LIMITS_H_ #define _SYS_LIMITS_H_ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 37 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/limits.h" 3 4 # 38 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/limits.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 38 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/limits.h" 3 4 # 1 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/machine/_limits.h" 1 3 4 /*- * This file is in the public domain. */ /* $FreeBSD$ */ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 6 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/machine/_limits.h" 3 4 # 7 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/machine/_limits.h" 3 4 # 39 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/limits.h" 2 3 4 #define CHAR_BIT __CHAR_BIT /* number of bits in a char */ #define SCHAR_MAX __SCHAR_MAX /* max value for a signed char */ #define SCHAR_MIN __SCHAR_MIN /* min value for a signed char */ #define UCHAR_MAX __UCHAR_MAX /* max value for an unsigned char */ #ifdef __CHAR_UNSIGNED__ #define CHAR_MAX UCHAR_MAX /* max value for a char */ #define CHAR_MIN 0 /* min value for a char */ #else # 51 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/limits.h" 3 4 #define CHAR_MAX SCHAR_MAX #define CHAR_MIN SCHAR_MIN #endif # 54 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/limits.h" 3 4 #define USHRT_MAX __USHRT_MAX /* max value for an unsigned short */ #define SHRT_MAX __SHRT_MAX /* max value for a short */ #define SHRT_MIN __SHRT_MIN /* min value for a short */ #define UINT_MAX __UINT_MAX /* max value for an unsigned int */ #define INT_MAX __INT_MAX /* max value for an int */ #define INT_MIN __INT_MIN /* min value for an int */ #define ULONG_MAX __ULONG_MAX /* max for an unsigned long */ #define LONG_MAX __LONG_MAX /* max for a long */ #define LONG_MIN __LONG_MIN /* min for a long */ #ifdef __LONG_LONG_SUPPORTED #define ULLONG_MAX __ULLONG_MAX /* max for an unsigned long long */ #define LLONG_MAX __LLONG_MAX /* max for a long long */ #define LLONG_MIN __LLONG_MIN /* min for a long long */ #endif # 72 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/limits.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE || __XSI_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 74 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/limits.h" 3 4 #define SSIZE_MAX __SSIZE_MAX /* max value for an ssize_t */ #endif # 76 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/limits.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 200112 || __XSI_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 78 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/limits.h" 3 4 #define SIZE_T_MAX __SIZE_T_MAX /* max value for a size_t */ #define OFF_MAX __OFF_MAX /* max value for an off_t */ #define OFF_MIN __OFF_MIN /* min value for an off_t */ #endif # 83 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/limits.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 85 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/limits.h" 3 4 #define GID_MAX UINT_MAX /* max value for a gid_t */ #define UID_MAX UINT_MAX /* max value for a uid_t */ #define UQUAD_MAX (__UQUAD_MAX) /* max value for a uquad_t */ #define QUAD_MAX (__QUAD_MAX) /* max value for a quad_t */ #define QUAD_MIN (__QUAD_MIN) /* min value for a quad_t */ #endif # 92 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/limits.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __XSI_VISIBLE || __POSIX_VISIBLE >= 200809 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 94 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/limits.h" 3 4 #define LONG_BIT __LONG_BIT #define WORD_BIT __WORD_BIT #endif # 97 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/limits.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 99 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/limits.h" 3 4 #define MQ_PRIO_MAX 64 #endif # 101 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/limits.h" 3 4 #endif /* !_SYS_LIMITS_H_ */ # 103 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/limits.h" 3 4 # 144 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/limits.h" 2 3 4 #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 146 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/limits.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 146 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/limits.h" 3 4 # 1 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/syslimits.h" 1 3 4 /*- * SPDX-License-Identifier: BSD-3-Clause * * Copyright (c) 1988, 1993 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * @(#)syslimits.h 8.1 (Berkeley) 6/2/93 * $FreeBSD$ */ #ifndef _SYS_SYSLIMITS_H_ #define _SYS_SYSLIMITS_H_ #if 0 /* disabled by -frewrite-includes */ #if !defined(_STANDALONE) && !defined(_KERNEL) && !defined(_LIMITS_H_) && !defined(_SYS_PARAM_H_) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 39 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/syslimits.h" 3 4 #ifndef _SYS_CDEFS_H_ #error this file needs sys/cdefs.h as a prerequisite #endif # 42 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/syslimits.h" 3 4 #ifdef __CC_SUPPORTS_WARNING #warning "No user-serviceable parts inside." #endif # 45 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/syslimits.h" 3 4 #endif # 46 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/syslimits.h" 3 4 /* * Do not add any new variables here. (See the comment at the end of * the file for why.) */ #ifndef __ILP32__ #define ARG_MAX (2 * 256 * 1024) /* max bytes for an exec function */ #else # 54 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/syslimits.h" 3 4 #define ARG_MAX (256 * 1024) /* max bytes for KVA-starved archs */ #endif # 56 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/syslimits.h" 3 4 #ifndef CHILD_MAX #define CHILD_MAX 40 /* max simultaneous processes */ #endif # 59 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/syslimits.h" 3 4 #define MAX_CANON 255 /* max bytes in term canon input line */ #define MAX_INPUT 255 /* max bytes in terminal input */ #define NAME_MAX 255 /* max bytes in a file name */ #ifndef NGROUPS_MAX #define NGROUPS_MAX 1023 /* max supplemental group id's */ #endif # 65 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/syslimits.h" 3 4 #ifndef OPEN_MAX #define OPEN_MAX 64 /* max open files per process */ #endif # 68 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/syslimits.h" 3 4 #define PATH_MAX 1024 /* max bytes in pathname */ #define PIPE_BUF 512 /* max bytes for atomic pipe writes */ #define IOV_MAX 1024 /* max elements in i/o vector */ /* * We leave the following values undefined to force applications to either * assume conservative values or call sysconf() to get the current value. * * HOST_NAME_MAX * * (We should do this for most of the values currently defined here, * but many programs are not prepared to deal with this yet.) */ #endif # 82 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/syslimits.h" 3 4 # 147 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/limits.h" 2 3 4 #endif # 148 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/limits.h" 3 4 #endif /* !_LIMITS_H_ */ # 150 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/limits.h" 3 4 # 77 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" 2 #if 0 /* disabled by -frewrite-includes */ #if 0 #elif HAVE_SYS_PARAM_H #endif #endif /* disabled by -frewrite-includes */ #elif 0 /* evaluated by -frewrite-includes */ # 78 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #if 0 /* expanded by -frewrite-includes */ # include #endif /* expanded by -frewrite-includes */ # 78 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" # 79 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #endif # 80 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 81 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" # 1 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/assert.h" 1 3 4 /*- * SPDX-License-Identifier: BSD-3-Clause * * Copyright (c) 1992, 1993 * The Regents of the University of California. All rights reserved. * (c) UNIX System Laboratories, Inc. * All or some portions of this file are derived from material licensed * to the University of California by American Telephone and Telegraph * Co. or Unix System Laboratories, Inc. and are reproduced herein with * the permission of UNIX System Laboratories, Inc. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * @(#)assert.h 8.2 (Berkeley) 1/21/94 * $FreeBSD$ */ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 40 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/assert.h" 3 4 # 41 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/assert.h" 3 4 /* * Unlike other ANSI header files, may usefully be included * multiple times, with and without NDEBUG defined. */ #undef assert #undef _assert #ifdef NDEBUG #define assert(e) ((void)0) #define _assert(e) ((void)0) #else # 54 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/assert.h" 3 4 #define _assert(e) assert(e) #define assert(e) ((e) ? (void)0 : __assert(__func__, __FILE__, \ __LINE__, #e)) #endif /* NDEBUG */ # 59 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/assert.h" 3 4 #ifndef _ASSERT_H_ #define _ASSERT_H_ /* * Static assertions. In principle we could define static_assert for * C++ older than C++11, but this breaks if _Static_assert is * implemented as a macro. * * C++ template parameters may contain commas, even if not enclosed in * parentheses, causing the _Static_assert macro to be invoked with more * than two parameters. */ #if 0 /* disabled by -frewrite-includes */ #if __ISO_C_VISIBLE >= 2011 && !defined(__cplusplus) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 73 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/assert.h" 3 4 #define static_assert _Static_assert #endif # 75 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/assert.h" 3 4 __BEGIN_DECLS void __assert(const char *, const char *, int, const char *) __dead2; __END_DECLS #endif /* !_ASSERT_H_ */ # 81 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/assert.h" 3 4 # 82 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" 2 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 82 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" # 1 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdio.h" 1 3 4 /*- * SPDX-License-Identifier: BSD-3-Clause * * Copyright (c) 1990, 1993 * The Regents of the University of California. All rights reserved. * * This code is derived from software contributed to Berkeley by * Chris Torek. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * @(#)stdio.h 8.5 (Berkeley) 4/29/95 * $FreeBSD$ */ #ifndef _STDIO_H_ #define _STDIO_H_ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 41 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdio.h" 3 4 # 42 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdio.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 42 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdio.h" 3 4 # 43 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdio.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 43 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdio.h" 3 4 # 44 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdio.h" 3 4 __NULLABILITY_PRAGMA_PUSH typedef __off_t fpos_t; #ifndef _SIZE_T_DECLARED typedef __size_t size_t; #define _SIZE_T_DECLARED #endif # 53 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdio.h" 3 4 #ifndef _RSIZE_T_DEFINED #define _RSIZE_T_DEFINED typedef size_t rsize_t; #endif # 58 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdio.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 200809 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 60 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdio.h" 3 4 #ifndef _OFF_T_DECLARED #define _OFF_T_DECLARED typedef __off_t off_t; #endif # 64 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdio.h" 3 4 #ifndef _SSIZE_T_DECLARED #define _SSIZE_T_DECLARED typedef __ssize_t ssize_t; #endif # 68 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdio.h" 3 4 #endif # 69 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdio.h" 3 4 #ifndef _OFF64_T_DECLARED #define _OFF64_T_DECLARED typedef __off64_t off64_t; #endif # 74 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdio.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 200112 || __XSI_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 76 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdio.h" 3 4 #ifndef _VA_LIST_DECLARED typedef __va_list va_list; #define _VA_LIST_DECLARED #endif # 80 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdio.h" 3 4 #endif # 81 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdio.h" 3 4 #define _FSTDIO /* Define for new stdio with functions. */ /* * NB: to fit things in six character monocase externals, the stdio * code uses the prefix `__s' for stdio objects, typically followed * by a three-character attempt at a mnemonic. */ /* stdio buffers */ struct __sbuf { unsigned char *_base; int _size; }; /* * stdio state variables. * * The following always hold: * * if (_flags&(__SLBF|__SWR)) == (__SLBF|__SWR), * _lbfsize is -_bf._size, else _lbfsize is 0 * if _flags&__SRD, _w is 0 * if _flags&__SWR, _r is 0 * * This ensures that the getc and putc macros (or inline functions) never * try to write or read from a file that is in `read' or `write' mode. * (Moreover, they can, and do, automatically switch from read mode to * write mode, and back, on "r+" and "w+" files.) * * _lbfsize is used only to make the inline line-buffered output stream * code as compact as possible. * * _ub, _up, and _ur are used when ungetc() pushes back more characters * than fit in the current _bf, or when ungetc() pushes back a character * that does not match the previous one in _bf. When this happens, * _ub._base becomes non-nil (i.e., a stream has ungetc() data iff * _ub._base!=NULL) and _up and _ur save the current values of _p and _r. * * Certain members of __sFILE are accessed directly via macros or * inline functions. To preserve ABI compat, these members must not * be disturbed. These members are marked below with (*). */ struct __sFILE { unsigned char *_p; /* (*) current position in (some) buffer */ int _r; /* (*) read space left for getc() */ int _w; /* (*) write space left for putc() */ short _flags; /* (*) flags, below; this FILE is free if 0 */ short _file; /* (*) fileno, if Unix descriptor, else -1 */ struct __sbuf _bf; /* (*) the buffer (at least 1 byte, if !NULL) */ int _lbfsize; /* (*) 0 or -_bf._size, for inline putc */ /* operations */ void *_cookie; /* (*) cookie passed to io functions */ int (* _Nullable _close)(void *); int (* _Nullable _read)(void *, char *, int); fpos_t (* _Nullable _seek)(void *, fpos_t, int); int (* _Nullable _write)(void *, const char *, int); /* separate buffer for long sequences of ungetc() */ struct __sbuf _ub; /* ungetc buffer */ unsigned char *_up; /* saved _p when _p is doing ungetc data */ int _ur; /* saved _r when _r is counting ungetc data */ /* tricks to meet minimum requirements even when malloc() fails */ unsigned char _ubuf[3]; /* guarantee an ungetc() buffer */ unsigned char _nbuf[1]; /* guarantee a getc() buffer */ /* separate buffer for fgetln() when line crosses buffer boundary */ struct __sbuf _lb; /* buffer for fgetln() */ /* Unix stdio files get aligned to block boundaries on fseek() */ int _blksize; /* stat.st_blksize (may be != _bf._size) */ fpos_t _offset; /* current lseek offset */ struct pthread_mutex *_fl_mutex; /* used for MT-safety */ struct pthread *_fl_owner; /* current owner */ int _fl_count; /* recursive lock count */ int _orientation; /* orientation for fwide() */ __mbstate_t _mbstate; /* multibyte conversion state */ int _flags2; /* additional flags */ }; #ifndef _STDFILE_DECLARED #define _STDFILE_DECLARED typedef struct __sFILE FILE; #endif # 167 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdio.h" 3 4 #ifndef _STDSTREAM_DECLARED __BEGIN_DECLS extern FILE *__stdinp; extern FILE *__stdoutp; extern FILE *__stderrp; __END_DECLS #define _STDSTREAM_DECLARED #endif # 175 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdio.h" 3 4 #define __SLBF 0x0001 /* line buffered */ #define __SNBF 0x0002 /* unbuffered */ #define __SRD 0x0004 /* OK to read */ #define __SWR 0x0008 /* OK to write */ /* RD and WR are never simultaneously asserted */ #define __SRW 0x0010 /* open for reading & writing */ #define __SEOF 0x0020 /* found EOF */ #define __SERR 0x0040 /* found error */ #define __SMBF 0x0080 /* _bf._base is from malloc */ #define __SAPP 0x0100 /* fdopen()ed in append mode */ #define __SSTR 0x0200 /* this is an sprintf/snprintf string */ #define __SOPT 0x0400 /* do fseek() optimization */ #define __SNPT 0x0800 /* do not do fseek() optimization */ #define __SOFF 0x1000 /* set iff _offset is in fact correct */ #define __SMOD 0x2000 /* true => fgetln modified _p text */ #define __SALC 0x4000 /* allocate string space dynamically */ #define __SIGN 0x8000 /* ignore this file in _fwalk */ #define __S2OAP 0x0001 /* O_APPEND mode is set */ /* * The following three definitions are for ANSI C, which took them * from System V, which brilliantly took internal interface macros and * made them official arguments to setvbuf(), without renaming them. * Hence, these ugly _IOxxx names are *supposed* to appear in user code. * * Although numbered as their counterparts above, the implementation * does not rely on this. */ #define _IOFBF 0 /* setvbuf should set fully buffered */ #define _IOLBF 1 /* setvbuf should set line buffered */ #define _IONBF 2 /* setvbuf should set unbuffered */ #define BUFSIZ 1024 /* size of buffer used by setbuf */ #define EOF (-1) /* * FOPEN_MAX is a minimum maximum, and is the number of streams that * stdio can provide without attempting to allocate further resources * (which could fail). Do not use this for anything. */ /* must be == _POSIX_STREAM_MAX */ #ifndef FOPEN_MAX #define FOPEN_MAX 20 /* must be <= OPEN_MAX */ #endif # 221 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdio.h" 3 4 #define FILENAME_MAX 1024 /* must be <= PATH_MAX */ /* System V/ANSI C; this is the wrong way to do this, do *not* use these. */ #if 0 /* disabled by -frewrite-includes */ #if __XSI_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 225 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdio.h" 3 4 #define P_tmpdir "/tmp/" #endif # 227 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdio.h" 3 4 #define L_tmpnam 1024 /* XXX must be == PATH_MAX */ #define TMP_MAX 308915776 #ifndef SEEK_SET #define SEEK_SET 0 /* set file offset to offset */ #endif # 233 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdio.h" 3 4 #ifndef SEEK_CUR #define SEEK_CUR 1 /* set file offset to current plus offset */ #endif # 236 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdio.h" 3 4 #ifndef SEEK_END #define SEEK_END 2 /* set file offset to EOF plus offset */ #endif # 239 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdio.h" 3 4 #define stdin __stdinp #define stdout __stdoutp #define stderr __stderrp __BEGIN_DECLS #ifdef _XLOCALE_H_ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 246 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdio.h" 3 4 # 247 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdio.h" 3 4 #endif # 248 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdio.h" 3 4 /* * Functions defined in ANSI C standard. */ void clearerr(FILE *); int fclose(FILE *); int feof(FILE *); int ferror(FILE *); int fflush(FILE *); int fgetc(FILE *); int fgetpos(FILE * __restrict, fpos_t * __restrict); char *fgets(char * __restrict, int, FILE * __restrict); FILE *fopen(const char * __restrict, const char * __restrict); int fprintf(FILE * __restrict, const char * __restrict, ...); int fputc(int, FILE *); int fputs(const char * __restrict, FILE * __restrict); size_t fread(void * __restrict, size_t, size_t, FILE * __restrict); FILE *freopen(const char * __restrict, const char * __restrict, FILE * __restrict); int fscanf(FILE * __restrict, const char * __restrict, ...); int fseek(FILE *, long, int); int fsetpos(FILE *, const fpos_t *); long ftell(FILE *); size_t fwrite(const void * __restrict, size_t, size_t, FILE * __restrict); int getc(FILE *); int getchar(void); #if 0 /* disabled by -frewrite-includes */ #if __EXT1_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 273 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdio.h" 3 4 char *gets_s(char *, rsize_t); #endif # 275 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdio.h" 3 4 void perror(const char *); int printf(const char * __restrict, ...); int putc(int, FILE *); int putchar(int); int puts(const char *); int remove(const char *); int rename(const char *, const char *); void rewind(FILE *); int scanf(const char * __restrict, ...); void setbuf(FILE * __restrict, char * __restrict); int setvbuf(FILE * __restrict, char * __restrict, int, size_t); int sprintf(char * __restrict, const char * __restrict, ...); int sscanf(const char * __restrict, const char * __restrict, ...); FILE *tmpfile(void); char *tmpnam(char *); int ungetc(int, FILE *); int vfprintf(FILE * __restrict, const char * __restrict, __va_list); int vprintf(const char * __restrict, __va_list); int vsprintf(char * __restrict, const char * __restrict, __va_list); #if 0 /* disabled by -frewrite-includes */ #if __ISO_C_VISIBLE >= 1999 || __POSIX_VISIBLE >= 199506 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 298 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdio.h" 3 4 int snprintf(char * __restrict, size_t, const char * __restrict, ...) __printflike(3, 4); int vsnprintf(char * __restrict, size_t, const char * __restrict, __va_list) __printflike(3, 0); #endif # 303 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdio.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __ISO_C_VISIBLE >= 1999 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 304 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdio.h" 3 4 int vfscanf(FILE * __restrict, const char * __restrict, __va_list) __scanflike(2, 0); int vscanf(const char * __restrict, __va_list) __scanflike(1, 0); int vsscanf(const char * __restrict, const char * __restrict, __va_list) __scanflike(2, 0); #endif # 310 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdio.h" 3 4 /* * Functions defined in all versions of POSIX 1003.1. */ #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE || (__POSIX_VISIBLE && __POSIX_VISIBLE <= 199506) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 315 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdio.h" 3 4 #define L_cuserid 17 /* size for cuserid(3); MAXLOGNAME, legacy */ #endif # 317 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdio.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 319 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdio.h" 3 4 #define L_ctermid 1024 /* size for ctermid(3); PATH_MAX */ char *ctermid(char *); FILE *fdopen(int, const char *); int fileno(FILE *); #endif /* __POSIX_VISIBLE */ # 325 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdio.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 199209 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 327 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdio.h" 3 4 int pclose(FILE *); FILE *popen(const char *, const char *); #endif # 330 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdio.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 199506 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 332 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdio.h" 3 4 int ftrylockfile(FILE *); void flockfile(FILE *); void funlockfile(FILE *); /* * These are normally used through macros as defined below, but POSIX * requires functions as well. */ int getc_unlocked(FILE *); int getchar_unlocked(void); int putc_unlocked(int, FILE *); int putchar_unlocked(int); #endif # 345 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdio.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 346 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdio.h" 3 4 void clearerr_unlocked(FILE *); int feof_unlocked(FILE *); int ferror_unlocked(FILE *); int fflush_unlocked(FILE *); int fileno_unlocked(FILE *); int fputc_unlocked(int, FILE *); int fputs_unlocked(const char * __restrict, FILE * __restrict); size_t fread_unlocked(void * __restrict, size_t, size_t, FILE * __restrict); size_t fwrite_unlocked(const void * __restrict, size_t, size_t, FILE * __restrict); #endif # 357 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdio.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 200112 || __XSI_VISIBLE >= 500 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 359 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdio.h" 3 4 int fseeko(FILE *, __off_t, int); __off_t ftello(FILE *); #endif # 362 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdio.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE || __XSI_VISIBLE > 0 && __XSI_VISIBLE < 600 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 364 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdio.h" 3 4 int getw(FILE *); int putw(int, FILE *); #endif /* BSD or X/Open before issue 6 */ # 367 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdio.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __XSI_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 369 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdio.h" 3 4 char *tempnam(const char *, const char *); #endif # 371 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdio.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 200809 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 373 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdio.h" 3 4 FILE *fmemopen(void * __restrict, size_t, const char * __restrict); ssize_t getdelim(char ** __restrict, size_t * __restrict, int, FILE * __restrict); FILE *open_memstream(char **, size_t *); int renameat(int, const char *, int, const char *); int vdprintf(int, const char * __restrict, __va_list) __printflike(2, 0); /* _WITH_GETLINE to allow pre 11 sources to build on 11+ systems */ ssize_t getline(char ** __restrict, size_t * __restrict, FILE * __restrict); int dprintf(int, const char * __restrict, ...) __printflike(2, 3); #endif /* __POSIX_VISIBLE >= 200809 */ # 383 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdio.h" 3 4 /* * Routines that are purely local. */ #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 388 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdio.h" 3 4 int asprintf(char **, const char *, ...) __printflike(2, 3); char *ctermid_r(char *); void fcloseall(void); int fdclose(FILE *, int *); char *fgetln(FILE *, size_t *); const char *fmtcheck(const char *, const char *) __format_arg(2); int fpurge(FILE *); void setbuffer(FILE *, char *, int); int setlinebuf(FILE *); int vasprintf(char **, const char *, __va_list) __printflike(2, 0); /* * The system error table contains messages for the first sys_nerr * positive errno values. Use strerror() or strerror_r() from * instead. */ extern const int sys_nerr; extern const char * const sys_errlist[]; /* * Stdio function-access interface. */ FILE *funopen(const void *, int (* _Nullable)(void *, char *, int), int (* _Nullable)(void *, const char *, int), fpos_t (* _Nullable)(void *, fpos_t, int), int (* _Nullable)(void *)); #define fropen(cookie, fn) funopen(cookie, fn, 0, 0, 0) #define fwopen(cookie, fn) funopen(cookie, 0, fn, 0, 0) typedef __ssize_t cookie_read_function_t(void *, char *, size_t); typedef __ssize_t cookie_write_function_t(void *, const char *, size_t); typedef int cookie_seek_function_t(void *, off64_t *, int); typedef int cookie_close_function_t(void *); typedef struct { cookie_read_function_t *read; cookie_write_function_t *write; cookie_seek_function_t *seek; cookie_close_function_t *close; } cookie_io_functions_t; FILE *fopencookie(void *, const char *, cookie_io_functions_t); /* * Portability hacks. See . */ #ifndef _FTRUNCATE_DECLARED #define _FTRUNCATE_DECLARED int ftruncate(int, __off_t); #endif # 438 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdio.h" 3 4 #ifndef _LSEEK_DECLARED #define _LSEEK_DECLARED __off_t lseek(int, __off_t, int); #endif # 442 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdio.h" 3 4 #ifndef _MMAP_DECLARED #define _MMAP_DECLARED void *mmap(void *, size_t, int, int, int, __off_t); #endif # 446 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdio.h" 3 4 #ifndef _TRUNCATE_DECLARED #define _TRUNCATE_DECLARED int truncate(const char *, __off_t); #endif # 450 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdio.h" 3 4 #endif /* __BSD_VISIBLE */ # 451 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdio.h" 3 4 /* * Functions internal to the implementation. */ int __srget(FILE *); int __swbuf(int, FILE *); /* * The __sfoo macros are here so that we can * define function versions in the C library. */ #define __sgetc(p) (--(p)->_r < 0 ? __srget(p) : (int)(*(p)->_p++)) #if 0 /* disabled by -frewrite-includes */ #if defined(__GNUC__) && defined(__STDC__) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 464 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdio.h" 3 4 static __inline int __sputc(int _c, FILE *_p) { if (--_p->_w >= 0 || (_p->_w >= _p->_lbfsize && (char)_c != '\n')) return (*_p->_p++ = _c); else return (__swbuf(_c, _p)); } #else # 471 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdio.h" 3 4 /* * This has been tuned to generate reasonable code on the vax using pcc. */ #define __sputc(c, p) \ (--(p)->_w < 0 ? \ (p)->_w >= (p)->_lbfsize ? \ (*(p)->_p = (c)), *(p)->_p != '\n' ? \ (int)*(p)->_p++ : \ __swbuf('\n', p) : \ __swbuf((int)(c), p) : \ (*(p)->_p = (c), (int)*(p)->_p++)) #endif # 483 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdio.h" 3 4 #ifndef __LIBC_ISTHREADED_DECLARED #define __LIBC_ISTHREADED_DECLARED extern int __isthreaded; #endif # 488 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdio.h" 3 4 #ifndef __cplusplus #define __sfeof(p) (((p)->_flags & __SEOF) != 0) #define __sferror(p) (((p)->_flags & __SERR) != 0) #define __sclearerr(p) ((void)((p)->_flags &= ~(__SERR|__SEOF))) #define __sfileno(p) ((p)->_file) #define feof(p) (!__isthreaded ? __sfeof(p) : (feof)(p)) #define ferror(p) (!__isthreaded ? __sferror(p) : (ferror)(p)) #define clearerr(p) (!__isthreaded ? __sclearerr(p) : (clearerr)(p)) #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 502 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdio.h" 3 4 #define fileno(p) (!__isthreaded ? __sfileno(p) : (fileno)(p)) #endif # 504 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdio.h" 3 4 #define getc(fp) (!__isthreaded ? __sgetc(fp) : (getc)(fp)) #define putc(x, fp) (!__isthreaded ? __sputc(x, fp) : (putc)(x, fp)) #define getchar() getc(stdin) #define putchar(x) putc(x, stdout) #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 512 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdio.h" 3 4 /* * See ISO/IEC 9945-1 ANSI/IEEE Std 1003.1 Second Edition 1996-07-12 * B.8.2.7 for the rationale behind the *_unlocked() macros. */ #define clearerr_unlocked(p) __sclearerr(p) #define feof_unlocked(p) __sfeof(p) #define ferror_unlocked(p) __sferror(p) #define fileno_unlocked(p) __sfileno(p) #define fputc_unlocked(s, p) __sputc(s, p) #endif # 522 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdio.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 199506 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 523 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdio.h" 3 4 #define getc_unlocked(fp) __sgetc(fp) #define putc_unlocked(x, fp) __sputc(x, fp) #define getchar_unlocked() getc_unlocked(stdin) #define putchar_unlocked(x) putc_unlocked(x, stdout) #endif # 529 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdio.h" 3 4 #endif /* __cplusplus */ # 530 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdio.h" 3 4 __END_DECLS __NULLABILITY_PRAGMA_POP #endif /* !_STDIO_H_ */ # 535 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdio.h" 3 4 # 83 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" 2 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 84 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" # 1 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/errno.h" 1 3 4 /*- * SPDX-License-Identifier: BSD-3-Clause * * Copyright (c) 1982, 1986, 1989, 1993 * The Regents of the University of California. All rights reserved. * (c) UNIX System Laboratories, Inc. * All or some portions of this file are derived from material licensed * to the University of California by American Telephone and Telegraph * Co. or Unix System Laboratories, Inc. and are reproduced herein with * the permission of UNIX System Laboratories, Inc. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * @(#)errno.h 8.5 (Berkeley) 1/21/94 * $FreeBSD$ */ #ifndef _SYS_ERRNO_H_ #define _SYS_ERRNO_H_ #if 0 /* disabled by -frewrite-includes */ #if !defined(_KERNEL) && !defined(_STANDALONE) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 44 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/errno.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 44 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/errno.h" 3 4 # 45 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/errno.h" 3 4 __BEGIN_DECLS int * __error(void); __END_DECLS #define errno (* __error()) #endif # 50 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/errno.h" 3 4 #define EPERM 1 /* Operation not permitted */ #define ENOENT 2 /* No such file or directory */ #define ESRCH 3 /* No such process */ #define EINTR 4 /* Interrupted system call */ #define EIO 5 /* Input/output error */ #define ENXIO 6 /* Device not configured */ #define E2BIG 7 /* Argument list too long */ #define ENOEXEC 8 /* Exec format error */ #define EBADF 9 /* Bad file descriptor */ #define ECHILD 10 /* No child processes */ #define EDEADLK 11 /* Resource deadlock avoided */ /* 11 was EAGAIN */ #define ENOMEM 12 /* Cannot allocate memory */ #define EACCES 13 /* Permission denied */ #define EFAULT 14 /* Bad address */ #ifndef _POSIX_SOURCE #define ENOTBLK 15 /* Block device required */ #endif # 69 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/errno.h" 3 4 #define EBUSY 16 /* Device busy */ #define EEXIST 17 /* File exists */ #define EXDEV 18 /* Cross-device link */ #define ENODEV 19 /* Operation not supported by device */ #define ENOTDIR 20 /* Not a directory */ #define EISDIR 21 /* Is a directory */ #define EINVAL 22 /* Invalid argument */ #define ENFILE 23 /* Too many open files in system */ #define EMFILE 24 /* Too many open files */ #define ENOTTY 25 /* Inappropriate ioctl for device */ #ifndef _POSIX_SOURCE #define ETXTBSY 26 /* Text file busy */ #endif # 82 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/errno.h" 3 4 #define EFBIG 27 /* File too large */ #define ENOSPC 28 /* No space left on device */ #define ESPIPE 29 /* Illegal seek */ #define EROFS 30 /* Read-only filesystem */ #define EMLINK 31 /* Too many links */ #define EPIPE 32 /* Broken pipe */ /* math software */ #define EDOM 33 /* Numerical argument out of domain */ #define ERANGE 34 /* Result too large */ /* non-blocking and interrupt i/o */ #define EAGAIN 35 /* Resource temporarily unavailable */ #ifndef _POSIX_SOURCE #define EWOULDBLOCK EAGAIN /* Operation would block */ #define EINPROGRESS 36 /* Operation now in progress */ #define EALREADY 37 /* Operation already in progress */ /* ipc/network software -- argument errors */ #define ENOTSOCK 38 /* Socket operation on non-socket */ #define EDESTADDRREQ 39 /* Destination address required */ #define EMSGSIZE 40 /* Message too long */ #define EPROTOTYPE 41 /* Protocol wrong type for socket */ #define ENOPROTOOPT 42 /* Protocol not available */ #define EPROTONOSUPPORT 43 /* Protocol not supported */ #define ESOCKTNOSUPPORT 44 /* Socket type not supported */ #define EOPNOTSUPP 45 /* Operation not supported */ #define ENOTSUP EOPNOTSUPP /* Operation not supported */ #define EPFNOSUPPORT 46 /* Protocol family not supported */ #define EAFNOSUPPORT 47 /* Address family not supported by protocol family */ #define EADDRINUSE 48 /* Address already in use */ #define EADDRNOTAVAIL 49 /* Can't assign requested address */ /* ipc/network software -- operational errors */ #define ENETDOWN 50 /* Network is down */ #define ENETUNREACH 51 /* Network is unreachable */ #define ENETRESET 52 /* Network dropped connection on reset */ #define ECONNABORTED 53 /* Software caused connection abort */ #define ECONNRESET 54 /* Connection reset by peer */ #define ENOBUFS 55 /* No buffer space available */ #define EISCONN 56 /* Socket is already connected */ #define ENOTCONN 57 /* Socket is not connected */ #define ESHUTDOWN 58 /* Can't send after socket shutdown */ #define ETOOMANYREFS 59 /* Too many references: can't splice */ #define ETIMEDOUT 60 /* Operation timed out */ #define ECONNREFUSED 61 /* Connection refused */ #define ELOOP 62 /* Too many levels of symbolic links */ #endif /* _POSIX_SOURCE */ # 131 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/errno.h" 3 4 #define ENAMETOOLONG 63 /* File name too long */ /* should be rearranged */ #ifndef _POSIX_SOURCE #define EHOSTDOWN 64 /* Host is down */ #define EHOSTUNREACH 65 /* No route to host */ #endif /* _POSIX_SOURCE */ # 138 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/errno.h" 3 4 #define ENOTEMPTY 66 /* Directory not empty */ /* quotas & mush */ #ifndef _POSIX_SOURCE #define EPROCLIM 67 /* Too many processes */ #define EUSERS 68 /* Too many users */ #define EDQUOT 69 /* Disc quota exceeded */ /* Network File System */ #define ESTALE 70 /* Stale NFS file handle */ #define EREMOTE 71 /* Too many levels of remote in path */ #define EBADRPC 72 /* RPC struct is bad */ #define ERPCMISMATCH 73 /* RPC version wrong */ #define EPROGUNAVAIL 74 /* RPC prog. not avail */ #define EPROGMISMATCH 75 /* Program version wrong */ #define EPROCUNAVAIL 76 /* Bad procedure for program */ #endif /* _POSIX_SOURCE */ # 155 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/errno.h" 3 4 #define ENOLCK 77 /* No locks available */ #define ENOSYS 78 /* Function not implemented */ #ifndef _POSIX_SOURCE #define EFTYPE 79 /* Inappropriate file type or format */ #define EAUTH 80 /* Authentication error */ #define ENEEDAUTH 81 /* Need authenticator */ #define EIDRM 82 /* Identifier removed */ #define ENOMSG 83 /* No message of desired type */ #define EOVERFLOW 84 /* Value too large to be stored in data type */ #define ECANCELED 85 /* Operation canceled */ #define EILSEQ 86 /* Illegal byte sequence */ #define ENOATTR 87 /* Attribute not found */ #define EDOOFUS 88 /* Programming error */ #endif /* _POSIX_SOURCE */ # 172 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/errno.h" 3 4 #define EBADMSG 89 /* Bad message */ #define EMULTIHOP 90 /* Multihop attempted */ #define ENOLINK 91 /* Link has been severed */ #define EPROTO 92 /* Protocol error */ #ifndef _POSIX_SOURCE #define ENOTCAPABLE 93 /* Capabilities insufficient */ #define ECAPMODE 94 /* Not permitted in capability mode */ #define ENOTRECOVERABLE 95 /* State not recoverable */ #define EOWNERDEAD 96 /* Previous owner died */ #define EINTEGRITY 97 /* Integrity check failed */ #endif /* _POSIX_SOURCE */ # 185 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/errno.h" 3 4 #ifndef _POSIX_SOURCE #define ELAST 97 /* Must be equal largest errno */ #endif /* _POSIX_SOURCE */ # 189 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/errno.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(_KERNEL) || defined(_WANT_KERNEL_ERRNO) || defined(_STANDALONE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 191 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/errno.h" 3 4 /* pseudo-errors returned inside kernel to modify return to process */ #define ERESTART (-1) /* restart syscall */ #define EJUSTRETURN (-2) /* don't modify regs, just return */ #define ENOIOCTL (-3) /* ioctl not handled by this layer */ #define EDIRIOCTL (-4) /* do direct ioctl in GEOM */ #define ERELOOKUP (-5) /* retry the directory lookup */ #endif # 198 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/errno.h" 3 4 #ifndef _KERNEL #if 0 /* disabled by -frewrite-includes */ #if __EXT1_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 201 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/errno.h" 3 4 /* ISO/IEC 9899:2011 K.3.2.2 */ #ifndef _ERRNO_T_DEFINED #define _ERRNO_T_DEFINED typedef int errno_t; #endif # 206 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/errno.h" 3 4 #endif /* __EXT1_VISIBLE */ # 207 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/errno.h" 3 4 #endif # 208 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/errno.h" 3 4 #endif # 210 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/errno.h" 3 4 # 85 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" 2 #if 0 /* disabled by -frewrite-includes */ #if defined __hpux #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 87 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" # ifndef EILSEQ # define EILSEQ 47 # endif # 90 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #endif # 91 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #ifndef PATH_MAX #if 0 /* disabled by -frewrite-includes */ # if defined(_POSIX_PATH_MAX) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 94 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" # define PATH_MAX _POSIX_PATH_MAX #if 0 /* disabled by -frewrite-includes */ #if 0 # elif defined(MAXPATHLEN) #endif #endif /* disabled by -frewrite-includes */ #elif 0 /* evaluated by -frewrite-includes */ # 96 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" # define PATH_MAX MAXPATHLEN # else # 98 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" # define PATH_MAX 255 /* the Posix minimum path-size */ # endif # 100 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #endif # 101 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #if 0 /* disabled by -frewrite-includes */ #if DECL_ERRNO #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 103 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" extern int errno; #endif # 105 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" /* Some Windows related defines */ #undef _NC_WINDOWS #if 0 /* disabled by -frewrite-includes */ #if (defined(_WIN32) || defined(_WIN64)) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 109 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define _NC_WINDOWS #else # 111 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #undef EXP_WIN32_DRIVER #endif # 113 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #undef _NC_MINGW #if 0 /* disabled by -frewrite-includes */ #if (defined(__MINGW32__) || defined(__MINGW64__)) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 116 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define _NC_MINGW #endif # 118 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #undef _NC_MSC #ifdef _MSC_VER #define _NC_MSC #endif # 123 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" /* Some systems have a broken 'select()', but workable 'poll()'. Use that */ #if 0 /* disabled by -frewrite-includes */ #if HAVE_WORKING_POLL #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 126 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define USE_FUNC_POLL 1 #if 0 /* disabled by -frewrite-includes */ #if HAVE_POLL_H #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 128 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 128 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" # 1 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/poll.h" 1 3 4 /*- * SPDX-License-Identifier: BSD-3-Clause * * Copyright (c) 1997 Peter Wemm * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. The name of the author may not be used to endorse or promote products * derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * $FreeBSD$ */ #ifndef _SYS_POLL_H_ #define _SYS_POLL_H_ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 36 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/poll.h" 3 4 # 37 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/poll.h" 3 4 /* * This file is intended to be compatible with the traditional poll.h. */ typedef unsigned int nfds_t; /* * This structure is passed as an array to poll(2). */ struct pollfd { int fd; /* which file descriptor to poll */ short events; /* events we are interested in */ short revents; /* events found on return */ }; /* * Requestable events. If poll(2) finds any of these set, they are * copied to revents on return. * XXX Note that FreeBSD doesn't make much distinction between POLLPRI * and POLLRDBAND since none of the file types have distinct priority * bands - and only some have an urgent "mode". * XXX Note POLLIN isn't really supported in true SVSV terms. Under SYSV * POLLIN includes all of normal, band and urgent data. Most poll handlers * on FreeBSD only treat it as "normal" data. */ #define POLLIN 0x0001 /* any readable data available */ #define POLLPRI 0x0002 /* OOB/Urgent readable data */ #define POLLOUT 0x0004 /* file descriptor is writeable */ #define POLLRDNORM 0x0040 /* non-OOB/URG data available */ #define POLLWRNORM POLLOUT /* no write type differentiation */ #define POLLRDBAND 0x0080 /* OOB/Urgent readable data */ #define POLLWRBAND 0x0100 /* OOB/Urgent data can be written */ #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 72 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/poll.h" 3 4 /* General FreeBSD extension (currently only supported for sockets): */ #define POLLINIGNEOF 0x2000 /* like POLLIN, except ignore EOF */ #define POLLRDHUP 0x4000 /* half shut down */ #endif # 76 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/poll.h" 3 4 /* * These events are set if they occur regardless of whether they were * requested. */ #define POLLERR 0x0008 /* some poll error occurred */ #define POLLHUP 0x0010 /* file descriptor was "hung up" */ #define POLLNVAL 0x0020 /* requested events "invalid" */ #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 86 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/poll.h" 3 4 #define POLLSTANDARD (POLLIN|POLLPRI|POLLOUT|POLLRDNORM|POLLRDBAND|\ POLLWRBAND|POLLERR|POLLHUP|POLLNVAL) /* * Request that poll() wait forever. * XXX in SYSV, this is defined in stropts.h, which is not included * by poll.h. */ #define INFTIM (-1) #endif # 98 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/poll.h" 3 4 #ifndef _KERNEL #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 102 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/poll.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 102 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/poll.h" 3 4 # 103 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/poll.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 104 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/poll.h" 3 4 # 105 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/poll.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 105 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/poll.h" 3 4 # 106 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/poll.h" 3 4 #ifndef _SIGSET_T_DECLARED #define _SIGSET_T_DECLARED typedef __sigset_t sigset_t; #endif # 111 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/poll.h" 3 4 #endif # 113 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/poll.h" 3 4 __BEGIN_DECLS int poll(struct pollfd _pfd[], nfds_t _nfds, int _timeout); #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 117 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/poll.h" 3 4 int ppoll(struct pollfd _pfd[], nfds_t _nfds, const struct timespec *__restrict _timeout, const sigset_t *__restrict _newsigmask); #endif # 121 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/poll.h" 3 4 __END_DECLS #endif /* !_KERNEL */ # 124 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/poll.h" 3 4 #endif /* !_SYS_POLL_H_ */ # 126 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/poll.h" 3 4 # 129 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" 2 #else # 130 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 130 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" # 131 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #endif # 132 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #else # 133 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define USE_FUNC_POLL 0 #endif # 135 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #if 0 /* disabled by -frewrite-includes */ #if HAVE_INTTYPES_H #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 137 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #if 0 /* expanded by -frewrite-includes */ # include #endif /* expanded by -frewrite-includes */ # 137 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" # 1 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/inttypes.h" 1 3 4 /*- * SPDX-License-Identifier: BSD-2-Clause-FreeBSD * * Copyright (c) 2001 Mike Barcroft * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * $FreeBSD$ */ #ifndef _INTTYPES_H_ #define _INTTYPES_H_ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 34 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/inttypes.h" 3 4 # 1 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/machine/_inttypes.h" 1 3 4 /*- * This file is in the public domain. */ /* $FreeBSD$ */ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 6 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/machine/_inttypes.h" 3 4 # 1 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/x86/_inttypes.h" 1 3 4 /*- * SPDX-License-Identifier: BSD-2-Clause-NetBSD * * Copyright (c) 2001 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by Klaus Klein. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * * From: $NetBSD: int_fmtio.h,v 1.2 2001/04/26 16:25:21 kleink Exp $ * $FreeBSD$ */ #ifndef _MACHINE_INTTYPES_H_ #define _MACHINE_INTTYPES_H_ /* * Macros for format specifiers. */ #ifdef __LP64__ #define __PRI64 "l" #define __PRIptr "l" #else # 46 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/x86/_inttypes.h" 3 4 #define __PRI64 "ll" #define __PRIptr #endif # 49 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/x86/_inttypes.h" 3 4 /* fprintf(3) macros for signed integers. */ #define PRId8 "d" /* int8_t */ #define PRId16 "d" /* int16_t */ #define PRId32 "d" /* int32_t */ #define PRId64 __PRI64"d" /* int64_t */ #define PRIdLEAST8 "d" /* int_least8_t */ #define PRIdLEAST16 "d" /* int_least16_t */ #define PRIdLEAST32 "d" /* int_least32_t */ #define PRIdLEAST64 __PRI64"d" /* int_least64_t */ #define PRIdFAST8 "d" /* int_fast8_t */ #define PRIdFAST16 "d" /* int_fast16_t */ #define PRIdFAST32 "d" /* int_fast32_t */ #define PRIdFAST64 __PRI64"d" /* int_fast64_t */ #define PRIdMAX "jd" /* intmax_t */ #define PRIdPTR __PRIptr"d" /* intptr_t */ #define PRIi8 "i" /* int8_t */ #define PRIi16 "i" /* int16_t */ #define PRIi32 "i" /* int32_t */ #define PRIi64 __PRI64"i" /* int64_t */ #define PRIiLEAST8 "i" /* int_least8_t */ #define PRIiLEAST16 "i" /* int_least16_t */ #define PRIiLEAST32 "i" /* int_least32_t */ #define PRIiLEAST64 __PRI64"i" /* int_least64_t */ #define PRIiFAST8 "i" /* int_fast8_t */ #define PRIiFAST16 "i" /* int_fast16_t */ #define PRIiFAST32 "i" /* int_fast32_t */ #define PRIiFAST64 __PRI64"i" /* int_fast64_t */ #define PRIiMAX "ji" /* intmax_t */ #define PRIiPTR __PRIptr"i" /* intptr_t */ /* fprintf(3) macros for unsigned integers. */ #define PRIo8 "o" /* uint8_t */ #define PRIo16 "o" /* uint16_t */ #define PRIo32 "o" /* uint32_t */ #define PRIo64 __PRI64"o" /* uint64_t */ #define PRIoLEAST8 "o" /* uint_least8_t */ #define PRIoLEAST16 "o" /* uint_least16_t */ #define PRIoLEAST32 "o" /* uint_least32_t */ #define PRIoLEAST64 __PRI64"o" /* uint_least64_t */ #define PRIoFAST8 "o" /* uint_fast8_t */ #define PRIoFAST16 "o" /* uint_fast16_t */ #define PRIoFAST32 "o" /* uint_fast32_t */ #define PRIoFAST64 __PRI64"o" /* uint_fast64_t */ #define PRIoMAX "jo" /* uintmax_t */ #define PRIoPTR __PRIptr"o" /* uintptr_t */ #define PRIu8 "u" /* uint8_t */ #define PRIu16 "u" /* uint16_t */ #define PRIu32 "u" /* uint32_t */ #define PRIu64 __PRI64"u" /* uint64_t */ #define PRIuLEAST8 "u" /* uint_least8_t */ #define PRIuLEAST16 "u" /* uint_least16_t */ #define PRIuLEAST32 "u" /* uint_least32_t */ #define PRIuLEAST64 __PRI64"u" /* uint_least64_t */ #define PRIuFAST8 "u" /* uint_fast8_t */ #define PRIuFAST16 "u" /* uint_fast16_t */ #define PRIuFAST32 "u" /* uint_fast32_t */ #define PRIuFAST64 __PRI64"u" /* uint_fast64_t */ #define PRIuMAX "ju" /* uintmax_t */ #define PRIuPTR __PRIptr"u" /* uintptr_t */ #define PRIx8 "x" /* uint8_t */ #define PRIx16 "x" /* uint16_t */ #define PRIx32 "x" /* uint32_t */ #define PRIx64 __PRI64"x" /* uint64_t */ #define PRIxLEAST8 "x" /* uint_least8_t */ #define PRIxLEAST16 "x" /* uint_least16_t */ #define PRIxLEAST32 "x" /* uint_least32_t */ #define PRIxLEAST64 __PRI64"x" /* uint_least64_t */ #define PRIxFAST8 "x" /* uint_fast8_t */ #define PRIxFAST16 "x" /* uint_fast16_t */ #define PRIxFAST32 "x" /* uint_fast32_t */ #define PRIxFAST64 __PRI64"x" /* uint_fast64_t */ #define PRIxMAX "jx" /* uintmax_t */ #define PRIxPTR __PRIptr"x" /* uintptr_t */ #define PRIX8 "X" /* uint8_t */ #define PRIX16 "X" /* uint16_t */ #define PRIX32 "X" /* uint32_t */ #define PRIX64 __PRI64"X" /* uint64_t */ #define PRIXLEAST8 "X" /* uint_least8_t */ #define PRIXLEAST16 "X" /* uint_least16_t */ #define PRIXLEAST32 "X" /* uint_least32_t */ #define PRIXLEAST64 __PRI64"X" /* uint_least64_t */ #define PRIXFAST8 "X" /* uint_fast8_t */ #define PRIXFAST16 "X" /* uint_fast16_t */ #define PRIXFAST32 "X" /* uint_fast32_t */ #define PRIXFAST64 __PRI64"X" /* uint_fast64_t */ #define PRIXMAX "jX" /* uintmax_t */ #define PRIXPTR __PRIptr"X" /* uintptr_t */ /* fscanf(3) macros for signed integers. */ #define SCNd8 "hhd" /* int8_t */ #define SCNd16 "hd" /* int16_t */ #define SCNd32 "d" /* int32_t */ #define SCNd64 __PRI64"d" /* int64_t */ #define SCNdLEAST8 "hhd" /* int_least8_t */ #define SCNdLEAST16 "hd" /* int_least16_t */ #define SCNdLEAST32 "d" /* int_least32_t */ #define SCNdLEAST64 __PRI64"d" /* int_least64_t */ #define SCNdFAST8 "d" /* int_fast8_t */ #define SCNdFAST16 "d" /* int_fast16_t */ #define SCNdFAST32 "d" /* int_fast32_t */ #define SCNdFAST64 __PRI64"d" /* int_fast64_t */ #define SCNdMAX "jd" /* intmax_t */ #define SCNdPTR __PRIptr"d" /* intptr_t */ #define SCNi8 "hhi" /* int8_t */ #define SCNi16 "hi" /* int16_t */ #define SCNi32 "i" /* int32_t */ #define SCNi64 __PRI64"i" /* int64_t */ #define SCNiLEAST8 "hhi" /* int_least8_t */ #define SCNiLEAST16 "hi" /* int_least16_t */ #define SCNiLEAST32 "i" /* int_least32_t */ #define SCNiLEAST64 __PRI64"i" /* int_least64_t */ #define SCNiFAST8 "i" /* int_fast8_t */ #define SCNiFAST16 "i" /* int_fast16_t */ #define SCNiFAST32 "i" /* int_fast32_t */ #define SCNiFAST64 __PRI64"i" /* int_fast64_t */ #define SCNiMAX "ji" /* intmax_t */ #define SCNiPTR __PRIptr"i" /* intptr_t */ /* fscanf(3) macros for unsigned integers. */ #define SCNo8 "hho" /* uint8_t */ #define SCNo16 "ho" /* uint16_t */ #define SCNo32 "o" /* uint32_t */ #define SCNo64 __PRI64"o" /* uint64_t */ #define SCNoLEAST8 "hho" /* uint_least8_t */ #define SCNoLEAST16 "ho" /* uint_least16_t */ #define SCNoLEAST32 "o" /* uint_least32_t */ #define SCNoLEAST64 __PRI64"o" /* uint_least64_t */ #define SCNoFAST8 "o" /* uint_fast8_t */ #define SCNoFAST16 "o" /* uint_fast16_t */ #define SCNoFAST32 "o" /* uint_fast32_t */ #define SCNoFAST64 __PRI64"o" /* uint_fast64_t */ #define SCNoMAX "jo" /* uintmax_t */ #define SCNoPTR __PRIptr"o" /* uintptr_t */ #define SCNu8 "hhu" /* uint8_t */ #define SCNu16 "hu" /* uint16_t */ #define SCNu32 "u" /* uint32_t */ #define SCNu64 __PRI64"u" /* uint64_t */ #define SCNuLEAST8 "hhu" /* uint_least8_t */ #define SCNuLEAST16 "hu" /* uint_least16_t */ #define SCNuLEAST32 "u" /* uint_least32_t */ #define SCNuLEAST64 __PRI64"u" /* uint_least64_t */ #define SCNuFAST8 "u" /* uint_fast8_t */ #define SCNuFAST16 "u" /* uint_fast16_t */ #define SCNuFAST32 "u" /* uint_fast32_t */ #define SCNuFAST64 __PRI64"u" /* uint_fast64_t */ #define SCNuMAX "ju" /* uintmax_t */ #define SCNuPTR __PRIptr"u" /* uintptr_t */ #define SCNx8 "hhx" /* uint8_t */ #define SCNx16 "hx" /* uint16_t */ #define SCNx32 "x" /* uint32_t */ #define SCNx64 __PRI64"x" /* uint64_t */ #define SCNxLEAST8 "hhx" /* uint_least8_t */ #define SCNxLEAST16 "hx" /* uint_least16_t */ #define SCNxLEAST32 "x" /* uint_least32_t */ #define SCNxLEAST64 __PRI64"x" /* uint_least64_t */ #define SCNxFAST8 "x" /* uint_fast8_t */ #define SCNxFAST16 "x" /* uint_fast16_t */ #define SCNxFAST32 "x" /* uint_fast32_t */ #define SCNxFAST64 __PRI64"x" /* uint_fast64_t */ #define SCNxMAX "jx" /* uintmax_t */ #define SCNxPTR __PRIptr"x" /* uintptr_t */ #endif /* !_MACHINE_INTTYPES_H_ */ # 224 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/x86/_inttypes.h" 3 4 # 7 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/machine/_inttypes.h" 2 3 4 # 35 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/inttypes.h" 2 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 35 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/inttypes.h" 3 4 # 1 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stdint.h" 1 3 4 /*- * SPDX-License-Identifier: BSD-2-Clause-FreeBSD * * Copyright (c) 2001 Mike Barcroft * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * $FreeBSD$ */ #ifndef _SYS_STDINT_H_ #define _SYS_STDINT_H_ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 34 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stdint.h" 3 4 # 35 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stdint.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 35 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stdint.h" 3 4 # 36 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stdint.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 37 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stdint.h" 3 4 # 1 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/machine/_stdint.h" 1 3 4 /*- * This file is in the public domain. */ /* $FreeBSD$ */ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 6 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/machine/_stdint.h" 3 4 # 1 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/x86/_stdint.h" 1 3 4 /*- * SPDX-License-Identifier: BSD-4-Clause * * Copyright (c) 2001, 2002 Mike Barcroft * Copyright (c) 2001 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by Klaus Klein. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. All advertising materials mentioning features or use of this software * must display the following acknowledgement: * This product includes software developed by the NetBSD * Foundation, Inc. and its contributors. * 4. Neither the name of The NetBSD Foundation nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * * $FreeBSD$ */ #ifndef _MACHINE__STDINT_H_ #define _MACHINE__STDINT_H_ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 45 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/x86/_stdint.h" 3 4 # 1 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/machine/_limits.h" 1 3 4 /*- * This file is in the public domain. */ /* $FreeBSD$ */ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 6 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/machine/_limits.h" 3 4 # 7 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/machine/_limits.h" 3 4 # 46 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/x86/_stdint.h" 2 3 4 #if 0 /* disabled by -frewrite-includes */ #if !defined(__cplusplus) || defined(__STDC_CONSTANT_MACROS) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 48 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/x86/_stdint.h" 3 4 #define INT8_C(c) (c) #define INT16_C(c) (c) #define INT32_C(c) (c) #define UINT8_C(c) (c) #define UINT16_C(c) (c) #define UINT32_C(c) (c ## U) #ifdef __LP64__ #define INT64_C(c) (c ## L) #define UINT64_C(c) (c ## UL) #else # 61 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/x86/_stdint.h" 3 4 #define INT64_C(c) (c ## LL) #define UINT64_C(c) (c ## ULL) #endif # 64 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/x86/_stdint.h" 3 4 #define INTMAX_C(c) INT64_C(c) #define UINTMAX_C(c) UINT64_C(c) #endif /* !defined(__cplusplus) || defined(__STDC_CONSTANT_MACROS) */ # 69 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/x86/_stdint.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if !defined(__cplusplus) || defined(__STDC_LIMIT_MACROS) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 71 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/x86/_stdint.h" 3 4 /* * ISO/IEC 9899:1999 * 7.18.2.1 Limits of exact-width integer types */ #define INT8_MIN (-0x7f-1) #define INT16_MIN (-0x7fff-1) #define INT32_MIN (-0x7fffffff-1) #define INT8_MAX 0x7f #define INT16_MAX 0x7fff #define INT32_MAX 0x7fffffff #define UINT8_MAX 0xff #define UINT16_MAX 0xffff #define UINT32_MAX 0xffffffffU #ifdef __LP64__ #define INT64_MIN (-0x7fffffffffffffff-1) #define INT64_MAX 0x7fffffffffffffff #define UINT64_MAX 0xffffffffffffffff #else # 93 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/x86/_stdint.h" 3 4 #define INT64_MIN (-0x7fffffffffffffffLL-1) #define INT64_MAX 0x7fffffffffffffffLL #define UINT64_MAX 0xffffffffffffffffULL #endif # 97 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/x86/_stdint.h" 3 4 /* * ISO/IEC 9899:1999 * 7.18.2.2 Limits of minimum-width integer types */ /* Minimum values of minimum-width signed integer types. */ #define INT_LEAST8_MIN INT8_MIN #define INT_LEAST16_MIN INT16_MIN #define INT_LEAST32_MIN INT32_MIN #define INT_LEAST64_MIN INT64_MIN /* Maximum values of minimum-width signed integer types. */ #define INT_LEAST8_MAX INT8_MAX #define INT_LEAST16_MAX INT16_MAX #define INT_LEAST32_MAX INT32_MAX #define INT_LEAST64_MAX INT64_MAX /* Maximum values of minimum-width unsigned integer types. */ #define UINT_LEAST8_MAX UINT8_MAX #define UINT_LEAST16_MAX UINT16_MAX #define UINT_LEAST32_MAX UINT32_MAX #define UINT_LEAST64_MAX UINT64_MAX /* * ISO/IEC 9899:1999 * 7.18.2.3 Limits of fastest minimum-width integer types */ /* Minimum values of fastest minimum-width signed integer types. */ #define INT_FAST8_MIN INT32_MIN #define INT_FAST16_MIN INT32_MIN #define INT_FAST32_MIN INT32_MIN #define INT_FAST64_MIN INT64_MIN /* Maximum values of fastest minimum-width signed integer types. */ #define INT_FAST8_MAX INT32_MAX #define INT_FAST16_MAX INT32_MAX #define INT_FAST32_MAX INT32_MAX #define INT_FAST64_MAX INT64_MAX /* Maximum values of fastest minimum-width unsigned integer types. */ #define UINT_FAST8_MAX UINT32_MAX #define UINT_FAST16_MAX UINT32_MAX #define UINT_FAST32_MAX UINT32_MAX #define UINT_FAST64_MAX UINT64_MAX /* * ISO/IEC 9899:1999 * 7.18.2.4 Limits of integer types capable of holding object pointers */ #ifdef __LP64__ #define INTPTR_MIN INT64_MIN #define INTPTR_MAX INT64_MAX #define UINTPTR_MAX UINT64_MAX #else # 151 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/x86/_stdint.h" 3 4 #define INTPTR_MIN INT32_MIN #define INTPTR_MAX INT32_MAX #define UINTPTR_MAX UINT32_MAX #endif # 155 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/x86/_stdint.h" 3 4 /* * ISO/IEC 9899:1999 * 7.18.2.5 Limits of greatest-width integer types */ #define INTMAX_MIN INT64_MIN #define INTMAX_MAX INT64_MAX #define UINTMAX_MAX UINT64_MAX /* * ISO/IEC 9899:1999 * 7.18.3 Limits of other integer types */ #ifdef __LP64__ /* Limits of ptrdiff_t. */ #define PTRDIFF_MIN INT64_MIN #define PTRDIFF_MAX INT64_MAX /* Limits of sig_atomic_t. */ #define SIG_ATOMIC_MIN __LONG_MIN #define SIG_ATOMIC_MAX __LONG_MAX /* Limit of size_t. */ #define SIZE_MAX UINT64_MAX #else # 180 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/x86/_stdint.h" 3 4 #define PTRDIFF_MIN INT32_MIN #define PTRDIFF_MAX INT32_MAX #define SIG_ATOMIC_MIN INT32_MIN #define SIG_ATOMIC_MAX INT32_MAX #define SIZE_MAX UINT32_MAX #endif # 186 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/x86/_stdint.h" 3 4 /* Limits of wint_t. */ #define WINT_MIN INT32_MIN #define WINT_MAX INT32_MAX #endif /* !defined(__cplusplus) || defined(__STDC_LIMIT_MACROS) */ # 192 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/x86/_stdint.h" 3 4 #endif /* !_MACHINE__STDINT_H_ */ # 194 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/x86/_stdint.h" 3 4 # 7 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/machine/_stdint.h" 2 3 4 # 38 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stdint.h" 2 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 38 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stdint.h" 3 4 # 39 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stdint.h" 3 4 typedef __int_least8_t int_least8_t; typedef __int_least16_t int_least16_t; typedef __int_least32_t int_least32_t; typedef __int_least64_t int_least64_t; typedef __uint_least8_t uint_least8_t; typedef __uint_least16_t uint_least16_t; typedef __uint_least32_t uint_least32_t; typedef __uint_least64_t uint_least64_t; typedef __int_fast8_t int_fast8_t; typedef __int_fast16_t int_fast16_t; typedef __int_fast32_t int_fast32_t; typedef __int_fast64_t int_fast64_t; typedef __uint_fast8_t uint_fast8_t; typedef __uint_fast16_t uint_fast16_t; typedef __uint_fast32_t uint_fast32_t; typedef __uint_fast64_t uint_fast64_t; /* GNU and Darwin define this and people seem to think it's portable */ #if 0 /* disabled by -frewrite-includes */ #if defined(UINTPTR_MAX) && defined(UINT64_MAX) && (UINTPTR_MAX == UINT64_MAX) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 62 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stdint.h" 3 4 #define __WORDSIZE 64 #else # 64 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stdint.h" 3 4 #define __WORDSIZE 32 #endif # 66 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stdint.h" 3 4 /* Limits of wchar_t. */ #define WCHAR_MIN __WCHAR_MIN #define WCHAR_MAX __WCHAR_MAX #if 0 /* disabled by -frewrite-includes */ #if __EXT1_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 72 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stdint.h" 3 4 /* ISO/IEC 9899:2011 K.3.4.4 */ #ifndef RSIZE_MAX #define RSIZE_MAX (SIZE_MAX >> 1) #endif # 76 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stdint.h" 3 4 #endif /* __EXT1_VISIBLE */ # 77 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stdint.h" 3 4 #endif /* !_SYS_STDINT_H_ */ # 79 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/stdint.h" 3 4 # 36 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/inttypes.h" 2 3 4 #ifndef __cplusplus #ifndef _WCHAR_T_DECLARED typedef ___wchar_t wchar_t; #define _WCHAR_T_DECLARED #endif # 42 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/inttypes.h" 3 4 #endif # 43 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/inttypes.h" 3 4 typedef struct { intmax_t quot; /* Quotient. */ intmax_t rem; /* Remainder. */ } imaxdiv_t; __BEGIN_DECLS #ifdef _XLOCALE_H_ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 51 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/inttypes.h" 3 4 # 52 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/inttypes.h" 3 4 #endif # 53 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/inttypes.h" 3 4 intmax_t imaxabs(intmax_t) __pure2; imaxdiv_t imaxdiv(intmax_t, intmax_t) __pure2; intmax_t strtoimax(const char * __restrict, char ** __restrict, int); uintmax_t strtoumax(const char * __restrict, char ** __restrict, int); intmax_t wcstoimax(const wchar_t * __restrict, wchar_t ** __restrict, int); uintmax_t wcstoumax(const wchar_t * __restrict, wchar_t ** __restrict, int); __END_DECLS #endif /* !_INTTYPES_H_ */ # 65 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/inttypes.h" 3 4 # 138 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" 2 #else # 139 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #if 0 /* disabled by -frewrite-includes */ # if HAVE_STDINT_H #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 140 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #if 0 /* expanded by -frewrite-includes */ # include #endif /* expanded by -frewrite-includes */ # 140 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" # 141 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" # endif # 142 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #endif # 143 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" /* include signal.h before curses.h to work-around defect in glibc 2.1.3 */ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 145 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" # 1 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/signal.h" 1 3 4 /*- * SPDX-License-Identifier: BSD-3-Clause * * Copyright (c) 1991, 1993 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * @(#)signal.h 8.3 (Berkeley) 3/30/94 * $FreeBSD$ */ #ifndef _SIGNAL_H_ #define _SIGNAL_H_ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 38 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/signal.h" 3 4 # 39 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/signal.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 39 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/signal.h" 3 4 # 40 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/signal.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 40 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/signal.h" 3 4 # 1 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 1 3 4 /*- * SPDX-License-Identifier: BSD-3-Clause * * Copyright (c) 1982, 1986, 1989, 1991, 1993 * The Regents of the University of California. All rights reserved. * (c) UNIX System Laboratories, Inc. * All or some portions of this file are derived from material licensed * to the University of California by American Telephone and Telegraph * Co. or Unix System Laboratories, Inc. and are reproduced herein with * the permission of UNIX System Laboratories, Inc. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * @(#)signal.h 8.4 (Berkeley) 5/4/95 * $FreeBSD$ */ #ifndef _SYS_SIGNAL_H_ #define _SYS_SIGNAL_H_ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 43 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 # 44 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 44 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 # 45 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 45 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 # 46 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include /* __MINSIGSTKSZ */ #endif /* expanded by -frewrite-includes */ # 47 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 # 1 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/machine/_limits.h" 1 3 4 /*- * This file is in the public domain. */ /* $FreeBSD$ */ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 6 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/machine/_limits.h" 3 4 # 7 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/machine/_limits.h" 3 4 # 48 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 2 3 4 #if 0 /* expanded by -frewrite-includes */ #include /* sig_atomic_t; trap codes; sigcontext */ #endif /* expanded by -frewrite-includes */ # 48 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 # 1 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/machine/signal.h" 1 3 4 /*- * This file is in the public domain. */ /* $FreeBSD$ */ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 6 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/machine/signal.h" 3 4 # 1 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/x86/signal.h" 1 3 4 /*- * SPDX-License-Identifier: BSD-3-Clause * * Copyright (c) 1986, 1989, 1991, 1993 * The Regents of the University of California. All rights reserved. * Copyright (c) 2003 Peter Wemm. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * @(#)signal.h 8.1 (Berkeley) 6/11/93 * $FreeBSD$ */ #ifndef _X86_SIGNAL_H #define _X86_SIGNAL_H 1 /* * Machine-dependent signal definitions */ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 43 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/x86/signal.h" 3 4 # 44 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/x86/signal.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 44 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/x86/signal.h" 3 4 # 45 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/x86/signal.h" 3 4 #ifdef __i386__ typedef int sig_atomic_t; #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 50 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/x86/signal.h" 3 4 struct sigcontext { struct __sigset sc_mask; /* signal mask to restore */ int sc_onstack; /* sigstack state to restore */ int sc_gs; /* machine state (struct trapframe) */ int sc_fs; int sc_es; int sc_ds; int sc_edi; int sc_esi; int sc_ebp; int sc_isp; int sc_ebx; int sc_edx; int sc_ecx; int sc_eax; int sc_trapno; int sc_err; int sc_eip; int sc_cs; int sc_efl; int sc_esp; int sc_ss; int sc_len; /* sizeof(mcontext_t) */ /* * See and for * the following fields. */ int sc_fpformat; int sc_ownedfp; int sc_flags; int sc_fpstate[128] __aligned(16); int sc_fsbase; int sc_gsbase; int sc_xfpustate; int sc_xfpustate_len; int sc_spare2[4]; }; #define sc_sp sc_esp #define sc_fp sc_ebp #define sc_pc sc_eip #define sc_ps sc_efl #define sc_eflags sc_efl #endif /* __BSD_VISIBLE */ # 98 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/x86/signal.h" 3 4 #endif /* __i386__ */ # 99 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/x86/signal.h" 3 4 #ifdef __amd64__ typedef long sig_atomic_t; #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 104 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/x86/signal.h" 3 4 /* * Information pushed on stack when a signal is delivered. * This is used by the kernel to restore state following * execution of the signal handler. It is also made available * to the handler to allow it to restore state properly if * a non-standard exit is performed. * * The sequence of the fields/registers after sc_mask in struct * sigcontext must match those in mcontext_t and struct trapframe. */ struct sigcontext { struct __sigset sc_mask; /* signal mask to restore */ long sc_onstack; /* sigstack state to restore */ long sc_rdi; /* machine state (struct trapframe) */ long sc_rsi; long sc_rdx; long sc_rcx; long sc_r8; long sc_r9; long sc_rax; long sc_rbx; long sc_rbp; long sc_r10; long sc_r11; long sc_r12; long sc_r13; long sc_r14; long sc_r15; int sc_trapno; short sc_fs; short sc_gs; long sc_addr; int sc_flags; short sc_es; short sc_ds; long sc_err; long sc_rip; long sc_cs; long sc_rflags; long sc_rsp; long sc_ss; long sc_len; /* sizeof(mcontext_t) */ /* * See and for the following * fields. */ long sc_fpformat; long sc_ownedfp; long sc_fpstate[64] __aligned(16); long sc_fsbase; long sc_gsbase; long sc_xfpustate; long sc_xfpustate_len; long sc_spare[4]; }; #endif /* __BSD_VISIBLE */ # 163 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/x86/signal.h" 3 4 #endif /* __amd64__ */ # 164 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/x86/signal.h" 3 4 #endif # 166 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/x86/signal.h" 3 4 # 7 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/machine/signal.h" 2 3 4 # 49 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 2 3 4 #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 200809 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 51 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 52 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 # 53 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 53 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 # 54 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 #ifndef _SIZE_T_DECLARED typedef __size_t size_t; #define _SIZE_T_DECLARED #endif # 59 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 #ifndef _UID_T_DECLARED typedef __uid_t uid_t; #define _UID_T_DECLARED #endif # 64 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 #endif /* __POSIX_VISIBLE >= 200809 */ # 66 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 /* * System defined signals. */ #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE || __XSI_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 71 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 #define SIGHUP 1 /* hangup */ #endif # 73 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 #define SIGINT 2 /* interrupt */ #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE || __XSI_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 75 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 #define SIGQUIT 3 /* quit */ #endif # 77 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 #define SIGILL 4 /* illegal instr. (not reset when caught) */ #if 0 /* disabled by -frewrite-includes */ #if __XSI_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 79 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 #define SIGTRAP 5 /* trace trap (not reset when caught) */ #endif # 81 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 #define SIGABRT 6 /* abort() */ #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 83 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 #define SIGIOT SIGABRT /* compatibility */ #define SIGEMT 7 /* EMT instruction */ #endif # 86 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 #define SIGFPE 8 /* floating point exception */ #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE || __XSI_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 88 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 #define SIGKILL 9 /* kill (cannot be caught or ignored) */ #endif # 90 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 200112 || __XSI_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 91 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 #define SIGBUS 10 /* bus error */ #endif # 93 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 #define SIGSEGV 11 /* segmentation violation */ #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 200112 || __XSI_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 95 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 #define SIGSYS 12 /* non-existent system call invoked */ #endif # 97 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE || __XSI_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 98 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 #define SIGPIPE 13 /* write on a pipe with no one to read it */ #define SIGALRM 14 /* alarm clock */ #endif # 101 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 #define SIGTERM 15 /* software termination signal from kill */ #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 200112 || __XSI_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 103 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 #define SIGURG 16 /* urgent condition on IO channel */ #endif # 105 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE || __XSI_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 106 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 #define SIGSTOP 17 /* sendable stop signal not from tty */ #define SIGTSTP 18 /* stop signal from tty */ #define SIGCONT 19 /* continue a stopped process */ #define SIGCHLD 20 /* to parent on child stop or exit */ #define SIGTTIN 21 /* to readers pgrp upon background tty read */ #define SIGTTOU 22 /* like TTIN if (tp->t_local<OSTOP) */ #endif # 113 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 114 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 #define SIGIO 23 /* input/output possible signal */ #endif # 116 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __XSI_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 117 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 #define SIGXCPU 24 /* exceeded CPU time limit */ #define SIGXFSZ 25 /* exceeded file size limit */ #define SIGVTALRM 26 /* virtual time alarm */ #define SIGPROF 27 /* profiling time alarm */ #endif # 122 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 123 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 #define SIGWINCH 28 /* window size changes */ #define SIGINFO 29 /* information request */ #endif # 126 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE || __XSI_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 127 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 #define SIGUSR1 30 /* user defined signal 1 */ #define SIGUSR2 31 /* user defined signal 2 */ #endif # 130 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 131 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 #define SIGTHR 32 /* reserved by thread library. */ #define SIGLWP SIGTHR #define SIGLIBRT 33 /* reserved by real-time library. */ #endif # 135 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 #define SIGRTMIN 65 #define SIGRTMAX 126 #define SIG_DFL ((__sighandler_t *)0) #define SIG_IGN ((__sighandler_t *)1) #define SIG_ERR ((__sighandler_t *)-1) /* #define SIG_CATCH ((__sighandler_t *)2) See signalvar.h */ #define SIG_HOLD ((__sighandler_t *)3) /* * Type of a signal handling function. * * Language spec sez signal handlers take exactly one arg, even though we * actually supply three. Ugh! * * We don't try to hide the difference by leaving out the args because * that would cause warnings about conformant programs. Nonconformant * programs can avoid the warnings by casting to (__sighandler_t *) or * sig_t before calling signal() or assigning to sa_handler or sv_handler. * * The kernel should reverse the cast before calling the function. It * has no way to do this, but on most machines 1-arg and 3-arg functions * have the same calling protocol so there is no problem in practice. * A bit in sa_flags could be used to specify the number of args. */ typedef void __sighandler_t(int); #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE || __XSI_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 164 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 #ifndef _SIGSET_T_DECLARED #define _SIGSET_T_DECLARED typedef __sigset_t sigset_t; #endif # 168 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 #endif # 169 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 199309 || __XSI_VISIBLE >= 500 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 171 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 union sigval { /* Members as suggested by Annex C of POSIX 1003.1b. */ int sival_int; void *sival_ptr; /* 6.0 compatibility */ int sigval_int; void *sigval_ptr; }; #if 0 /* disabled by -frewrite-includes */ #if defined(_WANT_LWPINFO32) || (defined(_KERNEL) && defined(__LP64__)) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 181 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 union sigval32 { int sival_int; uint32_t sival_ptr; /* 6.0 compatibility */ int sigval_int; uint32_t sigval_ptr; }; #endif # 189 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 #endif # 190 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 199309 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 192 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 struct pthread_attr; struct sigevent { int sigev_notify; /* Notification type */ int sigev_signo; /* Signal number */ union sigval sigev_value; /* Signal value */ union { __lwpid_t _threadid; struct { void (*_function)(union sigval); struct pthread_attr **_attribute; } _sigev_thread; unsigned short _kevent_flags; long __spare__[8]; } _sigev_un; }; #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 211 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 #define sigev_notify_kqueue sigev_signo #define sigev_notify_kevent_flags _sigev_un._kevent_flags #define sigev_notify_thread_id _sigev_un._threadid #endif # 215 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 #define sigev_notify_function _sigev_un._sigev_thread._function #define sigev_notify_attributes _sigev_un._sigev_thread._attribute #define SIGEV_NONE 0 /* No async notification. */ #define SIGEV_SIGNAL 1 /* Generate a queued signal. */ #define SIGEV_THREAD 2 /* Call back from another pthread. */ #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 222 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 #define SIGEV_KEVENT 3 /* Generate a kevent. */ #define SIGEV_THREAD_ID 4 /* Send signal to a kernel thread. */ #endif # 225 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 #endif /* __POSIX_VISIBLE >= 199309 */ # 227 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 199309 || __XSI_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 229 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 typedef struct __siginfo { int si_signo; /* signal number */ int si_errno; /* errno association */ /* * Cause of signal, one of the SI_ macros or signal-specific * values, i.e. one of the FPE_... values for SIGFPE. This * value is equivalent to the second argument to an old-style * FreeBSD signal handler. */ int si_code; /* signal code */ __pid_t si_pid; /* sending process */ __uid_t si_uid; /* sender's ruid */ int si_status; /* exit value */ void *si_addr; /* faulting instruction */ union sigval si_value; /* signal value */ union { struct { int _trapno;/* machine specific trap code */ } _fault; struct { int _timerid; int _overrun; } _timer; struct { int _mqd; } _mesgq; struct { long _band; /* band event for SIGPOLL */ } _poll; /* was this ever used ? */ struct { int _syscall; /* Syscall number for signals * delivered as a result of * system calls denied by * Capsicum. */ } _capsicum; struct { long __spare1__; int __spare2__[7]; } __spare__; } _reason; } siginfo_t; #define si_trapno _reason._fault._trapno #define si_timerid _reason._timer._timerid #define si_overrun _reason._timer._overrun #define si_mqd _reason._mesgq._mqd #define si_band _reason._poll._band #define si_syscall _reason._capsicum._syscall #if 0 /* disabled by -frewrite-includes */ #if defined(_WANT_LWPINFO32) || (defined(_KERNEL) && defined(__LP64__)) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 279 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 struct siginfo32 { int si_signo; /* signal number */ int si_errno; /* errno association */ int si_code; /* signal code */ __pid_t si_pid; /* sending process */ __uid_t si_uid; /* sender's ruid */ int si_status; /* exit value */ uint32_t si_addr; /* faulting instruction */ union sigval32 si_value; /* signal value */ union { struct { int _trapno;/* machine specific trap code */ } _fault; struct { int _timerid; int _overrun; } _timer; struct { int _mqd; } _mesgq; struct { int32_t _band; /* band event for SIGPOLL */ } _poll; /* was this ever used ? */ struct { int32_t __spare1__; int __spare2__[7]; } __spare__; } _reason; }; #endif # 309 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 /** si_code **/ /* codes for SIGILL */ #define ILL_ILLOPC 1 /* Illegal opcode. */ #define ILL_ILLOPN 2 /* Illegal operand. */ #define ILL_ILLADR 3 /* Illegal addressing mode. */ #define ILL_ILLTRP 4 /* Illegal trap. */ #define ILL_PRVOPC 5 /* Privileged opcode. */ #define ILL_PRVREG 6 /* Privileged register. */ #define ILL_COPROC 7 /* Coprocessor error. */ #define ILL_BADSTK 8 /* Internal stack error. */ /* codes for SIGBUS */ #define BUS_ADRALN 1 /* Invalid address alignment. */ #define BUS_ADRERR 2 /* Nonexistent physical address. */ #define BUS_OBJERR 3 /* Object-specific hardware error. */ #define BUS_OOMERR 100 /* Non-standard: No memory. */ /* codes for SIGSEGV */ #define SEGV_MAPERR 1 /* Address not mapped to object. */ #define SEGV_ACCERR 2 /* Invalid permissions for mapped */ /* object. */ #define SEGV_PKUERR 100 /* x86: PKU violation */ /* codes for SIGFPE */ #define FPE_INTOVF 1 /* Integer overflow. */ #define FPE_INTDIV 2 /* Integer divide by zero. */ #define FPE_FLTDIV 3 /* Floating point divide by zero. */ #define FPE_FLTOVF 4 /* Floating point overflow. */ #define FPE_FLTUND 5 /* Floating point underflow. */ #define FPE_FLTRES 6 /* Floating point inexact result. */ #define FPE_FLTINV 7 /* Invalid floating point operation. */ #define FPE_FLTSUB 8 /* Subscript out of range. */ /* codes for SIGTRAP */ #define TRAP_BRKPT 1 /* Process breakpoint. */ #define TRAP_TRACE 2 /* Process trace trap. */ #define TRAP_DTRACE 3 /* DTrace induced trap. */ #define TRAP_CAP 4 /* Capabilities protective trap. */ /* codes for SIGCHLD */ #define CLD_EXITED 1 /* Child has exited */ #define CLD_KILLED 2 /* Child has terminated abnormally but */ /* did not create a core file */ #define CLD_DUMPED 3 /* Child has terminated abnormally and */ /* created a core file */ #define CLD_TRAPPED 4 /* Traced child has trapped */ #define CLD_STOPPED 5 /* Child has stopped */ #define CLD_CONTINUED 6 /* Stopped child has continued */ /* codes for SIGPOLL */ #define POLL_IN 1 /* Data input available */ #define POLL_OUT 2 /* Output buffers available */ #define POLL_MSG 3 /* Input message available */ #define POLL_ERR 4 /* I/O Error */ #define POLL_PRI 5 /* High priority input available */ #define POLL_HUP 6 /* Device disconnected */ #endif # 368 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE || __XSI_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 370 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 struct __siginfo; /* * Signal vector "template" used in sigaction call. */ struct sigaction { union { void (*__sa_handler)(int); void (*__sa_sigaction)(int, struct __siginfo *, void *); } __sigaction_u; /* signal handler */ int sa_flags; /* see signal options below */ sigset_t sa_mask; /* signal mask to apply */ }; #define sa_handler __sigaction_u.__sa_handler #endif # 386 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __XSI_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 388 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 /* If SA_SIGINFO is set, sa_sigaction must be used instead of sa_handler. */ #define sa_sigaction __sigaction_u.__sa_sigaction #endif # 391 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE || __XSI_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 393 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 #define SA_NOCLDSTOP 0x0008 /* do not generate SIGCHLD on child stop */ #endif /* __POSIX_VISIBLE || __XSI_VISIBLE */ # 395 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __XSI_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 397 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 #define SA_ONSTACK 0x0001 /* take signal on signal stack */ #define SA_RESTART 0x0002 /* restart system call on signal return */ #define SA_RESETHAND 0x0004 /* reset to SIG_DFL when taking signal */ #define SA_NODEFER 0x0010 /* don't mask the signal we're delivering */ #define SA_NOCLDWAIT 0x0020 /* don't keep zombies around */ #define SA_SIGINFO 0x0040 /* signal handler with SA_SIGINFO args */ #endif # 404 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 406 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 #define NSIG 32 /* number of old signals (counting 0) */ #endif # 408 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE || __XSI_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 410 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 #define SI_NOINFO 0 /* No signal info besides si_signo. */ #define SI_USER 0x10001 /* Signal sent by kill(). */ #define SI_QUEUE 0x10002 /* Signal sent by the sigqueue(). */ #define SI_TIMER 0x10003 /* Signal generated by expiration of */ /* a timer set by timer_settime(). */ #define SI_ASYNCIO 0x10004 /* Signal generated by completion of */ /* an asynchronous I/O request.*/ #define SI_MESGQ 0x10005 /* Signal generated by arrival of a */ /* message on an empty message queue. */ #define SI_KERNEL 0x10006 #define SI_LWP 0x10007 /* Signal sent by thr_kill */ #endif # 422 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 423 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 #define SI_UNDEFINED 0 #endif # 425 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 427 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 typedef __sighandler_t *sig_t; /* type of pointer to a signal function */ typedef void __siginfohandler_t(int, struct __siginfo *, void *); #endif # 430 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __XSI_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 432 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 433 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 #define __stack_t sigaltstack #endif # 435 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 typedef struct __stack_t stack_t; #define SS_ONSTACK 0x0001 /* take signal on alternate stack */ #define SS_DISABLE 0x0004 /* disable taking signals on alternate stack */ #define MINSIGSTKSZ __MINSIGSTKSZ /* minimum stack size */ #define SIGSTKSZ (MINSIGSTKSZ + 32768) /* recommended stack size */ #endif # 442 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 /* * Structure used in sigaltstack call. Its definition is always * needed for __ucontext. If __BSD_VISIBLE is defined, the structure * tag is actually sigaltstack. */ struct __stack_t { void *ss_sp; /* signal stack base */ __size_t ss_size; /* signal stack length */ int ss_flags; /* SS_DISABLE and/or SS_ONSTACK */ }; #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 455 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 /* * 4.3 compatibility: * Signal vector "template" used in sigvec call. */ struct sigvec { __sighandler_t *sv_handler; /* signal handler */ int sv_mask; /* signal mask to apply */ int sv_flags; /* see signal options below */ }; #define SV_ONSTACK SA_ONSTACK #define SV_INTERRUPT SA_RESTART /* same bit, opposite sense */ #define SV_RESETHAND SA_RESETHAND #define SV_NODEFER SA_NODEFER #define SV_NOCLDSTOP SA_NOCLDSTOP #define SV_SIGINFO SA_SIGINFO #define sv_onstack sv_flags /* isn't compatibility wonderful! */ #endif # 473 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 /* Keep this in one place only */ #if 0 /* disabled by -frewrite-includes */ #if defined(_KERNEL) && defined(COMPAT_43) && \ !defined(__i386__) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 477 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 struct osigcontext { int _not_used; }; #endif # 481 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __XSI_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 483 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 /* * Structure used in sigstack call. */ struct sigstack { void *ss_sp; /* signal stack pointer */ int ss_onstack; /* current status */ }; #endif # 491 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE || __POSIX_VISIBLE > 0 && __POSIX_VISIBLE <= 200112 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 493 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 /* * Macro for converting signal number to a mask suitable for * sigblock(). */ #define sigmask(m) (1 << ((m)-1)) #endif # 499 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 501 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 #define BADSIG SIG_ERR #endif # 503 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE || __XSI_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 505 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 /* * Flags for sigprocmask: */ #define SIG_BLOCK 1 /* block specified signal set */ #define SIG_UNBLOCK 2 /* unblock specified signal set */ #define SIG_SETMASK 3 /* set specified signal set */ #endif # 512 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 /* * For historical reasons; programs expect signal's return value to be * defined by . */ __BEGIN_DECLS __sighandler_t *signal(int, __sighandler_t *); __END_DECLS #endif /* !_SYS_SIGNAL_H_ */ # 522 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/signal.h" 3 4 # 41 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/signal.h" 2 3 4 #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 200112 || __XSI_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 42 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/signal.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 42 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/signal.h" 3 4 # 1 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/machine/ucontext.h" 1 3 4 /*- * This file is in the public domain. */ /* $FreeBSD$ */ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 6 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/machine/ucontext.h" 3 4 # 1 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/x86/ucontext.h" 1 3 4 /*- * SPDX-License-Identifier: BSD-3-Clause * * Copyright (c) 2003 Peter Wemm * Copyright (c) 1999 Marcel Moolenaar * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer * in this position and unchanged. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. The name of the author may not be used to endorse or promote products * derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * $FreeBSD$ */ #ifndef _X86_UCONTEXT_H_ #define _X86_UCONTEXT_H_ #ifdef __i386__ /* Keep _MC_* values similar to amd64 */ #define _MC_HASSEGS 0x1 #define _MC_HASBASES 0x2 #define _MC_HASFPXSTATE 0x4 #define _MC_FLAG_MASK (_MC_HASSEGS | _MC_HASBASES | _MC_HASFPXSTATE) typedef struct __mcontext { /* * The definition of mcontext_t must match the layout of * struct sigcontext after the sc_mask member. This is so * that we can support sigcontext and ucontext_t at the same * time. */ __register_t mc_onstack; /* XXX - sigcontext compat. */ __register_t mc_gs; /* machine state (struct trapframe) */ __register_t mc_fs; __register_t mc_es; __register_t mc_ds; __register_t mc_edi; __register_t mc_esi; __register_t mc_ebp; __register_t mc_isp; __register_t mc_ebx; __register_t mc_edx; __register_t mc_ecx; __register_t mc_eax; __register_t mc_trapno; __register_t mc_err; __register_t mc_eip; __register_t mc_cs; __register_t mc_eflags; __register_t mc_esp; __register_t mc_ss; int mc_len; /* sizeof(mcontext_t) */ #define _MC_FPFMT_NODEV 0x10000 /* device not present or configured */ #define _MC_FPFMT_387 0x10001 #define _MC_FPFMT_XMM 0x10002 int mc_fpformat; #define _MC_FPOWNED_NONE 0x20000 /* FP state not used */ #define _MC_FPOWNED_FPU 0x20001 /* FP state came from FPU */ #define _MC_FPOWNED_PCB 0x20002 /* FP state came from PCB */ int mc_ownedfp; __register_t mc_flags; /* * See for the internals of mc_fpstate[]. */ int mc_fpstate[128] __aligned(16); __register_t mc_fsbase; __register_t mc_gsbase; __register_t mc_xfpustate; __register_t mc_xfpustate_len; int mc_spare2[4]; } mcontext_t; #endif /* __i386__ */ # 96 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/x86/ucontext.h" 3 4 #ifdef __amd64__ /* * mc_flags bits. Shall be in sync with TF_XXX. */ #define _MC_HASSEGS 0x1 #define _MC_HASBASES 0x2 #define _MC_HASFPXSTATE 0x4 #define _MC_FLAG_MASK (_MC_HASSEGS | _MC_HASBASES | _MC_HASFPXSTATE) typedef struct __mcontext { /* * The definition of mcontext_t must match the layout of * struct sigcontext after the sc_mask member. This is so * that we can support sigcontext and ucontext_t at the same * time. */ __register_t mc_onstack; /* XXX - sigcontext compat. */ __register_t mc_rdi; /* machine state (struct trapframe) */ __register_t mc_rsi; __register_t mc_rdx; __register_t mc_rcx; __register_t mc_r8; __register_t mc_r9; __register_t mc_rax; __register_t mc_rbx; __register_t mc_rbp; __register_t mc_r10; __register_t mc_r11; __register_t mc_r12; __register_t mc_r13; __register_t mc_r14; __register_t mc_r15; __uint32_t mc_trapno; __uint16_t mc_fs; __uint16_t mc_gs; __register_t mc_addr; __uint32_t mc_flags; __uint16_t mc_es; __uint16_t mc_ds; __register_t mc_err; __register_t mc_rip; __register_t mc_cs; __register_t mc_rflags; __register_t mc_rsp; __register_t mc_ss; long mc_len; /* sizeof(mcontext_t) */ #define _MC_FPFMT_NODEV 0x10000 /* device not present or configured */ #define _MC_FPFMT_XMM 0x10002 long mc_fpformat; #define _MC_FPOWNED_NONE 0x20000 /* FP state not used */ #define _MC_FPOWNED_FPU 0x20001 /* FP state came from FPU */ #define _MC_FPOWNED_PCB 0x20002 /* FP state came from PCB */ long mc_ownedfp; /* * See for the internals of mc_fpstate[]. */ long mc_fpstate[64] __aligned(16); __register_t mc_fsbase; __register_t mc_gsbase; __register_t mc_xfpustate; __register_t mc_xfpustate_len; long mc_spare[4]; } mcontext_t; #endif /* __amd64__ */ # 166 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/x86/ucontext.h" 3 4 #endif /* !_X86_UCONTEXT_H_ */ # 168 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/x86/ucontext.h" 3 4 # 7 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/machine/ucontext.h" 2 3 4 # 43 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/signal.h" 2 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 43 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/signal.h" 3 4 # 1 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_ucontext.h" 1 3 4 /*- * SPDX-License-Identifier: BSD-3-Clause * * Copyright (c) 1999 Marcel Moolenaar * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer * in this position and unchanged. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. The name of the author may not be used to endorse or promote products * derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * $FreeBSD$ */ #ifndef _SYS__UCONTEXT_H_ #define _SYS__UCONTEXT_H_ typedef struct __ucontext { /* * Keep the order of the first two fields. Also, * keep them the first two fields in the structure. * This way we can have a union with struct * sigcontext and ucontext_t. This allows us to * support them both at the same time. * note: the union is not defined, though. */ __sigset_t uc_sigmask; mcontext_t uc_mcontext; struct __ucontext *uc_link; struct __stack_t uc_stack; int uc_flags; int __spare__[4]; } ucontext_t; #endif /* _SYS__UCONTEXT_H */ # 55 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_ucontext.h" 3 4 # 44 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/signal.h" 2 3 4 #endif # 45 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/signal.h" 3 4 __NULLABILITY_PRAGMA_PUSH #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 49 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/signal.h" 3 4 /* * XXX should enlarge these, if only to give empty names instead of bounds * errors for large signal numbers. */ extern const char * const sys_signame[NSIG]; extern const char * const sys_siglist[NSIG]; extern const int sys_nsig; #endif # 57 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/signal.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 200112 || __XSI_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 59 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/signal.h" 3 4 #ifndef _PID_T_DECLARED typedef __pid_t pid_t; #define _PID_T_DECLARED #endif # 63 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/signal.h" 3 4 #endif # 64 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/signal.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE || __XSI_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 66 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/signal.h" 3 4 struct pthread; /* XXX */ typedef struct pthread *__pthread_t; #if 0 /* disabled by -frewrite-includes */ #if !defined(_PTHREAD_T_DECLARED) && __POSIX_VISIBLE >= 200809 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 69 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/signal.h" 3 4 typedef __pthread_t pthread_t; #define _PTHREAD_T_DECLARED #endif # 72 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/signal.h" 3 4 #endif /* __POSIX_VISIBLE || __XSI_VISIBLE */ # 73 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/signal.h" 3 4 __BEGIN_DECLS int raise(int); #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE || __XSI_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 78 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/signal.h" 3 4 int kill(__pid_t, int); int pthread_kill(__pthread_t, int); int pthread_sigmask(int, const __sigset_t * __restrict, __sigset_t * __restrict); int sigaction(int, const struct sigaction * __restrict, struct sigaction * __restrict); int sigaddset(sigset_t *, int); int sigdelset(sigset_t *, int); int sigemptyset(sigset_t *); int sigfillset(sigset_t *); int sigismember(const sigset_t *, int); int sigpending(sigset_t * _Nonnull); int sigprocmask(int, const sigset_t * __restrict, sigset_t * __restrict); int sigsuspend(const sigset_t * _Nonnull); int sigwait(const sigset_t * _Nonnull __restrict, int * _Nonnull __restrict); #endif # 95 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/signal.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 199506 || __XSI_VISIBLE >= 600 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 97 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/signal.h" 3 4 int sigqueue(__pid_t, int, const union sigval); struct timespec; int sigtimedwait(const sigset_t * __restrict, siginfo_t * __restrict, const struct timespec * __restrict); int sigwaitinfo(const sigset_t * __restrict, siginfo_t * __restrict); #endif # 104 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/signal.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __XSI_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 106 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/signal.h" 3 4 int killpg(__pid_t, int); int sigaltstack(const stack_t * __restrict, stack_t * __restrict); int sighold(int); int sigignore(int); int sigpause(int); int sigrelse(int); void (* _Nullable sigset(int, void (* _Nullable)(int)))(int); int xsi_sigpause(int); #endif # 115 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/signal.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __XSI_VISIBLE >= 600 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 117 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/signal.h" 3 4 int siginterrupt(int, int); #endif # 119 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/signal.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 200809 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 121 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/signal.h" 3 4 void psignal(int, const char *); #endif # 123 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/signal.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 125 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/signal.h" 3 4 int sigandset(sigset_t *dest, const sigset_t *left, const sigset_t *right); int sigblock(int); int sigisemptyset(const sigset_t *set); int sigorset(sigset_t *dest, const sigset_t *left, const sigset_t *right); int sigreturn(const struct __ucontext *); int sigsetmask(int); int sigstack(const struct sigstack *, struct sigstack *); int sigvec(int, struct sigvec *, struct sigvec *); #endif # 134 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/signal.h" 3 4 __END_DECLS __NULLABILITY_PRAGMA_POP #endif /* !_SIGNAL_H_ */ # 138 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/signal.h" 3 4 # 146 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" 2 /* Alessandro Rubini's GPM (general-purpose mouse) */ #if 0 /* disabled by -frewrite-includes */ #if HAVE_LIBGPM && HAVE_GPM_H #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 149 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define USE_GPM_SUPPORT 1 #else # 151 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define USE_GPM_SUPPORT 0 #endif # 153 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" /* QNX mouse support */ #if 0 /* disabled by -frewrite-includes */ #if defined(__QNX__) && !defined(__QNXNTO__) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 156 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define USE_QNX_MOUSE 1 #else # 158 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define USE_QNX_MOUSE 0 #endif # 160 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" /* EMX mouse support */ #ifdef __EMX__ #define USE_EMX_MOUSE 1 #else # 165 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define USE_EMX_MOUSE 0 #endif # 167 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" /* kLIBC keyboard/mouse support */ #if 0 /* disabled by -frewrite-includes */ #if defined(__OS2__) && defined(__KLIBC__) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 170 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define USE_KLIBC_KBD 1 #define USE_KLIBC_MOUSE 1 #else # 173 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define USE_KLIBC_KBD 0 #define USE_KLIBC_MOUSE 0 #endif # 176 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define DEFAULT_MAXCLICK 166 #define EV_MAX 8 /* size of mouse circular event queue */ /* * If we don't have signals to support it, don't add a sigwinch handler. * In any case, resizing is an extended feature. Use it if we've got it. */ #if 0 /* disabled by -frewrite-includes */ #if !NCURSES_EXT_FUNCS #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 185 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #undef HAVE_SIZECHANGE #define HAVE_SIZECHANGE 0 #endif # 188 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #if 0 /* disabled by -frewrite-includes */ #if HAVE_SIZECHANGE && USE_SIGWINCH && defined(SIGWINCH) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 190 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define USE_SIZECHANGE 1 #else # 192 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define USE_SIZECHANGE 0 #undef USE_SIGWINCH #define USE_SIGWINCH 0 #endif # 196 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" /* * When building in the MSYS2 environment, the automatic discovery of * the path separator in configure doesn't work properly. So, if building * for MinGW, we enforce the correct Windows PATH separator */ #if 0 /* disabled by -frewrite-includes */ #if defined(_NC_WINDOWS) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 203 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" # ifdef NCURSES_PATHSEP # undef NCURSES_PATHSEP # endif # 206 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" # define NCURSES_PATHSEP ';' #endif # 208 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" /* * If desired, one can configure this, disabling environment variables that * point to custom terminfo/termcap locations. */ #ifdef USE_ROOT_ENVIRON #define use_terminfo_vars() 1 #else # 216 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define use_terminfo_vars() _nc_env_access() extern NCURSES_EXPORT(int) _nc_env_access (void); #endif # 219 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" /* * Not all platforms have memmove; some have an equivalent bcopy. (Some may * have neither). */ #if 0 /* disabled by -frewrite-includes */ #if USE_OK_BCOPY #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 225 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define memmove(d,s,n) bcopy(s,d,n) #if 0 /* disabled by -frewrite-includes */ #if 0 #elif USE_MY_MEMMOVE #endif #endif /* disabled by -frewrite-includes */ #elif 0 /* evaluated by -frewrite-includes */ # 227 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define memmove(d,s,n) _nc_memmove(d,s,n) extern NCURSES_EXPORT(void *) _nc_memmove (void *, const void *, size_t); #endif # 230 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" /* * If we have va_copy(), use it for assigning va_list's. */ #if 0 /* disabled by -frewrite-includes */ #if defined(HAVE___VA_COPY) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 235 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define begin_va_copy(dst,src) __va_copy(dst, src) #define end_va_copy(dst) va_end(dst) #if 0 /* disabled by -frewrite-includes */ #if 0 #elif defined(va_copy) || defined(HAVE_VA_COPY) #endif #endif /* disabled by -frewrite-includes */ #elif 1 /* evaluated by -frewrite-includes */ # 238 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define begin_va_copy(dst,src) va_copy(dst, src) #define end_va_copy(dst) va_end(dst) #else # 241 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define begin_va_copy(dst,src) (dst) = (src) #define end_va_copy(dst) /* nothing */ #endif # 244 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" /* * Either/both S_ISxxx and/or S_IFxxx are defined in sys/types.h; some systems * lack one or the other. */ #ifndef S_ISDIR #define S_ISDIR(mode) ((mode & S_IFMT) == S_IFDIR) #endif # 252 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #ifndef S_ISREG #define S_ISREG(mode) ((mode & S_IFMT) == S_IFREG) #endif # 256 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" /* * POSIX ignores the "b", which c89 specified. Some very old systems do not * accept it. */ #if 0 /* disabled by -frewrite-includes */ #if USE_FOPEN_BIN_R #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 262 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define BIN_R "rb" #define BIN_W "wb" #else # 265 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define BIN_R "r" #define BIN_W "w" #endif # 268 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" /* * Scroll hints are useless when hashmap is used */ #if 0 /* disabled by -frewrite-includes */ #if !USE_SCROLL_HINTS #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 273 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #if 0 /* disabled by -frewrite-includes */ #if !USE_HASHMAP #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 274 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define USE_SCROLL_HINTS 1 #else # 276 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define USE_SCROLL_HINTS 0 #endif # 278 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #endif # 279 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #if 0 /* disabled by -frewrite-includes */ #if USE_SCROLL_HINTS #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 281 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define if_USE_SCROLL_HINTS(stmt) stmt #else # 283 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define if_USE_SCROLL_HINTS(stmt) /*nothing*/ #endif # 285 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 286 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" # 1 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_string.h" 1 /**************************************************************************** * Copyright 2020 Thomas E. Dickey * * Copyright 2012-2013,2016 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * * "Software"), to deal in the Software without restriction, including * * without limitation the rights to use, copy, modify, merge, publish, * * distribute, distribute with modifications, sublicense, and/or sell * * copies of the Software, and to permit persons to whom the Software is * * furnished to do so, subject to the following conditions: * * * * The above copyright notice and this permission notice shall be included * * in all copies or substantial portions of the Software. * * * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. * * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, * * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * * THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * * * Except as contained in this notice, the name(s) of the above copyright * * holders shall not be used in advertising or otherwise to promote the * * sale, use or other dealings in this Software without prior written * * authorization. * ****************************************************************************/ /**************************************************************************** * Author: Thomas E. Dickey 2012 * ****************************************************************************/ #ifndef STRING_HACKS_H #define STRING_HACKS_H 1 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 37 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_string.h" # 38 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_string.h" #if 0 /* disabled by -frewrite-includes */ #if HAVE_BSD_STRING_H #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 40 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_string.h" #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 40 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_string.h" # 41 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_string.h" #endif # 42 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_string.h" /* * $Id: nc_string.h,v 1.8 2020/02/02 23:34:34 tom Exp $ * * String-hacks. Use these macros to stifle warnings on (presumably) correct * uses of strcat, strcpy and sprintf. * * By the way - * A fundamental limitation of the interfaces (and frequent issue in bug * reports using these functions) is that sizes are passed as unsigned values * (with associated sign-extension problems), limiting their effectiveness * when checking for buffer overflow. */ #ifdef __cplusplus #define NCURSES_VOID /* nothing */ #else # 59 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_string.h" #define NCURSES_VOID (void) #endif # 61 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_string.h" #if 0 /* disabled by -frewrite-includes */ #if USE_STRING_HACKS && HAVE_STRLCAT #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 63 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_string.h" #define _nc_STRCAT(d,s,n) NCURSES_VOID strlcat((d),(s),NCURSES_CAST(size_t,n)) #define _nc_STRNCAT(d,s,m,n) NCURSES_VOID strlcat((d),(s),NCURSES_CAST(size_t,m)) #else # 66 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_string.h" #define _nc_STRCAT(d,s,n) NCURSES_VOID strcat((d),(s)) #define _nc_STRNCAT(d,s,m,n) NCURSES_VOID strncat((d),(s),(n)) #endif # 69 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_string.h" #if 0 /* disabled by -frewrite-includes */ #if USE_STRING_HACKS && HAVE_STRLCPY #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 71 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_string.h" #define _nc_STRCPY(d,s,n) NCURSES_VOID strlcpy((d),(s),NCURSES_CAST(size_t,n)) #define _nc_STRNCPY(d,s,n) NCURSES_VOID strlcpy((d),(s),NCURSES_CAST(size_t,n)) #else # 74 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_string.h" #define _nc_STRCPY(d,s,n) NCURSES_VOID strcpy((d),(s)) #define _nc_STRNCPY(d,s,n) NCURSES_VOID strncpy((d),(s),(n)) #endif # 77 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_string.h" #if 0 /* disabled by -frewrite-includes */ #if USE_STRING_HACKS && HAVE_SNPRINTF #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 79 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_string.h" #define _nc_SPRINTF NCURSES_VOID snprintf #define _nc_SLIMIT(n) NCURSES_CAST(size_t,n), #else # 82 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_string.h" #define _nc_SPRINTF NCURSES_VOID sprintf #define _nc_SLIMIT(n) /* nothing */ #endif # 85 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_string.h" #endif /* STRING_HACKS_H */ # 87 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_string.h" # 287 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" 2 /* * Options for terminal drivers, etc... */ #ifdef USE_TERM_DRIVER #define NO_TERMINAL "unknown" #define USE_SP_RIPOFF 1 #define USE_SP_TERMTYPE 1 #define USE_SP_WINDOWLIST 1 #else # 297 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define NO_TERMINAL 0 #endif # 299 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define VALID_TERM_ENV(term_env, no_terminal) \ (term_env = (NonEmpty(term_env) \ ? term_env \ : no_terminal), \ NonEmpty(term_env)) /* * Note: ht/cbt expansion flakes out randomly under Linux 1.1.47, but only * when we're throwing control codes at the screen at high volume. To see * this, re-enable USE_HARD_TABS and run worm for a while. Other systems * probably don't want to define this either due to uncertainties about tab * delays and expansion in raw mode. */ #define TRIES struct tries typedef TRIES { TRIES *child; /* ptr to child. NULL if none */ TRIES *sibling; /* ptr to sibling. NULL if none */ unsigned char ch; /* character at this node */ unsigned short value; /* code of string so far. 0 if none. */ #undef TRIES } TRIES; /* * Common/troublesome character definitions */ #define StringOf(ch) {ch, 0} #define L_BRACE '{' #define R_BRACE '}' #define S_QUOTE '\'' #define D_QUOTE '"' #define VT_ACSC "``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~" /* * Structure for palette tables */ #define MAXCOLUMNS 135 #define MAXLINES 66 #define FIFO_SIZE MAXCOLUMNS+2 /* for nocbreak mode input */ #define ACS_LEN 128 #define WINDOWLIST struct _win_list #if 0 /* disabled by -frewrite-includes */ #if USE_WIDEC_SUPPORT #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 348 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define _nc_bkgd _bkgrnd #else # 350 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #undef _XOPEN_SOURCE_EXTENDED #undef _XPG5 #define _nc_bkgd _bkgd #define wgetbkgrnd(win, wch) ((*wch = win->_bkgd) != 0 ? OK : ERR) #define wbkgrnd wbkgd #endif # 356 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #undef NCURSES_OPAQUE #define NCURSES_INTERNALS 1 #define NCURSES_OPAQUE 0 #if 0 /* expanded by -frewrite-includes */ #include /* we'll use -Ipath directive to get the right one! */ #endif /* expanded by -frewrite-includes */ # 361 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" # 1 "./curses.h" 1 /**************************************************************************** * Copyright 2018-2019,2020 Thomas E. Dickey * * Copyright 1998-2016,2017 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * * "Software"), to deal in the Software without restriction, including * * without limitation the rights to use, copy, modify, merge, publish, * * distribute, distribute with modifications, sublicense, and/or sell * * copies of the Software, and to permit persons to whom the Software is * * furnished to do so, subject to the following conditions: * * * * The above copyright notice and this permission notice shall be included * * in all copies or substantial portions of the Software. * * * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. * * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, * * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * * THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * * * Except as contained in this notice, the name(s) of the above copyright * * holders shall not be used in advertising or otherwise to promote the * * sale, use or other dealings in this Software without prior written * * authorization. * ****************************************************************************/ /**************************************************************************** * Author: Zeyd M. Ben-Halim 1992,1995 * * and: Eric S. Raymond * * and: Thomas E. Dickey 1996-on * ****************************************************************************/ /* $Id: curses.h.in,v 1.269 2020/08/17 14:14:12 tom Exp $ */ #ifndef __NCURSES_H #define __NCURSES_H #define CURSES 1 #define CURSES_H 1 /* These are defined only in curses.h, and are used for conditional compiles */ #define NCURSES_VERSION_MAJOR 6 #define NCURSES_VERSION_MINOR 2 #define NCURSES_VERSION_PATCH 20210220 /* This is defined in more than one ncurses header, for identification */ #undef NCURSES_VERSION #define NCURSES_VERSION "6.2" /* * Identify the mouse encoding version. */ #define NCURSES_MOUSE_VERSION 2 /* * Definitions to facilitate DLL's. */ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 61 "./curses.h" # 62 "./curses.h" #if 0 /* disabled by -frewrite-includes */ #if 1 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 64 "./curses.h" #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 64 "./curses.h" # 65 "./curses.h" #endif # 66 "./curses.h" /* * User-definable tweak to disable the include of . */ #ifndef NCURSES_ENABLE_STDBOOL_H #define NCURSES_ENABLE_STDBOOL_H 1 #endif # 73 "./curses.h" /* * NCURSES_ATTR_T is used to quiet compiler warnings when building ncurses * configured using --disable-macros. */ #ifndef NCURSES_ATTR_T #define NCURSES_ATTR_T int #endif # 81 "./curses.h" /* * Expands to 'const' if ncurses is configured using --enable-const. Note that * doing so makes it incompatible with other implementations of X/Open Curses. */ #undef NCURSES_CONST #define NCURSES_CONST const #undef NCURSES_INLINE #define NCURSES_INLINE inline /* * The standard type used for color values, and for color-pairs. The latter * allows the curses library to enumerate the combinations of foreground and * background colors used by an application, and is normally the product of the * total foreground and background colors. * * X/Open uses "short" for both of these types, ultimately because they are * numbers from the SVr4 terminal database, which uses 16-bit signed values. */ #undef NCURSES_COLOR_T #define NCURSES_COLOR_T short #undef NCURSES_PAIRS_T #define NCURSES_PAIRS_T short /* * Definitions used to make WINDOW and similar structs opaque. */ #ifndef NCURSES_INTERNALS #define NCURSES_OPAQUE 0 #define NCURSES_OPAQUE_FORM 0 #define NCURSES_OPAQUE_MENU 0 #define NCURSES_OPAQUE_PANEL 0 #endif # 116 "./curses.h" /* * Definition used to optionally suppress wattr* macros to help with the * transition from ncurses5 to ncurses6 by allowing the header files to * be shared across development packages for ncursesw in both ABIs. */ #ifndef NCURSES_WATTR_MACROS #define NCURSES_WATTR_MACROS 1 #endif # 125 "./curses.h" /* * The reentrant code relies on the opaque setting, but adds features. */ #ifndef NCURSES_REENTRANT #define NCURSES_REENTRANT 0 #endif # 132 "./curses.h" /* * In certain environments, we must work around linker problems for data */ #undef NCURSES_BROKEN_LINKER #if 0 /* disabled by -frewrite-includes */ #if 0 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 138 "./curses.h" #define NCURSES_BROKEN_LINKER 1 #endif # 140 "./curses.h" /* * Control whether bindings for interop support are added. */ #undef NCURSES_INTEROP_FUNCS #define NCURSES_INTEROP_FUNCS 1 /* * The internal type used for window dimensions. */ #undef NCURSES_SIZE_T #define NCURSES_SIZE_T short /* * Control whether tparm() supports varargs or fixed-parameter list. */ #undef NCURSES_TPARM_VARARGS #define NCURSES_TPARM_VARARGS 1 /* * Control type used for tparm's arguments. While X/Open equates long and * char* values, this is not always workable for 64-bit platforms. */ #undef NCURSES_TPARM_ARG #define NCURSES_TPARM_ARG intptr_t /* * Control whether ncurses uses wcwidth() for checking width of line-drawing * characters. */ #undef NCURSES_WCWIDTH_GRAPHICS #define NCURSES_WCWIDTH_GRAPHICS 1 /* * NCURSES_CH_T is used in building the library, but not used otherwise in * this header file, since that would make the normal/wide-character versions * of the header incompatible. */ #undef NCURSES_CH_T #define NCURSES_CH_T cchar_t #if 0 /* disabled by -frewrite-includes */ #if 1 && defined(_LP64) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 182 "./curses.h" typedef unsigned chtype; typedef unsigned mmask_t; #else # 185 "./curses.h" typedef uint32_t chtype; typedef uint32_t mmask_t; #endif # 188 "./curses.h" /* * We need FILE, etc. Include this before checking any feature symbols. */ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 192 "./curses.h" # 193 "./curses.h" /* * With XPG4, you must define _XOPEN_SOURCE_EXTENDED, it is redundant (or * conflicting) when _XOPEN_SOURCE is 500 or greater. If NCURSES_WIDECHAR is * not already defined, e.g., if the platform relies upon nonstandard feature * test macros, define it at this point if the standard feature test macros * indicate that it should be defined. */ #ifndef NCURSES_WIDECHAR #if 0 /* disabled by -frewrite-includes */ #if defined(_XOPEN_SOURCE_EXTENDED) || (defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE - 0 >= 500)) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 203 "./curses.h" #define NCURSES_WIDECHAR 1 #else # 205 "./curses.h" #define NCURSES_WIDECHAR 0 #endif # 207 "./curses.h" #endif /* NCURSES_WIDECHAR */ # 208 "./curses.h" #if 0 /* expanded by -frewrite-includes */ #include /* we need va_list */ #endif /* expanded by -frewrite-includes */ # 209 "./curses.h" # 1 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdarg.h" 1 3 4 /*- * This file is in the public domain. */ /* $FreeBSD$ */ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 6 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdarg.h" 3 4 # 1 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/x86/stdarg.h" 1 3 4 /*- * SPDX-License-Identifier: BSD-2-Clause * * Copyright (c) 2017 Poul-Henning Kamp. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * $FreeBSD$ */ #ifndef _MACHINE_STDARG_H_ #define _MACHINE_STDARG_H_ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 33 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/x86/stdarg.h" 3 4 # 1 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_stdarg.h" 1 3 4 /*- * SPDX-License-Identifier: BSD-3-Clause * * Copyright (c) 2002 David E. O'Brien. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * $FreeBSD$ */ #ifndef _SYS__STDARG_H_ #define _SYS__STDARG_H_ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 36 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_stdarg.h" 3 4 # 37 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_stdarg.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 37 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_stdarg.h" 3 4 # 38 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_stdarg.h" 3 4 #ifndef _VA_LIST_DECLARED #define _VA_LIST_DECLARED typedef __va_list va_list; #endif # 43 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_stdarg.h" 3 4 #ifdef __GNUCLIKE_BUILTIN_STDARG #define va_start(ap, last) __builtin_va_start((ap), (last)) #define va_arg(ap, type) __builtin_va_arg((ap), type) #define __va_copy(dest, src) __builtin_va_copy((dest), (src)) #if 0 /* disabled by -frewrite-includes */ #if __ISO_C_VISIBLE >= 1999 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 49 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_stdarg.h" 3 4 #define va_copy(dest, src) __va_copy(dest, src) #endif # 51 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_stdarg.h" 3 4 #define va_end(ap) __builtin_va_end(ap) #endif # 53 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_stdarg.h" 3 4 #endif /* ! _SYS__STDARG_H_ */ # 55 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_stdarg.h" 3 4 # 34 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/x86/stdarg.h" 2 3 4 #ifndef va_start #error this file needs to be ported to your compiler #endif # 38 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/x86/stdarg.h" 3 4 #endif /* !_MACHINE_STDARG_H_ */ # 40 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/x86/stdarg.h" 3 4 # 7 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdarg.h" 2 3 4 # 210 "./curses.h" 2 #if 0 /* disabled by -frewrite-includes */ #if NCURSES_WIDECHAR #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 211 "./curses.h" #if 0 /* expanded by -frewrite-includes */ #include /* we want wchar_t */ #endif /* expanded by -frewrite-includes */ # 211 "./curses.h" # 212 "./curses.h" #endif # 213 "./curses.h" /* X/Open and SVr4 specify that curses implements 'bool'. However, C++ may also * implement it. If so, we must use the C++ compiler's type to avoid conflict * with other interfaces. * * A further complication is that may declare 'bool' to be a * different type, such as an enum which is not necessarily compatible with * C++. If we have , make 'bool' a macro, so users may #undef it. * Otherwise, let it remain a typedef to avoid conflicts with other #define's. * In either case, make a typedef for NCURSES_BOOL which can be used if needed * from either C or C++. */ #undef TRUE #define TRUE 1 #undef FALSE #define FALSE 0 typedef unsigned char NCURSES_BOOL; #if 0 /* disabled by -frewrite-includes */ #if defined(__cplusplus) /* __cplusplus, etc. */ #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 235 "./curses.h" /* use the C++ compiler's bool type */ #define NCURSES_BOOL bool #else /* c89, c99, etc. */ # 240 "./curses.h" #if 0 /* disabled by -frewrite-includes */ #if NCURSES_ENABLE_STDBOOL_H #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 242 "./curses.h" #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 242 "./curses.h" # 1 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdbool.h" 1 3 4 /* * SPDX-License-Identifier: BSD-2-Clause-FreeBSD * * Copyright (c) 2000 Jeroen Ruigrok van der Werven * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * $FreeBSD$ */ #ifndef __bool_true_false_are_defined #define __bool_true_false_are_defined 1 #ifndef __cplusplus #define false 0 #define true 1 #define bool _Bool #endif /* !__cplusplus */ # 42 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdbool.h" 3 4 #endif /* __bool_true_false_are_defined */ # 43 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/stdbool.h" 3 4 # 243 "./curses.h" 2 /* use whatever the C compiler decides bool really is */ #define NCURSES_BOOL bool #else # 246 "./curses.h" /* there is no predefined bool - use our own */ #undef bool #define bool NCURSES_BOOL #endif # 250 "./curses.h" #endif /* !__cplusplus, etc. */ # 252 "./curses.h" #ifdef __cplusplus extern "C" { #define NCURSES_CAST(type,value) static_cast(value) #else # 257 "./curses.h" #define NCURSES_CAST(type,value) (type)(value) #endif # 259 "./curses.h" #define NCURSES_OK_ADDR(p) (0 != NCURSES_CAST(const void *, (p))) /* * X/Open attributes. In the ncurses implementation, they are identical to the * A_ attributes. */ #define WA_ATTRIBUTES A_ATTRIBUTES #define WA_NORMAL A_NORMAL #define WA_STANDOUT A_STANDOUT #define WA_UNDERLINE A_UNDERLINE #define WA_REVERSE A_REVERSE #define WA_BLINK A_BLINK #define WA_DIM A_DIM #define WA_BOLD A_BOLD #define WA_ALTCHARSET A_ALTCHARSET #define WA_INVIS A_INVIS #define WA_PROTECT A_PROTECT #define WA_HORIZONTAL A_HORIZONTAL #define WA_LEFT A_LEFT #define WA_LOW A_LOW #define WA_RIGHT A_RIGHT #define WA_TOP A_TOP #define WA_VERTICAL A_VERTICAL #if 0 /* disabled by -frewrite-includes */ #if 1 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 285 "./curses.h" #define WA_ITALIC A_ITALIC /* ncurses extension */ #endif # 287 "./curses.h" /* colors */ #define COLOR_BLACK 0 #define COLOR_RED 1 #define COLOR_GREEN 2 #define COLOR_YELLOW 3 #define COLOR_BLUE 4 #define COLOR_MAGENTA 5 #define COLOR_CYAN 6 #define COLOR_WHITE 7 /* line graphics */ #if 0 /* disabled by -frewrite-includes */ #if 0 || NCURSES_REENTRANT #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 301 "./curses.h" NCURSES_WRAPPED_VAR(chtype*, acs_map); #define acs_map NCURSES_PUBLIC_VAR(acs_map()) #else # 304 "./curses.h" extern NCURSES_EXPORT_VAR(chtype) acs_map[]; #endif # 306 "./curses.h" #define NCURSES_ACS(c) (acs_map[NCURSES_CAST(unsigned char,(c))]) /* VT100 symbols begin here */ #define ACS_ULCORNER NCURSES_ACS('l') /* upper left corner */ #define ACS_LLCORNER NCURSES_ACS('m') /* lower left corner */ #define ACS_URCORNER NCURSES_ACS('k') /* upper right corner */ #define ACS_LRCORNER NCURSES_ACS('j') /* lower right corner */ #define ACS_LTEE NCURSES_ACS('t') /* tee pointing right */ #define ACS_RTEE NCURSES_ACS('u') /* tee pointing left */ #define ACS_BTEE NCURSES_ACS('v') /* tee pointing up */ #define ACS_TTEE NCURSES_ACS('w') /* tee pointing down */ #define ACS_HLINE NCURSES_ACS('q') /* horizontal line */ #define ACS_VLINE NCURSES_ACS('x') /* vertical line */ #define ACS_PLUS NCURSES_ACS('n') /* large plus or crossover */ #define ACS_S1 NCURSES_ACS('o') /* scan line 1 */ #define ACS_S9 NCURSES_ACS('s') /* scan line 9 */ #define ACS_DIAMOND NCURSES_ACS('`') /* diamond */ #define ACS_CKBOARD NCURSES_ACS('a') /* checker board (stipple) */ #define ACS_DEGREE NCURSES_ACS('f') /* degree symbol */ #define ACS_PLMINUS NCURSES_ACS('g') /* plus/minus */ #define ACS_BULLET NCURSES_ACS('~') /* bullet */ /* Teletype 5410v1 symbols begin here */ #define ACS_LARROW NCURSES_ACS(',') /* arrow pointing left */ #define ACS_RARROW NCURSES_ACS('+') /* arrow pointing right */ #define ACS_DARROW NCURSES_ACS('.') /* arrow pointing down */ #define ACS_UARROW NCURSES_ACS('-') /* arrow pointing up */ #define ACS_BOARD NCURSES_ACS('h') /* board of squares */ #define ACS_LANTERN NCURSES_ACS('i') /* lantern symbol */ #define ACS_BLOCK NCURSES_ACS('0') /* solid square block */ /* * These aren't documented, but a lot of System Vs have them anyway * (you can spot pprryyzz{{||}} in a lot of AT&T terminfo strings). * The ACS_names may not match AT&T's, our source didn't know them. */ #define ACS_S3 NCURSES_ACS('p') /* scan line 3 */ #define ACS_S7 NCURSES_ACS('r') /* scan line 7 */ #define ACS_LEQUAL NCURSES_ACS('y') /* less/equal */ #define ACS_GEQUAL NCURSES_ACS('z') /* greater/equal */ #define ACS_PI NCURSES_ACS('{') /* Pi */ #define ACS_NEQUAL NCURSES_ACS('|') /* not equal */ #define ACS_STERLING NCURSES_ACS('}') /* UK pound sign */ /* * Line drawing ACS names are of the form ACS_trbl, where t is the top, r * is the right, b is the bottom, and l is the left. t, r, b, and l might * be B (blank), S (single), D (double), or T (thick). The subset defined * here only uses B and S. */ #define ACS_BSSB ACS_ULCORNER #define ACS_SSBB ACS_LLCORNER #define ACS_BBSS ACS_URCORNER #define ACS_SBBS ACS_LRCORNER #define ACS_SBSS ACS_RTEE #define ACS_SSSB ACS_LTEE #define ACS_SSBS ACS_BTEE #define ACS_BSSS ACS_TTEE #define ACS_BSBS ACS_HLINE #define ACS_SBSB ACS_VLINE #define ACS_SSSS ACS_PLUS #undef ERR #define ERR (-1) #undef OK #define OK (0) /* values for the _flags member */ #define _SUBWIN 0x01 /* is this a sub-window? */ #define _ENDLINE 0x02 /* is the window flush right? */ #define _FULLWIN 0x04 /* is the window full-screen? */ #define _SCROLLWIN 0x08 /* bottom edge is at screen bottom? */ #define _ISPAD 0x10 /* is this window a pad? */ #define _HASMOVED 0x20 /* has cursor moved since last refresh? */ #define _WRAPPED 0x40 /* cursor was just wrappped */ /* * this value is used in the firstchar and lastchar fields to mark * unchanged lines */ #define _NOCHANGE -1 /* * this value is used in the oldindex field to mark lines created by insertions * and scrolls. */ #define _NEWINDEX -1 typedef struct screen SCREEN; typedef struct _win_st WINDOW; typedef chtype attr_t; /* ...must be at least as wide as chtype */ #if 0 /* disabled by -frewrite-includes */ #if NCURSES_WIDECHAR #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 400 "./curses.h" #if 0 /* disabled by -frewrite-includes */ #if 0 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 402 "./curses.h" #ifdef mblen /* libutf8.h defines it w/o undefining first */ #undef mblen #endif # 405 "./curses.h" #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 405 "./curses.h" # 406 "./curses.h" #endif # 407 "./curses.h" #if 0 /* disabled by -frewrite-includes */ #if 1 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 409 "./curses.h" #if 0 /* expanded by -frewrite-includes */ #include /* ...to get mbstate_t, etc. */ #endif /* expanded by -frewrite-includes */ # 409 "./curses.h" # 1 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/wchar.h" 1 3 4 /*- * SPDX-License-Identifier: (BSD-2-Clause AND BSD-2-Clause-NetBSD) * * Copyright (c)1999 Citrus Project, * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * $FreeBSD$ */ /*- * Copyright (c) 1999, 2000 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by Julian Coleman. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * * $NetBSD: wchar.h,v 1.8 2000/12/22 05:31:42 itojun Exp $ */ #ifndef _WCHAR_H_ #define _WCHAR_H_ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 65 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/wchar.h" 3 4 # 66 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/wchar.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 66 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/wchar.h" 3 4 # 67 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/wchar.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 67 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/wchar.h" 3 4 # 68 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/wchar.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 68 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/wchar.h" 3 4 # 1 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/machine/_limits.h" 1 3 4 /*- * This file is in the public domain. */ /* $FreeBSD$ */ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 6 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/machine/_limits.h" 3 4 # 7 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/machine/_limits.h" 3 4 # 69 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/wchar.h" 2 3 4 #if 0 /* expanded by -frewrite-includes */ #include <_ctype.h> #endif /* expanded by -frewrite-includes */ # 69 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/wchar.h" 3 4 # 1 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/_ctype.h" 1 3 4 /*- * SPDX-License-Identifier: BSD-3-Clause * * Copyright (c) 1989, 1993 * The Regents of the University of California. All rights reserved. * (c) UNIX System Laboratories, Inc. * All or some portions of this file are derived from material licensed * to the University of California by American Telephone and Telegraph * Co. or Unix System Laboratories, Inc. and are reproduced herein with * the permission of UNIX System Laboratories, Inc. * * This code is derived from software contributed to Berkeley by * Paul Borman at Krystal Technologies. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * From @(#)ctype.h 8.4 (Berkeley) 1/21/94 * From FreeBSD: src/include/ctype.h,v 1.27 2004/06/23 07:11:39 tjr Exp * $FreeBSD$ */ #ifndef __CTYPE_H_ #define __CTYPE_H_ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 47 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/_ctype.h" 3 4 # 48 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/_ctype.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 48 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/_ctype.h" 3 4 # 49 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/_ctype.h" 3 4 #define _CTYPE_A 0x00000100L /* Alpha */ #define _CTYPE_C 0x00000200L /* Control */ #define _CTYPE_D 0x00000400L /* Digit */ #define _CTYPE_G 0x00000800L /* Graph */ #define _CTYPE_L 0x00001000L /* Lower */ #define _CTYPE_P 0x00002000L /* Punct */ #define _CTYPE_S 0x00004000L /* Space */ #define _CTYPE_U 0x00008000L /* Upper */ #define _CTYPE_X 0x00010000L /* X digit */ #define _CTYPE_B 0x00020000L /* Blank */ #define _CTYPE_R 0x00040000L /* Print */ #define _CTYPE_I 0x00080000L /* Ideogram */ #define _CTYPE_T 0x00100000L /* Special */ #define _CTYPE_Q 0x00200000L /* Phonogram */ #define _CTYPE_N 0x00400000L /* Number (superset of digit) */ #define _CTYPE_SW0 0x20000000L /* 0 width character */ #define _CTYPE_SW1 0x40000000L /* 1 width character */ #define _CTYPE_SW2 0x80000000L /* 2 width character */ #define _CTYPE_SW3 0xc0000000L /* 3 width character */ #define _CTYPE_SWM 0xe0000000L /* Mask for screen width data */ #define _CTYPE_SWS 30 /* Bits to shift to get width */ /* See comments in about __ct_rune_t. */ __BEGIN_DECLS unsigned long ___runetype(__ct_rune_t) __pure; __ct_rune_t ___tolower(__ct_rune_t) __pure; __ct_rune_t ___toupper(__ct_rune_t) __pure; __END_DECLS /* * _EXTERNALIZE_CTYPE_INLINES_ is defined in locale/nomacros.c to tell us * to generate code for extern versions of all our inline functions. */ #ifdef _EXTERNALIZE_CTYPE_INLINES_ #define _USE_CTYPE_INLINE_ #define static #define __inline #endif # 88 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/_ctype.h" 3 4 extern int __mb_sb_limit; /* * Use inline functions if we are allowed to and the compiler supports them. */ #if 0 /* disabled by -frewrite-includes */ #if !defined(_DONT_USE_CTYPE_INLINE_) && \ (defined(_USE_CTYPE_INLINE_) || defined(__GNUC__) || defined(__cplusplus)) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 96 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/_ctype.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 97 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/_ctype.h" 3 4 # 1 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/runetype.h" 1 3 4 /*- * SPDX-License-Identifier: BSD-3-Clause * * Copyright (c) 1993 * The Regents of the University of California. All rights reserved. * * This code is derived from software contributed to Berkeley by * Paul Borman at Krystal Technologies. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * @(#)runetype.h 8.1 (Berkeley) 6/2/93 * $FreeBSD$ */ #ifndef _RUNETYPE_H_ #define _RUNETYPE_H_ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 41 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/runetype.h" 3 4 # 42 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/runetype.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 42 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/runetype.h" 3 4 # 43 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/runetype.h" 3 4 #define _CACHED_RUNES (1 <<8 ) /* Must be a power of 2 */ #define _CRMASK (~(_CACHED_RUNES - 1)) /* * The lower 8 bits of runetype[] contain the digit value of the rune. */ typedef struct { __rune_t __min; /* First rune of the range */ __rune_t __max; /* Last rune (inclusive) of the range */ __rune_t __map; /* What first maps to in maps */ unsigned long *__types; /* Array of types in range */ } _RuneEntry; typedef struct { int __nranges; /* Number of ranges stored */ _RuneEntry *__ranges; /* Pointer to the ranges */ } _RuneRange; typedef struct { char __magic[8]; /* Magic saying what version we are */ char __encoding[32]; /* ASCII name of this encoding */ __rune_t (*__sgetrune)(const char *, __size_t, char const **); int (*__sputrune)(__rune_t, char *, __size_t, char **); __rune_t __invalid_rune; unsigned long __runetype[_CACHED_RUNES]; __rune_t __maplower[_CACHED_RUNES]; __rune_t __mapupper[_CACHED_RUNES]; /* * The following are to deal with Runes larger than _CACHED_RUNES - 1. * Their data is actually contiguous with this structure so as to make * it easier to read/write from/to disk. */ _RuneRange __runetype_ext; _RuneRange __maplower_ext; _RuneRange __mapupper_ext; void *__variable; /* Data which depends on the encoding */ int __variable_len; /* how long that data is */ } _RuneLocale; #define _RUNE_MAGIC_1 "RuneMagi" /* Indicates version 0 of RuneLocale */ __BEGIN_DECLS extern const _RuneLocale _DefaultRuneLocale; extern const _RuneLocale *_CurrentRuneLocale; #ifdef __RUNETYPE_INTERNAL extern const _RuneLocale *__getCurrentRuneLocale(void); #else # 94 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/runetype.h" 3 4 extern _Thread_local const _RuneLocale *_ThreadRuneLocale; static __inline const _RuneLocale *__getCurrentRuneLocale(void) { if (_ThreadRuneLocale) return _ThreadRuneLocale; return _CurrentRuneLocale; } #endif /*__RUNETYPE_INTERNAL */ # 103 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/runetype.h" 3 4 #define _CurrentRuneLocale (__getCurrentRuneLocale()) __END_DECLS #endif /* !_RUNETYPE_H_ */ # 107 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/runetype.h" 3 4 # 98 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/_ctype.h" 2 3 4 static __inline int __maskrune(__ct_rune_t _c, unsigned long _f) { return ((_c < 0 || _c >= _CACHED_RUNES) ? ___runetype(_c) : _CurrentRuneLocale->__runetype[_c]) & _f; } static __inline int __sbmaskrune(__ct_rune_t _c, unsigned long _f) { return (_c < 0 || _c >= __mb_sb_limit) ? 0 : _CurrentRuneLocale->__runetype[_c] & _f; } static __inline int __istype(__ct_rune_t _c, unsigned long _f) { return (!!__maskrune(_c, _f)); } static __inline int __sbistype(__ct_rune_t _c, unsigned long _f) { return (!!__sbmaskrune(_c, _f)); } static __inline int __isctype(__ct_rune_t _c, unsigned long _f) { return (_c < 0 || _c >= 128) ? 0 : !!(_DefaultRuneLocale.__runetype[_c] & _f); } static __inline __ct_rune_t __toupper(__ct_rune_t _c) { return (_c < 0 || _c >= _CACHED_RUNES) ? ___toupper(_c) : _CurrentRuneLocale->__mapupper[_c]; } static __inline __ct_rune_t __sbtoupper(__ct_rune_t _c) { return (_c < 0 || _c >= __mb_sb_limit) ? _c : _CurrentRuneLocale->__mapupper[_c]; } static __inline __ct_rune_t __tolower(__ct_rune_t _c) { return (_c < 0 || _c >= _CACHED_RUNES) ? ___tolower(_c) : _CurrentRuneLocale->__maplower[_c]; } static __inline __ct_rune_t __sbtolower(__ct_rune_t _c) { return (_c < 0 || _c >= __mb_sb_limit) ? _c : _CurrentRuneLocale->__maplower[_c]; } static __inline int __wcwidth(__ct_rune_t _c) { unsigned int _x; if (_c == 0) return (0); _x = (unsigned int)__maskrune(_c, _CTYPE_SWM|_CTYPE_R); if ((_x & _CTYPE_SWM) != 0) return ((_x & _CTYPE_SWM) >> _CTYPE_SWS); return ((_x & _CTYPE_R) != 0 ? 1 : -1); } #else /* not using inlines */ # 174 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/_ctype.h" 3 4 __BEGIN_DECLS int __maskrune(__ct_rune_t, unsigned long); int __sbmaskrune(__ct_rune_t, unsigned long); int __istype(__ct_rune_t, unsigned long); int __sbistype(__ct_rune_t, unsigned long); int __isctype(__ct_rune_t, unsigned long); __ct_rune_t __toupper(__ct_rune_t); __ct_rune_t __sbtoupper(__ct_rune_t); __ct_rune_t __tolower(__ct_rune_t); __ct_rune_t __sbtolower(__ct_rune_t); int __wcwidth(__ct_rune_t); __END_DECLS #endif /* using inlines */ # 188 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/_ctype.h" 3 4 #endif /* !__CTYPE_H_ */ # 190 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/_ctype.h" 3 4 # 70 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/wchar.h" 2 3 4 #ifndef _MBSTATE_T_DECLARED typedef __mbstate_t mbstate_t; #define _MBSTATE_T_DECLARED #endif # 75 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/wchar.h" 3 4 #ifndef _SIZE_T_DECLARED typedef __size_t size_t; #define _SIZE_T_DECLARED #endif # 80 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/wchar.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 200809 || __XSI_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 82 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/wchar.h" 3 4 #ifndef _VA_LIST_DECLARED typedef __va_list va_list; #define _VA_LIST_DECLARED #endif # 86 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/wchar.h" 3 4 #endif # 87 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/wchar.h" 3 4 #ifndef __cplusplus #ifndef _WCHAR_T_DECLARED typedef ___wchar_t wchar_t; #define _WCHAR_T_DECLARED #endif # 93 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/wchar.h" 3 4 #endif # 94 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/wchar.h" 3 4 #ifndef _WINT_T_DECLARED typedef __wint_t wint_t; #define _WINT_T_DECLARED #endif # 99 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/wchar.h" 3 4 #define WCHAR_MIN __WCHAR_MIN #define WCHAR_MAX __WCHAR_MAX #ifndef WEOF #define WEOF ((wint_t)-1) #endif # 106 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/wchar.h" 3 4 #ifndef _STDFILE_DECLARED #define _STDFILE_DECLARED typedef struct __sFILE FILE; #endif # 111 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/wchar.h" 3 4 struct tm; __BEGIN_DECLS wint_t btowc(int); wint_t fgetwc(FILE *); wchar_t * fgetws(wchar_t * __restrict, int, FILE * __restrict); wint_t fputwc(wchar_t, FILE *); int fputws(const wchar_t * __restrict, FILE * __restrict); int fwide(FILE *, int); int fwprintf(FILE * __restrict, const wchar_t * __restrict, ...); int fwscanf(FILE * __restrict, const wchar_t * __restrict, ...); wint_t getwc(FILE *); wint_t getwchar(void); size_t mbrlen(const char * __restrict, size_t, mbstate_t * __restrict); size_t mbrtowc(wchar_t * __restrict, const char * __restrict, size_t, mbstate_t * __restrict); int mbsinit(const mbstate_t *); size_t mbsrtowcs(wchar_t * __restrict, const char ** __restrict, size_t, mbstate_t * __restrict); wint_t putwc(wchar_t, FILE *); wint_t putwchar(wchar_t); int swprintf(wchar_t * __restrict, size_t n, const wchar_t * __restrict, ...); int swscanf(const wchar_t * __restrict, const wchar_t * __restrict, ...); wint_t ungetwc(wint_t, FILE *); int vfwprintf(FILE * __restrict, const wchar_t * __restrict, __va_list); int vswprintf(wchar_t * __restrict, size_t n, const wchar_t * __restrict, __va_list); int vwprintf(const wchar_t * __restrict, __va_list); size_t wcrtomb(char * __restrict, wchar_t, mbstate_t * __restrict); wchar_t *wcscat(wchar_t * __restrict, const wchar_t * __restrict); wchar_t *wcschr(const wchar_t *, wchar_t) __pure; int wcscmp(const wchar_t *, const wchar_t *) __pure; int wcscoll(const wchar_t *, const wchar_t *); wchar_t *wcscpy(wchar_t * __restrict, const wchar_t * __restrict); size_t wcscspn(const wchar_t *, const wchar_t *) __pure; size_t wcsftime(wchar_t * __restrict, size_t, const wchar_t * __restrict, const struct tm * __restrict); size_t wcslen(const wchar_t *) __pure; wchar_t *wcsncat(wchar_t * __restrict, const wchar_t * __restrict, size_t); int wcsncmp(const wchar_t *, const wchar_t *, size_t) __pure; wchar_t *wcsncpy(wchar_t * __restrict , const wchar_t * __restrict, size_t); wchar_t *wcspbrk(const wchar_t *, const wchar_t *) __pure; wchar_t *wcsrchr(const wchar_t *, wchar_t) __pure; size_t wcsrtombs(char * __restrict, const wchar_t ** __restrict, size_t, mbstate_t * __restrict); size_t wcsspn(const wchar_t *, const wchar_t *) __pure; wchar_t *wcsstr(const wchar_t * __restrict, const wchar_t * __restrict) __pure; size_t wcsxfrm(wchar_t * __restrict, const wchar_t * __restrict, size_t); int wctob(wint_t); double wcstod(const wchar_t * __restrict, wchar_t ** __restrict); wchar_t *wcstok(wchar_t * __restrict, const wchar_t * __restrict, wchar_t ** __restrict); long wcstol(const wchar_t * __restrict, wchar_t ** __restrict, int); unsigned long wcstoul(const wchar_t * __restrict, wchar_t ** __restrict, int); wchar_t *wmemchr(const wchar_t *, wchar_t, size_t) __pure; int wmemcmp(const wchar_t *, const wchar_t *, size_t) __pure; wchar_t *wmemcpy(wchar_t * __restrict, const wchar_t * __restrict, size_t); wchar_t *wmemmove(wchar_t *, const wchar_t *, size_t); #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 176 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/wchar.h" 3 4 wchar_t *wmempcpy(wchar_t * __restrict, const wchar_t * __restrict, size_t); #endif # 178 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/wchar.h" 3 4 wchar_t *wmemset(wchar_t *, wchar_t, size_t); int wprintf(const wchar_t * __restrict, ...); int wscanf(const wchar_t * __restrict, ...); #ifndef _STDSTREAM_DECLARED extern FILE *__stdinp; extern FILE *__stdoutp; extern FILE *__stderrp; #define _STDSTREAM_DECLARED #endif # 188 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/wchar.h" 3 4 #define getwc(fp) fgetwc(fp) #define getwchar() fgetwc(__stdinp) #define putwc(wc, fp) fputwc(wc, fp) #define putwchar(wc) fputwc(wc, __stdoutp) #if 0 /* disabled by -frewrite-includes */ #if __ISO_C_VISIBLE >= 1999 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 195 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/wchar.h" 3 4 int vfwscanf(FILE * __restrict, const wchar_t * __restrict, __va_list); int vswscanf(const wchar_t * __restrict, const wchar_t * __restrict, __va_list); int vwscanf(const wchar_t * __restrict, __va_list); float wcstof(const wchar_t * __restrict, wchar_t ** __restrict); long double wcstold(const wchar_t * __restrict, wchar_t ** __restrict); #ifdef __LONG_LONG_SUPPORTED /* LONGLONG */ long long wcstoll(const wchar_t * __restrict, wchar_t ** __restrict, int); /* LONGLONG */ unsigned long long wcstoull(const wchar_t * __restrict, wchar_t ** __restrict, int); #endif # 211 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/wchar.h" 3 4 #endif /* __ISO_C_VISIBLE >= 1999 */ # 212 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/wchar.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __XSI_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 214 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/wchar.h" 3 4 int wcswidth(const wchar_t *, size_t); int wcwidth(wchar_t); #define wcwidth(_c) __wcwidth(_c) #endif # 218 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/wchar.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 200809 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 220 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/wchar.h" 3 4 size_t mbsnrtowcs(wchar_t * __restrict, const char ** __restrict, size_t, size_t, mbstate_t * __restrict); FILE *open_wmemstream(wchar_t **, size_t *); wchar_t *wcpcpy(wchar_t * __restrict, const wchar_t * __restrict); wchar_t *wcpncpy(wchar_t * __restrict, const wchar_t * __restrict, size_t); wchar_t *wcsdup(const wchar_t *) __malloc_like; int wcscasecmp(const wchar_t *, const wchar_t *); int wcsncasecmp(const wchar_t *, const wchar_t *, size_t n); size_t wcsnlen(const wchar_t *, size_t) __pure; size_t wcsnrtombs(char * __restrict, const wchar_t ** __restrict, size_t, size_t, mbstate_t * __restrict); #endif # 232 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/wchar.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 234 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/wchar.h" 3 4 wchar_t *fgetwln(FILE * __restrict, size_t * __restrict); size_t wcslcat(wchar_t *, const wchar_t *, size_t); size_t wcslcpy(wchar_t *, const wchar_t *, size_t); #endif # 238 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/wchar.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 200809 || defined(_XLOCALE_H_) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 240 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/wchar.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 240 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/wchar.h" 3 4 # 1 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/xlocale/_wchar.h" 1 3 4 /*- * SPDX-License-Identifier: BSD-2-Clause-FreeBSD * * Copyright (c) 2011, 2012 The FreeBSD Foundation * All rights reserved. * * This software was developed by David Chisnall under sponsorship from * the FreeBSD Foundation. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * $FreeBSD$ */ #ifndef _LOCALE_T_DEFINED #define _LOCALE_T_DEFINED typedef struct _xlocale *locale_t; #endif # 38 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/xlocale/_wchar.h" 3 4 #ifndef _XLOCALE_WCHAR1_H #define _XLOCALE_WCHAR1_H int wcscasecmp_l(const wchar_t *, const wchar_t *, locale_t); int wcsncasecmp_l(const wchar_t *, const wchar_t *, size_t, locale_t); int wcscoll_l(const wchar_t *, const wchar_t *, locale_t); size_t wcsxfrm_l(wchar_t * __restrict, const wchar_t * __restrict, size_t, locale_t); #endif /* _XLOCALE_WCHAR1_H */ # 50 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/xlocale/_wchar.h" 3 4 /* * Only declare the non-POSIX functions if we're included from xlocale.h. */ #ifdef _XLOCALE_H_ #ifndef _XLOCALE_WCHAR2_H #define _XLOCALE_WCHAR2_H wint_t btowc_l(int, locale_t); wint_t fgetwc_l(FILE *, locale_t); wchar_t *fgetws_l(wchar_t * __restrict, int, FILE * __restrict, locale_t); wint_t fputwc_l(wchar_t, FILE *, locale_t); int fputws_l(const wchar_t * __restrict, FILE * __restrict, locale_t); int fwprintf_l(FILE * __restrict, locale_t, const wchar_t * __restrict, ...); int fwscanf_l(FILE * __restrict, locale_t, const wchar_t * __restrict, ...); wint_t getwc_l(FILE *, locale_t); wint_t getwchar_l(locale_t); size_t mbrlen_l(const char * __restrict, size_t, mbstate_t * __restrict, locale_t); size_t mbrtowc_l(wchar_t * __restrict, const char * __restrict, size_t, mbstate_t * __restrict, locale_t); int mbsinit_l(const mbstate_t *, locale_t); size_t mbsrtowcs_l(wchar_t * __restrict, const char ** __restrict, size_t, mbstate_t * __restrict, locale_t); wint_t putwc_l(wchar_t, FILE *, locale_t); wint_t putwchar_l(wchar_t, locale_t); int swprintf_l(wchar_t * __restrict, size_t n, locale_t, const wchar_t * __restrict, ...); int swscanf_l(const wchar_t * __restrict, locale_t, const wchar_t * __restrict, ...); wint_t ungetwc_l(wint_t, FILE *, locale_t); int vfwprintf_l(FILE * __restrict, locale_t, const wchar_t * __restrict, __va_list); int vswprintf_l(wchar_t * __restrict, size_t n, locale_t, const wchar_t * __restrict, __va_list); int vwprintf_l(locale_t, const wchar_t * __restrict, __va_list); size_t wcrtomb_l(char * __restrict, wchar_t, mbstate_t * __restrict, locale_t); size_t wcsftime_l(wchar_t * __restrict, size_t, const wchar_t * __restrict, const struct tm * __restrict, locale_t); size_t wcsrtombs_l(char * __restrict, const wchar_t ** __restrict, size_t, mbstate_t * __restrict, locale_t); double wcstod_l(const wchar_t * __restrict, wchar_t ** __restrict, locale_t); long wcstol_l(const wchar_t * __restrict, wchar_t ** __restrict, int, locale_t); unsigned long wcstoul_l(const wchar_t * __restrict, wchar_t ** __restrict, int, locale_t); int wcswidth_l(const wchar_t *, size_t, locale_t); int wctob_l(wint_t, locale_t); int wcwidth_l(wchar_t, locale_t); int wprintf_l(locale_t, const wchar_t * __restrict, ...); int wscanf_l(locale_t, const wchar_t * __restrict, ...); int vfwscanf_l(FILE * __restrict, locale_t, const wchar_t * __restrict, __va_list); int vswscanf_l(const wchar_t * __restrict, locale_t, const wchar_t *__restrict, __va_list); int vwscanf_l(locale_t, const wchar_t * __restrict, __va_list); float wcstof_l(const wchar_t * __restrict, wchar_t ** __restrict, locale_t); long double wcstold_l(const wchar_t * __restrict, wchar_t ** __restrict, locale_t); long long wcstoll_l(const wchar_t * __restrict, wchar_t ** __restrict, int, locale_t); unsigned long long wcstoull_l(const wchar_t * __restrict, wchar_t ** __restrict, int, locale_t); size_t mbsnrtowcs_l(wchar_t * __restrict, const char ** __restrict, size_t, size_t, mbstate_t * __restrict, locale_t); size_t wcsnrtombs_l(char * __restrict, const wchar_t ** __restrict, size_t, size_t, mbstate_t * __restrict, locale_t); #endif /* _XLOCALE_WCHAR_H */ # 135 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/xlocale/_wchar.h" 3 4 #endif /* _XLOCALE_H_ */ # 136 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/xlocale/_wchar.h" 3 4 # 241 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/wchar.h" 2 3 4 #endif # 242 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/wchar.h" 3 4 __END_DECLS #endif /* !_WCHAR_H_ */ # 245 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/wchar.h" 3 4 # 410 "./curses.h" 2 #endif # 411 "./curses.h" #if 0 /* disabled by -frewrite-includes */ #if 0 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 413 "./curses.h" typedef unsigned short wchar_t1; #endif # 415 "./curses.h" #if 0 /* disabled by -frewrite-includes */ #if 0 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 417 "./curses.h" typedef unsigned int wint_t1; #endif # 419 "./curses.h" /* * cchar_t stores an array of CCHARW_MAX wide characters. The first is * normally a spacing character. The others are non-spacing. If those * (spacing and nonspacing) do not fill the array, a null L'\0' follows. * Otherwise, a null is assumed to follow when extracting via getcchar(). */ #define CCHARW_MAX 5 typedef struct { attr_t attr; wchar_t chars[CCHARW_MAX]; #if 0 /* disabled by -frewrite-includes */ #if 1 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 432 "./curses.h" #undef NCURSES_EXT_COLORS #define NCURSES_EXT_COLORS 20210220 int ext_color; /* color pair, must be more than 16-bits */ #endif # 436 "./curses.h" } cchar_t; #endif /* NCURSES_WIDECHAR */ # 440 "./curses.h" #if 0 /* disabled by -frewrite-includes */ #if !NCURSES_OPAQUE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 442 "./curses.h" struct ldat; struct _win_st { NCURSES_SIZE_T _cury, _curx; /* current cursor position */ /* window location and size */ NCURSES_SIZE_T _maxy, _maxx; /* maximums of x and y, NOT window size */ NCURSES_SIZE_T _begy, _begx; /* screen coords of upper-left-hand corner */ short _flags; /* window state flags */ /* attribute tracking */ attr_t _attrs; /* current attribute for non-space character */ chtype _bkgd; /* current background char/attribute pair */ /* option values set by user */ bool _notimeout; /* no time out on function-key entry? */ bool _clear; /* consider all data in the window invalid? */ bool _leaveok; /* OK to not reset cursor on exit? */ bool _scroll; /* OK to scroll this window? */ bool _idlok; /* OK to use insert/delete line? */ bool _idcok; /* OK to use insert/delete char? */ bool _immed; /* window in immed mode? (not yet used) */ bool _sync; /* window in sync mode? */ bool _use_keypad; /* process function keys into KEY_ symbols? */ int _delay; /* 0 = nodelay, <0 = blocking, >0 = delay */ struct ldat *_line; /* the actual line data */ /* global screen state */ NCURSES_SIZE_T _regtop; /* top line of scrolling region */ NCURSES_SIZE_T _regbottom; /* bottom line of scrolling region */ /* these are used only if this is a sub-window */ int _parx; /* x coordinate of this window in parent */ int _pary; /* y coordinate of this window in parent */ WINDOW *_parent; /* pointer to parent if a sub-window */ /* these are used only if this is a pad */ struct pdat { NCURSES_SIZE_T _pad_y, _pad_x; NCURSES_SIZE_T _pad_top, _pad_left; NCURSES_SIZE_T _pad_bottom, _pad_right; } _pad; NCURSES_SIZE_T _yoffset; /* real begy is _begy + _yoffset */ #if 0 /* disabled by -frewrite-includes */ #if NCURSES_WIDECHAR #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 492 "./curses.h" cchar_t _bkgrnd; /* current background char/attribute pair */ #if 0 /* disabled by -frewrite-includes */ #if 1 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 494 "./curses.h" int _color; /* current color-pair for non-space character */ #endif # 496 "./curses.h" #endif # 497 "./curses.h" }; #endif /* NCURSES_OPAQUE */ # 499 "./curses.h" /* * GCC (and some other compilers) define '__attribute__'; we're using this * macro to alert the compiler to flag inconsistencies in printf/scanf-like * function calls. Just in case '__attribute__' isn't defined, make a dummy. * Old versions of G++ do not accept it anyway, at least not consistently with * GCC. */ #if 0 /* disabled by -frewrite-includes */ #if !(defined(__GNUC__) || defined(__GNUG__) || defined(__attribute__)) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 508 "./curses.h" #define __attribute__(p) /* nothing */ #endif # 510 "./curses.h" /* * We cannot define these in ncurses_cfg.h, since they require parameters to be * passed (that is non-portable). If you happen to be using gcc with warnings * enabled, define * GCC_PRINTF * GCC_SCANF * to improve checking of calls to printw(), etc. */ #ifndef GCC_PRINTFLIKE #if 0 /* disabled by -frewrite-includes */ #if defined(GCC_PRINTF) && !defined(printf) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 521 "./curses.h" #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var))) #else # 523 "./curses.h" #define GCC_PRINTFLIKE(fmt,var) /*nothing*/ #endif # 525 "./curses.h" #endif # 526 "./curses.h" #ifndef GCC_SCANFLIKE #if 0 /* disabled by -frewrite-includes */ #if defined(GCC_SCANF) && !defined(scanf) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 529 "./curses.h" #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var))) #else # 531 "./curses.h" #define GCC_SCANFLIKE(fmt,var) /*nothing*/ #endif # 533 "./curses.h" #endif # 534 "./curses.h" #ifndef GCC_NORETURN #define GCC_NORETURN /* nothing */ #endif # 538 "./curses.h" #ifndef GCC_UNUSED #define GCC_UNUSED /* nothing */ #endif # 542 "./curses.h" #undef GCC_DEPRECATED #if 0 /* disabled by -frewrite-includes */ #if (__GNUC__ - 0 > 3 || (__GNUC__ - 0 == 3 && __GNUC_MINOR__ - 0 >= 2)) && !defined(NCURSES_INTERNALS) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 545 "./curses.h" #define GCC_DEPRECATED(msg) __attribute__((deprecated)) #else # 547 "./curses.h" #define GCC_DEPRECATED(msg) /* nothing */ #endif # 549 "./curses.h" /* * Curses uses a helper function. Define our type for this to simplify * extending it for the sp-funcs feature. */ typedef int (*NCURSES_OUTC)(int); /* * Function prototypes. This is the complete X/Open Curses list of required * functions. Those marked `generated' will have sources generated from the * macro definitions later in this file, in order to satisfy XPG4.2 * requirements. */ extern NCURSES_EXPORT(int) addch (const chtype); /* generated */ extern NCURSES_EXPORT(int) addchnstr (const chtype *, int); /* generated */ extern NCURSES_EXPORT(int) addchstr (const chtype *); /* generated */ extern NCURSES_EXPORT(int) addnstr (const char *, int); /* generated */ extern NCURSES_EXPORT(int) addstr (const char *); /* generated */ extern NCURSES_EXPORT(int) attroff (NCURSES_ATTR_T); /* generated */ extern NCURSES_EXPORT(int) attron (NCURSES_ATTR_T); /* generated */ extern NCURSES_EXPORT(int) attrset (NCURSES_ATTR_T); /* generated */ extern NCURSES_EXPORT(int) attr_get (attr_t *, NCURSES_PAIRS_T *, void *); /* generated */ extern NCURSES_EXPORT(int) attr_off (attr_t, void *); /* generated */ extern NCURSES_EXPORT(int) attr_on (attr_t, void *); /* generated */ extern NCURSES_EXPORT(int) attr_set (attr_t, NCURSES_PAIRS_T, void *); /* generated */ extern NCURSES_EXPORT(int) baudrate (void); /* implemented */ extern NCURSES_EXPORT(int) beep (void); /* implemented */ extern NCURSES_EXPORT(int) bkgd (chtype); /* generated */ extern NCURSES_EXPORT(void) bkgdset (chtype); /* generated */ extern NCURSES_EXPORT(int) border (chtype,chtype,chtype,chtype,chtype,chtype,chtype,chtype); /* generated */ extern NCURSES_EXPORT(int) box (WINDOW *, chtype, chtype); /* generated */ extern NCURSES_EXPORT(bool) can_change_color (void); /* implemented */ extern NCURSES_EXPORT(int) cbreak (void); /* implemented */ extern NCURSES_EXPORT(int) chgat (int, attr_t, NCURSES_PAIRS_T, const void *); /* generated */ extern NCURSES_EXPORT(int) clear (void); /* generated */ extern NCURSES_EXPORT(int) clearok (WINDOW *,bool); /* implemented */ extern NCURSES_EXPORT(int) clrtobot (void); /* generated */ extern NCURSES_EXPORT(int) clrtoeol (void); /* generated */ extern NCURSES_EXPORT(int) color_content (NCURSES_COLOR_T,NCURSES_COLOR_T*,NCURSES_COLOR_T*,NCURSES_COLOR_T*); /* implemented */ extern NCURSES_EXPORT(int) color_set (NCURSES_PAIRS_T,void*); /* generated */ extern NCURSES_EXPORT(int) COLOR_PAIR (int); /* generated */ extern NCURSES_EXPORT(int) copywin (const WINDOW*,WINDOW*,int,int,int,int,int,int,int); /* implemented */ extern NCURSES_EXPORT(int) curs_set (int); /* implemented */ extern NCURSES_EXPORT(int) def_prog_mode (void); /* implemented */ extern NCURSES_EXPORT(int) def_shell_mode (void); /* implemented */ extern NCURSES_EXPORT(int) delay_output (int); /* implemented */ extern NCURSES_EXPORT(int) delch (void); /* generated */ extern NCURSES_EXPORT(void) delscreen (SCREEN *); /* implemented */ extern NCURSES_EXPORT(int) delwin (WINDOW *); /* implemented */ extern NCURSES_EXPORT(int) deleteln (void); /* generated */ extern NCURSES_EXPORT(WINDOW *) derwin (WINDOW *,int,int,int,int); /* implemented */ extern NCURSES_EXPORT(int) doupdate (void); /* implemented */ extern NCURSES_EXPORT(WINDOW *) dupwin (WINDOW *); /* implemented */ extern NCURSES_EXPORT(int) echo (void); /* implemented */ extern NCURSES_EXPORT(int) echochar (const chtype); /* generated */ extern NCURSES_EXPORT(int) erase (void); /* generated */ extern NCURSES_EXPORT(int) endwin (void); /* implemented */ extern NCURSES_EXPORT(char) erasechar (void); /* implemented */ extern NCURSES_EXPORT(void) filter (void); /* implemented */ extern NCURSES_EXPORT(int) flash (void); /* implemented */ extern NCURSES_EXPORT(int) flushinp (void); /* implemented */ extern NCURSES_EXPORT(chtype) getbkgd (WINDOW *); /* generated */ extern NCURSES_EXPORT(int) getch (void); /* generated */ extern NCURSES_EXPORT(int) getnstr (char *, int); /* generated */ extern NCURSES_EXPORT(int) getstr (char *); /* generated */ extern NCURSES_EXPORT(WINDOW *) getwin (FILE *); /* implemented */ extern NCURSES_EXPORT(int) halfdelay (int); /* implemented */ extern NCURSES_EXPORT(bool) has_colors (void); /* implemented */ extern NCURSES_EXPORT(bool) has_ic (void); /* implemented */ extern NCURSES_EXPORT(bool) has_il (void); /* implemented */ extern NCURSES_EXPORT(int) hline (chtype, int); /* generated */ extern NCURSES_EXPORT(void) idcok (WINDOW *, bool); /* implemented */ extern NCURSES_EXPORT(int) idlok (WINDOW *, bool); /* implemented */ extern NCURSES_EXPORT(void) immedok (WINDOW *, bool); /* implemented */ extern NCURSES_EXPORT(chtype) inch (void); /* generated */ extern NCURSES_EXPORT(int) inchnstr (chtype *, int); /* generated */ extern NCURSES_EXPORT(int) inchstr (chtype *); /* generated */ extern NCURSES_EXPORT(WINDOW *) initscr (void); /* implemented */ extern NCURSES_EXPORT(int) init_color (NCURSES_COLOR_T,NCURSES_COLOR_T,NCURSES_COLOR_T,NCURSES_COLOR_T); /* implemented */ extern NCURSES_EXPORT(int) init_pair (NCURSES_PAIRS_T,NCURSES_COLOR_T,NCURSES_COLOR_T); /* implemented */ extern NCURSES_EXPORT(int) innstr (char *, int); /* generated */ extern NCURSES_EXPORT(int) insch (chtype); /* generated */ extern NCURSES_EXPORT(int) insdelln (int); /* generated */ extern NCURSES_EXPORT(int) insertln (void); /* generated */ extern NCURSES_EXPORT(int) insnstr (const char *, int); /* generated */ extern NCURSES_EXPORT(int) insstr (const char *); /* generated */ extern NCURSES_EXPORT(int) instr (char *); /* generated */ extern NCURSES_EXPORT(int) intrflush (WINDOW *,bool); /* implemented */ extern NCURSES_EXPORT(bool) isendwin (void); /* implemented */ extern NCURSES_EXPORT(bool) is_linetouched (WINDOW *,int); /* implemented */ extern NCURSES_EXPORT(bool) is_wintouched (WINDOW *); /* implemented */ extern NCURSES_EXPORT(NCURSES_CONST char *) keyname (int); /* implemented */ extern NCURSES_EXPORT(int) keypad (WINDOW *,bool); /* implemented */ extern NCURSES_EXPORT(char) killchar (void); /* implemented */ extern NCURSES_EXPORT(int) leaveok (WINDOW *,bool); /* implemented */ extern NCURSES_EXPORT(char *) longname (void); /* implemented */ extern NCURSES_EXPORT(int) meta (WINDOW *,bool); /* implemented */ extern NCURSES_EXPORT(int) move (int, int); /* generated */ extern NCURSES_EXPORT(int) mvaddch (int, int, const chtype); /* generated */ extern NCURSES_EXPORT(int) mvaddchnstr (int, int, const chtype *, int); /* generated */ extern NCURSES_EXPORT(int) mvaddchstr (int, int, const chtype *); /* generated */ extern NCURSES_EXPORT(int) mvaddnstr (int, int, const char *, int); /* generated */ extern NCURSES_EXPORT(int) mvaddstr (int, int, const char *); /* generated */ extern NCURSES_EXPORT(int) mvchgat (int, int, int, attr_t, NCURSES_PAIRS_T, const void *); /* generated */ extern NCURSES_EXPORT(int) mvcur (int,int,int,int); /* implemented */ extern NCURSES_EXPORT(int) mvdelch (int, int); /* generated */ extern NCURSES_EXPORT(int) mvderwin (WINDOW *, int, int); /* implemented */ extern NCURSES_EXPORT(int) mvgetch (int, int); /* generated */ extern NCURSES_EXPORT(int) mvgetnstr (int, int, char *, int); /* generated */ extern NCURSES_EXPORT(int) mvgetstr (int, int, char *); /* generated */ extern NCURSES_EXPORT(int) mvhline (int, int, chtype, int); /* generated */ extern NCURSES_EXPORT(chtype) mvinch (int, int); /* generated */ extern NCURSES_EXPORT(int) mvinchnstr (int, int, chtype *, int); /* generated */ extern NCURSES_EXPORT(int) mvinchstr (int, int, chtype *); /* generated */ extern NCURSES_EXPORT(int) mvinnstr (int, int, char *, int); /* generated */ extern NCURSES_EXPORT(int) mvinsch (int, int, chtype); /* generated */ extern NCURSES_EXPORT(int) mvinsnstr (int, int, const char *, int); /* generated */ extern NCURSES_EXPORT(int) mvinsstr (int, int, const char *); /* generated */ extern NCURSES_EXPORT(int) mvinstr (int, int, char *); /* generated */ extern NCURSES_EXPORT(int) mvprintw (int,int, const char *,...) /* implemented */ GCC_PRINTFLIKE(3,4); extern NCURSES_EXPORT(int) mvscanw (int,int, const char *,...) /* implemented */ GCC_SCANFLIKE(3,4); extern NCURSES_EXPORT(int) mvvline (int, int, chtype, int); /* generated */ extern NCURSES_EXPORT(int) mvwaddch (WINDOW *, int, int, const chtype); /* generated */ extern NCURSES_EXPORT(int) mvwaddchnstr (WINDOW *, int, int, const chtype *, int);/* generated */ extern NCURSES_EXPORT(int) mvwaddchstr (WINDOW *, int, int, const chtype *); /* generated */ extern NCURSES_EXPORT(int) mvwaddnstr (WINDOW *, int, int, const char *, int); /* generated */ extern NCURSES_EXPORT(int) mvwaddstr (WINDOW *, int, int, const char *); /* generated */ extern NCURSES_EXPORT(int) mvwchgat (WINDOW *, int, int, int, attr_t, NCURSES_PAIRS_T, const void *);/* generated */ extern NCURSES_EXPORT(int) mvwdelch (WINDOW *, int, int); /* generated */ extern NCURSES_EXPORT(int) mvwgetch (WINDOW *, int, int); /* generated */ extern NCURSES_EXPORT(int) mvwgetnstr (WINDOW *, int, int, char *, int); /* generated */ extern NCURSES_EXPORT(int) mvwgetstr (WINDOW *, int, int, char *); /* generated */ extern NCURSES_EXPORT(int) mvwhline (WINDOW *, int, int, chtype, int); /* generated */ extern NCURSES_EXPORT(int) mvwin (WINDOW *,int,int); /* implemented */ extern NCURSES_EXPORT(chtype) mvwinch (WINDOW *, int, int); /* generated */ extern NCURSES_EXPORT(int) mvwinchnstr (WINDOW *, int, int, chtype *, int); /* generated */ extern NCURSES_EXPORT(int) mvwinchstr (WINDOW *, int, int, chtype *); /* generated */ extern NCURSES_EXPORT(int) mvwinnstr (WINDOW *, int, int, char *, int); /* generated */ extern NCURSES_EXPORT(int) mvwinsch (WINDOW *, int, int, chtype); /* generated */ extern NCURSES_EXPORT(int) mvwinsnstr (WINDOW *, int, int, const char *, int); /* generated */ extern NCURSES_EXPORT(int) mvwinsstr (WINDOW *, int, int, const char *); /* generated */ extern NCURSES_EXPORT(int) mvwinstr (WINDOW *, int, int, char *); /* generated */ extern NCURSES_EXPORT(int) mvwprintw (WINDOW*,int,int, const char *,...) /* implemented */ GCC_PRINTFLIKE(4,5); extern NCURSES_EXPORT(int) mvwscanw (WINDOW *,int,int, const char *,...) /* implemented */ GCC_SCANFLIKE(4,5); extern NCURSES_EXPORT(int) mvwvline (WINDOW *,int, int, chtype, int); /* generated */ extern NCURSES_EXPORT(int) napms (int); /* implemented */ extern NCURSES_EXPORT(WINDOW *) newpad (int,int); /* implemented */ extern NCURSES_EXPORT(SCREEN *) newterm (const char *,FILE *,FILE *); /* implemented */ extern NCURSES_EXPORT(WINDOW *) newwin (int,int,int,int); /* implemented */ extern NCURSES_EXPORT(int) nl (void); /* implemented */ extern NCURSES_EXPORT(int) nocbreak (void); /* implemented */ extern NCURSES_EXPORT(int) nodelay (WINDOW *,bool); /* implemented */ extern NCURSES_EXPORT(int) noecho (void); /* implemented */ extern NCURSES_EXPORT(int) nonl (void); /* implemented */ extern NCURSES_EXPORT(void) noqiflush (void); /* implemented */ extern NCURSES_EXPORT(int) noraw (void); /* implemented */ extern NCURSES_EXPORT(int) notimeout (WINDOW *,bool); /* implemented */ extern NCURSES_EXPORT(int) overlay (const WINDOW*,WINDOW *); /* implemented */ extern NCURSES_EXPORT(int) overwrite (const WINDOW*,WINDOW *); /* implemented */ extern NCURSES_EXPORT(int) pair_content (NCURSES_PAIRS_T,NCURSES_COLOR_T*,NCURSES_COLOR_T*); /* implemented */ extern NCURSES_EXPORT(int) PAIR_NUMBER (int); /* generated */ extern NCURSES_EXPORT(int) pechochar (WINDOW *, const chtype); /* implemented */ extern NCURSES_EXPORT(int) pnoutrefresh (WINDOW*,int,int,int,int,int,int);/* implemented */ extern NCURSES_EXPORT(int) prefresh (WINDOW *,int,int,int,int,int,int); /* implemented */ extern NCURSES_EXPORT(int) printw (const char *,...) /* implemented */ GCC_PRINTFLIKE(1,2); extern NCURSES_EXPORT(int) putwin (WINDOW *, FILE *); /* implemented */ extern NCURSES_EXPORT(void) qiflush (void); /* implemented */ extern NCURSES_EXPORT(int) raw (void); /* implemented */ extern NCURSES_EXPORT(int) redrawwin (WINDOW *); /* generated */ extern NCURSES_EXPORT(int) refresh (void); /* generated */ extern NCURSES_EXPORT(int) resetty (void); /* implemented */ extern NCURSES_EXPORT(int) reset_prog_mode (void); /* implemented */ extern NCURSES_EXPORT(int) reset_shell_mode (void); /* implemented */ extern NCURSES_EXPORT(int) ripoffline (int, int (*)(WINDOW *, int)); /* implemented */ extern NCURSES_EXPORT(int) savetty (void); /* implemented */ extern NCURSES_EXPORT(int) scanw (const char *,...) /* implemented */ GCC_SCANFLIKE(1,2); extern NCURSES_EXPORT(int) scr_dump (const char *); /* implemented */ extern NCURSES_EXPORT(int) scr_init (const char *); /* implemented */ extern NCURSES_EXPORT(int) scrl (int); /* generated */ extern NCURSES_EXPORT(int) scroll (WINDOW *); /* generated */ extern NCURSES_EXPORT(int) scrollok (WINDOW *,bool); /* implemented */ extern NCURSES_EXPORT(int) scr_restore (const char *); /* implemented */ extern NCURSES_EXPORT(int) scr_set (const char *); /* implemented */ extern NCURSES_EXPORT(int) setscrreg (int,int); /* generated */ extern NCURSES_EXPORT(SCREEN *) set_term (SCREEN *); /* implemented */ extern NCURSES_EXPORT(int) slk_attroff (const chtype); /* implemented */ extern NCURSES_EXPORT(int) slk_attr_off (const attr_t, void *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) slk_attron (const chtype); /* implemented */ extern NCURSES_EXPORT(int) slk_attr_on (attr_t,void*); /* generated:WIDEC */ extern NCURSES_EXPORT(int) slk_attrset (const chtype); /* implemented */ extern NCURSES_EXPORT(attr_t) slk_attr (void); /* implemented */ extern NCURSES_EXPORT(int) slk_attr_set (const attr_t,NCURSES_PAIRS_T,void*); /* implemented */ extern NCURSES_EXPORT(int) slk_clear (void); /* implemented */ extern NCURSES_EXPORT(int) slk_color (NCURSES_PAIRS_T); /* implemented */ extern NCURSES_EXPORT(int) slk_init (int); /* implemented */ extern NCURSES_EXPORT(char *) slk_label (int); /* implemented */ extern NCURSES_EXPORT(int) slk_noutrefresh (void); /* implemented */ extern NCURSES_EXPORT(int) slk_refresh (void); /* implemented */ extern NCURSES_EXPORT(int) slk_restore (void); /* implemented */ extern NCURSES_EXPORT(int) slk_set (int,const char *,int); /* implemented */ extern NCURSES_EXPORT(int) slk_touch (void); /* implemented */ extern NCURSES_EXPORT(int) standout (void); /* generated */ extern NCURSES_EXPORT(int) standend (void); /* generated */ extern NCURSES_EXPORT(int) start_color (void); /* implemented */ extern NCURSES_EXPORT(WINDOW *) subpad (WINDOW *, int, int, int, int); /* implemented */ extern NCURSES_EXPORT(WINDOW *) subwin (WINDOW *, int, int, int, int); /* implemented */ extern NCURSES_EXPORT(int) syncok (WINDOW *, bool); /* implemented */ extern NCURSES_EXPORT(chtype) termattrs (void); /* implemented */ extern NCURSES_EXPORT(char *) termname (void); /* implemented */ extern NCURSES_EXPORT(void) timeout (int); /* generated */ extern NCURSES_EXPORT(int) touchline (WINDOW *, int, int); /* generated */ extern NCURSES_EXPORT(int) touchwin (WINDOW *); /* generated */ extern NCURSES_EXPORT(int) typeahead (int); /* implemented */ extern NCURSES_EXPORT(int) ungetch (int); /* implemented */ extern NCURSES_EXPORT(int) untouchwin (WINDOW *); /* generated */ extern NCURSES_EXPORT(void) use_env (bool); /* implemented */ extern NCURSES_EXPORT(void) use_tioctl (bool); /* implemented */ extern NCURSES_EXPORT(int) vidattr (chtype); /* implemented */ extern NCURSES_EXPORT(int) vidputs (chtype, NCURSES_OUTC); /* implemented */ extern NCURSES_EXPORT(int) vline (chtype, int); /* generated */ extern NCURSES_EXPORT(int) vwprintw (WINDOW *, const char *,va_list) GCC_DEPRECATED(use vw_printw); /* implemented */ extern NCURSES_EXPORT(int) vw_printw (WINDOW *, const char *,va_list); /* implemented */ extern NCURSES_EXPORT(int) vwscanw (WINDOW *, const char *,va_list) GCC_DEPRECATED(use vw_scanw); /* implemented */ extern NCURSES_EXPORT(int) vw_scanw (WINDOW *, const char *,va_list); /* implemented */ extern NCURSES_EXPORT(int) waddch (WINDOW *, const chtype); /* implemented */ extern NCURSES_EXPORT(int) waddchnstr (WINDOW *,const chtype *,int); /* implemented */ extern NCURSES_EXPORT(int) waddchstr (WINDOW *,const chtype *); /* generated */ extern NCURSES_EXPORT(int) waddnstr (WINDOW *,const char *,int); /* implemented */ extern NCURSES_EXPORT(int) waddstr (WINDOW *,const char *); /* generated */ extern NCURSES_EXPORT(int) wattron (WINDOW *, int); /* generated */ extern NCURSES_EXPORT(int) wattroff (WINDOW *, int); /* generated */ extern NCURSES_EXPORT(int) wattrset (WINDOW *, int); /* generated */ extern NCURSES_EXPORT(int) wattr_get (WINDOW *, attr_t *, NCURSES_PAIRS_T *, void *); /* generated */ extern NCURSES_EXPORT(int) wattr_on (WINDOW *, attr_t, void *); /* implemented */ extern NCURSES_EXPORT(int) wattr_off (WINDOW *, attr_t, void *); /* implemented */ extern NCURSES_EXPORT(int) wattr_set (WINDOW *, attr_t, NCURSES_PAIRS_T, void *); /* generated */ extern NCURSES_EXPORT(int) wbkgd (WINDOW *, chtype); /* implemented */ extern NCURSES_EXPORT(void) wbkgdset (WINDOW *,chtype); /* implemented */ extern NCURSES_EXPORT(int) wborder (WINDOW *,chtype,chtype,chtype,chtype,chtype,chtype,chtype,chtype); /* implemented */ extern NCURSES_EXPORT(int) wchgat (WINDOW *, int, attr_t, NCURSES_PAIRS_T, const void *);/* implemented */ extern NCURSES_EXPORT(int) wclear (WINDOW *); /* implemented */ extern NCURSES_EXPORT(int) wclrtobot (WINDOW *); /* implemented */ extern NCURSES_EXPORT(int) wclrtoeol (WINDOW *); /* implemented */ extern NCURSES_EXPORT(int) wcolor_set (WINDOW*,NCURSES_PAIRS_T,void*); /* implemented */ extern NCURSES_EXPORT(void) wcursyncup (WINDOW *); /* implemented */ extern NCURSES_EXPORT(int) wdelch (WINDOW *); /* implemented */ extern NCURSES_EXPORT(int) wdeleteln (WINDOW *); /* generated */ extern NCURSES_EXPORT(int) wechochar (WINDOW *, const chtype); /* implemented */ extern NCURSES_EXPORT(int) werase (WINDOW *); /* implemented */ extern NCURSES_EXPORT(int) wgetch (WINDOW *); /* implemented */ extern NCURSES_EXPORT(int) wgetnstr (WINDOW *,char *,int); /* implemented */ extern NCURSES_EXPORT(int) wgetstr (WINDOW *, char *); /* generated */ extern NCURSES_EXPORT(int) whline (WINDOW *, chtype, int); /* implemented */ extern NCURSES_EXPORT(chtype) winch (WINDOW *); /* implemented */ extern NCURSES_EXPORT(int) winchnstr (WINDOW *, chtype *, int); /* implemented */ extern NCURSES_EXPORT(int) winchstr (WINDOW *, chtype *); /* generated */ extern NCURSES_EXPORT(int) winnstr (WINDOW *, char *, int); /* implemented */ extern NCURSES_EXPORT(int) winsch (WINDOW *, chtype); /* implemented */ extern NCURSES_EXPORT(int) winsdelln (WINDOW *,int); /* implemented */ extern NCURSES_EXPORT(int) winsertln (WINDOW *); /* generated */ extern NCURSES_EXPORT(int) winsnstr (WINDOW *, const char *,int); /* implemented */ extern NCURSES_EXPORT(int) winsstr (WINDOW *, const char *); /* generated */ extern NCURSES_EXPORT(int) winstr (WINDOW *, char *); /* generated */ extern NCURSES_EXPORT(int) wmove (WINDOW *,int,int); /* implemented */ extern NCURSES_EXPORT(int) wnoutrefresh (WINDOW *); /* implemented */ extern NCURSES_EXPORT(int) wprintw (WINDOW *, const char *,...) /* implemented */ GCC_PRINTFLIKE(2,3); extern NCURSES_EXPORT(int) wredrawln (WINDOW *,int,int); /* implemented */ extern NCURSES_EXPORT(int) wrefresh (WINDOW *); /* implemented */ extern NCURSES_EXPORT(int) wscanw (WINDOW *, const char *,...) /* implemented */ GCC_SCANFLIKE(2,3); extern NCURSES_EXPORT(int) wscrl (WINDOW *,int); /* implemented */ extern NCURSES_EXPORT(int) wsetscrreg (WINDOW *,int,int); /* implemented */ extern NCURSES_EXPORT(int) wstandout (WINDOW *); /* generated */ extern NCURSES_EXPORT(int) wstandend (WINDOW *); /* generated */ extern NCURSES_EXPORT(void) wsyncdown (WINDOW *); /* implemented */ extern NCURSES_EXPORT(void) wsyncup (WINDOW *); /* implemented */ extern NCURSES_EXPORT(void) wtimeout (WINDOW *,int); /* implemented */ extern NCURSES_EXPORT(int) wtouchln (WINDOW *,int,int,int); /* implemented */ extern NCURSES_EXPORT(int) wvline (WINDOW *,chtype,int); /* implemented */ /* * These are also declared in : */ extern NCURSES_EXPORT(int) tigetflag (const char *); /* implemented */ extern NCURSES_EXPORT(int) tigetnum (const char *); /* implemented */ extern NCURSES_EXPORT(char *) tigetstr (const char *); /* implemented */ extern NCURSES_EXPORT(int) putp (const char *); /* implemented */ #if 0 /* disabled by -frewrite-includes */ #if NCURSES_TPARM_VARARGS #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 846 "./curses.h" extern NCURSES_EXPORT(char *) tparm (const char *, ...); /* special */ #else # 848 "./curses.h" extern NCURSES_EXPORT(char *) tparm (const char *, NCURSES_TPARM_ARG,NCURSES_TPARM_ARG,NCURSES_TPARM_ARG,NCURSES_TPARM_ARG,NCURSES_TPARM_ARG,NCURSES_TPARM_ARG,NCURSES_TPARM_ARG,NCURSES_TPARM_ARG,NCURSES_TPARM_ARG); /* special */ #endif # 850 "./curses.h" extern NCURSES_EXPORT(char *) tiparm (const char *, ...); /* special */ /* * These functions are not in X/Open, but we use them in macro definitions: */ extern NCURSES_EXPORT(int) getattrs (const WINDOW *); /* generated */ extern NCURSES_EXPORT(int) getcurx (const WINDOW *); /* generated */ extern NCURSES_EXPORT(int) getcury (const WINDOW *); /* generated */ extern NCURSES_EXPORT(int) getbegx (const WINDOW *); /* generated */ extern NCURSES_EXPORT(int) getbegy (const WINDOW *); /* generated */ extern NCURSES_EXPORT(int) getmaxx (const WINDOW *); /* generated */ extern NCURSES_EXPORT(int) getmaxy (const WINDOW *); /* generated */ extern NCURSES_EXPORT(int) getparx (const WINDOW *); /* generated */ extern NCURSES_EXPORT(int) getpary (const WINDOW *); /* generated */ /* * vid_attr() was implemented originally based on a draft of X/Open curses. */ #if 0 /* disabled by -frewrite-includes */ #if !NCURSES_WIDECHAR #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 870 "./curses.h" #define vid_attr(a,pair,opts) vidattr(a) #endif # 872 "./curses.h" /* * These functions are extensions - not in X/Open Curses. */ #if 0 /* disabled by -frewrite-includes */ #if 1 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 877 "./curses.h" #undef NCURSES_EXT_FUNCS #define NCURSES_EXT_FUNCS 20210220 typedef int (*NCURSES_WINDOW_CB)(WINDOW *, void *); typedef int (*NCURSES_SCREEN_CB)(SCREEN *, void *); extern NCURSES_EXPORT(bool) is_term_resized (int, int); extern NCURSES_EXPORT(char *) keybound (int, int); extern NCURSES_EXPORT(const char *) curses_version (void); extern NCURSES_EXPORT(int) alloc_pair (int, int); extern NCURSES_EXPORT(int) assume_default_colors (int, int); extern NCURSES_EXPORT(int) define_key (const char *, int); extern NCURSES_EXPORT(int) extended_color_content(int, int *, int *, int *); extern NCURSES_EXPORT(int) extended_pair_content(int, int *, int *); extern NCURSES_EXPORT(int) extended_slk_color(int); extern NCURSES_EXPORT(int) find_pair (int, int); extern NCURSES_EXPORT(int) free_pair (int); extern NCURSES_EXPORT(int) get_escdelay (void); extern NCURSES_EXPORT(int) init_extended_color(int, int, int, int); extern NCURSES_EXPORT(int) init_extended_pair(int, int, int); extern NCURSES_EXPORT(int) key_defined (const char *); extern NCURSES_EXPORT(int) keyok (int, bool); extern NCURSES_EXPORT(void) reset_color_pairs (void); extern NCURSES_EXPORT(int) resize_term (int, int); extern NCURSES_EXPORT(int) resizeterm (int, int); extern NCURSES_EXPORT(int) set_escdelay (int); extern NCURSES_EXPORT(int) set_tabsize (int); extern NCURSES_EXPORT(int) use_default_colors (void); extern NCURSES_EXPORT(int) use_extended_names (bool); extern NCURSES_EXPORT(int) use_legacy_coding (int); extern NCURSES_EXPORT(int) use_screen (SCREEN *, NCURSES_SCREEN_CB, void *); extern NCURSES_EXPORT(int) use_window (WINDOW *, NCURSES_WINDOW_CB, void *); extern NCURSES_EXPORT(int) wresize (WINDOW *, int, int); extern NCURSES_EXPORT(void) nofilter(void); /* * These extensions provide access to information stored in the WINDOW even * when NCURSES_OPAQUE is set: */ extern NCURSES_EXPORT(WINDOW *) wgetparent (const WINDOW *); /* generated */ extern NCURSES_EXPORT(bool) is_cleared (const WINDOW *); /* generated */ extern NCURSES_EXPORT(bool) is_idcok (const WINDOW *); /* generated */ extern NCURSES_EXPORT(bool) is_idlok (const WINDOW *); /* generated */ extern NCURSES_EXPORT(bool) is_immedok (const WINDOW *); /* generated */ extern NCURSES_EXPORT(bool) is_keypad (const WINDOW *); /* generated */ extern NCURSES_EXPORT(bool) is_leaveok (const WINDOW *); /* generated */ extern NCURSES_EXPORT(bool) is_nodelay (const WINDOW *); /* generated */ extern NCURSES_EXPORT(bool) is_notimeout (const WINDOW *); /* generated */ extern NCURSES_EXPORT(bool) is_pad (const WINDOW *); /* generated */ extern NCURSES_EXPORT(bool) is_scrollok (const WINDOW *); /* generated */ extern NCURSES_EXPORT(bool) is_subwin (const WINDOW *); /* generated */ extern NCURSES_EXPORT(bool) is_syncok (const WINDOW *); /* generated */ extern NCURSES_EXPORT(int) wgetdelay (const WINDOW *); /* generated */ extern NCURSES_EXPORT(int) wgetscrreg (const WINDOW *, int *, int *); /* generated */ #else # 931 "./curses.h" #define curses_version() NCURSES_VERSION #endif # 933 "./curses.h" /* * Extra extension-functions, which pass a SCREEN pointer rather than using * a global variable SP. */ #if 0 /* disabled by -frewrite-includes */ #if 1 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 939 "./curses.h" #undef NCURSES_SP_FUNCS #define NCURSES_SP_FUNCS 20210220 #define NCURSES_SP_NAME(name) name##_sp /* Define the sp-funcs helper function */ #define NCURSES_SP_OUTC NCURSES_SP_NAME(NCURSES_OUTC) typedef int (*NCURSES_SP_OUTC)(SCREEN*, int); extern NCURSES_EXPORT(SCREEN *) new_prescr (void); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(baudrate) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(beep) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(bool) NCURSES_SP_NAME(can_change_color) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(cbreak) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(curs_set) (SCREEN*, int); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(color_content) (SCREEN*, NCURSES_PAIRS_T, NCURSES_COLOR_T*, NCURSES_COLOR_T*, NCURSES_COLOR_T*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(def_prog_mode) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(def_shell_mode) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(delay_output) (SCREEN*, int); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(doupdate) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(echo) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(endwin) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(char) NCURSES_SP_NAME(erasechar) (SCREEN*);/* implemented:SP_FUNC */ extern NCURSES_EXPORT(void) NCURSES_SP_NAME(filter) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(flash) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(flushinp) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(WINDOW *) NCURSES_SP_NAME(getwin) (SCREEN*, FILE *); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(halfdelay) (SCREEN*, int); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(bool) NCURSES_SP_NAME(has_colors) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(bool) NCURSES_SP_NAME(has_ic) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(bool) NCURSES_SP_NAME(has_il) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(init_color) (SCREEN*, NCURSES_COLOR_T, NCURSES_COLOR_T, NCURSES_COLOR_T, NCURSES_COLOR_T); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(init_pair) (SCREEN*, NCURSES_PAIRS_T, NCURSES_COLOR_T, NCURSES_COLOR_T); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(intrflush) (SCREEN*, WINDOW*, bool); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(bool) NCURSES_SP_NAME(isendwin) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(NCURSES_CONST char *) NCURSES_SP_NAME(keyname) (SCREEN*, int); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(char) NCURSES_SP_NAME(killchar) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(char *) NCURSES_SP_NAME(longname) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(mvcur) (SCREEN*, int, int, int, int); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(napms) (SCREEN*, int); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(WINDOW *) NCURSES_SP_NAME(newpad) (SCREEN*, int, int); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(SCREEN *) NCURSES_SP_NAME(newterm) (SCREEN*, const char *, FILE *, FILE *); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(WINDOW *) NCURSES_SP_NAME(newwin) (SCREEN*, int, int, int, int); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(nl) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(nocbreak) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(noecho) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(nonl) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(void) NCURSES_SP_NAME(noqiflush) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(noraw) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(pair_content) (SCREEN*, NCURSES_PAIRS_T, NCURSES_COLOR_T*, NCURSES_COLOR_T*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(void) NCURSES_SP_NAME(qiflush) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(raw) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(reset_prog_mode) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(reset_shell_mode) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(resetty) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(ripoffline) (SCREEN*, int, int (*)(WINDOW *, int)); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(savetty) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(scr_init) (SCREEN*, const char *); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(scr_restore) (SCREEN*, const char *); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(scr_set) (SCREEN*, const char *); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(slk_attroff) (SCREEN*, const chtype); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(slk_attron) (SCREEN*, const chtype); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(slk_attrset) (SCREEN*, const chtype); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(attr_t) NCURSES_SP_NAME(slk_attr) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(slk_attr_set) (SCREEN*, const attr_t, NCURSES_PAIRS_T, void*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(slk_clear) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(slk_color) (SCREEN*, NCURSES_PAIRS_T); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(slk_init) (SCREEN*, int); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(char *) NCURSES_SP_NAME(slk_label) (SCREEN*, int); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(slk_noutrefresh) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(slk_refresh) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(slk_restore) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(slk_set) (SCREEN*, int, const char *, int); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(slk_touch) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(start_color) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(chtype) NCURSES_SP_NAME(termattrs) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(char *) NCURSES_SP_NAME(termname) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(typeahead) (SCREEN*, int); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(ungetch) (SCREEN*, int); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(void) NCURSES_SP_NAME(use_env) (SCREEN*, bool); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(void) NCURSES_SP_NAME(use_tioctl) (SCREEN*, bool); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(vidattr) (SCREEN*, chtype); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(vidputs) (SCREEN*, chtype, NCURSES_SP_OUTC); /* implemented:SP_FUNC */ #if 0 /* disabled by -frewrite-includes */ #if 1 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 1023 "./curses.h" extern NCURSES_EXPORT(char *) NCURSES_SP_NAME(keybound) (SCREEN*, int, int); /* implemented:EXT_SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(alloc_pair) (SCREEN*, int, int); /* implemented:EXT_SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(assume_default_colors) (SCREEN*, int, int); /* implemented:EXT_SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(define_key) (SCREEN*, const char *, int); /* implemented:EXT_SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(extended_color_content) (SCREEN*, int, int *, int *, int *); /* implemented:EXT_SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(extended_pair_content) (SCREEN*, int, int *, int *); /* implemented:EXT_SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(extended_slk_color) (SCREEN*, int); /* implemented:EXT_SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(get_escdelay) (SCREEN*); /* implemented:EXT_SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(find_pair) (SCREEN*, int, int); /* implemented:EXT_SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(free_pair) (SCREEN*, int); /* implemented:EXT_SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(init_extended_color) (SCREEN*, int, int, int, int); /* implemented:EXT_SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(init_extended_pair) (SCREEN*, int, int, int); /* implemented:EXT_SP_FUNC */ extern NCURSES_EXPORT(bool) NCURSES_SP_NAME(is_term_resized) (SCREEN*, int, int); /* implemented:EXT_SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(key_defined) (SCREEN*, const char *); /* implemented:EXT_SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(keyok) (SCREEN*, int, bool); /* implemented:EXT_SP_FUNC */ extern NCURSES_EXPORT(void) NCURSES_SP_NAME(nofilter) (SCREEN*); /* implemented */ /* implemented:EXT_SP_FUNC */ extern NCURSES_EXPORT(void) NCURSES_SP_NAME(reset_color_pairs) (SCREEN*); /* implemented:EXT_SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(resize_term) (SCREEN*, int, int); /* implemented:EXT_SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(resizeterm) (SCREEN*, int, int); /* implemented:EXT_SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(set_escdelay) (SCREEN*, int); /* implemented:EXT_SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(set_tabsize) (SCREEN*, int); /* implemented:EXT_SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(use_default_colors) (SCREEN*); /* implemented:EXT_SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(use_legacy_coding) (SCREEN*, int); /* implemented:EXT_SP_FUNC */ #endif # 1047 "./curses.h" #else # 1048 "./curses.h" #undef NCURSES_SP_FUNCS #define NCURSES_SP_FUNCS 0 #define NCURSES_SP_NAME(name) name #define NCURSES_SP_OUTC NCURSES_OUTC #endif # 1053 "./curses.h" /* attributes */ #define NCURSES_ATTR_SHIFT 8 #define NCURSES_BITS(mask,shift) (NCURSES_CAST(chtype,(mask)) << ((shift) + NCURSES_ATTR_SHIFT)) #define A_NORMAL (1U - 1U) #define A_ATTRIBUTES NCURSES_BITS(~(1U - 1U),0) #define A_CHARTEXT (NCURSES_BITS(1U,0) - 1U) #define A_COLOR NCURSES_BITS(((1U) << 8) - 1U,0) #define A_STANDOUT NCURSES_BITS(1U,8) #define A_UNDERLINE NCURSES_BITS(1U,9) #define A_REVERSE NCURSES_BITS(1U,10) #define A_BLINK NCURSES_BITS(1U,11) #define A_DIM NCURSES_BITS(1U,12) #define A_BOLD NCURSES_BITS(1U,13) #define A_ALTCHARSET NCURSES_BITS(1U,14) #define A_INVIS NCURSES_BITS(1U,15) #define A_PROTECT NCURSES_BITS(1U,16) #define A_HORIZONTAL NCURSES_BITS(1U,17) #define A_LEFT NCURSES_BITS(1U,18) #define A_LOW NCURSES_BITS(1U,19) #define A_RIGHT NCURSES_BITS(1U,20) #define A_TOP NCURSES_BITS(1U,21) #define A_VERTICAL NCURSES_BITS(1U,22) #if 0 /* disabled by -frewrite-includes */ #if 1 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 1080 "./curses.h" #define A_ITALIC NCURSES_BITS(1U,23) /* ncurses extension */ #endif # 1082 "./curses.h" /* * Most of the pseudo functions are macros that either provide compatibility * with older versions of curses, or provide inline functionality to improve * performance. */ /* * These pseudo functions are always implemented as macros: */ #define getyx(win,y,x) (y = getcury(win), x = getcurx(win)) #define getbegyx(win,y,x) (y = getbegy(win), x = getbegx(win)) #define getmaxyx(win,y,x) (y = getmaxy(win), x = getmaxx(win)) #define getparyx(win,y,x) (y = getpary(win), x = getparx(win)) #define getsyx(y,x) do { if (newscr) { \ if (is_leaveok(newscr)) \ (y) = (x) = -1; \ else \ getyx(newscr,(y), (x)); \ } \ } while(0) #define setsyx(y,x) do { if (newscr) { \ if ((y) == -1 && (x) == -1) \ leaveok(newscr, TRUE); \ else { \ leaveok(newscr, FALSE); \ wmove(newscr, (y), (x)); \ } \ } \ } while(0) #ifndef NCURSES_NOMACROS /* * These miscellaneous pseudo functions are provided for compatibility: */ #define wgetstr(w, s) wgetnstr(w, s, -1) #define getnstr(s, n) wgetnstr(stdscr, s, (n)) #define setterm(term) setupterm(term, 1, (int *)0) #define fixterm() reset_prog_mode() #define resetterm() reset_shell_mode() #define saveterm() def_prog_mode() #define crmode() cbreak() #define nocrmode() nocbreak() #define gettmode() /* It seems older SYSV curses versions define these */ #if 0 /* disabled by -frewrite-includes */ #if !NCURSES_OPAQUE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 1136 "./curses.h" #define getattrs(win) NCURSES_CAST(int, NCURSES_OK_ADDR(win) ? (win)->_attrs : A_NORMAL) #define getcurx(win) (NCURSES_OK_ADDR(win) ? (win)->_curx : ERR) #define getcury(win) (NCURSES_OK_ADDR(win) ? (win)->_cury : ERR) #define getbegx(win) (NCURSES_OK_ADDR(win) ? (win)->_begx : ERR) #define getbegy(win) (NCURSES_OK_ADDR(win) ? (win)->_begy : ERR) #define getmaxx(win) (NCURSES_OK_ADDR(win) ? ((win)->_maxx + 1) : ERR) #define getmaxy(win) (NCURSES_OK_ADDR(win) ? ((win)->_maxy + 1) : ERR) #define getparx(win) (NCURSES_OK_ADDR(win) ? (win)->_parx : ERR) #define getpary(win) (NCURSES_OK_ADDR(win) ? (win)->_pary : ERR) #endif /* NCURSES_OPAQUE */ # 1146 "./curses.h" #define wstandout(win) (wattrset(win,A_STANDOUT)) #define wstandend(win) (wattrset(win,A_NORMAL)) #define wattron(win,at) wattr_on(win, NCURSES_CAST(attr_t, at), NULL) #define wattroff(win,at) wattr_off(win, NCURSES_CAST(attr_t, at), NULL) #if 0 /* disabled by -frewrite-includes */ #if !NCURSES_OPAQUE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 1154 "./curses.h" #if 0 /* disabled by -frewrite-includes */ #if NCURSES_WATTR_MACROS #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 1155 "./curses.h" #if 0 /* disabled by -frewrite-includes */ #if NCURSES_WIDECHAR && 1 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 1156 "./curses.h" #define wattrset(win,at) \ (NCURSES_OK_ADDR(win) \ ? ((win)->_color = NCURSES_CAST(int, PAIR_NUMBER(at)), \ (win)->_attrs = NCURSES_CAST(attr_t, at), \ OK) \ : ERR) #else # 1163 "./curses.h" #define wattrset(win,at) \ (NCURSES_OK_ADDR(win) \ ? ((win)->_attrs = NCURSES_CAST(attr_t, at), \ OK) \ : ERR) #endif # 1169 "./curses.h" #endif /* NCURSES_WATTR_MACROS */ # 1170 "./curses.h" #endif /* NCURSES_OPAQUE */ # 1171 "./curses.h" #define scroll(win) wscrl(win,1) #define touchwin(win) wtouchln((win), 0, getmaxy(win), 1) #define touchline(win, s, c) wtouchln((win), s, c, 1) #define untouchwin(win) wtouchln((win), 0, getmaxy(win), 0) #define box(win, v, h) wborder(win, v, v, h, h, 0, 0, 0, 0) #define border(ls, rs, ts, bs, tl, tr, bl, br) wborder(stdscr, ls, rs, ts, bs, tl, tr, bl, br) #define hline(ch, n) whline(stdscr, ch, (n)) #define vline(ch, n) wvline(stdscr, ch, (n)) #define winstr(w, s) winnstr(w, s, -1) #define winchstr(w, s) winchnstr(w, s, -1) #define winsstr(w, s) winsnstr(w, s, -1) #if 0 /* disabled by -frewrite-includes */ #if !NCURSES_OPAQUE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 1188 "./curses.h" #define redrawwin(win) wredrawln(win, 0, (NCURSES_OK_ADDR(win) ? (win)->_maxy+1 : -1)) #endif /* NCURSES_OPAQUE */ # 1190 "./curses.h" #define waddstr(win,str) waddnstr(win,str,-1) #define waddchstr(win,str) waddchnstr(win,str,-1) /* * These apply to the first 256 color pairs. */ #define COLOR_PAIR(n) (NCURSES_BITS((n), 0) & A_COLOR) #define PAIR_NUMBER(a) (NCURSES_CAST(int,((NCURSES_CAST(unsigned long,(a)) & A_COLOR) >> NCURSES_ATTR_SHIFT))) /* * pseudo functions for standard screen */ #define addch(ch) waddch(stdscr,(ch)) #define addchnstr(str,n) waddchnstr(stdscr,(str),(n)) #define addchstr(str) waddchstr(stdscr,(str)) #define addnstr(str,n) waddnstr(stdscr,(str),(n)) #define addstr(str) waddnstr(stdscr,(str),-1) #define attr_get(ap,cp,o) wattr_get(stdscr,(ap),(cp),(o)) #define attr_off(a,o) wattr_off(stdscr,(a),(o)) #define attr_on(a,o) wattr_on(stdscr,(a),(o)) #define attr_set(a,c,o) wattr_set(stdscr,(a),(c),(o)) #define attroff(at) wattroff(stdscr,(at)) #define attron(at) wattron(stdscr,(at)) #define attrset(at) wattrset(stdscr,(at)) #define bkgd(ch) wbkgd(stdscr,(ch)) #define bkgdset(ch) wbkgdset(stdscr,(ch)) #define chgat(n,a,c,o) wchgat(stdscr,(n),(a),(c),(o)) #define clear() wclear(stdscr) #define clrtobot() wclrtobot(stdscr) #define clrtoeol() wclrtoeol(stdscr) #define color_set(c,o) wcolor_set(stdscr,(c),(o)) #define delch() wdelch(stdscr) #define deleteln() winsdelln(stdscr,-1) #define echochar(c) wechochar(stdscr,(c)) #define erase() werase(stdscr) #define getch() wgetch(stdscr) #define getstr(str) wgetstr(stdscr,(str)) #define inch() winch(stdscr) #define inchnstr(s,n) winchnstr(stdscr,(s),(n)) #define inchstr(s) winchstr(stdscr,(s)) #define innstr(s,n) winnstr(stdscr,(s),(n)) #define insch(c) winsch(stdscr,(c)) #define insdelln(n) winsdelln(stdscr,(n)) #define insertln() winsdelln(stdscr,1) #define insnstr(s,n) winsnstr(stdscr,(s),(n)) #define insstr(s) winsstr(stdscr,(s)) #define instr(s) winstr(stdscr,(s)) #define move(y,x) wmove(stdscr,(y),(x)) #define refresh() wrefresh(stdscr) #define scrl(n) wscrl(stdscr,(n)) #define setscrreg(t,b) wsetscrreg(stdscr,(t),(b)) #define standend() wstandend(stdscr) #define standout() wstandout(stdscr) #define timeout(delay) wtimeout(stdscr,(delay)) #define wdeleteln(win) winsdelln(win,-1) #define winsertln(win) winsdelln(win,1) /* * mv functions */ #define mvwaddch(win,y,x,ch) (wmove((win),(y),(x)) == ERR ? ERR : waddch((win),(ch))) #define mvwaddchnstr(win,y,x,str,n) (wmove((win),(y),(x)) == ERR ? ERR : waddchnstr((win),(str),(n))) #define mvwaddchstr(win,y,x,str) (wmove((win),(y),(x)) == ERR ? ERR : waddchnstr((win),(str),-1)) #define mvwaddnstr(win,y,x,str,n) (wmove((win),(y),(x)) == ERR ? ERR : waddnstr((win),(str),(n))) #define mvwaddstr(win,y,x,str) (wmove((win),(y),(x)) == ERR ? ERR : waddnstr((win),(str),-1)) #define mvwchgat(win,y,x,n,a,c,o) (wmove((win),(y),(x)) == ERR ? ERR : wchgat((win),(n),(a),(c),(o))) #define mvwdelch(win,y,x) (wmove((win),(y),(x)) == ERR ? ERR : wdelch(win)) #define mvwgetch(win,y,x) (wmove((win),(y),(x)) == ERR ? ERR : wgetch(win)) #define mvwgetnstr(win,y,x,str,n) (wmove((win),(y),(x)) == ERR ? ERR : wgetnstr((win),(str),(n))) #define mvwgetstr(win,y,x,str) (wmove((win),(y),(x)) == ERR ? ERR : wgetstr((win),(str))) #define mvwhline(win,y,x,c,n) (wmove((win),(y),(x)) == ERR ? ERR : whline((win),(c),(n))) #define mvwinch(win,y,x) (wmove((win),(y),(x)) == ERR ? NCURSES_CAST(chtype, ERR) : winch(win)) #define mvwinchnstr(win,y,x,s,n) (wmove((win),(y),(x)) == ERR ? ERR : winchnstr((win),(s),(n))) #define mvwinchstr(win,y,x,s) (wmove((win),(y),(x)) == ERR ? ERR : winchstr((win),(s))) #define mvwinnstr(win,y,x,s,n) (wmove((win),(y),(x)) == ERR ? ERR : winnstr((win),(s),(n))) #define mvwinsch(win,y,x,c) (wmove((win),(y),(x)) == ERR ? ERR : winsch((win),(c))) #define mvwinsnstr(win,y,x,s,n) (wmove((win),(y),(x)) == ERR ? ERR : winsnstr((win),(s),(n))) #define mvwinsstr(win,y,x,s) (wmove((win),(y),(x)) == ERR ? ERR : winsstr((win),(s))) #define mvwinstr(win,y,x,s) (wmove((win),(y),(x)) == ERR ? ERR : winstr((win),(s))) #define mvwvline(win,y,x,c,n) (wmove((win),(y),(x)) == ERR ? ERR : wvline((win),(c),(n))) #define mvaddch(y,x,ch) mvwaddch(stdscr,(y),(x),(ch)) #define mvaddchnstr(y,x,str,n) mvwaddchnstr(stdscr,(y),(x),(str),(n)) #define mvaddchstr(y,x,str) mvwaddchstr(stdscr,(y),(x),(str)) #define mvaddnstr(y,x,str,n) mvwaddnstr(stdscr,(y),(x),(str),(n)) #define mvaddstr(y,x,str) mvwaddstr(stdscr,(y),(x),(str)) #define mvchgat(y,x,n,a,c,o) mvwchgat(stdscr,(y),(x),(n),(a),(c),(o)) #define mvdelch(y,x) mvwdelch(stdscr,(y),(x)) #define mvgetch(y,x) mvwgetch(stdscr,(y),(x)) #define mvgetnstr(y,x,str,n) mvwgetnstr(stdscr,(y),(x),(str),(n)) #define mvgetstr(y,x,str) mvwgetstr(stdscr,(y),(x),(str)) #define mvhline(y,x,c,n) mvwhline(stdscr,(y),(x),(c),(n)) #define mvinch(y,x) mvwinch(stdscr,(y),(x)) #define mvinchnstr(y,x,s,n) mvwinchnstr(stdscr,(y),(x),(s),(n)) #define mvinchstr(y,x,s) mvwinchstr(stdscr,(y),(x),(s)) #define mvinnstr(y,x,s,n) mvwinnstr(stdscr,(y),(x),(s),(n)) #define mvinsch(y,x,c) mvwinsch(stdscr,(y),(x),(c)) #define mvinsnstr(y,x,s,n) mvwinsnstr(stdscr,(y),(x),(s),(n)) #define mvinsstr(y,x,s) mvwinsstr(stdscr,(y),(x),(s)) #define mvinstr(y,x,s) mvwinstr(stdscr,(y),(x),(s)) #define mvvline(y,x,c,n) mvwvline(stdscr,(y),(x),(c),(n)) /* * Some wide-character functions can be implemented without the extensions. */ #if 0 /* disabled by -frewrite-includes */ #if !NCURSES_OPAQUE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 1299 "./curses.h" #define getbkgd(win) (NCURSES_OK_ADDR(win) ? ((win)->_bkgd) : 0) #endif /* NCURSES_OPAQUE */ # 1301 "./curses.h" #define slk_attr_off(a,v) ((v) ? ERR : slk_attroff(a)) #define slk_attr_on(a,v) ((v) ? ERR : slk_attron(a)) #if 0 /* disabled by -frewrite-includes */ #if !NCURSES_OPAQUE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 1306 "./curses.h" #if 0 /* disabled by -frewrite-includes */ #if NCURSES_WATTR_MACROS #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 1307 "./curses.h" #if 0 /* disabled by -frewrite-includes */ #if NCURSES_WIDECHAR && 1 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 1308 "./curses.h" #define wattr_set(win,a,p,opts) \ (NCURSES_OK_ADDR(win) \ ? ((void)((win)->_attrs = ((a) & ~A_COLOR), \ (win)->_color = (opts) ? *(int *)(opts) : (p)), \ OK) \ : ERR) #define wattr_get(win,a,p,opts) \ (NCURSES_OK_ADDR(win) \ ? ((void)(NCURSES_OK_ADDR(a) \ ? (*(a) = (win)->_attrs) \ : OK), \ (void)(NCURSES_OK_ADDR(p) \ ? (*(p) = (NCURSES_PAIRS_T) (win)->_color) \ : OK), \ (void)(NCURSES_OK_ADDR(opts) \ ? (*(int *)(opts) = (win)->_color) \ : OK), \ OK) \ : ERR) #else /* !(NCURSES_WIDECHAR && NCURSES_EXE_COLORS) */ # 1328 "./curses.h" #define wattr_set(win,a,p,opts) \ (NCURSES_OK_ADDR(win) \ ? ((void)((win)->_attrs = (((a) & ~A_COLOR) | \ (attr_t)COLOR_PAIR(p))), \ OK) \ : ERR) #define wattr_get(win,a,p,opts) \ (NCURSES_OK_ADDR(win) \ ? ((void)(NCURSES_OK_ADDR(a) \ ? (*(a) = (win)->_attrs) \ : OK), \ (void)(NCURSES_OK_ADDR(p) \ ? (*(p) = (NCURSES_PAIRS_T) PAIR_NUMBER((win)->_attrs)) \ : OK), \ OK) \ : ERR) #endif /* (NCURSES_WIDECHAR && NCURSES_EXE_COLORS) */ # 1345 "./curses.h" #endif /* NCURSES_WATTR_MACROS */ # 1346 "./curses.h" #endif /* NCURSES_OPAQUE */ # 1347 "./curses.h" /* * X/Open curses deprecates SVr4 vwprintw/vwscanw, which are supposed to use * varargs.h. It adds new calls vw_printw/vw_scanw, which are supposed to * use POSIX stdarg.h. The ncurses versions of vwprintw/vwscanw already * use stdarg.h, so... */ /* define vw_printw vwprintw */ /* define vw_scanw vwscanw */ /* * Export fallback function for use in C++ binding. */ #if 0 /* disabled by -frewrite-includes */ #if !1 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 1361 "./curses.h" #define vsscanf(a,b,c) _nc_vsscanf(a,b,c) NCURSES_EXPORT(int) vsscanf(const char *, const char *, va_list); #endif # 1364 "./curses.h" /* * These macros are extensions - not in X/Open Curses. */ #if 0 /* disabled by -frewrite-includes */ #if 1 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 1369 "./curses.h" #if 0 /* disabled by -frewrite-includes */ #if !NCURSES_OPAQUE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 1370 "./curses.h" #define is_cleared(win) (NCURSES_OK_ADDR(win) ? (win)->_clear : FALSE) #define is_idcok(win) (NCURSES_OK_ADDR(win) ? (win)->_idcok : FALSE) #define is_idlok(win) (NCURSES_OK_ADDR(win) ? (win)->_idlok : FALSE) #define is_immedok(win) (NCURSES_OK_ADDR(win) ? (win)->_immed : FALSE) #define is_keypad(win) (NCURSES_OK_ADDR(win) ? (win)->_use_keypad : FALSE) #define is_leaveok(win) (NCURSES_OK_ADDR(win) ? (win)->_leaveok : FALSE) #define is_nodelay(win) (NCURSES_OK_ADDR(win) ? ((win)->_delay == 0) : FALSE) #define is_notimeout(win) (NCURSES_OK_ADDR(win) ? (win)->_notimeout : FALSE) #define is_pad(win) (NCURSES_OK_ADDR(win) ? ((win)->_flags & _ISPAD) != 0 : FALSE) #define is_scrollok(win) (NCURSES_OK_ADDR(win) ? (win)->_scroll : FALSE) #define is_subwin(win) (NCURSES_OK_ADDR(win) ? ((win)->_flags & _SUBWIN) != 0 : FALSE) #define is_syncok(win) (NCURSES_OK_ADDR(win) ? (win)->_sync : FALSE) #define wgetdelay(win) (NCURSES_OK_ADDR(win) ? (win)->_delay : 0) #define wgetparent(win) (NCURSES_OK_ADDR(win) ? (win)->_parent : 0) #define wgetscrreg(win,t,b) (NCURSES_OK_ADDR(win) ? (*(t) = (win)->_regtop, *(b) = (win)->_regbottom, OK) : ERR) #endif # 1386 "./curses.h" #endif # 1387 "./curses.h" /* * X/Open says this returns a bool; SVr4 also checked for out-of-range line. * The macro provides compatibility: */ #define is_linetouched(w,l) ((!(w) || ((l) > getmaxy(w)) || ((l) < 0)) ? ERR : (is_linetouched)((w),(l))) #endif /* NCURSES_NOMACROS */ # 1395 "./curses.h" /* * Public variables. * * Notes: * a. ESCDELAY was an undocumented feature under AIX curses. * It gives the ESC expire time in milliseconds. * b. ttytype is needed for backward compatibility */ #if 0 /* disabled by -frewrite-includes */ #if NCURSES_REENTRANT #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 1405 "./curses.h" NCURSES_WRAPPED_VAR(WINDOW *, curscr); NCURSES_WRAPPED_VAR(WINDOW *, newscr); NCURSES_WRAPPED_VAR(WINDOW *, stdscr); NCURSES_WRAPPED_VAR(char *, ttytype); NCURSES_WRAPPED_VAR(int, COLORS); NCURSES_WRAPPED_VAR(int, COLOR_PAIRS); NCURSES_WRAPPED_VAR(int, COLS); NCURSES_WRAPPED_VAR(int, ESCDELAY); NCURSES_WRAPPED_VAR(int, LINES); NCURSES_WRAPPED_VAR(int, TABSIZE); #define curscr NCURSES_PUBLIC_VAR(curscr()) #define newscr NCURSES_PUBLIC_VAR(newscr()) #define stdscr NCURSES_PUBLIC_VAR(stdscr()) #define ttytype NCURSES_PUBLIC_VAR(ttytype()) #define COLORS NCURSES_PUBLIC_VAR(COLORS()) #define COLOR_PAIRS NCURSES_PUBLIC_VAR(COLOR_PAIRS()) #define COLS NCURSES_PUBLIC_VAR(COLS()) #define ESCDELAY NCURSES_PUBLIC_VAR(ESCDELAY()) #define LINES NCURSES_PUBLIC_VAR(LINES()) #define TABSIZE NCURSES_PUBLIC_VAR(TABSIZE()) #else # 1429 "./curses.h" extern NCURSES_EXPORT_VAR(WINDOW *) curscr; extern NCURSES_EXPORT_VAR(WINDOW *) newscr; extern NCURSES_EXPORT_VAR(WINDOW *) stdscr; extern NCURSES_EXPORT_VAR(char) ttytype[]; extern NCURSES_EXPORT_VAR(int) COLORS; extern NCURSES_EXPORT_VAR(int) COLOR_PAIRS; extern NCURSES_EXPORT_VAR(int) COLS; extern NCURSES_EXPORT_VAR(int) ESCDELAY; extern NCURSES_EXPORT_VAR(int) LINES; extern NCURSES_EXPORT_VAR(int) TABSIZE; #endif # 1442 "./curses.h" /* * Pseudo-character tokens outside ASCII range. The curses wgetch() function * will return any given one of these only if the corresponding k- capability * is defined in your terminal's terminfo entry. * * Some keys (KEY_A1, etc) are arranged like this: * a1 up a3 * left b2 right * c1 down c3 * * A few key codes do not depend upon the terminfo entry. */ #define KEY_CODE_YES 0400 /* A wchar_t contains a key code */ #define KEY_MIN 0401 /* Minimum curses key */ #define KEY_BREAK 0401 /* Break key (unreliable) */ #define KEY_SRESET 0530 /* Soft (partial) reset (unreliable) */ #define KEY_RESET 0531 /* Reset or hard reset (unreliable) */ /* * These definitions were generated by ./MKkey_defs.sh /usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/Caps /usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/Caps-ncurses */ #define KEY_DOWN 0402 /* down-arrow key */ #define KEY_UP 0403 /* up-arrow key */ #define KEY_LEFT 0404 /* left-arrow key */ #define KEY_RIGHT 0405 /* right-arrow key */ #define KEY_HOME 0406 /* home key */ #define KEY_BACKSPACE 0407 /* backspace key */ #define KEY_F0 0410 /* Function keys. Space for 64 */ #define KEY_F(n) (KEY_F0+(n)) /* Value of function key n */ #define KEY_DL 0510 /* delete-line key */ #define KEY_IL 0511 /* insert-line key */ #define KEY_DC 0512 /* delete-character key */ #define KEY_IC 0513 /* insert-character key */ #define KEY_EIC 0514 /* sent by rmir or smir in insert mode */ #define KEY_CLEAR 0515 /* clear-screen or erase key */ #define KEY_EOS 0516 /* clear-to-end-of-screen key */ #define KEY_EOL 0517 /* clear-to-end-of-line key */ #define KEY_SF 0520 /* scroll-forward key */ #define KEY_SR 0521 /* scroll-backward key */ #define KEY_NPAGE 0522 /* next-page key */ #define KEY_PPAGE 0523 /* previous-page key */ #define KEY_STAB 0524 /* set-tab key */ #define KEY_CTAB 0525 /* clear-tab key */ #define KEY_CATAB 0526 /* clear-all-tabs key */ #define KEY_ENTER 0527 /* enter/send key */ #define KEY_PRINT 0532 /* print key */ #define KEY_LL 0533 /* lower-left key (home down) */ #define KEY_A1 0534 /* upper left of keypad */ #define KEY_A3 0535 /* upper right of keypad */ #define KEY_B2 0536 /* center of keypad */ #define KEY_C1 0537 /* lower left of keypad */ #define KEY_C3 0540 /* lower right of keypad */ #define KEY_BTAB 0541 /* back-tab key */ #define KEY_BEG 0542 /* begin key */ #define KEY_CANCEL 0543 /* cancel key */ #define KEY_CLOSE 0544 /* close key */ #define KEY_COMMAND 0545 /* command key */ #define KEY_COPY 0546 /* copy key */ #define KEY_CREATE 0547 /* create key */ #define KEY_END 0550 /* end key */ #define KEY_EXIT 0551 /* exit key */ #define KEY_FIND 0552 /* find key */ #define KEY_HELP 0553 /* help key */ #define KEY_MARK 0554 /* mark key */ #define KEY_MESSAGE 0555 /* message key */ #define KEY_MOVE 0556 /* move key */ #define KEY_NEXT 0557 /* next key */ #define KEY_OPEN 0560 /* open key */ #define KEY_OPTIONS 0561 /* options key */ #define KEY_PREVIOUS 0562 /* previous key */ #define KEY_REDO 0563 /* redo key */ #define KEY_REFERENCE 0564 /* reference key */ #define KEY_REFRESH 0565 /* refresh key */ #define KEY_REPLACE 0566 /* replace key */ #define KEY_RESTART 0567 /* restart key */ #define KEY_RESUME 0570 /* resume key */ #define KEY_SAVE 0571 /* save key */ #define KEY_SBEG 0572 /* shifted begin key */ #define KEY_SCANCEL 0573 /* shifted cancel key */ #define KEY_SCOMMAND 0574 /* shifted command key */ #define KEY_SCOPY 0575 /* shifted copy key */ #define KEY_SCREATE 0576 /* shifted create key */ #define KEY_SDC 0577 /* shifted delete-character key */ #define KEY_SDL 0600 /* shifted delete-line key */ #define KEY_SELECT 0601 /* select key */ #define KEY_SEND 0602 /* shifted end key */ #define KEY_SEOL 0603 /* shifted clear-to-end-of-line key */ #define KEY_SEXIT 0604 /* shifted exit key */ #define KEY_SFIND 0605 /* shifted find key */ #define KEY_SHELP 0606 /* shifted help key */ #define KEY_SHOME 0607 /* shifted home key */ #define KEY_SIC 0610 /* shifted insert-character key */ #define KEY_SLEFT 0611 /* shifted left-arrow key */ #define KEY_SMESSAGE 0612 /* shifted message key */ #define KEY_SMOVE 0613 /* shifted move key */ #define KEY_SNEXT 0614 /* shifted next key */ #define KEY_SOPTIONS 0615 /* shifted options key */ #define KEY_SPREVIOUS 0616 /* shifted previous key */ #define KEY_SPRINT 0617 /* shifted print key */ #define KEY_SREDO 0620 /* shifted redo key */ #define KEY_SREPLACE 0621 /* shifted replace key */ #define KEY_SRIGHT 0622 /* shifted right-arrow key */ #define KEY_SRSUME 0623 /* shifted resume key */ #define KEY_SSAVE 0624 /* shifted save key */ #define KEY_SSUSPEND 0625 /* shifted suspend key */ #define KEY_SUNDO 0626 /* shifted undo key */ #define KEY_SUSPEND 0627 /* suspend key */ #define KEY_UNDO 0630 /* undo key */ #define KEY_MOUSE 0631 /* Mouse event has occurred */ #ifdef NCURSES_EXT_FUNCS #define KEY_RESIZE 0632 /* Terminal resize event */ #endif # 1555 "./curses.h" #define KEY_MAX 0777 /* Maximum key value is 0632 */ /* $Id: curses.wide,v 1.50 2017/03/26 16:05:21 tom Exp $ */ /* * vile:cmode: * This file is part of ncurses, designed to be appended after curses.h.in * (see that file for the relevant copyright). */ #define _XOPEN_CURSES 1 #if 0 /* disabled by -frewrite-includes */ #if NCURSES_WIDECHAR #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 1566 "./curses.h" extern NCURSES_EXPORT_VAR(cchar_t *) _nc_wacs; #define NCURSES_WACS(c) (&_nc_wacs[NCURSES_CAST(unsigned char,(c))]) #define WACS_BSSB NCURSES_WACS('l') #define WACS_SSBB NCURSES_WACS('m') #define WACS_BBSS NCURSES_WACS('k') #define WACS_SBBS NCURSES_WACS('j') #define WACS_SBSS NCURSES_WACS('u') #define WACS_SSSB NCURSES_WACS('t') #define WACS_SSBS NCURSES_WACS('v') #define WACS_BSSS NCURSES_WACS('w') #define WACS_BSBS NCURSES_WACS('q') #define WACS_SBSB NCURSES_WACS('x') #define WACS_SSSS NCURSES_WACS('n') #define WACS_ULCORNER WACS_BSSB #define WACS_LLCORNER WACS_SSBB #define WACS_URCORNER WACS_BBSS #define WACS_LRCORNER WACS_SBBS #define WACS_RTEE WACS_SBSS #define WACS_LTEE WACS_SSSB #define WACS_BTEE WACS_SSBS #define WACS_TTEE WACS_BSSS #define WACS_HLINE WACS_BSBS #define WACS_VLINE WACS_SBSB #define WACS_PLUS WACS_SSSS #define WACS_S1 NCURSES_WACS('o') /* scan line 1 */ #define WACS_S9 NCURSES_WACS('s') /* scan line 9 */ #define WACS_DIAMOND NCURSES_WACS('`') /* diamond */ #define WACS_CKBOARD NCURSES_WACS('a') /* checker board */ #define WACS_DEGREE NCURSES_WACS('f') /* degree symbol */ #define WACS_PLMINUS NCURSES_WACS('g') /* plus/minus */ #define WACS_BULLET NCURSES_WACS('~') /* bullet */ /* Teletype 5410v1 symbols */ #define WACS_LARROW NCURSES_WACS(',') /* arrow left */ #define WACS_RARROW NCURSES_WACS('+') /* arrow right */ #define WACS_DARROW NCURSES_WACS('.') /* arrow down */ #define WACS_UARROW NCURSES_WACS('-') /* arrow up */ #define WACS_BOARD NCURSES_WACS('h') /* board of squares */ #define WACS_LANTERN NCURSES_WACS('i') /* lantern symbol */ #define WACS_BLOCK NCURSES_WACS('0') /* solid square block */ /* ncurses extensions */ #define WACS_S3 NCURSES_WACS('p') /* scan line 3 */ #define WACS_S7 NCURSES_WACS('r') /* scan line 7 */ #define WACS_LEQUAL NCURSES_WACS('y') /* less/equal */ #define WACS_GEQUAL NCURSES_WACS('z') /* greater/equal */ #define WACS_PI NCURSES_WACS('{') /* Pi */ #define WACS_NEQUAL NCURSES_WACS('|') /* not equal */ #define WACS_STERLING NCURSES_WACS('}') /* UK pound sign */ /* double lines */ #define WACS_BDDB NCURSES_WACS('C') #define WACS_DDBB NCURSES_WACS('D') #define WACS_BBDD NCURSES_WACS('B') #define WACS_DBBD NCURSES_WACS('A') #define WACS_DBDD NCURSES_WACS('G') #define WACS_DDDB NCURSES_WACS('F') #define WACS_DDBD NCURSES_WACS('H') #define WACS_BDDD NCURSES_WACS('I') #define WACS_BDBD NCURSES_WACS('R') #define WACS_DBDB NCURSES_WACS('Y') #define WACS_DDDD NCURSES_WACS('E') #define WACS_D_ULCORNER WACS_BDDB #define WACS_D_LLCORNER WACS_DDBB #define WACS_D_URCORNER WACS_BBDD #define WACS_D_LRCORNER WACS_DBBD #define WACS_D_RTEE WACS_DBDD #define WACS_D_LTEE WACS_DDDB #define WACS_D_BTEE WACS_DDBD #define WACS_D_TTEE WACS_BDDD #define WACS_D_HLINE WACS_BDBD #define WACS_D_VLINE WACS_DBDB #define WACS_D_PLUS WACS_DDDD /* thick lines */ #define WACS_BTTB NCURSES_WACS('L') #define WACS_TTBB NCURSES_WACS('M') #define WACS_BBTT NCURSES_WACS('K') #define WACS_TBBT NCURSES_WACS('J') #define WACS_TBTT NCURSES_WACS('U') #define WACS_TTTB NCURSES_WACS('T') #define WACS_TTBT NCURSES_WACS('V') #define WACS_BTTT NCURSES_WACS('W') #define WACS_BTBT NCURSES_WACS('Q') #define WACS_TBTB NCURSES_WACS('X') #define WACS_TTTT NCURSES_WACS('N') #define WACS_T_ULCORNER WACS_BTTB #define WACS_T_LLCORNER WACS_TTBB #define WACS_T_URCORNER WACS_BBTT #define WACS_T_LRCORNER WACS_TBBT #define WACS_T_RTEE WACS_TBTT #define WACS_T_LTEE WACS_TTTB #define WACS_T_BTEE WACS_TTBT #define WACS_T_TTEE WACS_BTTT #define WACS_T_HLINE WACS_BTBT #define WACS_T_VLINE WACS_TBTB #define WACS_T_PLUS WACS_TTTT /* * Function prototypes for wide-character operations. * * "generated" comments should include ":WIDEC" to make the corresponding * functions ifdef'd in lib_gen.c * * "implemented" comments do not need this marker. */ extern NCURSES_EXPORT(int) add_wch (const cchar_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) add_wchnstr (const cchar_t *, int); /* generated:WIDEC */ extern NCURSES_EXPORT(int) add_wchstr (const cchar_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) addnwstr (const wchar_t *, int); /* generated:WIDEC */ extern NCURSES_EXPORT(int) addwstr (const wchar_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) bkgrnd (const cchar_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(void) bkgrndset (const cchar_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) border_set (const cchar_t*,const cchar_t*,const cchar_t*,const cchar_t*,const cchar_t*,const cchar_t*,const cchar_t*,const cchar_t*); /* generated:WIDEC */ extern NCURSES_EXPORT(int) box_set (WINDOW *, const cchar_t *, const cchar_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) echo_wchar (const cchar_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) erasewchar (wchar_t*); /* implemented */ extern NCURSES_EXPORT(int) get_wch (wint_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) get_wstr (wint_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) getbkgrnd (cchar_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) getcchar (const cchar_t *, wchar_t*, attr_t*, NCURSES_PAIRS_T*, void*); /* implemented */ extern NCURSES_EXPORT(int) getn_wstr (wint_t *, int); /* generated:WIDEC */ extern NCURSES_EXPORT(int) hline_set (const cchar_t *, int); /* generated:WIDEC */ extern NCURSES_EXPORT(int) in_wch (cchar_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) in_wchnstr (cchar_t *, int); /* generated:WIDEC */ extern NCURSES_EXPORT(int) in_wchstr (cchar_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) innwstr (wchar_t *, int); /* generated:WIDEC */ extern NCURSES_EXPORT(int) ins_nwstr (const wchar_t *, int); /* generated:WIDEC */ extern NCURSES_EXPORT(int) ins_wch (const cchar_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) ins_wstr (const wchar_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) inwstr (wchar_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(NCURSES_CONST char*) key_name (wchar_t); /* implemented */ extern NCURSES_EXPORT(int) killwchar (wchar_t *); /* implemented */ extern NCURSES_EXPORT(int) mvadd_wch (int, int, const cchar_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) mvadd_wchnstr (int, int, const cchar_t *, int);/* generated:WIDEC */ extern NCURSES_EXPORT(int) mvadd_wchstr (int, int, const cchar_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) mvaddnwstr (int, int, const wchar_t *, int); /* generated:WIDEC */ extern NCURSES_EXPORT(int) mvaddwstr (int, int, const wchar_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) mvget_wch (int, int, wint_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) mvget_wstr (int, int, wint_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) mvgetn_wstr (int, int, wint_t *, int); /* generated:WIDEC */ extern NCURSES_EXPORT(int) mvhline_set (int, int, const cchar_t *, int); /* generated:WIDEC */ extern NCURSES_EXPORT(int) mvin_wch (int, int, cchar_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) mvin_wchnstr (int, int, cchar_t *, int); /* generated:WIDEC */ extern NCURSES_EXPORT(int) mvin_wchstr (int, int, cchar_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) mvinnwstr (int, int, wchar_t *, int); /* generated:WIDEC */ extern NCURSES_EXPORT(int) mvins_nwstr (int, int, const wchar_t *, int); /* generated:WIDEC */ extern NCURSES_EXPORT(int) mvins_wch (int, int, const cchar_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) mvins_wstr (int, int, const wchar_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) mvinwstr (int, int, wchar_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) mvvline_set (int, int, const cchar_t *, int); /* generated:WIDEC */ extern NCURSES_EXPORT(int) mvwadd_wch (WINDOW *, int, int, const cchar_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) mvwadd_wchnstr (WINDOW *, int, int, const cchar_t *, int); /* generated:WIDEC */ extern NCURSES_EXPORT(int) mvwadd_wchstr (WINDOW *, int, int, const cchar_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) mvwaddnwstr (WINDOW *, int, int, const wchar_t *, int);/* generated:WIDEC */ extern NCURSES_EXPORT(int) mvwaddwstr (WINDOW *, int, int, const wchar_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) mvwget_wch (WINDOW *, int, int, wint_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) mvwget_wstr (WINDOW *, int, int, wint_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) mvwgetn_wstr (WINDOW *, int, int, wint_t *, int);/* generated:WIDEC */ extern NCURSES_EXPORT(int) mvwhline_set (WINDOW *, int, int, const cchar_t *, int);/* generated:WIDEC */ extern NCURSES_EXPORT(int) mvwin_wch (WINDOW *, int, int, cchar_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) mvwin_wchnstr (WINDOW *, int,int, cchar_t *,int); /* generated:WIDEC */ extern NCURSES_EXPORT(int) mvwin_wchstr (WINDOW *, int, int, cchar_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) mvwinnwstr (WINDOW *, int, int, wchar_t *, int); /* generated:WIDEC */ extern NCURSES_EXPORT(int) mvwins_nwstr (WINDOW *, int,int, const wchar_t *,int); /* generated:WIDEC */ extern NCURSES_EXPORT(int) mvwins_wch (WINDOW *, int, int, const cchar_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) mvwins_wstr (WINDOW *, int, int, const wchar_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) mvwinwstr (WINDOW *, int, int, wchar_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) mvwvline_set (WINDOW *, int,int, const cchar_t *,int); /* generated:WIDEC */ extern NCURSES_EXPORT(int) pecho_wchar (WINDOW *, const cchar_t *); /* implemented */ extern NCURSES_EXPORT(int) setcchar (cchar_t *, const wchar_t *, const attr_t, NCURSES_PAIRS_T, const void *); /* implemented */ extern NCURSES_EXPORT(int) slk_wset (int, const wchar_t *, int); /* implemented */ extern NCURSES_EXPORT(attr_t) term_attrs (void); /* implemented */ extern NCURSES_EXPORT(int) unget_wch (const wchar_t); /* implemented */ extern NCURSES_EXPORT(int) vid_attr (attr_t, NCURSES_PAIRS_T, void *); /* implemented */ extern NCURSES_EXPORT(int) vid_puts (attr_t, NCURSES_PAIRS_T, void *, NCURSES_OUTC); /* implemented */ extern NCURSES_EXPORT(int) vline_set (const cchar_t *, int); /* generated:WIDEC */ extern NCURSES_EXPORT(int) wadd_wch (WINDOW *,const cchar_t *); /* implemented */ extern NCURSES_EXPORT(int) wadd_wchnstr (WINDOW *,const cchar_t *,int); /* implemented */ extern NCURSES_EXPORT(int) wadd_wchstr (WINDOW *,const cchar_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) waddnwstr (WINDOW *,const wchar_t *,int); /* implemented */ extern NCURSES_EXPORT(int) waddwstr (WINDOW *,const wchar_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) wbkgrnd (WINDOW *,const cchar_t *); /* implemented */ extern NCURSES_EXPORT(void) wbkgrndset (WINDOW *,const cchar_t *); /* implemented */ extern NCURSES_EXPORT(int) wborder_set (WINDOW *,const cchar_t*,const cchar_t*,const cchar_t*,const cchar_t*,const cchar_t*,const cchar_t*,const cchar_t*,const cchar_t*); /* implemented */ extern NCURSES_EXPORT(int) wecho_wchar (WINDOW *, const cchar_t *); /* implemented */ extern NCURSES_EXPORT(int) wget_wch (WINDOW *, wint_t *); /* implemented */ extern NCURSES_EXPORT(int) wget_wstr (WINDOW *, wint_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) wgetbkgrnd (WINDOW *, cchar_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) wgetn_wstr (WINDOW *, wint_t *, int); /* implemented */ extern NCURSES_EXPORT(int) whline_set (WINDOW *, const cchar_t *, int); /* implemented */ extern NCURSES_EXPORT(int) win_wch (WINDOW *, cchar_t *); /* implemented */ extern NCURSES_EXPORT(int) win_wchnstr (WINDOW *, cchar_t *, int); /* implemented */ extern NCURSES_EXPORT(int) win_wchstr (WINDOW *, cchar_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) winnwstr (WINDOW *, wchar_t *, int); /* implemented */ extern NCURSES_EXPORT(int) wins_nwstr (WINDOW *, const wchar_t *, int); /* implemented */ extern NCURSES_EXPORT(int) wins_wch (WINDOW *, const cchar_t *); /* implemented */ extern NCURSES_EXPORT(int) wins_wstr (WINDOW *, const wchar_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) winwstr (WINDOW *, wchar_t *); /* implemented */ extern NCURSES_EXPORT(wchar_t*) wunctrl (cchar_t *); /* implemented */ extern NCURSES_EXPORT(int) wvline_set (WINDOW *, const cchar_t *, int); /* implemented */ #if 0 /* disabled by -frewrite-includes */ #if NCURSES_SP_FUNCS #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 1777 "./curses.h" extern NCURSES_EXPORT(attr_t) NCURSES_SP_NAME(term_attrs) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(unget_wch) (SCREEN*, const wchar_t); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(wchar_t*) NCURSES_SP_NAME(wunctrl) (SCREEN*, cchar_t *); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(vid_attr) (SCREEN*, attr_t, NCURSES_PAIRS_T, void *); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(vid_puts) (SCREEN*, attr_t, NCURSES_PAIRS_T, void *, NCURSES_SP_OUTC); /* implemented:SP_FUNC */ #endif # 1783 "./curses.h" #ifndef NCURSES_NOMACROS /* * XSI curses macros for XPG4 conformance. */ #define add_wch(c) wadd_wch(stdscr,(c)) #define add_wchnstr(str,n) wadd_wchnstr(stdscr,(str),(n)) #define add_wchstr(str) wadd_wchstr(stdscr,(str)) #define addnwstr(wstr,n) waddnwstr(stdscr,(wstr),(n)) #define addwstr(wstr) waddwstr(stdscr,(wstr)) #define bkgrnd(c) wbkgrnd(stdscr,(c)) #define bkgrndset(c) wbkgrndset(stdscr,(c)) #define border_set(l,r,t,b,tl,tr,bl,br) wborder_set(stdscr,(l),(r),(t),(b),tl,tr,bl,br) #define box_set(w,v,h) wborder_set((w),(v),(v),(h),(h),0,0,0,0) #define echo_wchar(c) wecho_wchar(stdscr,(c)) #define get_wch(c) wget_wch(stdscr,(c)) #define get_wstr(t) wget_wstr(stdscr,(t)) #define getbkgrnd(wch) wgetbkgrnd(stdscr,(wch)) #define getn_wstr(t,n) wgetn_wstr(stdscr,(t),(n)) #define hline_set(c,n) whline_set(stdscr,(c),(n)) #define in_wch(c) win_wch(stdscr,(c)) #define in_wchnstr(c,n) win_wchnstr(stdscr,(c),(n)) #define in_wchstr(c) win_wchstr(stdscr,(c)) #define innwstr(c,n) winnwstr(stdscr,(c),(n)) #define ins_nwstr(t,n) wins_nwstr(stdscr,(t),(n)) #define ins_wch(c) wins_wch(stdscr,(c)) #define ins_wstr(t) wins_wstr(stdscr,(t)) #define inwstr(c) winwstr(stdscr,(c)) #define vline_set(c,n) wvline_set(stdscr,(c),(n)) #define wadd_wchstr(win,str) wadd_wchnstr((win),(str),-1) #define waddwstr(win,wstr) waddnwstr((win),(wstr),-1) #define wget_wstr(w,t) wgetn_wstr((w),(t),-1) #define win_wchstr(w,c) win_wchnstr((w),(c),-1) #define wins_wstr(w,t) wins_nwstr((w),(t),-1) #if 0 /* disabled by -frewrite-includes */ #if !NCURSES_OPAQUE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 1820 "./curses.h" #define wgetbkgrnd(win,wch) (NCURSES_OK_ADDR(wch) ? ((win) ? (*(wch) = (win)->_bkgrnd) : *(wch), OK) : ERR) #endif # 1822 "./curses.h" #define mvadd_wch(y,x,c) mvwadd_wch(stdscr,(y),(x),(c)) #define mvadd_wchnstr(y,x,s,n) mvwadd_wchnstr(stdscr,(y),(x),(s),(n)) #define mvadd_wchstr(y,x,s) mvwadd_wchstr(stdscr,(y),(x),(s)) #define mvaddnwstr(y,x,wstr,n) mvwaddnwstr(stdscr,(y),(x),(wstr),(n)) #define mvaddwstr(y,x,wstr) mvwaddwstr(stdscr,(y),(x),(wstr)) #define mvget_wch(y,x,c) mvwget_wch(stdscr,(y),(x),(c)) #define mvget_wstr(y,x,t) mvwget_wstr(stdscr,(y),(x),(t)) #define mvgetn_wstr(y,x,t,n) mvwgetn_wstr(stdscr,(y),(x),(t),(n)) #define mvhline_set(y,x,c,n) mvwhline_set(stdscr,(y),(x),(c),(n)) #define mvin_wch(y,x,c) mvwin_wch(stdscr,(y),(x),(c)) #define mvin_wchnstr(y,x,c,n) mvwin_wchnstr(stdscr,(y),(x),(c),(n)) #define mvin_wchstr(y,x,c) mvwin_wchstr(stdscr,(y),(x),(c)) #define mvinnwstr(y,x,c,n) mvwinnwstr(stdscr,(y),(x),(c),(n)) #define mvins_nwstr(y,x,t,n) mvwins_nwstr(stdscr,(y),(x),(t),(n)) #define mvins_wch(y,x,c) mvwins_wch(stdscr,(y),(x),(c)) #define mvins_wstr(y,x,t) mvwins_wstr(stdscr,(y),(x),(t)) #define mvinwstr(y,x,c) mvwinwstr(stdscr,(y),(x),(c)) #define mvvline_set(y,x,c,n) mvwvline_set(stdscr,(y),(x),(c),(n)) #define mvwadd_wch(win,y,x,c) (wmove(win,(y),(x)) == ERR ? ERR : wadd_wch((win),(c))) #define mvwadd_wchnstr(win,y,x,s,n) (wmove(win,(y),(x)) == ERR ? ERR : wadd_wchnstr((win),(s),(n))) #define mvwadd_wchstr(win,y,x,s) (wmove(win,(y),(x)) == ERR ? ERR : wadd_wchstr((win),(s))) #define mvwaddnwstr(win,y,x,wstr,n) (wmove(win,(y),(x)) == ERR ? ERR : waddnwstr((win),(wstr),(n))) #define mvwaddwstr(win,y,x,wstr) (wmove(win,(y),(x)) == ERR ? ERR : waddwstr((win),(wstr))) #define mvwget_wch(win,y,x,c) (wmove(win,(y),(x)) == ERR ? ERR : wget_wch((win),(c))) #define mvwget_wstr(win,y,x,t) (wmove(win,(y),(x)) == ERR ? ERR : wget_wstr((win),(t))) #define mvwgetn_wstr(win,y,x,t,n) (wmove(win,(y),(x)) == ERR ? ERR : wgetn_wstr((win),(t),(n))) #define mvwhline_set(win,y,x,c,n) (wmove(win,(y),(x)) == ERR ? ERR : whline_set((win),(c),(n))) #define mvwin_wch(win,y,x,c) (wmove(win,(y),(x)) == ERR ? ERR : win_wch((win),(c))) #define mvwin_wchnstr(win,y,x,c,n) (wmove(win,(y),(x)) == ERR ? ERR : win_wchnstr((win),(c),(n))) #define mvwin_wchstr(win,y,x,c) (wmove(win,(y),(x)) == ERR ? ERR : win_wchstr((win),(c))) #define mvwinnwstr(win,y,x,c,n) (wmove(win,(y),(x)) == ERR ? ERR : winnwstr((win),(c),(n))) #define mvwins_nwstr(win,y,x,t,n) (wmove(win,(y),(x)) == ERR ? ERR : wins_nwstr((win),(t),(n))) #define mvwins_wch(win,y,x,c) (wmove(win,(y),(x)) == ERR ? ERR : wins_wch((win),(c))) #define mvwins_wstr(win,y,x,t) (wmove(win,(y),(x)) == ERR ? ERR : wins_wstr((win),(t))) #define mvwinwstr(win,y,x,c) (wmove(win,(y),(x)) == ERR ? ERR : winwstr((win),(c))) #define mvwvline_set(win,y,x,c,n) (wmove(win,(y),(x)) == ERR ? ERR : wvline_set((win),(c),(n))) #endif /* NCURSES_NOMACROS */ # 1862 "./curses.h" #if 0 /* disabled by -frewrite-includes */ #if defined(TRACE) || defined(NCURSES_TEST) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 1864 "./curses.h" extern NCURSES_EXPORT(const char *) _nc_viswbuf(const wchar_t *); extern NCURSES_EXPORT(const char *) _nc_viswibuf(const wint_t *); #endif # 1867 "./curses.h" #endif /* NCURSES_WIDECHAR */ # 1869 "./curses.h" /* $Id: curses.tail,v 1.25 2019/12/14 22:28:39 tom Exp $ */ /* * vile:cmode: * This file is part of ncurses, designed to be appended after curses.h.in * (see that file for the relevant copyright). */ /* mouse interface */ #if 0 /* disabled by -frewrite-includes */ #if NCURSES_MOUSE_VERSION > 1 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 1879 "./curses.h" #define NCURSES_MOUSE_MASK(b,m) ((m) << (((b) - 1) * 5)) #else # 1881 "./curses.h" #define NCURSES_MOUSE_MASK(b,m) ((m) << (((b) - 1) * 6)) #endif # 1883 "./curses.h" #define NCURSES_BUTTON_RELEASED 001L #define NCURSES_BUTTON_PRESSED 002L #define NCURSES_BUTTON_CLICKED 004L #define NCURSES_DOUBLE_CLICKED 010L #define NCURSES_TRIPLE_CLICKED 020L #define NCURSES_RESERVED_EVENT 040L /* event masks */ #define BUTTON1_RELEASED NCURSES_MOUSE_MASK(1, NCURSES_BUTTON_RELEASED) #define BUTTON1_PRESSED NCURSES_MOUSE_MASK(1, NCURSES_BUTTON_PRESSED) #define BUTTON1_CLICKED NCURSES_MOUSE_MASK(1, NCURSES_BUTTON_CLICKED) #define BUTTON1_DOUBLE_CLICKED NCURSES_MOUSE_MASK(1, NCURSES_DOUBLE_CLICKED) #define BUTTON1_TRIPLE_CLICKED NCURSES_MOUSE_MASK(1, NCURSES_TRIPLE_CLICKED) #define BUTTON2_RELEASED NCURSES_MOUSE_MASK(2, NCURSES_BUTTON_RELEASED) #define BUTTON2_PRESSED NCURSES_MOUSE_MASK(2, NCURSES_BUTTON_PRESSED) #define BUTTON2_CLICKED NCURSES_MOUSE_MASK(2, NCURSES_BUTTON_CLICKED) #define BUTTON2_DOUBLE_CLICKED NCURSES_MOUSE_MASK(2, NCURSES_DOUBLE_CLICKED) #define BUTTON2_TRIPLE_CLICKED NCURSES_MOUSE_MASK(2, NCURSES_TRIPLE_CLICKED) #define BUTTON3_RELEASED NCURSES_MOUSE_MASK(3, NCURSES_BUTTON_RELEASED) #define BUTTON3_PRESSED NCURSES_MOUSE_MASK(3, NCURSES_BUTTON_PRESSED) #define BUTTON3_CLICKED NCURSES_MOUSE_MASK(3, NCURSES_BUTTON_CLICKED) #define BUTTON3_DOUBLE_CLICKED NCURSES_MOUSE_MASK(3, NCURSES_DOUBLE_CLICKED) #define BUTTON3_TRIPLE_CLICKED NCURSES_MOUSE_MASK(3, NCURSES_TRIPLE_CLICKED) #define BUTTON4_RELEASED NCURSES_MOUSE_MASK(4, NCURSES_BUTTON_RELEASED) #define BUTTON4_PRESSED NCURSES_MOUSE_MASK(4, NCURSES_BUTTON_PRESSED) #define BUTTON4_CLICKED NCURSES_MOUSE_MASK(4, NCURSES_BUTTON_CLICKED) #define BUTTON4_DOUBLE_CLICKED NCURSES_MOUSE_MASK(4, NCURSES_DOUBLE_CLICKED) #define BUTTON4_TRIPLE_CLICKED NCURSES_MOUSE_MASK(4, NCURSES_TRIPLE_CLICKED) /* * In 32 bits the version-1 scheme does not provide enough space for a 5th * button, unless we choose to change the ABI by omitting the reserved-events. */ #if 0 /* disabled by -frewrite-includes */ #if NCURSES_MOUSE_VERSION > 1 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 1921 "./curses.h" #define BUTTON5_RELEASED NCURSES_MOUSE_MASK(5, NCURSES_BUTTON_RELEASED) #define BUTTON5_PRESSED NCURSES_MOUSE_MASK(5, NCURSES_BUTTON_PRESSED) #define BUTTON5_CLICKED NCURSES_MOUSE_MASK(5, NCURSES_BUTTON_CLICKED) #define BUTTON5_DOUBLE_CLICKED NCURSES_MOUSE_MASK(5, NCURSES_DOUBLE_CLICKED) #define BUTTON5_TRIPLE_CLICKED NCURSES_MOUSE_MASK(5, NCURSES_TRIPLE_CLICKED) #define BUTTON_CTRL NCURSES_MOUSE_MASK(6, 0001L) #define BUTTON_SHIFT NCURSES_MOUSE_MASK(6, 0002L) #define BUTTON_ALT NCURSES_MOUSE_MASK(6, 0004L) #define REPORT_MOUSE_POSITION NCURSES_MOUSE_MASK(6, 0010L) #else # 1934 "./curses.h" #define BUTTON1_RESERVED_EVENT NCURSES_MOUSE_MASK(1, NCURSES_RESERVED_EVENT) #define BUTTON2_RESERVED_EVENT NCURSES_MOUSE_MASK(2, NCURSES_RESERVED_EVENT) #define BUTTON3_RESERVED_EVENT NCURSES_MOUSE_MASK(3, NCURSES_RESERVED_EVENT) #define BUTTON4_RESERVED_EVENT NCURSES_MOUSE_MASK(4, NCURSES_RESERVED_EVENT) #define BUTTON_CTRL NCURSES_MOUSE_MASK(5, 0001L) #define BUTTON_SHIFT NCURSES_MOUSE_MASK(5, 0002L) #define BUTTON_ALT NCURSES_MOUSE_MASK(5, 0004L) #define REPORT_MOUSE_POSITION NCURSES_MOUSE_MASK(5, 0010L) #endif # 1946 "./curses.h" #define ALL_MOUSE_EVENTS (REPORT_MOUSE_POSITION - 1) /* macros to extract single event-bits from masks */ #define BUTTON_RELEASE(e, x) ((e) & NCURSES_MOUSE_MASK(x, 001)) #define BUTTON_PRESS(e, x) ((e) & NCURSES_MOUSE_MASK(x, 002)) #define BUTTON_CLICK(e, x) ((e) & NCURSES_MOUSE_MASK(x, 004)) #define BUTTON_DOUBLE_CLICK(e, x) ((e) & NCURSES_MOUSE_MASK(x, 010)) #define BUTTON_TRIPLE_CLICK(e, x) ((e) & NCURSES_MOUSE_MASK(x, 020)) #define BUTTON_RESERVED_EVENT(e, x) ((e) & NCURSES_MOUSE_MASK(x, 040)) typedef struct { short id; /* ID to distinguish multiple devices */ int x, y, z; /* event coordinates (character-cell) */ mmask_t bstate; /* button state bits */ } MEVENT; extern NCURSES_EXPORT(bool) has_mouse(void); extern NCURSES_EXPORT(int) getmouse (MEVENT *); extern NCURSES_EXPORT(int) ungetmouse (MEVENT *); extern NCURSES_EXPORT(mmask_t) mousemask (mmask_t, mmask_t *); extern NCURSES_EXPORT(bool) wenclose (const WINDOW *, int, int); extern NCURSES_EXPORT(int) mouseinterval (int); extern NCURSES_EXPORT(bool) wmouse_trafo (const WINDOW*, int*, int*, bool); extern NCURSES_EXPORT(bool) mouse_trafo (int*, int*, bool); /* generated */ #if 0 /* disabled by -frewrite-includes */ #if NCURSES_SP_FUNCS #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 1975 "./curses.h" extern NCURSES_EXPORT(bool) NCURSES_SP_NAME(has_mouse) (SCREEN*); extern NCURSES_EXPORT(int) NCURSES_SP_NAME(getmouse) (SCREEN*, MEVENT *); extern NCURSES_EXPORT(int) NCURSES_SP_NAME(ungetmouse) (SCREEN*,MEVENT *); extern NCURSES_EXPORT(mmask_t) NCURSES_SP_NAME(mousemask) (SCREEN*, mmask_t, mmask_t *); extern NCURSES_EXPORT(int) NCURSES_SP_NAME(mouseinterval) (SCREEN*, int); #endif # 1981 "./curses.h" #ifndef NCURSES_NOMACROS #define mouse_trafo(y,x,to_screen) wmouse_trafo(stdscr,y,x,to_screen) #endif # 1985 "./curses.h" /* other non-XSI functions */ extern NCURSES_EXPORT(int) mcprint (char *, int); /* direct data to printer */ extern NCURSES_EXPORT(int) has_key (int); /* do we have given key? */ #if 0 /* disabled by -frewrite-includes */ #if NCURSES_SP_FUNCS #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 1992 "./curses.h" extern NCURSES_EXPORT(int) NCURSES_SP_NAME(has_key) (SCREEN*, int); /* do we have given key? */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(mcprint) (SCREEN*, char *, int); /* direct data to printer */ #endif # 1995 "./curses.h" /* Debugging : use with libncurses_g.a */ extern NCURSES_EXPORT(void) _tracef (const char *, ...) GCC_PRINTFLIKE(1,2); extern NCURSES_EXPORT(char *) _traceattr (attr_t); extern NCURSES_EXPORT(char *) _traceattr2 (int, chtype); extern NCURSES_EXPORT(char *) _tracechar (int); extern NCURSES_EXPORT(char *) _tracechtype (chtype); extern NCURSES_EXPORT(char *) _tracechtype2 (int, chtype); #if 0 /* disabled by -frewrite-includes */ #if NCURSES_WIDECHAR #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 2005 "./curses.h" #define _tracech_t _tracecchar_t extern NCURSES_EXPORT(char *) _tracecchar_t (const cchar_t *); #define _tracech_t2 _tracecchar_t2 extern NCURSES_EXPORT(char *) _tracecchar_t2 (int, const cchar_t *); #else # 2010 "./curses.h" #define _tracech_t _tracechtype #define _tracech_t2 _tracechtype2 #endif # 2013 "./curses.h" extern NCURSES_EXPORT(void) trace (const unsigned) GCC_DEPRECATED("use curses_trace"); extern NCURSES_EXPORT(unsigned) curses_trace (const unsigned); /* trace masks */ #define TRACE_DISABLE 0x0000 /* turn off tracing */ #define TRACE_TIMES 0x0001 /* trace user and system times of updates */ #define TRACE_TPUTS 0x0002 /* trace tputs calls */ #define TRACE_UPDATE 0x0004 /* trace update actions, old & new screens */ #define TRACE_MOVE 0x0008 /* trace cursor moves and scrolls */ #define TRACE_CHARPUT 0x0010 /* trace all character outputs */ #define TRACE_ORDINARY 0x001F /* trace all update actions */ #define TRACE_CALLS 0x0020 /* trace all curses calls */ #define TRACE_VIRTPUT 0x0040 /* trace virtual character puts */ #define TRACE_IEVENT 0x0080 /* trace low-level input processing */ #define TRACE_BITS 0x0100 /* trace state of TTY control bits */ #define TRACE_ICALLS 0x0200 /* trace internal/nested calls */ #define TRACE_CCALLS 0x0400 /* trace per-character calls */ #define TRACE_DATABASE 0x0800 /* trace read/write of terminfo/termcap data */ #define TRACE_ATTRS 0x1000 /* trace attribute updates */ #define TRACE_SHIFT 13 /* number of bits in the trace masks */ #define TRACE_MAXIMUM ((1 << TRACE_SHIFT) - 1) /* maximum trace level */ #if 0 /* disabled by -frewrite-includes */ #if defined(TRACE) || defined(NCURSES_TEST) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 2037 "./curses.h" extern NCURSES_EXPORT_VAR(int) _nc_optimize_enable; /* enable optimizations */ extern NCURSES_EXPORT(const char *) _nc_visbuf (const char *); #define OPTIMIZE_MVCUR 0x01 /* cursor movement optimization */ #define OPTIMIZE_HASHMAP 0x02 /* diff hashing to detect scrolls */ #define OPTIMIZE_SCROLL 0x04 /* scroll optimization */ #define OPTIMIZE_ALL 0xff /* enable all optimizations (dflt) */ #endif # 2044 "./curses.h" extern NCURSES_EXPORT(void) exit_curses (int) GCC_NORETURN; #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 2047 "./curses.h" # 1 "./unctrl.h" 1 /**************************************************************************** * Copyright 2020 Thomas E. Dickey * * Copyright 1998-2001,2009 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * * "Software"), to deal in the Software without restriction, including * * without limitation the rights to use, copy, modify, merge, publish, * * distribute, distribute with modifications, sublicense, and/or sell * * copies of the Software, and to permit persons to whom the Software is * * furnished to do so, subject to the following conditions: * * * * The above copyright notice and this permission notice shall be included * * in all copies or substantial portions of the Software. * * * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. * * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, * * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * * THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * * * Except as contained in this notice, the name(s) of the above copyright * * holders shall not be used in advertising or otherwise to promote the * * sale, use or other dealings in this Software without prior written * * authorization. * ****************************************************************************/ /**************************************************************************** * Author: Zeyd M. Ben-Halim 1992,1995 * * and: Eric S. Raymond * ****************************************************************************/ /* * unctrl.h * * Display a printable version of a control character. * Control characters are displayed in caret notation (^x), DELETE is displayed * as ^?. Printable characters are displayed as is. */ /* $Id: unctrl.h.in,v 1.12 2020/02/02 23:34:34 tom Exp $ */ #ifndef NCURSES_UNCTRL_H_incl #define NCURSES_UNCTRL_H_incl 1 #undef NCURSES_VERSION #define NCURSES_VERSION "6.2" #ifdef __cplusplus extern "C" { #endif # 54 "./unctrl.h" #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 55 "./unctrl.h" # 1 "./curses.h" 1 /**************************************************************************** * Copyright 2018-2019,2020 Thomas E. Dickey * * Copyright 1998-2016,2017 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * * "Software"), to deal in the Software without restriction, including * * without limitation the rights to use, copy, modify, merge, publish, * * distribute, distribute with modifications, sublicense, and/or sell * * copies of the Software, and to permit persons to whom the Software is * * furnished to do so, subject to the following conditions: * * * * The above copyright notice and this permission notice shall be included * * in all copies or substantial portions of the Software. * * * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. * * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, * * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * * THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * * * Except as contained in this notice, the name(s) of the above copyright * * holders shall not be used in advertising or otherwise to promote the * * sale, use or other dealings in this Software without prior written * * authorization. * ****************************************************************************/ /**************************************************************************** * Author: Zeyd M. Ben-Halim 1992,1995 * * and: Eric S. Raymond * * and: Thomas E. Dickey 1996-on * ****************************************************************************/ /* $Id: curses.h.in,v 1.269 2020/08/17 14:14:12 tom Exp $ */ #ifndef __NCURSES_H #define __NCURSES_H #define CURSES 1 #define CURSES_H 1 /* These are defined only in curses.h, and are used for conditional compiles */ #define NCURSES_VERSION_MAJOR 6 #define NCURSES_VERSION_MINOR 2 #define NCURSES_VERSION_PATCH 20210220 /* This is defined in more than one ncurses header, for identification */ #undef NCURSES_VERSION #define NCURSES_VERSION "6.2" /* * Identify the mouse encoding version. */ #define NCURSES_MOUSE_VERSION 2 /* * Definitions to facilitate DLL's. */ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 61 "./curses.h" # 62 "./curses.h" #if 0 /* disabled by -frewrite-includes */ #if 1 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 64 "./curses.h" #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 64 "./curses.h" # 65 "./curses.h" #endif # 66 "./curses.h" /* * User-definable tweak to disable the include of . */ #ifndef NCURSES_ENABLE_STDBOOL_H #define NCURSES_ENABLE_STDBOOL_H 1 #endif # 73 "./curses.h" /* * NCURSES_ATTR_T is used to quiet compiler warnings when building ncurses * configured using --disable-macros. */ #ifndef NCURSES_ATTR_T #define NCURSES_ATTR_T int #endif # 81 "./curses.h" /* * Expands to 'const' if ncurses is configured using --enable-const. Note that * doing so makes it incompatible with other implementations of X/Open Curses. */ #undef NCURSES_CONST #define NCURSES_CONST const #undef NCURSES_INLINE #define NCURSES_INLINE inline /* * The standard type used for color values, and for color-pairs. The latter * allows the curses library to enumerate the combinations of foreground and * background colors used by an application, and is normally the product of the * total foreground and background colors. * * X/Open uses "short" for both of these types, ultimately because they are * numbers from the SVr4 terminal database, which uses 16-bit signed values. */ #undef NCURSES_COLOR_T #define NCURSES_COLOR_T short #undef NCURSES_PAIRS_T #define NCURSES_PAIRS_T short /* * Definitions used to make WINDOW and similar structs opaque. */ #ifndef NCURSES_INTERNALS #define NCURSES_OPAQUE 0 #define NCURSES_OPAQUE_FORM 0 #define NCURSES_OPAQUE_MENU 0 #define NCURSES_OPAQUE_PANEL 0 #endif # 116 "./curses.h" /* * Definition used to optionally suppress wattr* macros to help with the * transition from ncurses5 to ncurses6 by allowing the header files to * be shared across development packages for ncursesw in both ABIs. */ #ifndef NCURSES_WATTR_MACROS #define NCURSES_WATTR_MACROS 1 #endif # 125 "./curses.h" /* * The reentrant code relies on the opaque setting, but adds features. */ #ifndef NCURSES_REENTRANT #define NCURSES_REENTRANT 0 #endif # 132 "./curses.h" /* * In certain environments, we must work around linker problems for data */ #undef NCURSES_BROKEN_LINKER #if 0 /* disabled by -frewrite-includes */ #if 0 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 138 "./curses.h" #define NCURSES_BROKEN_LINKER 1 #endif # 140 "./curses.h" /* * Control whether bindings for interop support are added. */ #undef NCURSES_INTEROP_FUNCS #define NCURSES_INTEROP_FUNCS 1 /* * The internal type used for window dimensions. */ #undef NCURSES_SIZE_T #define NCURSES_SIZE_T short /* * Control whether tparm() supports varargs or fixed-parameter list. */ #undef NCURSES_TPARM_VARARGS #define NCURSES_TPARM_VARARGS 1 /* * Control type used for tparm's arguments. While X/Open equates long and * char* values, this is not always workable for 64-bit platforms. */ #undef NCURSES_TPARM_ARG #define NCURSES_TPARM_ARG intptr_t /* * Control whether ncurses uses wcwidth() for checking width of line-drawing * characters. */ #undef NCURSES_WCWIDTH_GRAPHICS #define NCURSES_WCWIDTH_GRAPHICS 1 /* * NCURSES_CH_T is used in building the library, but not used otherwise in * this header file, since that would make the normal/wide-character versions * of the header incompatible. */ #undef NCURSES_CH_T #define NCURSES_CH_T cchar_t #if 0 /* disabled by -frewrite-includes */ #if 1 && defined(_LP64) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 182 "./curses.h" typedef unsigned chtype; typedef unsigned mmask_t; #else # 185 "./curses.h" typedef uint32_t chtype; typedef uint32_t mmask_t; #endif # 188 "./curses.h" /* * We need FILE, etc. Include this before checking any feature symbols. */ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 192 "./curses.h" # 193 "./curses.h" /* * With XPG4, you must define _XOPEN_SOURCE_EXTENDED, it is redundant (or * conflicting) when _XOPEN_SOURCE is 500 or greater. If NCURSES_WIDECHAR is * not already defined, e.g., if the platform relies upon nonstandard feature * test macros, define it at this point if the standard feature test macros * indicate that it should be defined. */ #ifndef NCURSES_WIDECHAR #if 0 /* disabled by -frewrite-includes */ #if defined(_XOPEN_SOURCE_EXTENDED) || (defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE - 0 >= 500)) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 203 "./curses.h" #define NCURSES_WIDECHAR 1 #else # 205 "./curses.h" #define NCURSES_WIDECHAR 0 #endif # 207 "./curses.h" #endif /* NCURSES_WIDECHAR */ # 208 "./curses.h" #if 0 /* expanded by -frewrite-includes */ #include /* we need va_list */ #endif /* expanded by -frewrite-includes */ # 209 "./curses.h" # 210 "./curses.h" #if 0 /* disabled by -frewrite-includes */ #if NCURSES_WIDECHAR #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 211 "./curses.h" #if 0 /* expanded by -frewrite-includes */ #include /* we want wchar_t */ #endif /* expanded by -frewrite-includes */ # 211 "./curses.h" # 212 "./curses.h" #endif # 213 "./curses.h" /* X/Open and SVr4 specify that curses implements 'bool'. However, C++ may also * implement it. If so, we must use the C++ compiler's type to avoid conflict * with other interfaces. * * A further complication is that may declare 'bool' to be a * different type, such as an enum which is not necessarily compatible with * C++. If we have , make 'bool' a macro, so users may #undef it. * Otherwise, let it remain a typedef to avoid conflicts with other #define's. * In either case, make a typedef for NCURSES_BOOL which can be used if needed * from either C or C++. */ #undef TRUE #define TRUE 1 #undef FALSE #define FALSE 0 typedef unsigned char NCURSES_BOOL; #if 0 /* disabled by -frewrite-includes */ #if defined(__cplusplus) /* __cplusplus, etc. */ #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 235 "./curses.h" /* use the C++ compiler's bool type */ #define NCURSES_BOOL bool #else /* c89, c99, etc. */ # 240 "./curses.h" #if 0 /* disabled by -frewrite-includes */ #if NCURSES_ENABLE_STDBOOL_H #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 242 "./curses.h" #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 242 "./curses.h" # 243 "./curses.h" /* use whatever the C compiler decides bool really is */ #define NCURSES_BOOL bool #else # 246 "./curses.h" /* there is no predefined bool - use our own */ #undef bool #define bool NCURSES_BOOL #endif # 250 "./curses.h" #endif /* !__cplusplus, etc. */ # 252 "./curses.h" #ifdef __cplusplus extern "C" { #define NCURSES_CAST(type,value) static_cast(value) #else # 257 "./curses.h" #define NCURSES_CAST(type,value) (type)(value) #endif # 259 "./curses.h" #define NCURSES_OK_ADDR(p) (0 != NCURSES_CAST(const void *, (p))) /* * X/Open attributes. In the ncurses implementation, they are identical to the * A_ attributes. */ #define WA_ATTRIBUTES A_ATTRIBUTES #define WA_NORMAL A_NORMAL #define WA_STANDOUT A_STANDOUT #define WA_UNDERLINE A_UNDERLINE #define WA_REVERSE A_REVERSE #define WA_BLINK A_BLINK #define WA_DIM A_DIM #define WA_BOLD A_BOLD #define WA_ALTCHARSET A_ALTCHARSET #define WA_INVIS A_INVIS #define WA_PROTECT A_PROTECT #define WA_HORIZONTAL A_HORIZONTAL #define WA_LEFT A_LEFT #define WA_LOW A_LOW #define WA_RIGHT A_RIGHT #define WA_TOP A_TOP #define WA_VERTICAL A_VERTICAL #if 0 /* disabled by -frewrite-includes */ #if 1 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 285 "./curses.h" #define WA_ITALIC A_ITALIC /* ncurses extension */ #endif # 287 "./curses.h" /* colors */ #define COLOR_BLACK 0 #define COLOR_RED 1 #define COLOR_GREEN 2 #define COLOR_YELLOW 3 #define COLOR_BLUE 4 #define COLOR_MAGENTA 5 #define COLOR_CYAN 6 #define COLOR_WHITE 7 /* line graphics */ #if 0 /* disabled by -frewrite-includes */ #if 0 || NCURSES_REENTRANT #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 301 "./curses.h" NCURSES_WRAPPED_VAR(chtype*, acs_map); #define acs_map NCURSES_PUBLIC_VAR(acs_map()) #else # 304 "./curses.h" extern NCURSES_EXPORT_VAR(chtype) acs_map[]; #endif # 306 "./curses.h" #define NCURSES_ACS(c) (acs_map[NCURSES_CAST(unsigned char,(c))]) /* VT100 symbols begin here */ #define ACS_ULCORNER NCURSES_ACS('l') /* upper left corner */ #define ACS_LLCORNER NCURSES_ACS('m') /* lower left corner */ #define ACS_URCORNER NCURSES_ACS('k') /* upper right corner */ #define ACS_LRCORNER NCURSES_ACS('j') /* lower right corner */ #define ACS_LTEE NCURSES_ACS('t') /* tee pointing right */ #define ACS_RTEE NCURSES_ACS('u') /* tee pointing left */ #define ACS_BTEE NCURSES_ACS('v') /* tee pointing up */ #define ACS_TTEE NCURSES_ACS('w') /* tee pointing down */ #define ACS_HLINE NCURSES_ACS('q') /* horizontal line */ #define ACS_VLINE NCURSES_ACS('x') /* vertical line */ #define ACS_PLUS NCURSES_ACS('n') /* large plus or crossover */ #define ACS_S1 NCURSES_ACS('o') /* scan line 1 */ #define ACS_S9 NCURSES_ACS('s') /* scan line 9 */ #define ACS_DIAMOND NCURSES_ACS('`') /* diamond */ #define ACS_CKBOARD NCURSES_ACS('a') /* checker board (stipple) */ #define ACS_DEGREE NCURSES_ACS('f') /* degree symbol */ #define ACS_PLMINUS NCURSES_ACS('g') /* plus/minus */ #define ACS_BULLET NCURSES_ACS('~') /* bullet */ /* Teletype 5410v1 symbols begin here */ #define ACS_LARROW NCURSES_ACS(',') /* arrow pointing left */ #define ACS_RARROW NCURSES_ACS('+') /* arrow pointing right */ #define ACS_DARROW NCURSES_ACS('.') /* arrow pointing down */ #define ACS_UARROW NCURSES_ACS('-') /* arrow pointing up */ #define ACS_BOARD NCURSES_ACS('h') /* board of squares */ #define ACS_LANTERN NCURSES_ACS('i') /* lantern symbol */ #define ACS_BLOCK NCURSES_ACS('0') /* solid square block */ /* * These aren't documented, but a lot of System Vs have them anyway * (you can spot pprryyzz{{||}} in a lot of AT&T terminfo strings). * The ACS_names may not match AT&T's, our source didn't know them. */ #define ACS_S3 NCURSES_ACS('p') /* scan line 3 */ #define ACS_S7 NCURSES_ACS('r') /* scan line 7 */ #define ACS_LEQUAL NCURSES_ACS('y') /* less/equal */ #define ACS_GEQUAL NCURSES_ACS('z') /* greater/equal */ #define ACS_PI NCURSES_ACS('{') /* Pi */ #define ACS_NEQUAL NCURSES_ACS('|') /* not equal */ #define ACS_STERLING NCURSES_ACS('}') /* UK pound sign */ /* * Line drawing ACS names are of the form ACS_trbl, where t is the top, r * is the right, b is the bottom, and l is the left. t, r, b, and l might * be B (blank), S (single), D (double), or T (thick). The subset defined * here only uses B and S. */ #define ACS_BSSB ACS_ULCORNER #define ACS_SSBB ACS_LLCORNER #define ACS_BBSS ACS_URCORNER #define ACS_SBBS ACS_LRCORNER #define ACS_SBSS ACS_RTEE #define ACS_SSSB ACS_LTEE #define ACS_SSBS ACS_BTEE #define ACS_BSSS ACS_TTEE #define ACS_BSBS ACS_HLINE #define ACS_SBSB ACS_VLINE #define ACS_SSSS ACS_PLUS #undef ERR #define ERR (-1) #undef OK #define OK (0) /* values for the _flags member */ #define _SUBWIN 0x01 /* is this a sub-window? */ #define _ENDLINE 0x02 /* is the window flush right? */ #define _FULLWIN 0x04 /* is the window full-screen? */ #define _SCROLLWIN 0x08 /* bottom edge is at screen bottom? */ #define _ISPAD 0x10 /* is this window a pad? */ #define _HASMOVED 0x20 /* has cursor moved since last refresh? */ #define _WRAPPED 0x40 /* cursor was just wrappped */ /* * this value is used in the firstchar and lastchar fields to mark * unchanged lines */ #define _NOCHANGE -1 /* * this value is used in the oldindex field to mark lines created by insertions * and scrolls. */ #define _NEWINDEX -1 typedef struct screen SCREEN; typedef struct _win_st WINDOW; typedef chtype attr_t; /* ...must be at least as wide as chtype */ #if 0 /* disabled by -frewrite-includes */ #if NCURSES_WIDECHAR #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 400 "./curses.h" #if 0 /* disabled by -frewrite-includes */ #if 0 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 402 "./curses.h" #ifdef mblen /* libutf8.h defines it w/o undefining first */ #undef mblen #endif # 405 "./curses.h" #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 405 "./curses.h" # 406 "./curses.h" #endif # 407 "./curses.h" #if 0 /* disabled by -frewrite-includes */ #if 1 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 409 "./curses.h" #if 0 /* expanded by -frewrite-includes */ #include /* ...to get mbstate_t, etc. */ #endif /* expanded by -frewrite-includes */ # 409 "./curses.h" # 410 "./curses.h" #endif # 411 "./curses.h" #if 0 /* disabled by -frewrite-includes */ #if 0 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 413 "./curses.h" typedef unsigned short wchar_t1; #endif # 415 "./curses.h" #if 0 /* disabled by -frewrite-includes */ #if 0 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 417 "./curses.h" typedef unsigned int wint_t1; #endif # 419 "./curses.h" /* * cchar_t stores an array of CCHARW_MAX wide characters. The first is * normally a spacing character. The others are non-spacing. If those * (spacing and nonspacing) do not fill the array, a null L'\0' follows. * Otherwise, a null is assumed to follow when extracting via getcchar(). */ #define CCHARW_MAX 5 typedef struct { attr_t attr; wchar_t chars[CCHARW_MAX]; #if 0 /* disabled by -frewrite-includes */ #if 1 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 432 "./curses.h" #undef NCURSES_EXT_COLORS #define NCURSES_EXT_COLORS 20210220 int ext_color; /* color pair, must be more than 16-bits */ #endif # 436 "./curses.h" } cchar_t; #endif /* NCURSES_WIDECHAR */ # 440 "./curses.h" #if 0 /* disabled by -frewrite-includes */ #if !NCURSES_OPAQUE #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 442 "./curses.h" struct ldat; struct _win_st { NCURSES_SIZE_T _cury, _curx; /* current cursor position */ /* window location and size */ NCURSES_SIZE_T _maxy, _maxx; /* maximums of x and y, NOT window size */ NCURSES_SIZE_T _begy, _begx; /* screen coords of upper-left-hand corner */ short _flags; /* window state flags */ /* attribute tracking */ attr_t _attrs; /* current attribute for non-space character */ chtype _bkgd; /* current background char/attribute pair */ /* option values set by user */ bool _notimeout; /* no time out on function-key entry? */ bool _clear; /* consider all data in the window invalid? */ bool _leaveok; /* OK to not reset cursor on exit? */ bool _scroll; /* OK to scroll this window? */ bool _idlok; /* OK to use insert/delete line? */ bool _idcok; /* OK to use insert/delete char? */ bool _immed; /* window in immed mode? (not yet used) */ bool _sync; /* window in sync mode? */ bool _use_keypad; /* process function keys into KEY_ symbols? */ int _delay; /* 0 = nodelay, <0 = blocking, >0 = delay */ struct ldat *_line; /* the actual line data */ /* global screen state */ NCURSES_SIZE_T _regtop; /* top line of scrolling region */ NCURSES_SIZE_T _regbottom; /* bottom line of scrolling region */ /* these are used only if this is a sub-window */ int _parx; /* x coordinate of this window in parent */ int _pary; /* y coordinate of this window in parent */ WINDOW *_parent; /* pointer to parent if a sub-window */ /* these are used only if this is a pad */ struct pdat { NCURSES_SIZE_T _pad_y, _pad_x; NCURSES_SIZE_T _pad_top, _pad_left; NCURSES_SIZE_T _pad_bottom, _pad_right; } _pad; NCURSES_SIZE_T _yoffset; /* real begy is _begy + _yoffset */ #if 0 /* disabled by -frewrite-includes */ #if NCURSES_WIDECHAR #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 492 "./curses.h" cchar_t _bkgrnd; /* current background char/attribute pair */ #if 0 /* disabled by -frewrite-includes */ #if 1 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 494 "./curses.h" int _color; /* current color-pair for non-space character */ #endif # 496 "./curses.h" #endif # 497 "./curses.h" }; #endif /* NCURSES_OPAQUE */ # 499 "./curses.h" /* * GCC (and some other compilers) define '__attribute__'; we're using this * macro to alert the compiler to flag inconsistencies in printf/scanf-like * function calls. Just in case '__attribute__' isn't defined, make a dummy. * Old versions of G++ do not accept it anyway, at least not consistently with * GCC. */ #if 0 /* disabled by -frewrite-includes */ #if !(defined(__GNUC__) || defined(__GNUG__) || defined(__attribute__)) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 508 "./curses.h" #define __attribute__(p) /* nothing */ #endif # 510 "./curses.h" /* * We cannot define these in ncurses_cfg.h, since they require parameters to be * passed (that is non-portable). If you happen to be using gcc with warnings * enabled, define * GCC_PRINTF * GCC_SCANF * to improve checking of calls to printw(), etc. */ #ifndef GCC_PRINTFLIKE #if 0 /* disabled by -frewrite-includes */ #if defined(GCC_PRINTF) && !defined(printf) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 521 "./curses.h" #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var))) #else # 523 "./curses.h" #define GCC_PRINTFLIKE(fmt,var) /*nothing*/ #endif # 525 "./curses.h" #endif # 526 "./curses.h" #ifndef GCC_SCANFLIKE #if 0 /* disabled by -frewrite-includes */ #if defined(GCC_SCANF) && !defined(scanf) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 529 "./curses.h" #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var))) #else # 531 "./curses.h" #define GCC_SCANFLIKE(fmt,var) /*nothing*/ #endif # 533 "./curses.h" #endif # 534 "./curses.h" #ifndef GCC_NORETURN #define GCC_NORETURN /* nothing */ #endif # 538 "./curses.h" #ifndef GCC_UNUSED #define GCC_UNUSED /* nothing */ #endif # 542 "./curses.h" #undef GCC_DEPRECATED #if 0 /* disabled by -frewrite-includes */ #if (__GNUC__ - 0 > 3 || (__GNUC__ - 0 == 3 && __GNUC_MINOR__ - 0 >= 2)) && !defined(NCURSES_INTERNALS) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 545 "./curses.h" #define GCC_DEPRECATED(msg) __attribute__((deprecated)) #else # 547 "./curses.h" #define GCC_DEPRECATED(msg) /* nothing */ #endif # 549 "./curses.h" /* * Curses uses a helper function. Define our type for this to simplify * extending it for the sp-funcs feature. */ typedef int (*NCURSES_OUTC)(int); /* * Function prototypes. This is the complete X/Open Curses list of required * functions. Those marked `generated' will have sources generated from the * macro definitions later in this file, in order to satisfy XPG4.2 * requirements. */ extern NCURSES_EXPORT(int) addch (const chtype); /* generated */ extern NCURSES_EXPORT(int) addchnstr (const chtype *, int); /* generated */ extern NCURSES_EXPORT(int) addchstr (const chtype *); /* generated */ extern NCURSES_EXPORT(int) addnstr (const char *, int); /* generated */ extern NCURSES_EXPORT(int) addstr (const char *); /* generated */ extern NCURSES_EXPORT(int) attroff (NCURSES_ATTR_T); /* generated */ extern NCURSES_EXPORT(int) attron (NCURSES_ATTR_T); /* generated */ extern NCURSES_EXPORT(int) attrset (NCURSES_ATTR_T); /* generated */ extern NCURSES_EXPORT(int) attr_get (attr_t *, NCURSES_PAIRS_T *, void *); /* generated */ extern NCURSES_EXPORT(int) attr_off (attr_t, void *); /* generated */ extern NCURSES_EXPORT(int) attr_on (attr_t, void *); /* generated */ extern NCURSES_EXPORT(int) attr_set (attr_t, NCURSES_PAIRS_T, void *); /* generated */ extern NCURSES_EXPORT(int) baudrate (void); /* implemented */ extern NCURSES_EXPORT(int) beep (void); /* implemented */ extern NCURSES_EXPORT(int) bkgd (chtype); /* generated */ extern NCURSES_EXPORT(void) bkgdset (chtype); /* generated */ extern NCURSES_EXPORT(int) border (chtype,chtype,chtype,chtype,chtype,chtype,chtype,chtype); /* generated */ extern NCURSES_EXPORT(int) box (WINDOW *, chtype, chtype); /* generated */ extern NCURSES_EXPORT(bool) can_change_color (void); /* implemented */ extern NCURSES_EXPORT(int) cbreak (void); /* implemented */ extern NCURSES_EXPORT(int) chgat (int, attr_t, NCURSES_PAIRS_T, const void *); /* generated */ extern NCURSES_EXPORT(int) clear (void); /* generated */ extern NCURSES_EXPORT(int) clearok (WINDOW *,bool); /* implemented */ extern NCURSES_EXPORT(int) clrtobot (void); /* generated */ extern NCURSES_EXPORT(int) clrtoeol (void); /* generated */ extern NCURSES_EXPORT(int) color_content (NCURSES_COLOR_T,NCURSES_COLOR_T*,NCURSES_COLOR_T*,NCURSES_COLOR_T*); /* implemented */ extern NCURSES_EXPORT(int) color_set (NCURSES_PAIRS_T,void*); /* generated */ extern NCURSES_EXPORT(int) COLOR_PAIR (int); /* generated */ extern NCURSES_EXPORT(int) copywin (const WINDOW*,WINDOW*,int,int,int,int,int,int,int); /* implemented */ extern NCURSES_EXPORT(int) curs_set (int); /* implemented */ extern NCURSES_EXPORT(int) def_prog_mode (void); /* implemented */ extern NCURSES_EXPORT(int) def_shell_mode (void); /* implemented */ extern NCURSES_EXPORT(int) delay_output (int); /* implemented */ extern NCURSES_EXPORT(int) delch (void); /* generated */ extern NCURSES_EXPORT(void) delscreen (SCREEN *); /* implemented */ extern NCURSES_EXPORT(int) delwin (WINDOW *); /* implemented */ extern NCURSES_EXPORT(int) deleteln (void); /* generated */ extern NCURSES_EXPORT(WINDOW *) derwin (WINDOW *,int,int,int,int); /* implemented */ extern NCURSES_EXPORT(int) doupdate (void); /* implemented */ extern NCURSES_EXPORT(WINDOW *) dupwin (WINDOW *); /* implemented */ extern NCURSES_EXPORT(int) echo (void); /* implemented */ extern NCURSES_EXPORT(int) echochar (const chtype); /* generated */ extern NCURSES_EXPORT(int) erase (void); /* generated */ extern NCURSES_EXPORT(int) endwin (void); /* implemented */ extern NCURSES_EXPORT(char) erasechar (void); /* implemented */ extern NCURSES_EXPORT(void) filter (void); /* implemented */ extern NCURSES_EXPORT(int) flash (void); /* implemented */ extern NCURSES_EXPORT(int) flushinp (void); /* implemented */ extern NCURSES_EXPORT(chtype) getbkgd (WINDOW *); /* generated */ extern NCURSES_EXPORT(int) getch (void); /* generated */ extern NCURSES_EXPORT(int) getnstr (char *, int); /* generated */ extern NCURSES_EXPORT(int) getstr (char *); /* generated */ extern NCURSES_EXPORT(WINDOW *) getwin (FILE *); /* implemented */ extern NCURSES_EXPORT(int) halfdelay (int); /* implemented */ extern NCURSES_EXPORT(bool) has_colors (void); /* implemented */ extern NCURSES_EXPORT(bool) has_ic (void); /* implemented */ extern NCURSES_EXPORT(bool) has_il (void); /* implemented */ extern NCURSES_EXPORT(int) hline (chtype, int); /* generated */ extern NCURSES_EXPORT(void) idcok (WINDOW *, bool); /* implemented */ extern NCURSES_EXPORT(int) idlok (WINDOW *, bool); /* implemented */ extern NCURSES_EXPORT(void) immedok (WINDOW *, bool); /* implemented */ extern NCURSES_EXPORT(chtype) inch (void); /* generated */ extern NCURSES_EXPORT(int) inchnstr (chtype *, int); /* generated */ extern NCURSES_EXPORT(int) inchstr (chtype *); /* generated */ extern NCURSES_EXPORT(WINDOW *) initscr (void); /* implemented */ extern NCURSES_EXPORT(int) init_color (NCURSES_COLOR_T,NCURSES_COLOR_T,NCURSES_COLOR_T,NCURSES_COLOR_T); /* implemented */ extern NCURSES_EXPORT(int) init_pair (NCURSES_PAIRS_T,NCURSES_COLOR_T,NCURSES_COLOR_T); /* implemented */ extern NCURSES_EXPORT(int) innstr (char *, int); /* generated */ extern NCURSES_EXPORT(int) insch (chtype); /* generated */ extern NCURSES_EXPORT(int) insdelln (int); /* generated */ extern NCURSES_EXPORT(int) insertln (void); /* generated */ extern NCURSES_EXPORT(int) insnstr (const char *, int); /* generated */ extern NCURSES_EXPORT(int) insstr (const char *); /* generated */ extern NCURSES_EXPORT(int) instr (char *); /* generated */ extern NCURSES_EXPORT(int) intrflush (WINDOW *,bool); /* implemented */ extern NCURSES_EXPORT(bool) isendwin (void); /* implemented */ extern NCURSES_EXPORT(bool) is_linetouched (WINDOW *,int); /* implemented */ extern NCURSES_EXPORT(bool) is_wintouched (WINDOW *); /* implemented */ extern NCURSES_EXPORT(NCURSES_CONST char *) keyname (int); /* implemented */ extern NCURSES_EXPORT(int) keypad (WINDOW *,bool); /* implemented */ extern NCURSES_EXPORT(char) killchar (void); /* implemented */ extern NCURSES_EXPORT(int) leaveok (WINDOW *,bool); /* implemented */ extern NCURSES_EXPORT(char *) longname (void); /* implemented */ extern NCURSES_EXPORT(int) meta (WINDOW *,bool); /* implemented */ extern NCURSES_EXPORT(int) move (int, int); /* generated */ extern NCURSES_EXPORT(int) mvaddch (int, int, const chtype); /* generated */ extern NCURSES_EXPORT(int) mvaddchnstr (int, int, const chtype *, int); /* generated */ extern NCURSES_EXPORT(int) mvaddchstr (int, int, const chtype *); /* generated */ extern NCURSES_EXPORT(int) mvaddnstr (int, int, const char *, int); /* generated */ extern NCURSES_EXPORT(int) mvaddstr (int, int, const char *); /* generated */ extern NCURSES_EXPORT(int) mvchgat (int, int, int, attr_t, NCURSES_PAIRS_T, const void *); /* generated */ extern NCURSES_EXPORT(int) mvcur (int,int,int,int); /* implemented */ extern NCURSES_EXPORT(int) mvdelch (int, int); /* generated */ extern NCURSES_EXPORT(int) mvderwin (WINDOW *, int, int); /* implemented */ extern NCURSES_EXPORT(int) mvgetch (int, int); /* generated */ extern NCURSES_EXPORT(int) mvgetnstr (int, int, char *, int); /* generated */ extern NCURSES_EXPORT(int) mvgetstr (int, int, char *); /* generated */ extern NCURSES_EXPORT(int) mvhline (int, int, chtype, int); /* generated */ extern NCURSES_EXPORT(chtype) mvinch (int, int); /* generated */ extern NCURSES_EXPORT(int) mvinchnstr (int, int, chtype *, int); /* generated */ extern NCURSES_EXPORT(int) mvinchstr (int, int, chtype *); /* generated */ extern NCURSES_EXPORT(int) mvinnstr (int, int, char *, int); /* generated */ extern NCURSES_EXPORT(int) mvinsch (int, int, chtype); /* generated */ extern NCURSES_EXPORT(int) mvinsnstr (int, int, const char *, int); /* generated */ extern NCURSES_EXPORT(int) mvinsstr (int, int, const char *); /* generated */ extern NCURSES_EXPORT(int) mvinstr (int, int, char *); /* generated */ extern NCURSES_EXPORT(int) mvprintw (int,int, const char *,...) /* implemented */ GCC_PRINTFLIKE(3,4); extern NCURSES_EXPORT(int) mvscanw (int,int, const char *,...) /* implemented */ GCC_SCANFLIKE(3,4); extern NCURSES_EXPORT(int) mvvline (int, int, chtype, int); /* generated */ extern NCURSES_EXPORT(int) mvwaddch (WINDOW *, int, int, const chtype); /* generated */ extern NCURSES_EXPORT(int) mvwaddchnstr (WINDOW *, int, int, const chtype *, int);/* generated */ extern NCURSES_EXPORT(int) mvwaddchstr (WINDOW *, int, int, const chtype *); /* generated */ extern NCURSES_EXPORT(int) mvwaddnstr (WINDOW *, int, int, const char *, int); /* generated */ extern NCURSES_EXPORT(int) mvwaddstr (WINDOW *, int, int, const char *); /* generated */ extern NCURSES_EXPORT(int) mvwchgat (WINDOW *, int, int, int, attr_t, NCURSES_PAIRS_T, const void *);/* generated */ extern NCURSES_EXPORT(int) mvwdelch (WINDOW *, int, int); /* generated */ extern NCURSES_EXPORT(int) mvwgetch (WINDOW *, int, int); /* generated */ extern NCURSES_EXPORT(int) mvwgetnstr (WINDOW *, int, int, char *, int); /* generated */ extern NCURSES_EXPORT(int) mvwgetstr (WINDOW *, int, int, char *); /* generated */ extern NCURSES_EXPORT(int) mvwhline (WINDOW *, int, int, chtype, int); /* generated */ extern NCURSES_EXPORT(int) mvwin (WINDOW *,int,int); /* implemented */ extern NCURSES_EXPORT(chtype) mvwinch (WINDOW *, int, int); /* generated */ extern NCURSES_EXPORT(int) mvwinchnstr (WINDOW *, int, int, chtype *, int); /* generated */ extern NCURSES_EXPORT(int) mvwinchstr (WINDOW *, int, int, chtype *); /* generated */ extern NCURSES_EXPORT(int) mvwinnstr (WINDOW *, int, int, char *, int); /* generated */ extern NCURSES_EXPORT(int) mvwinsch (WINDOW *, int, int, chtype); /* generated */ extern NCURSES_EXPORT(int) mvwinsnstr (WINDOW *, int, int, const char *, int); /* generated */ extern NCURSES_EXPORT(int) mvwinsstr (WINDOW *, int, int, const char *); /* generated */ extern NCURSES_EXPORT(int) mvwinstr (WINDOW *, int, int, char *); /* generated */ extern NCURSES_EXPORT(int) mvwprintw (WINDOW*,int,int, const char *,...) /* implemented */ GCC_PRINTFLIKE(4,5); extern NCURSES_EXPORT(int) mvwscanw (WINDOW *,int,int, const char *,...) /* implemented */ GCC_SCANFLIKE(4,5); extern NCURSES_EXPORT(int) mvwvline (WINDOW *,int, int, chtype, int); /* generated */ extern NCURSES_EXPORT(int) napms (int); /* implemented */ extern NCURSES_EXPORT(WINDOW *) newpad (int,int); /* implemented */ extern NCURSES_EXPORT(SCREEN *) newterm (const char *,FILE *,FILE *); /* implemented */ extern NCURSES_EXPORT(WINDOW *) newwin (int,int,int,int); /* implemented */ extern NCURSES_EXPORT(int) nl (void); /* implemented */ extern NCURSES_EXPORT(int) nocbreak (void); /* implemented */ extern NCURSES_EXPORT(int) nodelay (WINDOW *,bool); /* implemented */ extern NCURSES_EXPORT(int) noecho (void); /* implemented */ extern NCURSES_EXPORT(int) nonl (void); /* implemented */ extern NCURSES_EXPORT(void) noqiflush (void); /* implemented */ extern NCURSES_EXPORT(int) noraw (void); /* implemented */ extern NCURSES_EXPORT(int) notimeout (WINDOW *,bool); /* implemented */ extern NCURSES_EXPORT(int) overlay (const WINDOW*,WINDOW *); /* implemented */ extern NCURSES_EXPORT(int) overwrite (const WINDOW*,WINDOW *); /* implemented */ extern NCURSES_EXPORT(int) pair_content (NCURSES_PAIRS_T,NCURSES_COLOR_T*,NCURSES_COLOR_T*); /* implemented */ extern NCURSES_EXPORT(int) PAIR_NUMBER (int); /* generated */ extern NCURSES_EXPORT(int) pechochar (WINDOW *, const chtype); /* implemented */ extern NCURSES_EXPORT(int) pnoutrefresh (WINDOW*,int,int,int,int,int,int);/* implemented */ extern NCURSES_EXPORT(int) prefresh (WINDOW *,int,int,int,int,int,int); /* implemented */ extern NCURSES_EXPORT(int) printw (const char *,...) /* implemented */ GCC_PRINTFLIKE(1,2); extern NCURSES_EXPORT(int) putwin (WINDOW *, FILE *); /* implemented */ extern NCURSES_EXPORT(void) qiflush (void); /* implemented */ extern NCURSES_EXPORT(int) raw (void); /* implemented */ extern NCURSES_EXPORT(int) redrawwin (WINDOW *); /* generated */ extern NCURSES_EXPORT(int) refresh (void); /* generated */ extern NCURSES_EXPORT(int) resetty (void); /* implemented */ extern NCURSES_EXPORT(int) reset_prog_mode (void); /* implemented */ extern NCURSES_EXPORT(int) reset_shell_mode (void); /* implemented */ extern NCURSES_EXPORT(int) ripoffline (int, int (*)(WINDOW *, int)); /* implemented */ extern NCURSES_EXPORT(int) savetty (void); /* implemented */ extern NCURSES_EXPORT(int) scanw (const char *,...) /* implemented */ GCC_SCANFLIKE(1,2); extern NCURSES_EXPORT(int) scr_dump (const char *); /* implemented */ extern NCURSES_EXPORT(int) scr_init (const char *); /* implemented */ extern NCURSES_EXPORT(int) scrl (int); /* generated */ extern NCURSES_EXPORT(int) scroll (WINDOW *); /* generated */ extern NCURSES_EXPORT(int) scrollok (WINDOW *,bool); /* implemented */ extern NCURSES_EXPORT(int) scr_restore (const char *); /* implemented */ extern NCURSES_EXPORT(int) scr_set (const char *); /* implemented */ extern NCURSES_EXPORT(int) setscrreg (int,int); /* generated */ extern NCURSES_EXPORT(SCREEN *) set_term (SCREEN *); /* implemented */ extern NCURSES_EXPORT(int) slk_attroff (const chtype); /* implemented */ extern NCURSES_EXPORT(int) slk_attr_off (const attr_t, void *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) slk_attron (const chtype); /* implemented */ extern NCURSES_EXPORT(int) slk_attr_on (attr_t,void*); /* generated:WIDEC */ extern NCURSES_EXPORT(int) slk_attrset (const chtype); /* implemented */ extern NCURSES_EXPORT(attr_t) slk_attr (void); /* implemented */ extern NCURSES_EXPORT(int) slk_attr_set (const attr_t,NCURSES_PAIRS_T,void*); /* implemented */ extern NCURSES_EXPORT(int) slk_clear (void); /* implemented */ extern NCURSES_EXPORT(int) slk_color (NCURSES_PAIRS_T); /* implemented */ extern NCURSES_EXPORT(int) slk_init (int); /* implemented */ extern NCURSES_EXPORT(char *) slk_label (int); /* implemented */ extern NCURSES_EXPORT(int) slk_noutrefresh (void); /* implemented */ extern NCURSES_EXPORT(int) slk_refresh (void); /* implemented */ extern NCURSES_EXPORT(int) slk_restore (void); /* implemented */ extern NCURSES_EXPORT(int) slk_set (int,const char *,int); /* implemented */ extern NCURSES_EXPORT(int) slk_touch (void); /* implemented */ extern NCURSES_EXPORT(int) standout (void); /* generated */ extern NCURSES_EXPORT(int) standend (void); /* generated */ extern NCURSES_EXPORT(int) start_color (void); /* implemented */ extern NCURSES_EXPORT(WINDOW *) subpad (WINDOW *, int, int, int, int); /* implemented */ extern NCURSES_EXPORT(WINDOW *) subwin (WINDOW *, int, int, int, int); /* implemented */ extern NCURSES_EXPORT(int) syncok (WINDOW *, bool); /* implemented */ extern NCURSES_EXPORT(chtype) termattrs (void); /* implemented */ extern NCURSES_EXPORT(char *) termname (void); /* implemented */ extern NCURSES_EXPORT(void) timeout (int); /* generated */ extern NCURSES_EXPORT(int) touchline (WINDOW *, int, int); /* generated */ extern NCURSES_EXPORT(int) touchwin (WINDOW *); /* generated */ extern NCURSES_EXPORT(int) typeahead (int); /* implemented */ extern NCURSES_EXPORT(int) ungetch (int); /* implemented */ extern NCURSES_EXPORT(int) untouchwin (WINDOW *); /* generated */ extern NCURSES_EXPORT(void) use_env (bool); /* implemented */ extern NCURSES_EXPORT(void) use_tioctl (bool); /* implemented */ extern NCURSES_EXPORT(int) vidattr (chtype); /* implemented */ extern NCURSES_EXPORT(int) vidputs (chtype, NCURSES_OUTC); /* implemented */ extern NCURSES_EXPORT(int) vline (chtype, int); /* generated */ extern NCURSES_EXPORT(int) vwprintw (WINDOW *, const char *,va_list) GCC_DEPRECATED(use vw_printw); /* implemented */ extern NCURSES_EXPORT(int) vw_printw (WINDOW *, const char *,va_list); /* implemented */ extern NCURSES_EXPORT(int) vwscanw (WINDOW *, const char *,va_list) GCC_DEPRECATED(use vw_scanw); /* implemented */ extern NCURSES_EXPORT(int) vw_scanw (WINDOW *, const char *,va_list); /* implemented */ extern NCURSES_EXPORT(int) waddch (WINDOW *, const chtype); /* implemented */ extern NCURSES_EXPORT(int) waddchnstr (WINDOW *,const chtype *,int); /* implemented */ extern NCURSES_EXPORT(int) waddchstr (WINDOW *,const chtype *); /* generated */ extern NCURSES_EXPORT(int) waddnstr (WINDOW *,const char *,int); /* implemented */ extern NCURSES_EXPORT(int) waddstr (WINDOW *,const char *); /* generated */ extern NCURSES_EXPORT(int) wattron (WINDOW *, int); /* generated */ extern NCURSES_EXPORT(int) wattroff (WINDOW *, int); /* generated */ extern NCURSES_EXPORT(int) wattrset (WINDOW *, int); /* generated */ extern NCURSES_EXPORT(int) wattr_get (WINDOW *, attr_t *, NCURSES_PAIRS_T *, void *); /* generated */ extern NCURSES_EXPORT(int) wattr_on (WINDOW *, attr_t, void *); /* implemented */ extern NCURSES_EXPORT(int) wattr_off (WINDOW *, attr_t, void *); /* implemented */ extern NCURSES_EXPORT(int) wattr_set (WINDOW *, attr_t, NCURSES_PAIRS_T, void *); /* generated */ extern NCURSES_EXPORT(int) wbkgd (WINDOW *, chtype); /* implemented */ extern NCURSES_EXPORT(void) wbkgdset (WINDOW *,chtype); /* implemented */ extern NCURSES_EXPORT(int) wborder (WINDOW *,chtype,chtype,chtype,chtype,chtype,chtype,chtype,chtype); /* implemented */ extern NCURSES_EXPORT(int) wchgat (WINDOW *, int, attr_t, NCURSES_PAIRS_T, const void *);/* implemented */ extern NCURSES_EXPORT(int) wclear (WINDOW *); /* implemented */ extern NCURSES_EXPORT(int) wclrtobot (WINDOW *); /* implemented */ extern NCURSES_EXPORT(int) wclrtoeol (WINDOW *); /* implemented */ extern NCURSES_EXPORT(int) wcolor_set (WINDOW*,NCURSES_PAIRS_T,void*); /* implemented */ extern NCURSES_EXPORT(void) wcursyncup (WINDOW *); /* implemented */ extern NCURSES_EXPORT(int) wdelch (WINDOW *); /* implemented */ extern NCURSES_EXPORT(int) wdeleteln (WINDOW *); /* generated */ extern NCURSES_EXPORT(int) wechochar (WINDOW *, const chtype); /* implemented */ extern NCURSES_EXPORT(int) werase (WINDOW *); /* implemented */ extern NCURSES_EXPORT(int) wgetch (WINDOW *); /* implemented */ extern NCURSES_EXPORT(int) wgetnstr (WINDOW *,char *,int); /* implemented */ extern NCURSES_EXPORT(int) wgetstr (WINDOW *, char *); /* generated */ extern NCURSES_EXPORT(int) whline (WINDOW *, chtype, int); /* implemented */ extern NCURSES_EXPORT(chtype) winch (WINDOW *); /* implemented */ extern NCURSES_EXPORT(int) winchnstr (WINDOW *, chtype *, int); /* implemented */ extern NCURSES_EXPORT(int) winchstr (WINDOW *, chtype *); /* generated */ extern NCURSES_EXPORT(int) winnstr (WINDOW *, char *, int); /* implemented */ extern NCURSES_EXPORT(int) winsch (WINDOW *, chtype); /* implemented */ extern NCURSES_EXPORT(int) winsdelln (WINDOW *,int); /* implemented */ extern NCURSES_EXPORT(int) winsertln (WINDOW *); /* generated */ extern NCURSES_EXPORT(int) winsnstr (WINDOW *, const char *,int); /* implemented */ extern NCURSES_EXPORT(int) winsstr (WINDOW *, const char *); /* generated */ extern NCURSES_EXPORT(int) winstr (WINDOW *, char *); /* generated */ extern NCURSES_EXPORT(int) wmove (WINDOW *,int,int); /* implemented */ extern NCURSES_EXPORT(int) wnoutrefresh (WINDOW *); /* implemented */ extern NCURSES_EXPORT(int) wprintw (WINDOW *, const char *,...) /* implemented */ GCC_PRINTFLIKE(2,3); extern NCURSES_EXPORT(int) wredrawln (WINDOW *,int,int); /* implemented */ extern NCURSES_EXPORT(int) wrefresh (WINDOW *); /* implemented */ extern NCURSES_EXPORT(int) wscanw (WINDOW *, const char *,...) /* implemented */ GCC_SCANFLIKE(2,3); extern NCURSES_EXPORT(int) wscrl (WINDOW *,int); /* implemented */ extern NCURSES_EXPORT(int) wsetscrreg (WINDOW *,int,int); /* implemented */ extern NCURSES_EXPORT(int) wstandout (WINDOW *); /* generated */ extern NCURSES_EXPORT(int) wstandend (WINDOW *); /* generated */ extern NCURSES_EXPORT(void) wsyncdown (WINDOW *); /* implemented */ extern NCURSES_EXPORT(void) wsyncup (WINDOW *); /* implemented */ extern NCURSES_EXPORT(void) wtimeout (WINDOW *,int); /* implemented */ extern NCURSES_EXPORT(int) wtouchln (WINDOW *,int,int,int); /* implemented */ extern NCURSES_EXPORT(int) wvline (WINDOW *,chtype,int); /* implemented */ /* * These are also declared in : */ extern NCURSES_EXPORT(int) tigetflag (const char *); /* implemented */ extern NCURSES_EXPORT(int) tigetnum (const char *); /* implemented */ extern NCURSES_EXPORT(char *) tigetstr (const char *); /* implemented */ extern NCURSES_EXPORT(int) putp (const char *); /* implemented */ #if 0 /* disabled by -frewrite-includes */ #if NCURSES_TPARM_VARARGS #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 846 "./curses.h" extern NCURSES_EXPORT(char *) tparm (const char *, ...); /* special */ #else # 848 "./curses.h" extern NCURSES_EXPORT(char *) tparm (const char *, NCURSES_TPARM_ARG,NCURSES_TPARM_ARG,NCURSES_TPARM_ARG,NCURSES_TPARM_ARG,NCURSES_TPARM_ARG,NCURSES_TPARM_ARG,NCURSES_TPARM_ARG,NCURSES_TPARM_ARG,NCURSES_TPARM_ARG); /* special */ #endif # 850 "./curses.h" extern NCURSES_EXPORT(char *) tiparm (const char *, ...); /* special */ /* * These functions are not in X/Open, but we use them in macro definitions: */ extern NCURSES_EXPORT(int) getattrs (const WINDOW *); /* generated */ extern NCURSES_EXPORT(int) getcurx (const WINDOW *); /* generated */ extern NCURSES_EXPORT(int) getcury (const WINDOW *); /* generated */ extern NCURSES_EXPORT(int) getbegx (const WINDOW *); /* generated */ extern NCURSES_EXPORT(int) getbegy (const WINDOW *); /* generated */ extern NCURSES_EXPORT(int) getmaxx (const WINDOW *); /* generated */ extern NCURSES_EXPORT(int) getmaxy (const WINDOW *); /* generated */ extern NCURSES_EXPORT(int) getparx (const WINDOW *); /* generated */ extern NCURSES_EXPORT(int) getpary (const WINDOW *); /* generated */ /* * vid_attr() was implemented originally based on a draft of X/Open curses. */ #if 0 /* disabled by -frewrite-includes */ #if !NCURSES_WIDECHAR #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 870 "./curses.h" #define vid_attr(a,pair,opts) vidattr(a) #endif # 872 "./curses.h" /* * These functions are extensions - not in X/Open Curses. */ #if 0 /* disabled by -frewrite-includes */ #if 1 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 877 "./curses.h" #undef NCURSES_EXT_FUNCS #define NCURSES_EXT_FUNCS 20210220 typedef int (*NCURSES_WINDOW_CB)(WINDOW *, void *); typedef int (*NCURSES_SCREEN_CB)(SCREEN *, void *); extern NCURSES_EXPORT(bool) is_term_resized (int, int); extern NCURSES_EXPORT(char *) keybound (int, int); extern NCURSES_EXPORT(const char *) curses_version (void); extern NCURSES_EXPORT(int) alloc_pair (int, int); extern NCURSES_EXPORT(int) assume_default_colors (int, int); extern NCURSES_EXPORT(int) define_key (const char *, int); extern NCURSES_EXPORT(int) extended_color_content(int, int *, int *, int *); extern NCURSES_EXPORT(int) extended_pair_content(int, int *, int *); extern NCURSES_EXPORT(int) extended_slk_color(int); extern NCURSES_EXPORT(int) find_pair (int, int); extern NCURSES_EXPORT(int) free_pair (int); extern NCURSES_EXPORT(int) get_escdelay (void); extern NCURSES_EXPORT(int) init_extended_color(int, int, int, int); extern NCURSES_EXPORT(int) init_extended_pair(int, int, int); extern NCURSES_EXPORT(int) key_defined (const char *); extern NCURSES_EXPORT(int) keyok (int, bool); extern NCURSES_EXPORT(void) reset_color_pairs (void); extern NCURSES_EXPORT(int) resize_term (int, int); extern NCURSES_EXPORT(int) resizeterm (int, int); extern NCURSES_EXPORT(int) set_escdelay (int); extern NCURSES_EXPORT(int) set_tabsize (int); extern NCURSES_EXPORT(int) use_default_colors (void); extern NCURSES_EXPORT(int) use_extended_names (bool); extern NCURSES_EXPORT(int) use_legacy_coding (int); extern NCURSES_EXPORT(int) use_screen (SCREEN *, NCURSES_SCREEN_CB, void *); extern NCURSES_EXPORT(int) use_window (WINDOW *, NCURSES_WINDOW_CB, void *); extern NCURSES_EXPORT(int) wresize (WINDOW *, int, int); extern NCURSES_EXPORT(void) nofilter(void); /* * These extensions provide access to information stored in the WINDOW even * when NCURSES_OPAQUE is set: */ extern NCURSES_EXPORT(WINDOW *) wgetparent (const WINDOW *); /* generated */ extern NCURSES_EXPORT(bool) is_cleared (const WINDOW *); /* generated */ extern NCURSES_EXPORT(bool) is_idcok (const WINDOW *); /* generated */ extern NCURSES_EXPORT(bool) is_idlok (const WINDOW *); /* generated */ extern NCURSES_EXPORT(bool) is_immedok (const WINDOW *); /* generated */ extern NCURSES_EXPORT(bool) is_keypad (const WINDOW *); /* generated */ extern NCURSES_EXPORT(bool) is_leaveok (const WINDOW *); /* generated */ extern NCURSES_EXPORT(bool) is_nodelay (const WINDOW *); /* generated */ extern NCURSES_EXPORT(bool) is_notimeout (const WINDOW *); /* generated */ extern NCURSES_EXPORT(bool) is_pad (const WINDOW *); /* generated */ extern NCURSES_EXPORT(bool) is_scrollok (const WINDOW *); /* generated */ extern NCURSES_EXPORT(bool) is_subwin (const WINDOW *); /* generated */ extern NCURSES_EXPORT(bool) is_syncok (const WINDOW *); /* generated */ extern NCURSES_EXPORT(int) wgetdelay (const WINDOW *); /* generated */ extern NCURSES_EXPORT(int) wgetscrreg (const WINDOW *, int *, int *); /* generated */ #else # 931 "./curses.h" #define curses_version() NCURSES_VERSION #endif # 933 "./curses.h" /* * Extra extension-functions, which pass a SCREEN pointer rather than using * a global variable SP. */ #if 0 /* disabled by -frewrite-includes */ #if 1 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 939 "./curses.h" #undef NCURSES_SP_FUNCS #define NCURSES_SP_FUNCS 20210220 #define NCURSES_SP_NAME(name) name##_sp /* Define the sp-funcs helper function */ #define NCURSES_SP_OUTC NCURSES_SP_NAME(NCURSES_OUTC) typedef int (*NCURSES_SP_OUTC)(SCREEN*, int); extern NCURSES_EXPORT(SCREEN *) new_prescr (void); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(baudrate) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(beep) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(bool) NCURSES_SP_NAME(can_change_color) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(cbreak) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(curs_set) (SCREEN*, int); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(color_content) (SCREEN*, NCURSES_PAIRS_T, NCURSES_COLOR_T*, NCURSES_COLOR_T*, NCURSES_COLOR_T*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(def_prog_mode) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(def_shell_mode) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(delay_output) (SCREEN*, int); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(doupdate) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(echo) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(endwin) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(char) NCURSES_SP_NAME(erasechar) (SCREEN*);/* implemented:SP_FUNC */ extern NCURSES_EXPORT(void) NCURSES_SP_NAME(filter) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(flash) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(flushinp) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(WINDOW *) NCURSES_SP_NAME(getwin) (SCREEN*, FILE *); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(halfdelay) (SCREEN*, int); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(bool) NCURSES_SP_NAME(has_colors) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(bool) NCURSES_SP_NAME(has_ic) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(bool) NCURSES_SP_NAME(has_il) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(init_color) (SCREEN*, NCURSES_COLOR_T, NCURSES_COLOR_T, NCURSES_COLOR_T, NCURSES_COLOR_T); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(init_pair) (SCREEN*, NCURSES_PAIRS_T, NCURSES_COLOR_T, NCURSES_COLOR_T); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(intrflush) (SCREEN*, WINDOW*, bool); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(bool) NCURSES_SP_NAME(isendwin) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(NCURSES_CONST char *) NCURSES_SP_NAME(keyname) (SCREEN*, int); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(char) NCURSES_SP_NAME(killchar) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(char *) NCURSES_SP_NAME(longname) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(mvcur) (SCREEN*, int, int, int, int); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(napms) (SCREEN*, int); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(WINDOW *) NCURSES_SP_NAME(newpad) (SCREEN*, int, int); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(SCREEN *) NCURSES_SP_NAME(newterm) (SCREEN*, const char *, FILE *, FILE *); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(WINDOW *) NCURSES_SP_NAME(newwin) (SCREEN*, int, int, int, int); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(nl) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(nocbreak) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(noecho) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(nonl) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(void) NCURSES_SP_NAME(noqiflush) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(noraw) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(pair_content) (SCREEN*, NCURSES_PAIRS_T, NCURSES_COLOR_T*, NCURSES_COLOR_T*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(void) NCURSES_SP_NAME(qiflush) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(raw) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(reset_prog_mode) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(reset_shell_mode) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(resetty) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(ripoffline) (SCREEN*, int, int (*)(WINDOW *, int)); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(savetty) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(scr_init) (SCREEN*, const char *); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(scr_restore) (SCREEN*, const char *); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(scr_set) (SCREEN*, const char *); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(slk_attroff) (SCREEN*, const chtype); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(slk_attron) (SCREEN*, const chtype); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(slk_attrset) (SCREEN*, const chtype); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(attr_t) NCURSES_SP_NAME(slk_attr) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(slk_attr_set) (SCREEN*, const attr_t, NCURSES_PAIRS_T, void*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(slk_clear) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(slk_color) (SCREEN*, NCURSES_PAIRS_T); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(slk_init) (SCREEN*, int); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(char *) NCURSES_SP_NAME(slk_label) (SCREEN*, int); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(slk_noutrefresh) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(slk_refresh) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(slk_restore) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(slk_set) (SCREEN*, int, const char *, int); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(slk_touch) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(start_color) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(chtype) NCURSES_SP_NAME(termattrs) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(char *) NCURSES_SP_NAME(termname) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(typeahead) (SCREEN*, int); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(ungetch) (SCREEN*, int); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(void) NCURSES_SP_NAME(use_env) (SCREEN*, bool); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(void) NCURSES_SP_NAME(use_tioctl) (SCREEN*, bool); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(vidattr) (SCREEN*, chtype); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(vidputs) (SCREEN*, chtype, NCURSES_SP_OUTC); /* implemented:SP_FUNC */ #if 0 /* disabled by -frewrite-includes */ #if 1 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 1023 "./curses.h" extern NCURSES_EXPORT(char *) NCURSES_SP_NAME(keybound) (SCREEN*, int, int); /* implemented:EXT_SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(alloc_pair) (SCREEN*, int, int); /* implemented:EXT_SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(assume_default_colors) (SCREEN*, int, int); /* implemented:EXT_SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(define_key) (SCREEN*, const char *, int); /* implemented:EXT_SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(extended_color_content) (SCREEN*, int, int *, int *, int *); /* implemented:EXT_SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(extended_pair_content) (SCREEN*, int, int *, int *); /* implemented:EXT_SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(extended_slk_color) (SCREEN*, int); /* implemented:EXT_SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(get_escdelay) (SCREEN*); /* implemented:EXT_SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(find_pair) (SCREEN*, int, int); /* implemented:EXT_SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(free_pair) (SCREEN*, int); /* implemented:EXT_SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(init_extended_color) (SCREEN*, int, int, int, int); /* implemented:EXT_SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(init_extended_pair) (SCREEN*, int, int, int); /* implemented:EXT_SP_FUNC */ extern NCURSES_EXPORT(bool) NCURSES_SP_NAME(is_term_resized) (SCREEN*, int, int); /* implemented:EXT_SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(key_defined) (SCREEN*, const char *); /* implemented:EXT_SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(keyok) (SCREEN*, int, bool); /* implemented:EXT_SP_FUNC */ extern NCURSES_EXPORT(void) NCURSES_SP_NAME(nofilter) (SCREEN*); /* implemented */ /* implemented:EXT_SP_FUNC */ extern NCURSES_EXPORT(void) NCURSES_SP_NAME(reset_color_pairs) (SCREEN*); /* implemented:EXT_SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(resize_term) (SCREEN*, int, int); /* implemented:EXT_SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(resizeterm) (SCREEN*, int, int); /* implemented:EXT_SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(set_escdelay) (SCREEN*, int); /* implemented:EXT_SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(set_tabsize) (SCREEN*, int); /* implemented:EXT_SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(use_default_colors) (SCREEN*); /* implemented:EXT_SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(use_legacy_coding) (SCREEN*, int); /* implemented:EXT_SP_FUNC */ #endif # 1047 "./curses.h" #else # 1048 "./curses.h" #undef NCURSES_SP_FUNCS #define NCURSES_SP_FUNCS 0 #define NCURSES_SP_NAME(name) name #define NCURSES_SP_OUTC NCURSES_OUTC #endif # 1053 "./curses.h" /* attributes */ #define NCURSES_ATTR_SHIFT 8 #define NCURSES_BITS(mask,shift) (NCURSES_CAST(chtype,(mask)) << ((shift) + NCURSES_ATTR_SHIFT)) #define A_NORMAL (1U - 1U) #define A_ATTRIBUTES NCURSES_BITS(~(1U - 1U),0) #define A_CHARTEXT (NCURSES_BITS(1U,0) - 1U) #define A_COLOR NCURSES_BITS(((1U) << 8) - 1U,0) #define A_STANDOUT NCURSES_BITS(1U,8) #define A_UNDERLINE NCURSES_BITS(1U,9) #define A_REVERSE NCURSES_BITS(1U,10) #define A_BLINK NCURSES_BITS(1U,11) #define A_DIM NCURSES_BITS(1U,12) #define A_BOLD NCURSES_BITS(1U,13) #define A_ALTCHARSET NCURSES_BITS(1U,14) #define A_INVIS NCURSES_BITS(1U,15) #define A_PROTECT NCURSES_BITS(1U,16) #define A_HORIZONTAL NCURSES_BITS(1U,17) #define A_LEFT NCURSES_BITS(1U,18) #define A_LOW NCURSES_BITS(1U,19) #define A_RIGHT NCURSES_BITS(1U,20) #define A_TOP NCURSES_BITS(1U,21) #define A_VERTICAL NCURSES_BITS(1U,22) #if 0 /* disabled by -frewrite-includes */ #if 1 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 1080 "./curses.h" #define A_ITALIC NCURSES_BITS(1U,23) /* ncurses extension */ #endif # 1082 "./curses.h" /* * Most of the pseudo functions are macros that either provide compatibility * with older versions of curses, or provide inline functionality to improve * performance. */ /* * These pseudo functions are always implemented as macros: */ #define getyx(win,y,x) (y = getcury(win), x = getcurx(win)) #define getbegyx(win,y,x) (y = getbegy(win), x = getbegx(win)) #define getmaxyx(win,y,x) (y = getmaxy(win), x = getmaxx(win)) #define getparyx(win,y,x) (y = getpary(win), x = getparx(win)) #define getsyx(y,x) do { if (newscr) { \ if (is_leaveok(newscr)) \ (y) = (x) = -1; \ else \ getyx(newscr,(y), (x)); \ } \ } while(0) #define setsyx(y,x) do { if (newscr) { \ if ((y) == -1 && (x) == -1) \ leaveok(newscr, TRUE); \ else { \ leaveok(newscr, FALSE); \ wmove(newscr, (y), (x)); \ } \ } \ } while(0) #ifndef NCURSES_NOMACROS /* * These miscellaneous pseudo functions are provided for compatibility: */ #define wgetstr(w, s) wgetnstr(w, s, -1) #define getnstr(s, n) wgetnstr(stdscr, s, (n)) #define setterm(term) setupterm(term, 1, (int *)0) #define fixterm() reset_prog_mode() #define resetterm() reset_shell_mode() #define saveterm() def_prog_mode() #define crmode() cbreak() #define nocrmode() nocbreak() #define gettmode() /* It seems older SYSV curses versions define these */ #if 0 /* disabled by -frewrite-includes */ #if !NCURSES_OPAQUE #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 1136 "./curses.h" #define getattrs(win) NCURSES_CAST(int, NCURSES_OK_ADDR(win) ? (win)->_attrs : A_NORMAL) #define getcurx(win) (NCURSES_OK_ADDR(win) ? (win)->_curx : ERR) #define getcury(win) (NCURSES_OK_ADDR(win) ? (win)->_cury : ERR) #define getbegx(win) (NCURSES_OK_ADDR(win) ? (win)->_begx : ERR) #define getbegy(win) (NCURSES_OK_ADDR(win) ? (win)->_begy : ERR) #define getmaxx(win) (NCURSES_OK_ADDR(win) ? ((win)->_maxx + 1) : ERR) #define getmaxy(win) (NCURSES_OK_ADDR(win) ? ((win)->_maxy + 1) : ERR) #define getparx(win) (NCURSES_OK_ADDR(win) ? (win)->_parx : ERR) #define getpary(win) (NCURSES_OK_ADDR(win) ? (win)->_pary : ERR) #endif /* NCURSES_OPAQUE */ # 1146 "./curses.h" #define wstandout(win) (wattrset(win,A_STANDOUT)) #define wstandend(win) (wattrset(win,A_NORMAL)) #define wattron(win,at) wattr_on(win, NCURSES_CAST(attr_t, at), NULL) #define wattroff(win,at) wattr_off(win, NCURSES_CAST(attr_t, at), NULL) #if 0 /* disabled by -frewrite-includes */ #if !NCURSES_OPAQUE #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 1154 "./curses.h" #if 0 /* disabled by -frewrite-includes */ #if NCURSES_WATTR_MACROS #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 1155 "./curses.h" #if 0 /* disabled by -frewrite-includes */ #if NCURSES_WIDECHAR && 1 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 1156 "./curses.h" #define wattrset(win,at) \ (NCURSES_OK_ADDR(win) \ ? ((win)->_color = NCURSES_CAST(int, PAIR_NUMBER(at)), \ (win)->_attrs = NCURSES_CAST(attr_t, at), \ OK) \ : ERR) #else # 1163 "./curses.h" #define wattrset(win,at) \ (NCURSES_OK_ADDR(win) \ ? ((win)->_attrs = NCURSES_CAST(attr_t, at), \ OK) \ : ERR) #endif # 1169 "./curses.h" #endif /* NCURSES_WATTR_MACROS */ # 1170 "./curses.h" #endif /* NCURSES_OPAQUE */ # 1171 "./curses.h" #define scroll(win) wscrl(win,1) #define touchwin(win) wtouchln((win), 0, getmaxy(win), 1) #define touchline(win, s, c) wtouchln((win), s, c, 1) #define untouchwin(win) wtouchln((win), 0, getmaxy(win), 0) #define box(win, v, h) wborder(win, v, v, h, h, 0, 0, 0, 0) #define border(ls, rs, ts, bs, tl, tr, bl, br) wborder(stdscr, ls, rs, ts, bs, tl, tr, bl, br) #define hline(ch, n) whline(stdscr, ch, (n)) #define vline(ch, n) wvline(stdscr, ch, (n)) #define winstr(w, s) winnstr(w, s, -1) #define winchstr(w, s) winchnstr(w, s, -1) #define winsstr(w, s) winsnstr(w, s, -1) #if 0 /* disabled by -frewrite-includes */ #if !NCURSES_OPAQUE #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 1188 "./curses.h" #define redrawwin(win) wredrawln(win, 0, (NCURSES_OK_ADDR(win) ? (win)->_maxy+1 : -1)) #endif /* NCURSES_OPAQUE */ # 1190 "./curses.h" #define waddstr(win,str) waddnstr(win,str,-1) #define waddchstr(win,str) waddchnstr(win,str,-1) /* * These apply to the first 256 color pairs. */ #define COLOR_PAIR(n) (NCURSES_BITS((n), 0) & A_COLOR) #define PAIR_NUMBER(a) (NCURSES_CAST(int,((NCURSES_CAST(unsigned long,(a)) & A_COLOR) >> NCURSES_ATTR_SHIFT))) /* * pseudo functions for standard screen */ #define addch(ch) waddch(stdscr,(ch)) #define addchnstr(str,n) waddchnstr(stdscr,(str),(n)) #define addchstr(str) waddchstr(stdscr,(str)) #define addnstr(str,n) waddnstr(stdscr,(str),(n)) #define addstr(str) waddnstr(stdscr,(str),-1) #define attr_get(ap,cp,o) wattr_get(stdscr,(ap),(cp),(o)) #define attr_off(a,o) wattr_off(stdscr,(a),(o)) #define attr_on(a,o) wattr_on(stdscr,(a),(o)) #define attr_set(a,c,o) wattr_set(stdscr,(a),(c),(o)) #define attroff(at) wattroff(stdscr,(at)) #define attron(at) wattron(stdscr,(at)) #define attrset(at) wattrset(stdscr,(at)) #define bkgd(ch) wbkgd(stdscr,(ch)) #define bkgdset(ch) wbkgdset(stdscr,(ch)) #define chgat(n,a,c,o) wchgat(stdscr,(n),(a),(c),(o)) #define clear() wclear(stdscr) #define clrtobot() wclrtobot(stdscr) #define clrtoeol() wclrtoeol(stdscr) #define color_set(c,o) wcolor_set(stdscr,(c),(o)) #define delch() wdelch(stdscr) #define deleteln() winsdelln(stdscr,-1) #define echochar(c) wechochar(stdscr,(c)) #define erase() werase(stdscr) #define getch() wgetch(stdscr) #define getstr(str) wgetstr(stdscr,(str)) #define inch() winch(stdscr) #define inchnstr(s,n) winchnstr(stdscr,(s),(n)) #define inchstr(s) winchstr(stdscr,(s)) #define innstr(s,n) winnstr(stdscr,(s),(n)) #define insch(c) winsch(stdscr,(c)) #define insdelln(n) winsdelln(stdscr,(n)) #define insertln() winsdelln(stdscr,1) #define insnstr(s,n) winsnstr(stdscr,(s),(n)) #define insstr(s) winsstr(stdscr,(s)) #define instr(s) winstr(stdscr,(s)) #define move(y,x) wmove(stdscr,(y),(x)) #define refresh() wrefresh(stdscr) #define scrl(n) wscrl(stdscr,(n)) #define setscrreg(t,b) wsetscrreg(stdscr,(t),(b)) #define standend() wstandend(stdscr) #define standout() wstandout(stdscr) #define timeout(delay) wtimeout(stdscr,(delay)) #define wdeleteln(win) winsdelln(win,-1) #define winsertln(win) winsdelln(win,1) /* * mv functions */ #define mvwaddch(win,y,x,ch) (wmove((win),(y),(x)) == ERR ? ERR : waddch((win),(ch))) #define mvwaddchnstr(win,y,x,str,n) (wmove((win),(y),(x)) == ERR ? ERR : waddchnstr((win),(str),(n))) #define mvwaddchstr(win,y,x,str) (wmove((win),(y),(x)) == ERR ? ERR : waddchnstr((win),(str),-1)) #define mvwaddnstr(win,y,x,str,n) (wmove((win),(y),(x)) == ERR ? ERR : waddnstr((win),(str),(n))) #define mvwaddstr(win,y,x,str) (wmove((win),(y),(x)) == ERR ? ERR : waddnstr((win),(str),-1)) #define mvwchgat(win,y,x,n,a,c,o) (wmove((win),(y),(x)) == ERR ? ERR : wchgat((win),(n),(a),(c),(o))) #define mvwdelch(win,y,x) (wmove((win),(y),(x)) == ERR ? ERR : wdelch(win)) #define mvwgetch(win,y,x) (wmove((win),(y),(x)) == ERR ? ERR : wgetch(win)) #define mvwgetnstr(win,y,x,str,n) (wmove((win),(y),(x)) == ERR ? ERR : wgetnstr((win),(str),(n))) #define mvwgetstr(win,y,x,str) (wmove((win),(y),(x)) == ERR ? ERR : wgetstr((win),(str))) #define mvwhline(win,y,x,c,n) (wmove((win),(y),(x)) == ERR ? ERR : whline((win),(c),(n))) #define mvwinch(win,y,x) (wmove((win),(y),(x)) == ERR ? NCURSES_CAST(chtype, ERR) : winch(win)) #define mvwinchnstr(win,y,x,s,n) (wmove((win),(y),(x)) == ERR ? ERR : winchnstr((win),(s),(n))) #define mvwinchstr(win,y,x,s) (wmove((win),(y),(x)) == ERR ? ERR : winchstr((win),(s))) #define mvwinnstr(win,y,x,s,n) (wmove((win),(y),(x)) == ERR ? ERR : winnstr((win),(s),(n))) #define mvwinsch(win,y,x,c) (wmove((win),(y),(x)) == ERR ? ERR : winsch((win),(c))) #define mvwinsnstr(win,y,x,s,n) (wmove((win),(y),(x)) == ERR ? ERR : winsnstr((win),(s),(n))) #define mvwinsstr(win,y,x,s) (wmove((win),(y),(x)) == ERR ? ERR : winsstr((win),(s))) #define mvwinstr(win,y,x,s) (wmove((win),(y),(x)) == ERR ? ERR : winstr((win),(s))) #define mvwvline(win,y,x,c,n) (wmove((win),(y),(x)) == ERR ? ERR : wvline((win),(c),(n))) #define mvaddch(y,x,ch) mvwaddch(stdscr,(y),(x),(ch)) #define mvaddchnstr(y,x,str,n) mvwaddchnstr(stdscr,(y),(x),(str),(n)) #define mvaddchstr(y,x,str) mvwaddchstr(stdscr,(y),(x),(str)) #define mvaddnstr(y,x,str,n) mvwaddnstr(stdscr,(y),(x),(str),(n)) #define mvaddstr(y,x,str) mvwaddstr(stdscr,(y),(x),(str)) #define mvchgat(y,x,n,a,c,o) mvwchgat(stdscr,(y),(x),(n),(a),(c),(o)) #define mvdelch(y,x) mvwdelch(stdscr,(y),(x)) #define mvgetch(y,x) mvwgetch(stdscr,(y),(x)) #define mvgetnstr(y,x,str,n) mvwgetnstr(stdscr,(y),(x),(str),(n)) #define mvgetstr(y,x,str) mvwgetstr(stdscr,(y),(x),(str)) #define mvhline(y,x,c,n) mvwhline(stdscr,(y),(x),(c),(n)) #define mvinch(y,x) mvwinch(stdscr,(y),(x)) #define mvinchnstr(y,x,s,n) mvwinchnstr(stdscr,(y),(x),(s),(n)) #define mvinchstr(y,x,s) mvwinchstr(stdscr,(y),(x),(s)) #define mvinnstr(y,x,s,n) mvwinnstr(stdscr,(y),(x),(s),(n)) #define mvinsch(y,x,c) mvwinsch(stdscr,(y),(x),(c)) #define mvinsnstr(y,x,s,n) mvwinsnstr(stdscr,(y),(x),(s),(n)) #define mvinsstr(y,x,s) mvwinsstr(stdscr,(y),(x),(s)) #define mvinstr(y,x,s) mvwinstr(stdscr,(y),(x),(s)) #define mvvline(y,x,c,n) mvwvline(stdscr,(y),(x),(c),(n)) /* * Some wide-character functions can be implemented without the extensions. */ #if 0 /* disabled by -frewrite-includes */ #if !NCURSES_OPAQUE #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 1299 "./curses.h" #define getbkgd(win) (NCURSES_OK_ADDR(win) ? ((win)->_bkgd) : 0) #endif /* NCURSES_OPAQUE */ # 1301 "./curses.h" #define slk_attr_off(a,v) ((v) ? ERR : slk_attroff(a)) #define slk_attr_on(a,v) ((v) ? ERR : slk_attron(a)) #if 0 /* disabled by -frewrite-includes */ #if !NCURSES_OPAQUE #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 1306 "./curses.h" #if 0 /* disabled by -frewrite-includes */ #if NCURSES_WATTR_MACROS #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 1307 "./curses.h" #if 0 /* disabled by -frewrite-includes */ #if NCURSES_WIDECHAR && 1 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 1308 "./curses.h" #define wattr_set(win,a,p,opts) \ (NCURSES_OK_ADDR(win) \ ? ((void)((win)->_attrs = ((a) & ~A_COLOR), \ (win)->_color = (opts) ? *(int *)(opts) : (p)), \ OK) \ : ERR) #define wattr_get(win,a,p,opts) \ (NCURSES_OK_ADDR(win) \ ? ((void)(NCURSES_OK_ADDR(a) \ ? (*(a) = (win)->_attrs) \ : OK), \ (void)(NCURSES_OK_ADDR(p) \ ? (*(p) = (NCURSES_PAIRS_T) (win)->_color) \ : OK), \ (void)(NCURSES_OK_ADDR(opts) \ ? (*(int *)(opts) = (win)->_color) \ : OK), \ OK) \ : ERR) #else /* !(NCURSES_WIDECHAR && NCURSES_EXE_COLORS) */ # 1328 "./curses.h" #define wattr_set(win,a,p,opts) \ (NCURSES_OK_ADDR(win) \ ? ((void)((win)->_attrs = (((a) & ~A_COLOR) | \ (attr_t)COLOR_PAIR(p))), \ OK) \ : ERR) #define wattr_get(win,a,p,opts) \ (NCURSES_OK_ADDR(win) \ ? ((void)(NCURSES_OK_ADDR(a) \ ? (*(a) = (win)->_attrs) \ : OK), \ (void)(NCURSES_OK_ADDR(p) \ ? (*(p) = (NCURSES_PAIRS_T) PAIR_NUMBER((win)->_attrs)) \ : OK), \ OK) \ : ERR) #endif /* (NCURSES_WIDECHAR && NCURSES_EXE_COLORS) */ # 1345 "./curses.h" #endif /* NCURSES_WATTR_MACROS */ # 1346 "./curses.h" #endif /* NCURSES_OPAQUE */ # 1347 "./curses.h" /* * X/Open curses deprecates SVr4 vwprintw/vwscanw, which are supposed to use * varargs.h. It adds new calls vw_printw/vw_scanw, which are supposed to * use POSIX stdarg.h. The ncurses versions of vwprintw/vwscanw already * use stdarg.h, so... */ /* define vw_printw vwprintw */ /* define vw_scanw vwscanw */ /* * Export fallback function for use in C++ binding. */ #if 0 /* disabled by -frewrite-includes */ #if !1 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 1361 "./curses.h" #define vsscanf(a,b,c) _nc_vsscanf(a,b,c) NCURSES_EXPORT(int) vsscanf(const char *, const char *, va_list); #endif # 1364 "./curses.h" /* * These macros are extensions - not in X/Open Curses. */ #if 0 /* disabled by -frewrite-includes */ #if 1 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 1369 "./curses.h" #if 0 /* disabled by -frewrite-includes */ #if !NCURSES_OPAQUE #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 1370 "./curses.h" #define is_cleared(win) (NCURSES_OK_ADDR(win) ? (win)->_clear : FALSE) #define is_idcok(win) (NCURSES_OK_ADDR(win) ? (win)->_idcok : FALSE) #define is_idlok(win) (NCURSES_OK_ADDR(win) ? (win)->_idlok : FALSE) #define is_immedok(win) (NCURSES_OK_ADDR(win) ? (win)->_immed : FALSE) #define is_keypad(win) (NCURSES_OK_ADDR(win) ? (win)->_use_keypad : FALSE) #define is_leaveok(win) (NCURSES_OK_ADDR(win) ? (win)->_leaveok : FALSE) #define is_nodelay(win) (NCURSES_OK_ADDR(win) ? ((win)->_delay == 0) : FALSE) #define is_notimeout(win) (NCURSES_OK_ADDR(win) ? (win)->_notimeout : FALSE) #define is_pad(win) (NCURSES_OK_ADDR(win) ? ((win)->_flags & _ISPAD) != 0 : FALSE) #define is_scrollok(win) (NCURSES_OK_ADDR(win) ? (win)->_scroll : FALSE) #define is_subwin(win) (NCURSES_OK_ADDR(win) ? ((win)->_flags & _SUBWIN) != 0 : FALSE) #define is_syncok(win) (NCURSES_OK_ADDR(win) ? (win)->_sync : FALSE) #define wgetdelay(win) (NCURSES_OK_ADDR(win) ? (win)->_delay : 0) #define wgetparent(win) (NCURSES_OK_ADDR(win) ? (win)->_parent : 0) #define wgetscrreg(win,t,b) (NCURSES_OK_ADDR(win) ? (*(t) = (win)->_regtop, *(b) = (win)->_regbottom, OK) : ERR) #endif # 1386 "./curses.h" #endif # 1387 "./curses.h" /* * X/Open says this returns a bool; SVr4 also checked for out-of-range line. * The macro provides compatibility: */ #define is_linetouched(w,l) ((!(w) || ((l) > getmaxy(w)) || ((l) < 0)) ? ERR : (is_linetouched)((w),(l))) #endif /* NCURSES_NOMACROS */ # 1395 "./curses.h" /* * Public variables. * * Notes: * a. ESCDELAY was an undocumented feature under AIX curses. * It gives the ESC expire time in milliseconds. * b. ttytype is needed for backward compatibility */ #if 0 /* disabled by -frewrite-includes */ #if NCURSES_REENTRANT #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 1405 "./curses.h" NCURSES_WRAPPED_VAR(WINDOW *, curscr); NCURSES_WRAPPED_VAR(WINDOW *, newscr); NCURSES_WRAPPED_VAR(WINDOW *, stdscr); NCURSES_WRAPPED_VAR(char *, ttytype); NCURSES_WRAPPED_VAR(int, COLORS); NCURSES_WRAPPED_VAR(int, COLOR_PAIRS); NCURSES_WRAPPED_VAR(int, COLS); NCURSES_WRAPPED_VAR(int, ESCDELAY); NCURSES_WRAPPED_VAR(int, LINES); NCURSES_WRAPPED_VAR(int, TABSIZE); #define curscr NCURSES_PUBLIC_VAR(curscr()) #define newscr NCURSES_PUBLIC_VAR(newscr()) #define stdscr NCURSES_PUBLIC_VAR(stdscr()) #define ttytype NCURSES_PUBLIC_VAR(ttytype()) #define COLORS NCURSES_PUBLIC_VAR(COLORS()) #define COLOR_PAIRS NCURSES_PUBLIC_VAR(COLOR_PAIRS()) #define COLS NCURSES_PUBLIC_VAR(COLS()) #define ESCDELAY NCURSES_PUBLIC_VAR(ESCDELAY()) #define LINES NCURSES_PUBLIC_VAR(LINES()) #define TABSIZE NCURSES_PUBLIC_VAR(TABSIZE()) #else # 1429 "./curses.h" extern NCURSES_EXPORT_VAR(WINDOW *) curscr; extern NCURSES_EXPORT_VAR(WINDOW *) newscr; extern NCURSES_EXPORT_VAR(WINDOW *) stdscr; extern NCURSES_EXPORT_VAR(char) ttytype[]; extern NCURSES_EXPORT_VAR(int) COLORS; extern NCURSES_EXPORT_VAR(int) COLOR_PAIRS; extern NCURSES_EXPORT_VAR(int) COLS; extern NCURSES_EXPORT_VAR(int) ESCDELAY; extern NCURSES_EXPORT_VAR(int) LINES; extern NCURSES_EXPORT_VAR(int) TABSIZE; #endif # 1442 "./curses.h" /* * Pseudo-character tokens outside ASCII range. The curses wgetch() function * will return any given one of these only if the corresponding k- capability * is defined in your terminal's terminfo entry. * * Some keys (KEY_A1, etc) are arranged like this: * a1 up a3 * left b2 right * c1 down c3 * * A few key codes do not depend upon the terminfo entry. */ #define KEY_CODE_YES 0400 /* A wchar_t contains a key code */ #define KEY_MIN 0401 /* Minimum curses key */ #define KEY_BREAK 0401 /* Break key (unreliable) */ #define KEY_SRESET 0530 /* Soft (partial) reset (unreliable) */ #define KEY_RESET 0531 /* Reset or hard reset (unreliable) */ /* * These definitions were generated by ./MKkey_defs.sh /usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/Caps /usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/Caps-ncurses */ #define KEY_DOWN 0402 /* down-arrow key */ #define KEY_UP 0403 /* up-arrow key */ #define KEY_LEFT 0404 /* left-arrow key */ #define KEY_RIGHT 0405 /* right-arrow key */ #define KEY_HOME 0406 /* home key */ #define KEY_BACKSPACE 0407 /* backspace key */ #define KEY_F0 0410 /* Function keys. Space for 64 */ #define KEY_F(n) (KEY_F0+(n)) /* Value of function key n */ #define KEY_DL 0510 /* delete-line key */ #define KEY_IL 0511 /* insert-line key */ #define KEY_DC 0512 /* delete-character key */ #define KEY_IC 0513 /* insert-character key */ #define KEY_EIC 0514 /* sent by rmir or smir in insert mode */ #define KEY_CLEAR 0515 /* clear-screen or erase key */ #define KEY_EOS 0516 /* clear-to-end-of-screen key */ #define KEY_EOL 0517 /* clear-to-end-of-line key */ #define KEY_SF 0520 /* scroll-forward key */ #define KEY_SR 0521 /* scroll-backward key */ #define KEY_NPAGE 0522 /* next-page key */ #define KEY_PPAGE 0523 /* previous-page key */ #define KEY_STAB 0524 /* set-tab key */ #define KEY_CTAB 0525 /* clear-tab key */ #define KEY_CATAB 0526 /* clear-all-tabs key */ #define KEY_ENTER 0527 /* enter/send key */ #define KEY_PRINT 0532 /* print key */ #define KEY_LL 0533 /* lower-left key (home down) */ #define KEY_A1 0534 /* upper left of keypad */ #define KEY_A3 0535 /* upper right of keypad */ #define KEY_B2 0536 /* center of keypad */ #define KEY_C1 0537 /* lower left of keypad */ #define KEY_C3 0540 /* lower right of keypad */ #define KEY_BTAB 0541 /* back-tab key */ #define KEY_BEG 0542 /* begin key */ #define KEY_CANCEL 0543 /* cancel key */ #define KEY_CLOSE 0544 /* close key */ #define KEY_COMMAND 0545 /* command key */ #define KEY_COPY 0546 /* copy key */ #define KEY_CREATE 0547 /* create key */ #define KEY_END 0550 /* end key */ #define KEY_EXIT 0551 /* exit key */ #define KEY_FIND 0552 /* find key */ #define KEY_HELP 0553 /* help key */ #define KEY_MARK 0554 /* mark key */ #define KEY_MESSAGE 0555 /* message key */ #define KEY_MOVE 0556 /* move key */ #define KEY_NEXT 0557 /* next key */ #define KEY_OPEN 0560 /* open key */ #define KEY_OPTIONS 0561 /* options key */ #define KEY_PREVIOUS 0562 /* previous key */ #define KEY_REDO 0563 /* redo key */ #define KEY_REFERENCE 0564 /* reference key */ #define KEY_REFRESH 0565 /* refresh key */ #define KEY_REPLACE 0566 /* replace key */ #define KEY_RESTART 0567 /* restart key */ #define KEY_RESUME 0570 /* resume key */ #define KEY_SAVE 0571 /* save key */ #define KEY_SBEG 0572 /* shifted begin key */ #define KEY_SCANCEL 0573 /* shifted cancel key */ #define KEY_SCOMMAND 0574 /* shifted command key */ #define KEY_SCOPY 0575 /* shifted copy key */ #define KEY_SCREATE 0576 /* shifted create key */ #define KEY_SDC 0577 /* shifted delete-character key */ #define KEY_SDL 0600 /* shifted delete-line key */ #define KEY_SELECT 0601 /* select key */ #define KEY_SEND 0602 /* shifted end key */ #define KEY_SEOL 0603 /* shifted clear-to-end-of-line key */ #define KEY_SEXIT 0604 /* shifted exit key */ #define KEY_SFIND 0605 /* shifted find key */ #define KEY_SHELP 0606 /* shifted help key */ #define KEY_SHOME 0607 /* shifted home key */ #define KEY_SIC 0610 /* shifted insert-character key */ #define KEY_SLEFT 0611 /* shifted left-arrow key */ #define KEY_SMESSAGE 0612 /* shifted message key */ #define KEY_SMOVE 0613 /* shifted move key */ #define KEY_SNEXT 0614 /* shifted next key */ #define KEY_SOPTIONS 0615 /* shifted options key */ #define KEY_SPREVIOUS 0616 /* shifted previous key */ #define KEY_SPRINT 0617 /* shifted print key */ #define KEY_SREDO 0620 /* shifted redo key */ #define KEY_SREPLACE 0621 /* shifted replace key */ #define KEY_SRIGHT 0622 /* shifted right-arrow key */ #define KEY_SRSUME 0623 /* shifted resume key */ #define KEY_SSAVE 0624 /* shifted save key */ #define KEY_SSUSPEND 0625 /* shifted suspend key */ #define KEY_SUNDO 0626 /* shifted undo key */ #define KEY_SUSPEND 0627 /* suspend key */ #define KEY_UNDO 0630 /* undo key */ #define KEY_MOUSE 0631 /* Mouse event has occurred */ #ifdef NCURSES_EXT_FUNCS #define KEY_RESIZE 0632 /* Terminal resize event */ #endif # 1555 "./curses.h" #define KEY_MAX 0777 /* Maximum key value is 0632 */ /* $Id: curses.wide,v 1.50 2017/03/26 16:05:21 tom Exp $ */ /* * vile:cmode: * This file is part of ncurses, designed to be appended after curses.h.in * (see that file for the relevant copyright). */ #define _XOPEN_CURSES 1 #if 0 /* disabled by -frewrite-includes */ #if NCURSES_WIDECHAR #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 1566 "./curses.h" extern NCURSES_EXPORT_VAR(cchar_t *) _nc_wacs; #define NCURSES_WACS(c) (&_nc_wacs[NCURSES_CAST(unsigned char,(c))]) #define WACS_BSSB NCURSES_WACS('l') #define WACS_SSBB NCURSES_WACS('m') #define WACS_BBSS NCURSES_WACS('k') #define WACS_SBBS NCURSES_WACS('j') #define WACS_SBSS NCURSES_WACS('u') #define WACS_SSSB NCURSES_WACS('t') #define WACS_SSBS NCURSES_WACS('v') #define WACS_BSSS NCURSES_WACS('w') #define WACS_BSBS NCURSES_WACS('q') #define WACS_SBSB NCURSES_WACS('x') #define WACS_SSSS NCURSES_WACS('n') #define WACS_ULCORNER WACS_BSSB #define WACS_LLCORNER WACS_SSBB #define WACS_URCORNER WACS_BBSS #define WACS_LRCORNER WACS_SBBS #define WACS_RTEE WACS_SBSS #define WACS_LTEE WACS_SSSB #define WACS_BTEE WACS_SSBS #define WACS_TTEE WACS_BSSS #define WACS_HLINE WACS_BSBS #define WACS_VLINE WACS_SBSB #define WACS_PLUS WACS_SSSS #define WACS_S1 NCURSES_WACS('o') /* scan line 1 */ #define WACS_S9 NCURSES_WACS('s') /* scan line 9 */ #define WACS_DIAMOND NCURSES_WACS('`') /* diamond */ #define WACS_CKBOARD NCURSES_WACS('a') /* checker board */ #define WACS_DEGREE NCURSES_WACS('f') /* degree symbol */ #define WACS_PLMINUS NCURSES_WACS('g') /* plus/minus */ #define WACS_BULLET NCURSES_WACS('~') /* bullet */ /* Teletype 5410v1 symbols */ #define WACS_LARROW NCURSES_WACS(',') /* arrow left */ #define WACS_RARROW NCURSES_WACS('+') /* arrow right */ #define WACS_DARROW NCURSES_WACS('.') /* arrow down */ #define WACS_UARROW NCURSES_WACS('-') /* arrow up */ #define WACS_BOARD NCURSES_WACS('h') /* board of squares */ #define WACS_LANTERN NCURSES_WACS('i') /* lantern symbol */ #define WACS_BLOCK NCURSES_WACS('0') /* solid square block */ /* ncurses extensions */ #define WACS_S3 NCURSES_WACS('p') /* scan line 3 */ #define WACS_S7 NCURSES_WACS('r') /* scan line 7 */ #define WACS_LEQUAL NCURSES_WACS('y') /* less/equal */ #define WACS_GEQUAL NCURSES_WACS('z') /* greater/equal */ #define WACS_PI NCURSES_WACS('{') /* Pi */ #define WACS_NEQUAL NCURSES_WACS('|') /* not equal */ #define WACS_STERLING NCURSES_WACS('}') /* UK pound sign */ /* double lines */ #define WACS_BDDB NCURSES_WACS('C') #define WACS_DDBB NCURSES_WACS('D') #define WACS_BBDD NCURSES_WACS('B') #define WACS_DBBD NCURSES_WACS('A') #define WACS_DBDD NCURSES_WACS('G') #define WACS_DDDB NCURSES_WACS('F') #define WACS_DDBD NCURSES_WACS('H') #define WACS_BDDD NCURSES_WACS('I') #define WACS_BDBD NCURSES_WACS('R') #define WACS_DBDB NCURSES_WACS('Y') #define WACS_DDDD NCURSES_WACS('E') #define WACS_D_ULCORNER WACS_BDDB #define WACS_D_LLCORNER WACS_DDBB #define WACS_D_URCORNER WACS_BBDD #define WACS_D_LRCORNER WACS_DBBD #define WACS_D_RTEE WACS_DBDD #define WACS_D_LTEE WACS_DDDB #define WACS_D_BTEE WACS_DDBD #define WACS_D_TTEE WACS_BDDD #define WACS_D_HLINE WACS_BDBD #define WACS_D_VLINE WACS_DBDB #define WACS_D_PLUS WACS_DDDD /* thick lines */ #define WACS_BTTB NCURSES_WACS('L') #define WACS_TTBB NCURSES_WACS('M') #define WACS_BBTT NCURSES_WACS('K') #define WACS_TBBT NCURSES_WACS('J') #define WACS_TBTT NCURSES_WACS('U') #define WACS_TTTB NCURSES_WACS('T') #define WACS_TTBT NCURSES_WACS('V') #define WACS_BTTT NCURSES_WACS('W') #define WACS_BTBT NCURSES_WACS('Q') #define WACS_TBTB NCURSES_WACS('X') #define WACS_TTTT NCURSES_WACS('N') #define WACS_T_ULCORNER WACS_BTTB #define WACS_T_LLCORNER WACS_TTBB #define WACS_T_URCORNER WACS_BBTT #define WACS_T_LRCORNER WACS_TBBT #define WACS_T_RTEE WACS_TBTT #define WACS_T_LTEE WACS_TTTB #define WACS_T_BTEE WACS_TTBT #define WACS_T_TTEE WACS_BTTT #define WACS_T_HLINE WACS_BTBT #define WACS_T_VLINE WACS_TBTB #define WACS_T_PLUS WACS_TTTT /* * Function prototypes for wide-character operations. * * "generated" comments should include ":WIDEC" to make the corresponding * functions ifdef'd in lib_gen.c * * "implemented" comments do not need this marker. */ extern NCURSES_EXPORT(int) add_wch (const cchar_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) add_wchnstr (const cchar_t *, int); /* generated:WIDEC */ extern NCURSES_EXPORT(int) add_wchstr (const cchar_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) addnwstr (const wchar_t *, int); /* generated:WIDEC */ extern NCURSES_EXPORT(int) addwstr (const wchar_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) bkgrnd (const cchar_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(void) bkgrndset (const cchar_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) border_set (const cchar_t*,const cchar_t*,const cchar_t*,const cchar_t*,const cchar_t*,const cchar_t*,const cchar_t*,const cchar_t*); /* generated:WIDEC */ extern NCURSES_EXPORT(int) box_set (WINDOW *, const cchar_t *, const cchar_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) echo_wchar (const cchar_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) erasewchar (wchar_t*); /* implemented */ extern NCURSES_EXPORT(int) get_wch (wint_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) get_wstr (wint_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) getbkgrnd (cchar_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) getcchar (const cchar_t *, wchar_t*, attr_t*, NCURSES_PAIRS_T*, void*); /* implemented */ extern NCURSES_EXPORT(int) getn_wstr (wint_t *, int); /* generated:WIDEC */ extern NCURSES_EXPORT(int) hline_set (const cchar_t *, int); /* generated:WIDEC */ extern NCURSES_EXPORT(int) in_wch (cchar_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) in_wchnstr (cchar_t *, int); /* generated:WIDEC */ extern NCURSES_EXPORT(int) in_wchstr (cchar_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) innwstr (wchar_t *, int); /* generated:WIDEC */ extern NCURSES_EXPORT(int) ins_nwstr (const wchar_t *, int); /* generated:WIDEC */ extern NCURSES_EXPORT(int) ins_wch (const cchar_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) ins_wstr (const wchar_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) inwstr (wchar_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(NCURSES_CONST char*) key_name (wchar_t); /* implemented */ extern NCURSES_EXPORT(int) killwchar (wchar_t *); /* implemented */ extern NCURSES_EXPORT(int) mvadd_wch (int, int, const cchar_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) mvadd_wchnstr (int, int, const cchar_t *, int);/* generated:WIDEC */ extern NCURSES_EXPORT(int) mvadd_wchstr (int, int, const cchar_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) mvaddnwstr (int, int, const wchar_t *, int); /* generated:WIDEC */ extern NCURSES_EXPORT(int) mvaddwstr (int, int, const wchar_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) mvget_wch (int, int, wint_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) mvget_wstr (int, int, wint_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) mvgetn_wstr (int, int, wint_t *, int); /* generated:WIDEC */ extern NCURSES_EXPORT(int) mvhline_set (int, int, const cchar_t *, int); /* generated:WIDEC */ extern NCURSES_EXPORT(int) mvin_wch (int, int, cchar_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) mvin_wchnstr (int, int, cchar_t *, int); /* generated:WIDEC */ extern NCURSES_EXPORT(int) mvin_wchstr (int, int, cchar_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) mvinnwstr (int, int, wchar_t *, int); /* generated:WIDEC */ extern NCURSES_EXPORT(int) mvins_nwstr (int, int, const wchar_t *, int); /* generated:WIDEC */ extern NCURSES_EXPORT(int) mvins_wch (int, int, const cchar_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) mvins_wstr (int, int, const wchar_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) mvinwstr (int, int, wchar_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) mvvline_set (int, int, const cchar_t *, int); /* generated:WIDEC */ extern NCURSES_EXPORT(int) mvwadd_wch (WINDOW *, int, int, const cchar_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) mvwadd_wchnstr (WINDOW *, int, int, const cchar_t *, int); /* generated:WIDEC */ extern NCURSES_EXPORT(int) mvwadd_wchstr (WINDOW *, int, int, const cchar_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) mvwaddnwstr (WINDOW *, int, int, const wchar_t *, int);/* generated:WIDEC */ extern NCURSES_EXPORT(int) mvwaddwstr (WINDOW *, int, int, const wchar_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) mvwget_wch (WINDOW *, int, int, wint_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) mvwget_wstr (WINDOW *, int, int, wint_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) mvwgetn_wstr (WINDOW *, int, int, wint_t *, int);/* generated:WIDEC */ extern NCURSES_EXPORT(int) mvwhline_set (WINDOW *, int, int, const cchar_t *, int);/* generated:WIDEC */ extern NCURSES_EXPORT(int) mvwin_wch (WINDOW *, int, int, cchar_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) mvwin_wchnstr (WINDOW *, int,int, cchar_t *,int); /* generated:WIDEC */ extern NCURSES_EXPORT(int) mvwin_wchstr (WINDOW *, int, int, cchar_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) mvwinnwstr (WINDOW *, int, int, wchar_t *, int); /* generated:WIDEC */ extern NCURSES_EXPORT(int) mvwins_nwstr (WINDOW *, int,int, const wchar_t *,int); /* generated:WIDEC */ extern NCURSES_EXPORT(int) mvwins_wch (WINDOW *, int, int, const cchar_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) mvwins_wstr (WINDOW *, int, int, const wchar_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) mvwinwstr (WINDOW *, int, int, wchar_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) mvwvline_set (WINDOW *, int,int, const cchar_t *,int); /* generated:WIDEC */ extern NCURSES_EXPORT(int) pecho_wchar (WINDOW *, const cchar_t *); /* implemented */ extern NCURSES_EXPORT(int) setcchar (cchar_t *, const wchar_t *, const attr_t, NCURSES_PAIRS_T, const void *); /* implemented */ extern NCURSES_EXPORT(int) slk_wset (int, const wchar_t *, int); /* implemented */ extern NCURSES_EXPORT(attr_t) term_attrs (void); /* implemented */ extern NCURSES_EXPORT(int) unget_wch (const wchar_t); /* implemented */ extern NCURSES_EXPORT(int) vid_attr (attr_t, NCURSES_PAIRS_T, void *); /* implemented */ extern NCURSES_EXPORT(int) vid_puts (attr_t, NCURSES_PAIRS_T, void *, NCURSES_OUTC); /* implemented */ extern NCURSES_EXPORT(int) vline_set (const cchar_t *, int); /* generated:WIDEC */ extern NCURSES_EXPORT(int) wadd_wch (WINDOW *,const cchar_t *); /* implemented */ extern NCURSES_EXPORT(int) wadd_wchnstr (WINDOW *,const cchar_t *,int); /* implemented */ extern NCURSES_EXPORT(int) wadd_wchstr (WINDOW *,const cchar_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) waddnwstr (WINDOW *,const wchar_t *,int); /* implemented */ extern NCURSES_EXPORT(int) waddwstr (WINDOW *,const wchar_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) wbkgrnd (WINDOW *,const cchar_t *); /* implemented */ extern NCURSES_EXPORT(void) wbkgrndset (WINDOW *,const cchar_t *); /* implemented */ extern NCURSES_EXPORT(int) wborder_set (WINDOW *,const cchar_t*,const cchar_t*,const cchar_t*,const cchar_t*,const cchar_t*,const cchar_t*,const cchar_t*,const cchar_t*); /* implemented */ extern NCURSES_EXPORT(int) wecho_wchar (WINDOW *, const cchar_t *); /* implemented */ extern NCURSES_EXPORT(int) wget_wch (WINDOW *, wint_t *); /* implemented */ extern NCURSES_EXPORT(int) wget_wstr (WINDOW *, wint_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) wgetbkgrnd (WINDOW *, cchar_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) wgetn_wstr (WINDOW *, wint_t *, int); /* implemented */ extern NCURSES_EXPORT(int) whline_set (WINDOW *, const cchar_t *, int); /* implemented */ extern NCURSES_EXPORT(int) win_wch (WINDOW *, cchar_t *); /* implemented */ extern NCURSES_EXPORT(int) win_wchnstr (WINDOW *, cchar_t *, int); /* implemented */ extern NCURSES_EXPORT(int) win_wchstr (WINDOW *, cchar_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) winnwstr (WINDOW *, wchar_t *, int); /* implemented */ extern NCURSES_EXPORT(int) wins_nwstr (WINDOW *, const wchar_t *, int); /* implemented */ extern NCURSES_EXPORT(int) wins_wch (WINDOW *, const cchar_t *); /* implemented */ extern NCURSES_EXPORT(int) wins_wstr (WINDOW *, const wchar_t *); /* generated:WIDEC */ extern NCURSES_EXPORT(int) winwstr (WINDOW *, wchar_t *); /* implemented */ extern NCURSES_EXPORT(wchar_t*) wunctrl (cchar_t *); /* implemented */ extern NCURSES_EXPORT(int) wvline_set (WINDOW *, const cchar_t *, int); /* implemented */ #if 0 /* disabled by -frewrite-includes */ #if NCURSES_SP_FUNCS #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 1777 "./curses.h" extern NCURSES_EXPORT(attr_t) NCURSES_SP_NAME(term_attrs) (SCREEN*); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(unget_wch) (SCREEN*, const wchar_t); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(wchar_t*) NCURSES_SP_NAME(wunctrl) (SCREEN*, cchar_t *); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(vid_attr) (SCREEN*, attr_t, NCURSES_PAIRS_T, void *); /* implemented:SP_FUNC */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(vid_puts) (SCREEN*, attr_t, NCURSES_PAIRS_T, void *, NCURSES_SP_OUTC); /* implemented:SP_FUNC */ #endif # 1783 "./curses.h" #ifndef NCURSES_NOMACROS /* * XSI curses macros for XPG4 conformance. */ #define add_wch(c) wadd_wch(stdscr,(c)) #define add_wchnstr(str,n) wadd_wchnstr(stdscr,(str),(n)) #define add_wchstr(str) wadd_wchstr(stdscr,(str)) #define addnwstr(wstr,n) waddnwstr(stdscr,(wstr),(n)) #define addwstr(wstr) waddwstr(stdscr,(wstr)) #define bkgrnd(c) wbkgrnd(stdscr,(c)) #define bkgrndset(c) wbkgrndset(stdscr,(c)) #define border_set(l,r,t,b,tl,tr,bl,br) wborder_set(stdscr,(l),(r),(t),(b),tl,tr,bl,br) #define box_set(w,v,h) wborder_set((w),(v),(v),(h),(h),0,0,0,0) #define echo_wchar(c) wecho_wchar(stdscr,(c)) #define get_wch(c) wget_wch(stdscr,(c)) #define get_wstr(t) wget_wstr(stdscr,(t)) #define getbkgrnd(wch) wgetbkgrnd(stdscr,(wch)) #define getn_wstr(t,n) wgetn_wstr(stdscr,(t),(n)) #define hline_set(c,n) whline_set(stdscr,(c),(n)) #define in_wch(c) win_wch(stdscr,(c)) #define in_wchnstr(c,n) win_wchnstr(stdscr,(c),(n)) #define in_wchstr(c) win_wchstr(stdscr,(c)) #define innwstr(c,n) winnwstr(stdscr,(c),(n)) #define ins_nwstr(t,n) wins_nwstr(stdscr,(t),(n)) #define ins_wch(c) wins_wch(stdscr,(c)) #define ins_wstr(t) wins_wstr(stdscr,(t)) #define inwstr(c) winwstr(stdscr,(c)) #define vline_set(c,n) wvline_set(stdscr,(c),(n)) #define wadd_wchstr(win,str) wadd_wchnstr((win),(str),-1) #define waddwstr(win,wstr) waddnwstr((win),(wstr),-1) #define wget_wstr(w,t) wgetn_wstr((w),(t),-1) #define win_wchstr(w,c) win_wchnstr((w),(c),-1) #define wins_wstr(w,t) wins_nwstr((w),(t),-1) #if 0 /* disabled by -frewrite-includes */ #if !NCURSES_OPAQUE #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 1820 "./curses.h" #define wgetbkgrnd(win,wch) (NCURSES_OK_ADDR(wch) ? ((win) ? (*(wch) = (win)->_bkgrnd) : *(wch), OK) : ERR) #endif # 1822 "./curses.h" #define mvadd_wch(y,x,c) mvwadd_wch(stdscr,(y),(x),(c)) #define mvadd_wchnstr(y,x,s,n) mvwadd_wchnstr(stdscr,(y),(x),(s),(n)) #define mvadd_wchstr(y,x,s) mvwadd_wchstr(stdscr,(y),(x),(s)) #define mvaddnwstr(y,x,wstr,n) mvwaddnwstr(stdscr,(y),(x),(wstr),(n)) #define mvaddwstr(y,x,wstr) mvwaddwstr(stdscr,(y),(x),(wstr)) #define mvget_wch(y,x,c) mvwget_wch(stdscr,(y),(x),(c)) #define mvget_wstr(y,x,t) mvwget_wstr(stdscr,(y),(x),(t)) #define mvgetn_wstr(y,x,t,n) mvwgetn_wstr(stdscr,(y),(x),(t),(n)) #define mvhline_set(y,x,c,n) mvwhline_set(stdscr,(y),(x),(c),(n)) #define mvin_wch(y,x,c) mvwin_wch(stdscr,(y),(x),(c)) #define mvin_wchnstr(y,x,c,n) mvwin_wchnstr(stdscr,(y),(x),(c),(n)) #define mvin_wchstr(y,x,c) mvwin_wchstr(stdscr,(y),(x),(c)) #define mvinnwstr(y,x,c,n) mvwinnwstr(stdscr,(y),(x),(c),(n)) #define mvins_nwstr(y,x,t,n) mvwins_nwstr(stdscr,(y),(x),(t),(n)) #define mvins_wch(y,x,c) mvwins_wch(stdscr,(y),(x),(c)) #define mvins_wstr(y,x,t) mvwins_wstr(stdscr,(y),(x),(t)) #define mvinwstr(y,x,c) mvwinwstr(stdscr,(y),(x),(c)) #define mvvline_set(y,x,c,n) mvwvline_set(stdscr,(y),(x),(c),(n)) #define mvwadd_wch(win,y,x,c) (wmove(win,(y),(x)) == ERR ? ERR : wadd_wch((win),(c))) #define mvwadd_wchnstr(win,y,x,s,n) (wmove(win,(y),(x)) == ERR ? ERR : wadd_wchnstr((win),(s),(n))) #define mvwadd_wchstr(win,y,x,s) (wmove(win,(y),(x)) == ERR ? ERR : wadd_wchstr((win),(s))) #define mvwaddnwstr(win,y,x,wstr,n) (wmove(win,(y),(x)) == ERR ? ERR : waddnwstr((win),(wstr),(n))) #define mvwaddwstr(win,y,x,wstr) (wmove(win,(y),(x)) == ERR ? ERR : waddwstr((win),(wstr))) #define mvwget_wch(win,y,x,c) (wmove(win,(y),(x)) == ERR ? ERR : wget_wch((win),(c))) #define mvwget_wstr(win,y,x,t) (wmove(win,(y),(x)) == ERR ? ERR : wget_wstr((win),(t))) #define mvwgetn_wstr(win,y,x,t,n) (wmove(win,(y),(x)) == ERR ? ERR : wgetn_wstr((win),(t),(n))) #define mvwhline_set(win,y,x,c,n) (wmove(win,(y),(x)) == ERR ? ERR : whline_set((win),(c),(n))) #define mvwin_wch(win,y,x,c) (wmove(win,(y),(x)) == ERR ? ERR : win_wch((win),(c))) #define mvwin_wchnstr(win,y,x,c,n) (wmove(win,(y),(x)) == ERR ? ERR : win_wchnstr((win),(c),(n))) #define mvwin_wchstr(win,y,x,c) (wmove(win,(y),(x)) == ERR ? ERR : win_wchstr((win),(c))) #define mvwinnwstr(win,y,x,c,n) (wmove(win,(y),(x)) == ERR ? ERR : winnwstr((win),(c),(n))) #define mvwins_nwstr(win,y,x,t,n) (wmove(win,(y),(x)) == ERR ? ERR : wins_nwstr((win),(t),(n))) #define mvwins_wch(win,y,x,c) (wmove(win,(y),(x)) == ERR ? ERR : wins_wch((win),(c))) #define mvwins_wstr(win,y,x,t) (wmove(win,(y),(x)) == ERR ? ERR : wins_wstr((win),(t))) #define mvwinwstr(win,y,x,c) (wmove(win,(y),(x)) == ERR ? ERR : winwstr((win),(c))) #define mvwvline_set(win,y,x,c,n) (wmove(win,(y),(x)) == ERR ? ERR : wvline_set((win),(c),(n))) #endif /* NCURSES_NOMACROS */ # 1862 "./curses.h" #if 0 /* disabled by -frewrite-includes */ #if defined(TRACE) || defined(NCURSES_TEST) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 1864 "./curses.h" extern NCURSES_EXPORT(const char *) _nc_viswbuf(const wchar_t *); extern NCURSES_EXPORT(const char *) _nc_viswibuf(const wint_t *); #endif # 1867 "./curses.h" #endif /* NCURSES_WIDECHAR */ # 1869 "./curses.h" /* $Id: curses.tail,v 1.25 2019/12/14 22:28:39 tom Exp $ */ /* * vile:cmode: * This file is part of ncurses, designed to be appended after curses.h.in * (see that file for the relevant copyright). */ /* mouse interface */ #if 0 /* disabled by -frewrite-includes */ #if NCURSES_MOUSE_VERSION > 1 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 1879 "./curses.h" #define NCURSES_MOUSE_MASK(b,m) ((m) << (((b) - 1) * 5)) #else # 1881 "./curses.h" #define NCURSES_MOUSE_MASK(b,m) ((m) << (((b) - 1) * 6)) #endif # 1883 "./curses.h" #define NCURSES_BUTTON_RELEASED 001L #define NCURSES_BUTTON_PRESSED 002L #define NCURSES_BUTTON_CLICKED 004L #define NCURSES_DOUBLE_CLICKED 010L #define NCURSES_TRIPLE_CLICKED 020L #define NCURSES_RESERVED_EVENT 040L /* event masks */ #define BUTTON1_RELEASED NCURSES_MOUSE_MASK(1, NCURSES_BUTTON_RELEASED) #define BUTTON1_PRESSED NCURSES_MOUSE_MASK(1, NCURSES_BUTTON_PRESSED) #define BUTTON1_CLICKED NCURSES_MOUSE_MASK(1, NCURSES_BUTTON_CLICKED) #define BUTTON1_DOUBLE_CLICKED NCURSES_MOUSE_MASK(1, NCURSES_DOUBLE_CLICKED) #define BUTTON1_TRIPLE_CLICKED NCURSES_MOUSE_MASK(1, NCURSES_TRIPLE_CLICKED) #define BUTTON2_RELEASED NCURSES_MOUSE_MASK(2, NCURSES_BUTTON_RELEASED) #define BUTTON2_PRESSED NCURSES_MOUSE_MASK(2, NCURSES_BUTTON_PRESSED) #define BUTTON2_CLICKED NCURSES_MOUSE_MASK(2, NCURSES_BUTTON_CLICKED) #define BUTTON2_DOUBLE_CLICKED NCURSES_MOUSE_MASK(2, NCURSES_DOUBLE_CLICKED) #define BUTTON2_TRIPLE_CLICKED NCURSES_MOUSE_MASK(2, NCURSES_TRIPLE_CLICKED) #define BUTTON3_RELEASED NCURSES_MOUSE_MASK(3, NCURSES_BUTTON_RELEASED) #define BUTTON3_PRESSED NCURSES_MOUSE_MASK(3, NCURSES_BUTTON_PRESSED) #define BUTTON3_CLICKED NCURSES_MOUSE_MASK(3, NCURSES_BUTTON_CLICKED) #define BUTTON3_DOUBLE_CLICKED NCURSES_MOUSE_MASK(3, NCURSES_DOUBLE_CLICKED) #define BUTTON3_TRIPLE_CLICKED NCURSES_MOUSE_MASK(3, NCURSES_TRIPLE_CLICKED) #define BUTTON4_RELEASED NCURSES_MOUSE_MASK(4, NCURSES_BUTTON_RELEASED) #define BUTTON4_PRESSED NCURSES_MOUSE_MASK(4, NCURSES_BUTTON_PRESSED) #define BUTTON4_CLICKED NCURSES_MOUSE_MASK(4, NCURSES_BUTTON_CLICKED) #define BUTTON4_DOUBLE_CLICKED NCURSES_MOUSE_MASK(4, NCURSES_DOUBLE_CLICKED) #define BUTTON4_TRIPLE_CLICKED NCURSES_MOUSE_MASK(4, NCURSES_TRIPLE_CLICKED) /* * In 32 bits the version-1 scheme does not provide enough space for a 5th * button, unless we choose to change the ABI by omitting the reserved-events. */ #if 0 /* disabled by -frewrite-includes */ #if NCURSES_MOUSE_VERSION > 1 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 1921 "./curses.h" #define BUTTON5_RELEASED NCURSES_MOUSE_MASK(5, NCURSES_BUTTON_RELEASED) #define BUTTON5_PRESSED NCURSES_MOUSE_MASK(5, NCURSES_BUTTON_PRESSED) #define BUTTON5_CLICKED NCURSES_MOUSE_MASK(5, NCURSES_BUTTON_CLICKED) #define BUTTON5_DOUBLE_CLICKED NCURSES_MOUSE_MASK(5, NCURSES_DOUBLE_CLICKED) #define BUTTON5_TRIPLE_CLICKED NCURSES_MOUSE_MASK(5, NCURSES_TRIPLE_CLICKED) #define BUTTON_CTRL NCURSES_MOUSE_MASK(6, 0001L) #define BUTTON_SHIFT NCURSES_MOUSE_MASK(6, 0002L) #define BUTTON_ALT NCURSES_MOUSE_MASK(6, 0004L) #define REPORT_MOUSE_POSITION NCURSES_MOUSE_MASK(6, 0010L) #else # 1934 "./curses.h" #define BUTTON1_RESERVED_EVENT NCURSES_MOUSE_MASK(1, NCURSES_RESERVED_EVENT) #define BUTTON2_RESERVED_EVENT NCURSES_MOUSE_MASK(2, NCURSES_RESERVED_EVENT) #define BUTTON3_RESERVED_EVENT NCURSES_MOUSE_MASK(3, NCURSES_RESERVED_EVENT) #define BUTTON4_RESERVED_EVENT NCURSES_MOUSE_MASK(4, NCURSES_RESERVED_EVENT) #define BUTTON_CTRL NCURSES_MOUSE_MASK(5, 0001L) #define BUTTON_SHIFT NCURSES_MOUSE_MASK(5, 0002L) #define BUTTON_ALT NCURSES_MOUSE_MASK(5, 0004L) #define REPORT_MOUSE_POSITION NCURSES_MOUSE_MASK(5, 0010L) #endif # 1946 "./curses.h" #define ALL_MOUSE_EVENTS (REPORT_MOUSE_POSITION - 1) /* macros to extract single event-bits from masks */ #define BUTTON_RELEASE(e, x) ((e) & NCURSES_MOUSE_MASK(x, 001)) #define BUTTON_PRESS(e, x) ((e) & NCURSES_MOUSE_MASK(x, 002)) #define BUTTON_CLICK(e, x) ((e) & NCURSES_MOUSE_MASK(x, 004)) #define BUTTON_DOUBLE_CLICK(e, x) ((e) & NCURSES_MOUSE_MASK(x, 010)) #define BUTTON_TRIPLE_CLICK(e, x) ((e) & NCURSES_MOUSE_MASK(x, 020)) #define BUTTON_RESERVED_EVENT(e, x) ((e) & NCURSES_MOUSE_MASK(x, 040)) typedef struct { short id; /* ID to distinguish multiple devices */ int x, y, z; /* event coordinates (character-cell) */ mmask_t bstate; /* button state bits */ } MEVENT; extern NCURSES_EXPORT(bool) has_mouse(void); extern NCURSES_EXPORT(int) getmouse (MEVENT *); extern NCURSES_EXPORT(int) ungetmouse (MEVENT *); extern NCURSES_EXPORT(mmask_t) mousemask (mmask_t, mmask_t *); extern NCURSES_EXPORT(bool) wenclose (const WINDOW *, int, int); extern NCURSES_EXPORT(int) mouseinterval (int); extern NCURSES_EXPORT(bool) wmouse_trafo (const WINDOW*, int*, int*, bool); extern NCURSES_EXPORT(bool) mouse_trafo (int*, int*, bool); /* generated */ #if 0 /* disabled by -frewrite-includes */ #if NCURSES_SP_FUNCS #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 1975 "./curses.h" extern NCURSES_EXPORT(bool) NCURSES_SP_NAME(has_mouse) (SCREEN*); extern NCURSES_EXPORT(int) NCURSES_SP_NAME(getmouse) (SCREEN*, MEVENT *); extern NCURSES_EXPORT(int) NCURSES_SP_NAME(ungetmouse) (SCREEN*,MEVENT *); extern NCURSES_EXPORT(mmask_t) NCURSES_SP_NAME(mousemask) (SCREEN*, mmask_t, mmask_t *); extern NCURSES_EXPORT(int) NCURSES_SP_NAME(mouseinterval) (SCREEN*, int); #endif # 1981 "./curses.h" #ifndef NCURSES_NOMACROS #define mouse_trafo(y,x,to_screen) wmouse_trafo(stdscr,y,x,to_screen) #endif # 1985 "./curses.h" /* other non-XSI functions */ extern NCURSES_EXPORT(int) mcprint (char *, int); /* direct data to printer */ extern NCURSES_EXPORT(int) has_key (int); /* do we have given key? */ #if 0 /* disabled by -frewrite-includes */ #if NCURSES_SP_FUNCS #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 1992 "./curses.h" extern NCURSES_EXPORT(int) NCURSES_SP_NAME(has_key) (SCREEN*, int); /* do we have given key? */ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(mcprint) (SCREEN*, char *, int); /* direct data to printer */ #endif # 1995 "./curses.h" /* Debugging : use with libncurses_g.a */ extern NCURSES_EXPORT(void) _tracef (const char *, ...) GCC_PRINTFLIKE(1,2); extern NCURSES_EXPORT(char *) _traceattr (attr_t); extern NCURSES_EXPORT(char *) _traceattr2 (int, chtype); extern NCURSES_EXPORT(char *) _tracechar (int); extern NCURSES_EXPORT(char *) _tracechtype (chtype); extern NCURSES_EXPORT(char *) _tracechtype2 (int, chtype); #if 0 /* disabled by -frewrite-includes */ #if NCURSES_WIDECHAR #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 2005 "./curses.h" #define _tracech_t _tracecchar_t extern NCURSES_EXPORT(char *) _tracecchar_t (const cchar_t *); #define _tracech_t2 _tracecchar_t2 extern NCURSES_EXPORT(char *) _tracecchar_t2 (int, const cchar_t *); #else # 2010 "./curses.h" #define _tracech_t _tracechtype #define _tracech_t2 _tracechtype2 #endif # 2013 "./curses.h" extern NCURSES_EXPORT(void) trace (const unsigned) GCC_DEPRECATED("use curses_trace"); extern NCURSES_EXPORT(unsigned) curses_trace (const unsigned); /* trace masks */ #define TRACE_DISABLE 0x0000 /* turn off tracing */ #define TRACE_TIMES 0x0001 /* trace user and system times of updates */ #define TRACE_TPUTS 0x0002 /* trace tputs calls */ #define TRACE_UPDATE 0x0004 /* trace update actions, old & new screens */ #define TRACE_MOVE 0x0008 /* trace cursor moves and scrolls */ #define TRACE_CHARPUT 0x0010 /* trace all character outputs */ #define TRACE_ORDINARY 0x001F /* trace all update actions */ #define TRACE_CALLS 0x0020 /* trace all curses calls */ #define TRACE_VIRTPUT 0x0040 /* trace virtual character puts */ #define TRACE_IEVENT 0x0080 /* trace low-level input processing */ #define TRACE_BITS 0x0100 /* trace state of TTY control bits */ #define TRACE_ICALLS 0x0200 /* trace internal/nested calls */ #define TRACE_CCALLS 0x0400 /* trace per-character calls */ #define TRACE_DATABASE 0x0800 /* trace read/write of terminfo/termcap data */ #define TRACE_ATTRS 0x1000 /* trace attribute updates */ #define TRACE_SHIFT 13 /* number of bits in the trace masks */ #define TRACE_MAXIMUM ((1 << TRACE_SHIFT) - 1) /* maximum trace level */ #if 0 /* disabled by -frewrite-includes */ #if defined(TRACE) || defined(NCURSES_TEST) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 2037 "./curses.h" extern NCURSES_EXPORT_VAR(int) _nc_optimize_enable; /* enable optimizations */ extern NCURSES_EXPORT(const char *) _nc_visbuf (const char *); #define OPTIMIZE_MVCUR 0x01 /* cursor movement optimization */ #define OPTIMIZE_HASHMAP 0x02 /* diff hashing to detect scrolls */ #define OPTIMIZE_SCROLL 0x04 /* scroll optimization */ #define OPTIMIZE_ALL 0xff /* enable all optimizations (dflt) */ #endif # 2044 "./curses.h" extern NCURSES_EXPORT(void) exit_curses (int) GCC_NORETURN; #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 2047 "./curses.h" # 2048 "./curses.h" #ifdef __cplusplus #ifndef NCURSES_NOMACROS /* these names conflict with STL */ #undef box #undef clear #undef erase #undef move #undef refresh #endif /* NCURSES_NOMACROS */ # 2061 "./curses.h" } #endif # 2064 "./curses.h" #endif /* __NCURSES_H */ # 2066 "./curses.h" # 56 "./unctrl.h" 2 #undef unctrl NCURSES_EXPORT(NCURSES_CONST char *) unctrl (chtype); #if 0 /* disabled by -frewrite-includes */ #if 1 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 61 "./unctrl.h" NCURSES_EXPORT(NCURSES_CONST char *) NCURSES_SP_NAME(unctrl) (SCREEN*, chtype); #endif # 63 "./unctrl.h" #ifdef __cplusplus } #endif # 67 "./unctrl.h" #endif /* NCURSES_UNCTRL_H_incl */ # 69 "./unctrl.h" # 2048 "./curses.h" 2 #ifdef __cplusplus #ifndef NCURSES_NOMACROS /* these names conflict with STL */ #undef box #undef clear #undef erase #undef move #undef refresh #endif /* NCURSES_NOMACROS */ # 2061 "./curses.h" } #endif # 2064 "./curses.h" #endif /* __NCURSES_H */ # 2066 "./curses.h" # 362 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" 2 #if 0 /* disabled by -frewrite-includes */ #if !(defined(NCURSES_WGETCH_EVENTS) && defined(NEED_KEY_EVENT)) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 364 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #undef KEY_EVENT /* reduce compiler-warnings with Visual C++ */ #endif # 366 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" typedef struct { int red, green, blue; /* what color_content() returns */ int r, g, b; /* params to init_color() */ int init; /* true if we called init_color() */ } color_t; typedef union { struct { unsigned char red; unsigned char green; unsigned char blue; } bits; /* bits per color-value in RGB */ unsigned value; } rgb_bits_t; /* * If curses.h did not expose the SCREEN-functions, then we do not need the * parameter in the corresponding unextended functions. */ #define USE_SP_FUNC_SUPPORT NCURSES_SP_FUNCS #define USE_EXT_SP_FUNC_SUPPORT (NCURSES_SP_FUNCS && NCURSES_EXT_FUNCS) #if 0 /* disabled by -frewrite-includes */ #if NCURSES_SP_FUNCS #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 393 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define SP_PARM sp /* use parameter */ #define NCURSES_SP_ARG SP_PARM #define NCURSES_SP_DCL SCREEN *NCURSES_SP_ARG #define NCURSES_SP_DCL0 NCURSES_SP_DCL #define NCURSES_SP_ARGx NCURSES_SP_ARG, #define NCURSES_SP_DCLx SCREEN *NCURSES_SP_ARGx #else # 400 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define SP_PARM SP /* use global variable */ #define NCURSES_SP_ARG #define NCURSES_SP_DCL #define NCURSES_SP_DCL0 void #define NCURSES_SP_ARGx #define NCURSES_SP_DCLx #endif # 407 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 408 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" # 1 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_panel.h" 1 /**************************************************************************** * Copyright 2020 Thomas E. Dickey * * Copyright 1998-2009,2017 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * * "Software"), to deal in the Software without restriction, including * * without limitation the rights to use, copy, modify, merge, publish, * * distribute, distribute with modifications, sublicense, and/or sell * * copies of the Software, and to permit persons to whom the Software is * * furnished to do so, subject to the following conditions: * * * * The above copyright notice and this permission notice shall be included * * in all copies or substantial portions of the Software. * * * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. * * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, * * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * * THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * * * Except as contained in this notice, the name(s) of the above copyright * * holders shall not be used in advertising or otherwise to promote the * * sale, use or other dealings in this Software without prior written * * authorization. * ****************************************************************************/ /**************************************************************************** * Author: Juergen Pfeifer 1997 * * and: Thomas E. Dickey * ****************************************************************************/ /* * $Id: nc_panel.h,v 1.10 2020/02/02 23:34:34 tom Exp $ * * nc_panel.h * * Headerfile to provide an interface for the panel layer into * the SCREEN structure of the ncurses core. */ #ifndef NC_PANEL_H #define NC_PANEL_H 1 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 47 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_panel.h" # 48 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_panel.h" #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 48 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_panel.h" # 49 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_panel.h" #ifdef __cplusplus extern "C" { #endif # 54 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_panel.h" struct panel; /* Forward Declaration */ struct panelhook { struct panel *top_panel; struct panel *bottom_panel; struct panel *stdscr_pseudo_panel; #if 0 /* disabled by -frewrite-includes */ #if NO_LEAKS #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 63 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_panel.h" int (*destroy) (struct panel *); #endif # 65 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_panel.h" }; struct screen; /* Forward declaration */ /* Retrieve the panelhook of the specified screen */ extern NCURSES_EXPORT(struct panelhook *) _nc_panelhook (void); #if 0 /* disabled by -frewrite-includes */ #if NCURSES_SP_FUNCS #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 72 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_panel.h" extern NCURSES_EXPORT(struct panelhook *) NCURSES_SP_NAME(_nc_panelhook) (SCREEN *); #endif # 75 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_panel.h" #ifdef __cplusplus } #endif # 79 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_panel.h" #endif /* NC_PANEL_H */ # 81 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_panel.h" # 409 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" 2 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 410 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" # 1 "./term.h" 1 /**************************************************************************** * Copyright 2018-2019,2020 Thomas E. Dickey * * Copyright 1998-2013,2017 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * * "Software"), to deal in the Software without restriction, including * * without limitation the rights to use, copy, modify, merge, publish, * * distribute, distribute with modifications, sublicense, and/or sell * * copies of the Software, and to permit persons to whom the Software is * * furnished to do so, subject to the following conditions: * * * * The above copyright notice and this permission notice shall be included * * in all copies or substantial portions of the Software. * * * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. * * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, * * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * * THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * * * Except as contained in this notice, the name(s) of the above copyright * * holders shall not be used in advertising or otherwise to promote the * * sale, use or other dealings in this Software without prior written * * authorization. * ****************************************************************************/ /****************************************************************************/ /* Author: Zeyd M. Ben-Halim 1992,1995 */ /* and: Eric S. Raymond */ /* and: Thomas E. Dickey 1995-on */ /****************************************************************************/ /* $Id: MKterm.h.awk.in,v 1.78 2020/10/31 23:14:24 tom Exp $ */ /* ** term.h -- Definition of struct term */ #ifndef NCURSES_TERM_H_incl #define NCURSES_TERM_H_incl 1 #undef NCURSES_VERSION #define NCURSES_VERSION "6.2" #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 48 "./term.h" # 49 "./term.h" #ifdef __cplusplus extern "C" { #endif # 53 "./term.h" /* Make this file self-contained by providing defaults for the HAVE_TERMIO[S]_H * definition (based on the system for which this was configured). */ #ifndef __NCURSES_H typedef struct screen SCREEN; #if 0 /* disabled by -frewrite-includes */ #if 1 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 63 "./term.h" #undef NCURSES_SP_FUNCS #define NCURSES_SP_FUNCS 20210220 #undef NCURSES_SP_NAME #define NCURSES_SP_NAME(name) name##_sp /* Define the sp-funcs helper function */ #undef NCURSES_SP_OUTC #define NCURSES_SP_OUTC NCURSES_SP_NAME(NCURSES_OUTC) typedef int (*NCURSES_SP_OUTC)(SCREEN*, int); #endif # 73 "./term.h" #endif /* __NCURSES_H */ # 75 "./term.h" #undef NCURSES_CONST #define NCURSES_CONST const #undef NCURSES_SBOOL #define NCURSES_SBOOL char #undef NCURSES_USE_DATABASE #define NCURSES_USE_DATABASE 1 #undef NCURSES_USE_TERMCAP #define NCURSES_USE_TERMCAP 1 #undef NCURSES_XNAMES #define NCURSES_XNAMES 1 /* We will use these symbols to hide differences between * termios/termio/sgttyb interfaces. */ #undef TTY #undef SET_TTY #undef GET_TTY /* Assume POSIX termio if we have the header and function */ /* #if HAVE_TERMIOS_H && HAVE_TCGETATTR */ #if 0 /* disabled by -frewrite-includes */ #if 1 && 1 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 101 "./term.h" #undef TERMIOS #define TERMIOS 1 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 105 "./term.h" # 1 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/termios.h" 1 3 4 /*- * SPDX-License-Identifier: BSD-3-Clause * * Copyright (c) 1988, 1989, 1993, 1994 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * @(#)termios.h 8.3 (Berkeley) 3/28/94 * $FreeBSD$ */ #ifndef _TERMIOS_H_ #define _TERMIOS_H_ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 38 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/termios.h" 3 4 # 39 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/termios.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 39 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/termios.h" 3 4 # 1 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_termios.h" 1 3 4 /*- * SPDX-License-Identifier: BSD-3-Clause * * Copyright (c) 1988, 1989, 1993, 1994 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * @(#)termios.h 8.3 (Berkeley) 3/28/94 * $FreeBSD$ */ #ifndef _SYS__TERMIOS_H_ #define _SYS__TERMIOS_H_ /* * Special Control Characters * * Index into c_cc[] character array. * * Name Subscript Enabled by */ #define VEOF 0 /* ICANON */ #define VEOL 1 /* ICANON */ #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 48 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_termios.h" 3 4 #define VEOL2 2 /* ICANON together with IEXTEN */ #endif # 50 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_termios.h" 3 4 #define VERASE 3 /* ICANON */ #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 52 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_termios.h" 3 4 #define VWERASE 4 /* ICANON together with IEXTEN */ #endif # 54 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_termios.h" 3 4 #define VKILL 5 /* ICANON */ #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 56 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_termios.h" 3 4 #define VREPRINT 6 /* ICANON together with IEXTEN */ #define VERASE2 7 /* ICANON */ #endif # 59 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_termios.h" 3 4 /* 7 ex-spare 1 */ #define VINTR 8 /* ISIG */ #define VQUIT 9 /* ISIG */ #define VSUSP 10 /* ISIG */ #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 64 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_termios.h" 3 4 #define VDSUSP 11 /* ISIG together with IEXTEN */ #endif # 66 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_termios.h" 3 4 #define VSTART 12 /* IXON, IXOFF */ #define VSTOP 13 /* IXON, IXOFF */ #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 69 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_termios.h" 3 4 #define VLNEXT 14 /* IEXTEN */ #define VDISCARD 15 /* IEXTEN */ #endif # 72 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_termios.h" 3 4 #define VMIN 16 /* !ICANON */ #define VTIME 17 /* !ICANON */ #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 75 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_termios.h" 3 4 #define VSTATUS 18 /* ICANON together with IEXTEN */ /* 19 spare 2 */ #endif # 78 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_termios.h" 3 4 #define NCCS 20 #define _POSIX_VDISABLE 0xff /* * Input flags - software input processing */ #define IGNBRK 0x00000001 /* ignore BREAK condition */ #define BRKINT 0x00000002 /* map BREAK to SIGINTR */ #define IGNPAR 0x00000004 /* ignore (discard) parity errors */ #define PARMRK 0x00000008 /* mark parity and framing errors */ #define INPCK 0x00000010 /* enable checking of parity errors */ #define ISTRIP 0x00000020 /* strip 8th bit off chars */ #define INLCR 0x00000040 /* map NL into CR */ #define IGNCR 0x00000080 /* ignore CR */ #define ICRNL 0x00000100 /* map CR to NL (ala CRMOD) */ #define IXON 0x00000200 /* enable output flow control */ #define IXOFF 0x00000400 /* enable input flow control */ #if 0 /* disabled by -frewrite-includes */ #if __XSI_VISIBLE || __POSIX_VISIBLE >= 200809 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 97 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_termios.h" 3 4 #define IXANY 0x00000800 /* any char will restart after stop */ #endif # 99 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_termios.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 100 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_termios.h" 3 4 #define IMAXBEL 0x00002000 /* ring bell on input queue full */ #endif # 102 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_termios.h" 3 4 /* * Output flags - software output processing */ #define OPOST 0x00000001 /* enable following output processing */ #if 0 /* disabled by -frewrite-includes */ #if __XSI_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 108 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_termios.h" 3 4 #define ONLCR 0x00000002 /* map NL to CR-NL (ala CRMOD) */ #endif # 110 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_termios.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 111 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_termios.h" 3 4 #define TABDLY 0x00000004 /* tab delay mask */ #define TAB0 0x00000000 /* no tab delay and expansion */ #define TAB3 0x00000004 /* expand tabs to spaces */ #define ONOEOT 0x00000008 /* discard EOT's (^D) on output) */ #endif # 116 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_termios.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __XSI_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 117 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_termios.h" 3 4 #define OCRNL 0x00000010 /* map CR to NL on output */ #define ONOCR 0x00000020 /* no CR output at column 0 */ #define ONLRET 0x00000040 /* NL performs CR function */ #endif # 121 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_termios.h" 3 4 /* * Control flags - hardware control of terminal */ #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 126 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_termios.h" 3 4 #define CIGNORE 0x00000001 /* ignore control flags */ #endif # 128 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_termios.h" 3 4 #define CSIZE 0x00000300 /* character size mask */ #define CS5 0x00000000 /* 5 bits (pseudo) */ #define CS6 0x00000100 /* 6 bits */ #define CS7 0x00000200 /* 7 bits */ #define CS8 0x00000300 /* 8 bits */ #define CSTOPB 0x00000400 /* send 2 stop bits */ #define CREAD 0x00000800 /* enable receiver */ #define PARENB 0x00001000 /* parity enable */ #define PARODD 0x00002000 /* odd parity, else even */ #define HUPCL 0x00004000 /* hang up on last close */ #define CLOCAL 0x00008000 /* ignore modem status lines */ #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 140 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_termios.h" 3 4 #define CCTS_OFLOW 0x00010000 /* CTS flow control of output */ #define CRTSCTS (CCTS_OFLOW | CRTS_IFLOW) #define CRTS_IFLOW 0x00020000 /* RTS flow control of input */ #define CDTR_IFLOW 0x00040000 /* DTR flow control of input */ #define CDSR_OFLOW 0x00080000 /* DSR flow control of output */ #define CCAR_OFLOW 0x00100000 /* DCD flow control of output */ #define CNO_RTSDTR 0x00200000 /* Do not assert RTS or DTR automatically */ #endif # 148 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_termios.h" 3 4 /* * "Local" flags - dumping ground for other state * * Warning: some flags in this structure begin with * the letter "I" and look like they belong in the * input flag. */ #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 158 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_termios.h" 3 4 #define ECHOKE 0x00000001 /* visual erase for line kill */ #endif # 160 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_termios.h" 3 4 #define ECHOE 0x00000002 /* visually erase chars */ #define ECHOK 0x00000004 /* echo NL after line kill */ #define ECHO 0x00000008 /* enable echoing */ #define ECHONL 0x00000010 /* echo NL even if ECHO is off */ #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 165 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_termios.h" 3 4 #define ECHOPRT 0x00000020 /* visual erase mode for hardcopy */ #define ECHOCTL 0x00000040 /* echo control chars as ^(Char) */ #endif # 168 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_termios.h" 3 4 #define ISIG 0x00000080 /* enable signals INTR, QUIT, [D]SUSP */ #define ICANON 0x00000100 /* canonicalize input lines */ #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 171 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_termios.h" 3 4 #define ALTWERASE 0x00000200 /* use alternate WERASE algorithm */ #endif # 173 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_termios.h" 3 4 #define IEXTEN 0x00000400 /* enable DISCARD and LNEXT */ #define EXTPROC 0x00000800 /* external processing */ #define TOSTOP 0x00400000 /* stop background jobs from output */ #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 177 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_termios.h" 3 4 #define FLUSHO 0x00800000 /* output being flushed (state) */ #define NOKERNINFO 0x02000000 /* no kernel output from VSTATUS */ #define PENDIN 0x20000000 /* XXX retype pending input (state) */ #endif # 181 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_termios.h" 3 4 #define NOFLSH 0x80000000 /* don't flush after interrupt */ /* * Standard speeds */ #define B0 0 #define B50 50 #define B75 75 #define B110 110 #define B134 134 #define B150 150 #define B200 200 #define B300 300 #define B600 600 #define B1200 1200 #define B1800 1800 #define B2400 2400 #define B4800 4800 #define B9600 9600 #define B19200 19200 #define B38400 38400 #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 203 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_termios.h" 3 4 #define B7200 7200 #define B14400 14400 #define B28800 28800 #define B57600 57600 #define B76800 76800 #define B115200 115200 #define B230400 230400 #define B460800 460800 #define B500000 500000 #define B921600 921600 #define B1000000 1000000U #define B1500000 1500000U #define B2000000 2000000U #define B2500000 2500000U #define B3000000 3000000U #define B3500000 3500000U #define B4000000 4000000U #define EXTA 19200 #define EXTB 38400 #endif # 223 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_termios.h" 3 4 typedef unsigned int tcflag_t; typedef unsigned char cc_t; typedef unsigned int speed_t; struct termios { tcflag_t c_iflag; /* input flags */ tcflag_t c_oflag; /* output flags */ tcflag_t c_cflag; /* control flags */ tcflag_t c_lflag; /* local flags */ cc_t c_cc[NCCS]; /* control chars */ speed_t c_ispeed; /* input speed */ speed_t c_ospeed; /* output speed */ }; #endif /* !_SYS__TERMIOS_H_ */ # 239 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_termios.h" 3 4 # 40 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/termios.h" 2 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 40 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/termios.h" 3 4 # 41 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/termios.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 42 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/termios.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 42 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/termios.h" 3 4 # 1 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_winsize.h" 1 3 4 /*- * SPDX-License-Identifier: BSD-3-Clause * * Copyright (c) 1988, 1989, 1993, 1994 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * @(#)ttycom.h 8.1 (Berkeley) 3/28/94 * $FreeBSD$ */ #ifndef _SYS__WINSIZE_H_ #define _SYS__WINSIZE_H_ /* * Window/terminal size structure. This information is stored by the kernel * in order to provide a consistent interface, but is not used by the kernel. */ struct winsize { unsigned short ws_row; /* rows, in characters */ unsigned short ws_col; /* columns, in characters */ unsigned short ws_xpixel; /* horizontal size, pixels */ unsigned short ws_ypixel; /* vertical size, pixels */ }; #endif /* !_SYS__WINSIZE_H_ */ # 50 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/_winsize.h" 3 4 # 43 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/termios.h" 2 3 4 #endif # 44 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/termios.h" 3 4 #ifndef _PID_T_DECLARED typedef __pid_t pid_t; #define _PID_T_DECLARED #endif # 49 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/termios.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 51 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/termios.h" 3 4 #define OXTABS TAB3 #define MDMBUF CCAR_OFLOW #endif # 54 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/termios.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 56 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/termios.h" 3 4 #define CCEQ(val, c) ((c) == (val) && (val) != _POSIX_VDISABLE) #endif # 58 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/termios.h" 3 4 /* * Commands passed to tcsetattr() for setting the termios structure. */ #define TCSANOW 0 /* make change immediate */ #define TCSADRAIN 1 /* drain output, then change */ #define TCSAFLUSH 2 /* drain output, flush input */ #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 66 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/termios.h" 3 4 #define TCSASOFT 0x10 /* flag - don't alter h.w. state */ #endif # 68 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/termios.h" 3 4 #define TCIFLUSH 1 #define TCOFLUSH 2 #define TCIOFLUSH 3 #define TCOOFF 1 #define TCOON 2 #define TCIOFF 3 #define TCION 4 __BEGIN_DECLS speed_t cfgetispeed(const struct termios *); speed_t cfgetospeed(const struct termios *); int cfsetispeed(struct termios *, speed_t); int cfsetospeed(struct termios *, speed_t); int tcgetattr(int, struct termios *); int tcsetattr(int, int, const struct termios *); int tcdrain(int); int tcflow(int, int); int tcflush(int, int); int tcsendbreak(int, int); #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 200112 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 90 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/termios.h" 3 4 pid_t tcgetsid(int); #endif # 92 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/termios.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 93 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/termios.h" 3 4 int tcsetsid(int, pid_t); void cfmakeraw(struct termios *); void cfmakesane(struct termios *); int cfsetspeed(struct termios *, speed_t); int tcgetwinsize(int, struct winsize *); int tcsetwinsize(int, const struct winsize *); #endif # 102 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/termios.h" 3 4 __END_DECLS #endif /* !_TERMIOS_H_ */ # 105 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/termios.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 107 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/termios.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 107 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/termios.h" 3 4 # 1 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/ttycom.h" 1 3 4 /*- * SPDX-License-Identifier: BSD-3-Clause * * Copyright (c) 1982, 1986, 1990, 1993, 1994 * The Regents of the University of California. All rights reserved. * (c) UNIX System Laboratories, Inc. * All or some portions of this file are derived from material licensed * to the University of California by American Telephone and Telegraph * Co. or Unix System Laboratories, Inc. and are reproduced herein with * the permission of UNIX System Laboratories, Inc. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * @(#)ttycom.h 8.1 (Berkeley) 3/28/94 * $FreeBSD$ */ #ifndef _SYS_TTYCOM_H_ #define _SYS_TTYCOM_H_ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 43 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/ttycom.h" 3 4 # 1 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/ioccom.h" 1 3 4 /*- * SPDX-License-Identifier: BSD-3-Clause * * Copyright (c) 1982, 1986, 1990, 1993, 1994 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * @(#)ioccom.h 8.3 (Berkeley) 1/9/95 * $FreeBSD$ */ #ifndef _SYS_IOCCOM_H_ #define _SYS_IOCCOM_H_ /* * Ioctl's have the command encoded in the lower word, and the size of * any in or out parameters in the upper word. The high 3 bits of the * upper word are used to encode the in/out status of the parameter. * * 31 29 28 16 15 8 7 0 * +---------------------------------------------------------------+ * | I/O | Parameter Length | Command Group | Command | * +---------------------------------------------------------------+ */ #define IOCPARM_SHIFT 13 /* number of bits for ioctl size */ #define IOCPARM_MASK ((1 << IOCPARM_SHIFT) - 1) /* parameter length mask */ #define IOCPARM_LEN(x) (((x) >> 16) & IOCPARM_MASK) #define IOCBASECMD(x) ((x) & ~(IOCPARM_MASK << 16)) #define IOCGROUP(x) (((x) >> 8) & 0xff) #define IOCPARM_MAX (1 << IOCPARM_SHIFT) /* max size of ioctl */ #define IOC_VOID 0x20000000UL /* no parameters */ #define IOC_OUT 0x40000000UL /* copy out parameters */ #define IOC_IN 0x80000000UL /* copy in parameters */ #define IOC_INOUT (IOC_IN|IOC_OUT)/* copy parameters in and out */ #define IOC_DIRMASK (IOC_VOID|IOC_OUT|IOC_IN)/* mask for IN/OUT/VOID */ #define _IOC(inout,group,num,len) ((unsigned long) \ ((inout) | (((len) & IOCPARM_MASK) << 16) | ((group) << 8) | (num))) #define _IO(g,n) _IOC(IOC_VOID, (g), (n), 0) #define _IOWINT(g,n) _IOC(IOC_VOID, (g), (n), sizeof(int)) #define _IOR(g,n,t) _IOC(IOC_OUT, (g), (n), sizeof(t)) #define _IOW(g,n,t) _IOC(IOC_IN, (g), (n), sizeof(t)) /* this should be _IORW, but stdio got there first */ #define _IOWR(g,n,t) _IOC(IOC_INOUT, (g), (n), sizeof(t)) /* Replace length/type in an ioctl command. */ #define _IOC_NEWLEN(ioc, len) \ (((~(IOCPARM_MASK << 16)) & (ioc)) | (((len) & IOCPARM_MASK) << 16)) #define _IOC_NEWTYPE(ioc, type) _IOC_NEWLEN((ioc), sizeof(type)) #ifdef _KERNEL #if 0 /* disabled by -frewrite-includes */ #if defined(COMPAT_FREEBSD6) || defined(COMPAT_FREEBSD5) || \ defined(COMPAT_FREEBSD4) || defined(COMPAT_43) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 79 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/ioccom.h" 3 4 #define IOCPARM_IVAL(x) ((int)(intptr_t)(void *)*(caddr_t *)(void *)(x)) #endif # 81 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/ioccom.h" 3 4 #define _IOC_INVALID (_IOC_VOID|_IOC_INOUT) /* Never valid cmd value, use as filler */ #else # 86 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/ioccom.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 87 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/ioccom.h" 3 4 # 88 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/ioccom.h" 3 4 __BEGIN_DECLS int ioctl(int, unsigned long, ...); __END_DECLS #endif # 94 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/ioccom.h" 3 4 #endif /* !_SYS_IOCCOM_H_ */ # 96 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/ioccom.h" 3 4 # 44 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/ttycom.h" 2 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 44 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/ttycom.h" 3 4 # 45 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/ttycom.h" 3 4 /* * Tty ioctl's except for those supported only for backwards compatibility * with the old tty driver. */ /* 0-2 compat */ /* 3-7 unused */ /* 8-10 compat */ /* 11-12 unused */ #define TIOCEXCL _IO('t', 13) /* set exclusive use of tty */ #define TIOCNXCL _IO('t', 14) /* reset exclusive use of tty */ #define TIOCGPTN _IOR('t', 15, int) /* Get pts number. */ #define TIOCFLUSH _IOW('t', 16, int) /* flush buffers */ /* 17-18 compat */ #define TIOCGETA _IOR('t', 19, struct termios) /* get termios struct */ #define TIOCSETA _IOW('t', 20, struct termios) /* set termios struct */ #define TIOCSETAW _IOW('t', 21, struct termios) /* drain output, set */ #define TIOCSETAF _IOW('t', 22, struct termios) /* drn out, fls in, set */ /* 23-25 unused */ #define TIOCGETD _IOR('t', 26, int) /* get line discipline */ #define TIOCSETD _IOW('t', 27, int) /* set line discipline */ #define TIOCPTMASTER _IO('t', 28) /* pts master validation */ /* 29-85 unused */ #define TIOCGDRAINWAIT _IOR('t', 86, int) /* get ttywait timeout */ #define TIOCSDRAINWAIT _IOW('t', 87, int) /* set ttywait timeout */ /* 88 unused */ /* 89-91 conflicts: tun and tap */ #define TIOCTIMESTAMP _IOR('t', 89, struct timeval) /* enable/get timestamp * of last input event */ #define TIOCMGDTRWAIT _IOR('t', 90, int) /* modem: get wait on close */ #define TIOCMSDTRWAIT _IOW('t', 91, int) /* modem: set wait on close */ /* 92-93 tun and tap */ /* 94-97 conflicts: tun and tap */ #define TIOCDRAIN _IO('t', 94) /* wait till output drained */ #define TIOCSIG _IOWINT('t', 95) /* pty: generate signal */ #define TIOCEXT _IOW('t', 96, int) /* pty: external processing */ #define TIOCSCTTY _IO('t', 97) /* become controlling tty */ #define TIOCCONS _IOW('t', 98, int) /* become virtual console */ #define TIOCGSID _IOR('t', 99, int) /* get session id */ /* 100 unused */ #define TIOCSTAT _IO('t', 101) /* simulate ^T status message */ #define TIOCUCNTL _IOW('t', 102, int) /* pty: set/clr usr cntl mode */ #define UIOCCMD(n) _IO('u', n) /* usr cntl op "n" */ #define TIOCSWINSZ _IOW('t', 103, struct winsize) /* set window size */ #define TIOCGWINSZ _IOR('t', 104, struct winsize) /* get window size */ /* 105 unused */ #define TIOCMGET _IOR('t', 106, int) /* get all modem bits */ #define TIOCM_LE 0001 /* line enable */ #define TIOCM_DTR 0002 /* data terminal ready */ #define TIOCM_RTS 0004 /* request to send */ #define TIOCM_ST 0010 /* secondary transmit */ #define TIOCM_SR 0020 /* secondary receive */ #define TIOCM_CTS 0040 /* clear to send */ #define TIOCM_DCD 0100 /* data carrier detect */ #define TIOCM_RI 0200 /* ring indicate */ #define TIOCM_DSR 0400 /* data set ready */ #define TIOCM_CD TIOCM_DCD #define TIOCM_CAR TIOCM_DCD #define TIOCM_RNG TIOCM_RI #define TIOCMBIC _IOW('t', 107, int) /* bic modem bits */ #define TIOCMBIS _IOW('t', 108, int) /* bis modem bits */ #define TIOCMSET _IOW('t', 109, int) /* set all modem bits */ #define TIOCSTART _IO('t', 110) /* start output, like ^Q */ #define TIOCSTOP _IO('t', 111) /* stop output, like ^S */ #define TIOCPKT _IOW('t', 112, int) /* pty: set/clear packet mode */ #define TIOCPKT_DATA 0x00 /* data packet */ #define TIOCPKT_FLUSHREAD 0x01 /* flush packet */ #define TIOCPKT_FLUSHWRITE 0x02 /* flush packet */ #define TIOCPKT_STOP 0x04 /* stop output */ #define TIOCPKT_START 0x08 /* start output */ #define TIOCPKT_NOSTOP 0x10 /* no more ^S, ^Q */ #define TIOCPKT_DOSTOP 0x20 /* now do ^S ^Q */ #define TIOCPKT_IOCTL 0x40 /* state change of pty driver */ #define TIOCNOTTY _IO('t', 113) /* void tty association */ #define TIOCSTI _IOW('t', 114, char) /* simulate terminal input */ #define TIOCOUTQ _IOR('t', 115, int) /* output queue size */ /* 116-117 compat */ #define TIOCSPGRP _IOW('t', 118, int) /* set pgrp of tty */ #define TIOCGPGRP _IOR('t', 119, int) /* get pgrp of tty */ #define TIOCCDTR _IO('t', 120) /* clear data terminal ready */ #define TIOCSDTR _IO('t', 121) /* set data terminal ready */ #define TIOCCBRK _IO('t', 122) /* clear break bit */ #define TIOCSBRK _IO('t', 123) /* set break bit */ /* 124-127 compat */ #define TTYDISC 0 /* termios tty line discipline */ #define SLIPDISC 4 /* serial IP discipline */ #define PPPDISC 5 /* PPP discipline */ #define NETGRAPHDISC 6 /* Netgraph tty node discipline */ #define H4DISC 7 /* Netgraph Bluetooth H4 discipline */ #endif /* !_SYS_TTYCOM_H_ */ # 138 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/ttycom.h" 3 4 # 108 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/termios.h" 2 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 108 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/termios.h" 3 4 # 1 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/ttydefaults.h" 1 3 4 /*- * SPDX-License-Identifier: BSD-3-Clause * * Copyright (c) 1982, 1986, 1993 * The Regents of the University of California. All rights reserved. * (c) UNIX System Laboratories, Inc. * All or some portions of this file are derived from material licensed * to the University of California by American Telephone and Telegraph * Co. or Unix System Laboratories, Inc. and are reproduced herein with * the permission of UNIX System Laboratories, Inc. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * @(#)ttydefaults.h 8.4 (Berkeley) 1/21/94 * $FreeBSD$ */ /* * System wide defaults for terminal state. */ #ifndef _SYS_TTYDEFAULTS_H_ #define _SYS_TTYDEFAULTS_H_ /* * Defaults on "first" open. */ #define TTYDEF_IFLAG (BRKINT | ICRNL | IMAXBEL | IXON | IXANY) #define TTYDEF_OFLAG (OPOST | ONLCR) #define TTYDEF_LFLAG_NOECHO (ICANON | ISIG | IEXTEN) #define TTYDEF_LFLAG_ECHO (TTYDEF_LFLAG_NOECHO \ | ECHO | ECHOE | ECHOKE | ECHOCTL) #define TTYDEF_LFLAG TTYDEF_LFLAG_ECHO #define TTYDEF_CFLAG (CREAD | CS8 | HUPCL) #define TTYDEF_SPEED (B9600) /* * Control Character Defaults */ /* * XXX: A lot of code uses lowercase characters, but control-character * conversion is actually only valid when applied to uppercase * characters. We just treat lowercase characters as if they were * inserted as uppercase. */ #define CTRL(x) ((x) >= 'a' && (x) <= 'z' ? \ ((x) - 'a' + 1) : (((x) - 'A' + 1) & 0x7f)) #define CEOF CTRL('D') #define CEOL 0xff /* XXX avoid _POSIX_VDISABLE */ #define CERASE CTRL('?') #define CERASE2 CTRL('H') #define CINTR CTRL('C') #define CSTATUS CTRL('T') #define CKILL CTRL('U') #define CMIN 1 #define CQUIT CTRL('\\') #define CSUSP CTRL('Z') #define CTIME 0 #define CDSUSP CTRL('Y') #define CSTART CTRL('Q') #define CSTOP CTRL('S') #define CLNEXT CTRL('V') #define CDISCARD CTRL('O') #define CWERASE CTRL('W') #define CREPRINT CTRL('R') #define CEOT CEOF /* compat */ #define CBRK CEOL #define CRPRNT CREPRINT #define CFLUSH CDISCARD /* PROTECTED INCLUSION ENDS HERE */ #endif /* !_SYS_TTYDEFAULTS_H_ */ # 95 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/ttydefaults.h" 3 4 /* * #define TTYDEFCHARS to include an array of default control characters. */ #ifdef TTYDEFCHARS #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 101 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/ttydefaults.h" 3 4 # 102 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/ttydefaults.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 102 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/ttydefaults.h" 3 4 # 103 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/ttydefaults.h" 3 4 static const cc_t ttydefchars[] = { CEOF, CEOL, CEOL, CERASE, CWERASE, CKILL, CREPRINT, CERASE2, CINTR, CQUIT, CSUSP, CDSUSP, CSTART, CSTOP, CLNEXT, CDISCARD, CMIN, CTIME, CSTATUS, _POSIX_VDISABLE }; _Static_assert(sizeof(ttydefchars) / sizeof(cc_t) == NCCS, "Size of ttydefchars does not match NCCS"); #undef TTYDEFCHARS #endif /* TTYDEFCHARS */ # 114 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/sys/ttydefaults.h" 3 4 # 109 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/termios.h" 2 3 4 #endif # 110 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/termios.h" 3 4 # 106 "./term.h" 2 #define TTY struct termios #else /* !HAVE_TERMIOS_H */ # 109 "./term.h" /* #if HAVE_TERMIO_H */ #if 0 /* disabled by -frewrite-includes */ #if 0 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 112 "./term.h" #undef TERMIOS #define TERMIOS 1 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 116 "./term.h" # 117 "./term.h" #define TTY struct termio #else /* !HAVE_TERMIO_H */ # 120 "./term.h" #if 0 /* disabled by -frewrite-includes */ #if (defined(_WIN32) || defined(_WIN64)) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 122 "./term.h" #if 0 /* disabled by -frewrite-includes */ #if @EXP_WIN32_DRIVER@ #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 123 "./term.h" #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 123 "./term.h" # 124 "./term.h" #define TTY struct winconmode #else # 126 "./term.h" #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 126 "./term.h" # 127 "./term.h" #define TTY struct termios #endif # 129 "./term.h" #else # 130 "./term.h" #undef TERMIOS #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 131 "./term.h" # 132 "./term.h" #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 132 "./term.h" # 133 "./term.h" #define TTY struct sgttyb #endif /* MINGW32 */ # 135 "./term.h" #endif /* HAVE_TERMIO_H */ # 136 "./term.h" #endif /* HAVE_TERMIOS_H */ # 138 "./term.h" #ifdef TERMIOS #define GET_TTY(fd, buf) tcgetattr(fd, buf) #define SET_TTY(fd, buf) tcsetattr(fd, TCSADRAIN, buf) #if 0 /* disabled by -frewrite-includes */ #if 0 #elif @EXP_WIN32_DRIVER@ && (defined(_WIN32) || defined(_WIN64)) #endif #endif /* disabled by -frewrite-includes */ #elif 0 /* evaluated by -frewrite-includes */ # 143 "./term.h" #define GET_TTY(fd, buf) _nc_console_getmode(_nc_console_fd2handle(fd),buf) #define SET_TTY(fd, buf) _nc_console_setmode(_nc_console_fd2handle(fd),buf) #else # 146 "./term.h" #define GET_TTY(fd, buf) gtty(fd, buf) #define SET_TTY(fd, buf) stty(fd, buf) #endif # 149 "./term.h" #ifndef GCC_NORETURN #define GCC_NORETURN /* nothing */ #endif # 153 "./term.h" #define NAMESIZE 256 /* The cast works because TERMTYPE is the first data in TERMINAL */ #define CUR ((TERMTYPE *)(cur_term))-> #define auto_left_margin CUR Booleans[0] #define auto_right_margin CUR Booleans[1] #define no_esc_ctlc CUR Booleans[2] #define ceol_standout_glitch CUR Booleans[3] #define eat_newline_glitch CUR Booleans[4] #define erase_overstrike CUR Booleans[5] #define generic_type CUR Booleans[6] #define hard_copy CUR Booleans[7] #define has_meta_key CUR Booleans[8] #define has_status_line CUR Booleans[9] #define insert_null_glitch CUR Booleans[10] #define memory_above CUR Booleans[11] #define memory_below CUR Booleans[12] #define move_insert_mode CUR Booleans[13] #define move_standout_mode CUR Booleans[14] #define over_strike CUR Booleans[15] #define status_line_esc_ok CUR Booleans[16] #define dest_tabs_magic_smso CUR Booleans[17] #define tilde_glitch CUR Booleans[18] #define transparent_underline CUR Booleans[19] #define xon_xoff CUR Booleans[20] #define needs_xon_xoff CUR Booleans[21] #define prtr_silent CUR Booleans[22] #define hard_cursor CUR Booleans[23] #define non_rev_rmcup CUR Booleans[24] #define no_pad_char CUR Booleans[25] #define non_dest_scroll_region CUR Booleans[26] #define can_change CUR Booleans[27] #define back_color_erase CUR Booleans[28] #define hue_lightness_saturation CUR Booleans[29] #define col_addr_glitch CUR Booleans[30] #define cr_cancels_micro_mode CUR Booleans[31] #define has_print_wheel CUR Booleans[32] #define row_addr_glitch CUR Booleans[33] #define semi_auto_right_margin CUR Booleans[34] #define cpi_changes_res CUR Booleans[35] #define lpi_changes_res CUR Booleans[36] #define columns CUR Numbers[0] #define init_tabs CUR Numbers[1] #define lines CUR Numbers[2] #define lines_of_memory CUR Numbers[3] #define magic_cookie_glitch CUR Numbers[4] #define padding_baud_rate CUR Numbers[5] #define virtual_terminal CUR Numbers[6] #define width_status_line CUR Numbers[7] #define num_labels CUR Numbers[8] #define label_height CUR Numbers[9] #define label_width CUR Numbers[10] #define max_attributes CUR Numbers[11] #define maximum_windows CUR Numbers[12] #define max_colors CUR Numbers[13] #define max_pairs CUR Numbers[14] #define no_color_video CUR Numbers[15] #define buffer_capacity CUR Numbers[16] #define dot_vert_spacing CUR Numbers[17] #define dot_horz_spacing CUR Numbers[18] #define max_micro_address CUR Numbers[19] #define max_micro_jump CUR Numbers[20] #define micro_col_size CUR Numbers[21] #define micro_line_size CUR Numbers[22] #define number_of_pins CUR Numbers[23] #define output_res_char CUR Numbers[24] #define output_res_line CUR Numbers[25] #define output_res_horz_inch CUR Numbers[26] #define output_res_vert_inch CUR Numbers[27] #define print_rate CUR Numbers[28] #define wide_char_size CUR Numbers[29] #define buttons CUR Numbers[30] #define bit_image_entwining CUR Numbers[31] #define bit_image_type CUR Numbers[32] #define back_tab CUR Strings[0] #define bell CUR Strings[1] #define carriage_return CUR Strings[2] #define change_scroll_region CUR Strings[3] #define clear_all_tabs CUR Strings[4] #define clear_screen CUR Strings[5] #define clr_eol CUR Strings[6] #define clr_eos CUR Strings[7] #define column_address CUR Strings[8] #define command_character CUR Strings[9] #define cursor_address CUR Strings[10] #define cursor_down CUR Strings[11] #define cursor_home CUR Strings[12] #define cursor_invisible CUR Strings[13] #define cursor_left CUR Strings[14] #define cursor_mem_address CUR Strings[15] #define cursor_normal CUR Strings[16] #define cursor_right CUR Strings[17] #define cursor_to_ll CUR Strings[18] #define cursor_up CUR Strings[19] #define cursor_visible CUR Strings[20] #define delete_character CUR Strings[21] #define delete_line CUR Strings[22] #define dis_status_line CUR Strings[23] #define down_half_line CUR Strings[24] #define enter_alt_charset_mode CUR Strings[25] #define enter_blink_mode CUR Strings[26] #define enter_bold_mode CUR Strings[27] #define enter_ca_mode CUR Strings[28] #define enter_delete_mode CUR Strings[29] #define enter_dim_mode CUR Strings[30] #define enter_insert_mode CUR Strings[31] #define enter_secure_mode CUR Strings[32] #define enter_protected_mode CUR Strings[33] #define enter_reverse_mode CUR Strings[34] #define enter_standout_mode CUR Strings[35] #define enter_underline_mode CUR Strings[36] #define erase_chars CUR Strings[37] #define exit_alt_charset_mode CUR Strings[38] #define exit_attribute_mode CUR Strings[39] #define exit_ca_mode CUR Strings[40] #define exit_delete_mode CUR Strings[41] #define exit_insert_mode CUR Strings[42] #define exit_standout_mode CUR Strings[43] #define exit_underline_mode CUR Strings[44] #define flash_screen CUR Strings[45] #define form_feed CUR Strings[46] #define from_status_line CUR Strings[47] #define init_1string CUR Strings[48] #define init_2string CUR Strings[49] #define init_3string CUR Strings[50] #define init_file CUR Strings[51] #define insert_character CUR Strings[52] #define insert_line CUR Strings[53] #define insert_padding CUR Strings[54] #define key_backspace CUR Strings[55] #define key_catab CUR Strings[56] #define key_clear CUR Strings[57] #define key_ctab CUR Strings[58] #define key_dc CUR Strings[59] #define key_dl CUR Strings[60] #define key_down CUR Strings[61] #define key_eic CUR Strings[62] #define key_eol CUR Strings[63] #define key_eos CUR Strings[64] #define key_f0 CUR Strings[65] #define key_f1 CUR Strings[66] #define key_f10 CUR Strings[67] #define key_f2 CUR Strings[68] #define key_f3 CUR Strings[69] #define key_f4 CUR Strings[70] #define key_f5 CUR Strings[71] #define key_f6 CUR Strings[72] #define key_f7 CUR Strings[73] #define key_f8 CUR Strings[74] #define key_f9 CUR Strings[75] #define key_home CUR Strings[76] #define key_ic CUR Strings[77] #define key_il CUR Strings[78] #define key_left CUR Strings[79] #define key_ll CUR Strings[80] #define key_npage CUR Strings[81] #define key_ppage CUR Strings[82] #define key_right CUR Strings[83] #define key_sf CUR Strings[84] #define key_sr CUR Strings[85] #define key_stab CUR Strings[86] #define key_up CUR Strings[87] #define keypad_local CUR Strings[88] #define keypad_xmit CUR Strings[89] #define lab_f0 CUR Strings[90] #define lab_f1 CUR Strings[91] #define lab_f10 CUR Strings[92] #define lab_f2 CUR Strings[93] #define lab_f3 CUR Strings[94] #define lab_f4 CUR Strings[95] #define lab_f5 CUR Strings[96] #define lab_f6 CUR Strings[97] #define lab_f7 CUR Strings[98] #define lab_f8 CUR Strings[99] #define lab_f9 CUR Strings[100] #define meta_off CUR Strings[101] #define meta_on CUR Strings[102] #define newline CUR Strings[103] #define pad_char CUR Strings[104] #define parm_dch CUR Strings[105] #define parm_delete_line CUR Strings[106] #define parm_down_cursor CUR Strings[107] #define parm_ich CUR Strings[108] #define parm_index CUR Strings[109] #define parm_insert_line CUR Strings[110] #define parm_left_cursor CUR Strings[111] #define parm_right_cursor CUR Strings[112] #define parm_rindex CUR Strings[113] #define parm_up_cursor CUR Strings[114] #define pkey_key CUR Strings[115] #define pkey_local CUR Strings[116] #define pkey_xmit CUR Strings[117] #define print_screen CUR Strings[118] #define prtr_off CUR Strings[119] #define prtr_on CUR Strings[120] #define repeat_char CUR Strings[121] #define reset_1string CUR Strings[122] #define reset_2string CUR Strings[123] #define reset_3string CUR Strings[124] #define reset_file CUR Strings[125] #define restore_cursor CUR Strings[126] #define row_address CUR Strings[127] #define save_cursor CUR Strings[128] #define scroll_forward CUR Strings[129] #define scroll_reverse CUR Strings[130] #define set_attributes CUR Strings[131] #define set_tab CUR Strings[132] #define set_window CUR Strings[133] #define tab CUR Strings[134] #define to_status_line CUR Strings[135] #define underline_char CUR Strings[136] #define up_half_line CUR Strings[137] #define init_prog CUR Strings[138] #define key_a1 CUR Strings[139] #define key_a3 CUR Strings[140] #define key_b2 CUR Strings[141] #define key_c1 CUR Strings[142] #define key_c3 CUR Strings[143] #define prtr_non CUR Strings[144] #define char_padding CUR Strings[145] #define acs_chars CUR Strings[146] #define plab_norm CUR Strings[147] #define key_btab CUR Strings[148] #define enter_xon_mode CUR Strings[149] #define exit_xon_mode CUR Strings[150] #define enter_am_mode CUR Strings[151] #define exit_am_mode CUR Strings[152] #define xon_character CUR Strings[153] #define xoff_character CUR Strings[154] #define ena_acs CUR Strings[155] #define label_on CUR Strings[156] #define label_off CUR Strings[157] #define key_beg CUR Strings[158] #define key_cancel CUR Strings[159] #define key_close CUR Strings[160] #define key_command CUR Strings[161] #define key_copy CUR Strings[162] #define key_create CUR Strings[163] #define key_end CUR Strings[164] #define key_enter CUR Strings[165] #define key_exit CUR Strings[166] #define key_find CUR Strings[167] #define key_help CUR Strings[168] #define key_mark CUR Strings[169] #define key_message CUR Strings[170] #define key_move CUR Strings[171] #define key_next CUR Strings[172] #define key_open CUR Strings[173] #define key_options CUR Strings[174] #define key_previous CUR Strings[175] #define key_print CUR Strings[176] #define key_redo CUR Strings[177] #define key_reference CUR Strings[178] #define key_refresh CUR Strings[179] #define key_replace CUR Strings[180] #define key_restart CUR Strings[181] #define key_resume CUR Strings[182] #define key_save CUR Strings[183] #define key_suspend CUR Strings[184] #define key_undo CUR Strings[185] #define key_sbeg CUR Strings[186] #define key_scancel CUR Strings[187] #define key_scommand CUR Strings[188] #define key_scopy CUR Strings[189] #define key_screate CUR Strings[190] #define key_sdc CUR Strings[191] #define key_sdl CUR Strings[192] #define key_select CUR Strings[193] #define key_send CUR Strings[194] #define key_seol CUR Strings[195] #define key_sexit CUR Strings[196] #define key_sfind CUR Strings[197] #define key_shelp CUR Strings[198] #define key_shome CUR Strings[199] #define key_sic CUR Strings[200] #define key_sleft CUR Strings[201] #define key_smessage CUR Strings[202] #define key_smove CUR Strings[203] #define key_snext CUR Strings[204] #define key_soptions CUR Strings[205] #define key_sprevious CUR Strings[206] #define key_sprint CUR Strings[207] #define key_sredo CUR Strings[208] #define key_sreplace CUR Strings[209] #define key_sright CUR Strings[210] #define key_srsume CUR Strings[211] #define key_ssave CUR Strings[212] #define key_ssuspend CUR Strings[213] #define key_sundo CUR Strings[214] #define req_for_input CUR Strings[215] #define key_f11 CUR Strings[216] #define key_f12 CUR Strings[217] #define key_f13 CUR Strings[218] #define key_f14 CUR Strings[219] #define key_f15 CUR Strings[220] #define key_f16 CUR Strings[221] #define key_f17 CUR Strings[222] #define key_f18 CUR Strings[223] #define key_f19 CUR Strings[224] #define key_f20 CUR Strings[225] #define key_f21 CUR Strings[226] #define key_f22 CUR Strings[227] #define key_f23 CUR Strings[228] #define key_f24 CUR Strings[229] #define key_f25 CUR Strings[230] #define key_f26 CUR Strings[231] #define key_f27 CUR Strings[232] #define key_f28 CUR Strings[233] #define key_f29 CUR Strings[234] #define key_f30 CUR Strings[235] #define key_f31 CUR Strings[236] #define key_f32 CUR Strings[237] #define key_f33 CUR Strings[238] #define key_f34 CUR Strings[239] #define key_f35 CUR Strings[240] #define key_f36 CUR Strings[241] #define key_f37 CUR Strings[242] #define key_f38 CUR Strings[243] #define key_f39 CUR Strings[244] #define key_f40 CUR Strings[245] #define key_f41 CUR Strings[246] #define key_f42 CUR Strings[247] #define key_f43 CUR Strings[248] #define key_f44 CUR Strings[249] #define key_f45 CUR Strings[250] #define key_f46 CUR Strings[251] #define key_f47 CUR Strings[252] #define key_f48 CUR Strings[253] #define key_f49 CUR Strings[254] #define key_f50 CUR Strings[255] #define key_f51 CUR Strings[256] #define key_f52 CUR Strings[257] #define key_f53 CUR Strings[258] #define key_f54 CUR Strings[259] #define key_f55 CUR Strings[260] #define key_f56 CUR Strings[261] #define key_f57 CUR Strings[262] #define key_f58 CUR Strings[263] #define key_f59 CUR Strings[264] #define key_f60 CUR Strings[265] #define key_f61 CUR Strings[266] #define key_f62 CUR Strings[267] #define key_f63 CUR Strings[268] #define clr_bol CUR Strings[269] #define clear_margins CUR Strings[270] #define set_left_margin CUR Strings[271] #define set_right_margin CUR Strings[272] #define label_format CUR Strings[273] #define set_clock CUR Strings[274] #define display_clock CUR Strings[275] #define remove_clock CUR Strings[276] #define create_window CUR Strings[277] #define goto_window CUR Strings[278] #define hangup CUR Strings[279] #define dial_phone CUR Strings[280] #define quick_dial CUR Strings[281] #define tone CUR Strings[282] #define pulse CUR Strings[283] #define flash_hook CUR Strings[284] #define fixed_pause CUR Strings[285] #define wait_tone CUR Strings[286] #define user0 CUR Strings[287] #define user1 CUR Strings[288] #define user2 CUR Strings[289] #define user3 CUR Strings[290] #define user4 CUR Strings[291] #define user5 CUR Strings[292] #define user6 CUR Strings[293] #define user7 CUR Strings[294] #define user8 CUR Strings[295] #define user9 CUR Strings[296] #define orig_pair CUR Strings[297] #define orig_colors CUR Strings[298] #define initialize_color CUR Strings[299] #define initialize_pair CUR Strings[300] #define set_color_pair CUR Strings[301] #define set_foreground CUR Strings[302] #define set_background CUR Strings[303] #define change_char_pitch CUR Strings[304] #define change_line_pitch CUR Strings[305] #define change_res_horz CUR Strings[306] #define change_res_vert CUR Strings[307] #define define_char CUR Strings[308] #define enter_doublewide_mode CUR Strings[309] #define enter_draft_quality CUR Strings[310] #define enter_italics_mode CUR Strings[311] #define enter_leftward_mode CUR Strings[312] #define enter_micro_mode CUR Strings[313] #define enter_near_letter_quality CUR Strings[314] #define enter_normal_quality CUR Strings[315] #define enter_shadow_mode CUR Strings[316] #define enter_subscript_mode CUR Strings[317] #define enter_superscript_mode CUR Strings[318] #define enter_upward_mode CUR Strings[319] #define exit_doublewide_mode CUR Strings[320] #define exit_italics_mode CUR Strings[321] #define exit_leftward_mode CUR Strings[322] #define exit_micro_mode CUR Strings[323] #define exit_shadow_mode CUR Strings[324] #define exit_subscript_mode CUR Strings[325] #define exit_superscript_mode CUR Strings[326] #define exit_upward_mode CUR Strings[327] #define micro_column_address CUR Strings[328] #define micro_down CUR Strings[329] #define micro_left CUR Strings[330] #define micro_right CUR Strings[331] #define micro_row_address CUR Strings[332] #define micro_up CUR Strings[333] #define order_of_pins CUR Strings[334] #define parm_down_micro CUR Strings[335] #define parm_left_micro CUR Strings[336] #define parm_right_micro CUR Strings[337] #define parm_up_micro CUR Strings[338] #define select_char_set CUR Strings[339] #define set_bottom_margin CUR Strings[340] #define set_bottom_margin_parm CUR Strings[341] #define set_left_margin_parm CUR Strings[342] #define set_right_margin_parm CUR Strings[343] #define set_top_margin CUR Strings[344] #define set_top_margin_parm CUR Strings[345] #define start_bit_image CUR Strings[346] #define start_char_set_def CUR Strings[347] #define stop_bit_image CUR Strings[348] #define stop_char_set_def CUR Strings[349] #define subscript_characters CUR Strings[350] #define superscript_characters CUR Strings[351] #define these_cause_cr CUR Strings[352] #define zero_motion CUR Strings[353] #define char_set_names CUR Strings[354] #define key_mouse CUR Strings[355] #define mouse_info CUR Strings[356] #define req_mouse_pos CUR Strings[357] #define get_mouse CUR Strings[358] #define set_a_foreground CUR Strings[359] #define set_a_background CUR Strings[360] #define pkey_plab CUR Strings[361] #define device_type CUR Strings[362] #define code_set_init CUR Strings[363] #define set0_des_seq CUR Strings[364] #define set1_des_seq CUR Strings[365] #define set2_des_seq CUR Strings[366] #define set3_des_seq CUR Strings[367] #define set_lr_margin CUR Strings[368] #define set_tb_margin CUR Strings[369] #define bit_image_repeat CUR Strings[370] #define bit_image_newline CUR Strings[371] #define bit_image_carriage_return CUR Strings[372] #define color_names CUR Strings[373] #define define_bit_image_region CUR Strings[374] #define end_bit_image_region CUR Strings[375] #define set_color_band CUR Strings[376] #define set_page_length CUR Strings[377] #define display_pc_char CUR Strings[378] #define enter_pc_charset_mode CUR Strings[379] #define exit_pc_charset_mode CUR Strings[380] #define enter_scancode_mode CUR Strings[381] #define exit_scancode_mode CUR Strings[382] #define pc_term_options CUR Strings[383] #define scancode_escape CUR Strings[384] #define alt_scancode_esc CUR Strings[385] #define enter_horizontal_hl_mode CUR Strings[386] #define enter_left_hl_mode CUR Strings[387] #define enter_low_hl_mode CUR Strings[388] #define enter_right_hl_mode CUR Strings[389] #define enter_top_hl_mode CUR Strings[390] #define enter_vertical_hl_mode CUR Strings[391] #define set_a_attributes CUR Strings[392] #define set_pglen_inch CUR Strings[393] #define BOOLWRITE 37 #define NUMWRITE 33 #define STRWRITE 394 /* older synonyms for some capabilities */ #define beehive_glitch no_esc_ctlc #define teleray_glitch dest_tabs_magic_smso /* HPUX-11 uses this name rather than the standard one */ #ifndef micro_char_size #define micro_char_size micro_col_size #endif # 636 "./term.h" #ifdef __INTERNAL_CAPS_VISIBLE #define termcap_init2 CUR Strings[394] #define termcap_reset CUR Strings[395] #define magic_cookie_glitch_ul CUR Numbers[33] #define backspaces_with_bs CUR Booleans[37] #define crt_no_scrolling CUR Booleans[38] #define no_correctly_working_cr CUR Booleans[39] #define carriage_return_delay CUR Numbers[34] #define new_line_delay CUR Numbers[35] #define linefeed_if_not_lf CUR Strings[396] #define backspace_if_not_bs CUR Strings[397] #define gnu_has_meta_key CUR Booleans[40] #define linefeed_is_newline CUR Booleans[41] #define backspace_delay CUR Numbers[36] #define horizontal_tab_delay CUR Numbers[37] #define number_of_function_keys CUR Numbers[38] #define other_non_function_keys CUR Strings[398] #define arrow_key_map CUR Strings[399] #define has_hardware_tabs CUR Booleans[42] #define return_does_clr_eol CUR Booleans[43] #define acs_ulcorner CUR Strings[400] #define acs_llcorner CUR Strings[401] #define acs_urcorner CUR Strings[402] #define acs_lrcorner CUR Strings[403] #define acs_ltee CUR Strings[404] #define acs_rtee CUR Strings[405] #define acs_btee CUR Strings[406] #define acs_ttee CUR Strings[407] #define acs_hline CUR Strings[408] #define acs_vline CUR Strings[409] #define acs_plus CUR Strings[410] #define memory_lock CUR Strings[411] #define memory_unlock CUR Strings[412] #define box_chars_1 CUR Strings[413] #endif /* __INTERNAL_CAPS_VISIBLE */ # 672 "./term.h" /* * Predefined terminfo array sizes */ #define BOOLCOUNT 44 #define NUMCOUNT 39 #define STRCOUNT 414 /* used by code for comparing entries */ #define acs_chars_index 146 typedef struct termtype { /* in-core form of terminfo data */ char *term_names; /* str_table offset of term names */ char *str_table; /* pointer to string table */ NCURSES_SBOOL *Booleans; /* array of boolean values */ short *Numbers; /* array of integer values */ char **Strings; /* array of string offsets */ #if 0 /* disabled by -frewrite-includes */ #if NCURSES_XNAMES #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 692 "./term.h" char *ext_str_table; /* pointer to extended string table */ char **ext_Names; /* corresponding names */ unsigned short num_Booleans;/* count total Booleans */ unsigned short num_Numbers; /* count total Numbers */ unsigned short num_Strings; /* count total Strings */ unsigned short ext_Booleans;/* count extensions to Booleans */ unsigned short ext_Numbers; /* count extensions to Numbers */ unsigned short ext_Strings; /* count extensions to Strings */ #endif /* NCURSES_XNAMES */ # 703 "./term.h" } TERMTYPE; /* * The only reason these structures are visible is for read-only use. * Programs which modify the data are not, never were, portable across * curses implementations. */ #ifdef NCURSES_INTERNALS typedef struct termtype2 { /* in-core form of terminfo data */ char *term_names; /* str_table offset of term names */ char *str_table; /* pointer to string table */ NCURSES_SBOOL *Booleans; /* array of boolean values */ int *Numbers; /* array of integer values */ char **Strings; /* array of string offsets */ #if 0 /* disabled by -frewrite-includes */ #if NCURSES_XNAMES #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 721 "./term.h" char *ext_str_table; /* pointer to extended string table */ char **ext_Names; /* corresponding names */ unsigned short num_Booleans;/* count total Booleans */ unsigned short num_Numbers; /* count total Numbers */ unsigned short num_Strings; /* count total Strings */ unsigned short ext_Booleans;/* count extensions to Booleans */ unsigned short ext_Numbers; /* count extensions to Numbers */ unsigned short ext_Strings; /* count extensions to Strings */ #endif /* NCURSES_XNAMES */ # 732 "./term.h" } TERMTYPE2; typedef struct term { /* describe an actual terminal */ TERMTYPE type; /* terminal type description */ short Filedes; /* file description being written to */ TTY Ottyb; /* original state of the terminal */ TTY Nttyb; /* current state of the terminal */ int _baudrate; /* used to compute padding */ char * _termname; /* used for termname() */ TERMTYPE2 type2; /* extended terminal type description */ } TERMINAL; #else # 745 "./term.h" typedef struct term TERMINAL; #endif /* NCURSES_INTERNALS */ # 747 "./term.h" #if 0 /* disabled by -frewrite-includes */ #if 0 && !0 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 750 "./term.h" extern NCURSES_EXPORT_VAR(TERMINAL *) cur_term; #if 0 /* disabled by -frewrite-includes */ #if 0 #elif 0 #endif #endif /* disabled by -frewrite-includes */ #elif 0 /* evaluated by -frewrite-includes */ # 752 "./term.h" NCURSES_WRAPPED_VAR(TERMINAL *, cur_term); #define cur_term NCURSES_PUBLIC_VAR(cur_term()) #else # 755 "./term.h" extern NCURSES_EXPORT_VAR(TERMINAL *) cur_term; #endif # 757 "./term.h" #if 0 /* disabled by -frewrite-includes */ #if 0 || 0 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 759 "./term.h" NCURSES_WRAPPED_VAR(NCURSES_CONST char * const *, boolnames); NCURSES_WRAPPED_VAR(NCURSES_CONST char * const *, boolcodes); NCURSES_WRAPPED_VAR(NCURSES_CONST char * const *, boolfnames); NCURSES_WRAPPED_VAR(NCURSES_CONST char * const *, numnames); NCURSES_WRAPPED_VAR(NCURSES_CONST char * const *, numcodes); NCURSES_WRAPPED_VAR(NCURSES_CONST char * const *, numfnames); NCURSES_WRAPPED_VAR(NCURSES_CONST char * const *, strnames); NCURSES_WRAPPED_VAR(NCURSES_CONST char * const *, strcodes); NCURSES_WRAPPED_VAR(NCURSES_CONST char * const *, strfnames); #define boolnames NCURSES_PUBLIC_VAR(boolnames()) #define boolcodes NCURSES_PUBLIC_VAR(boolcodes()) #define boolfnames NCURSES_PUBLIC_VAR(boolfnames()) #define numnames NCURSES_PUBLIC_VAR(numnames()) #define numcodes NCURSES_PUBLIC_VAR(numcodes()) #define numfnames NCURSES_PUBLIC_VAR(numfnames()) #define strnames NCURSES_PUBLIC_VAR(strnames()) #define strcodes NCURSES_PUBLIC_VAR(strcodes()) #define strfnames NCURSES_PUBLIC_VAR(strfnames()) #else # 780 "./term.h" extern NCURSES_EXPORT_VAR(NCURSES_CONST char * const ) boolnames[]; extern NCURSES_EXPORT_VAR(NCURSES_CONST char * const ) boolcodes[]; extern NCURSES_EXPORT_VAR(NCURSES_CONST char * const ) boolfnames[]; extern NCURSES_EXPORT_VAR(NCURSES_CONST char * const ) numnames[]; extern NCURSES_EXPORT_VAR(NCURSES_CONST char * const ) numcodes[]; extern NCURSES_EXPORT_VAR(NCURSES_CONST char * const ) numfnames[]; extern NCURSES_EXPORT_VAR(NCURSES_CONST char * const ) strnames[]; extern NCURSES_EXPORT_VAR(NCURSES_CONST char * const ) strcodes[]; extern NCURSES_EXPORT_VAR(NCURSES_CONST char * const ) strfnames[]; #endif # 792 "./term.h" /* * These entrypoints are used only by the ncurses utilities such as tic. */ #ifdef NCURSES_INTERNALS extern NCURSES_EXPORT(int) _nc_set_tty_mode (TTY *buf); extern NCURSES_EXPORT(int) _nc_read_entry2 (const char * const, char * const, TERMTYPE2 *const); extern NCURSES_EXPORT(int) _nc_read_file_entry (const char *const, TERMTYPE2 *); extern NCURSES_EXPORT(int) _nc_read_termtype (TERMTYPE2 *, char *, int); extern NCURSES_EXPORT(char *) _nc_first_name (const char *const); extern NCURSES_EXPORT(int) _nc_name_match (const char *const, const char *const, const char *const); extern NCURSES_EXPORT(char *) _nc_tiparm(int, const char *, ...); #endif /* NCURSES_INTERNALS */ # 807 "./term.h" /* * These entrypoints are used by tack 1.07. */ extern NCURSES_EXPORT(const TERMTYPE *) _nc_fallback (const char *); extern NCURSES_EXPORT(int) _nc_read_entry (const char * const, char * const, TERMTYPE *const); /* * Normal entry points */ extern NCURSES_EXPORT(TERMINAL *) set_curterm (TERMINAL *); extern NCURSES_EXPORT(int) del_curterm (TERMINAL *); /* miscellaneous entry points */ extern NCURSES_EXPORT(int) restartterm (NCURSES_CONST char *, int, int *); extern NCURSES_EXPORT(int) setupterm (const char *,int,int *); /* terminfo entry points, also declared in curses.h */ #if 0 /* disabled by -frewrite-includes */ #if !defined(__NCURSES_H) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 827 "./term.h" extern NCURSES_EXPORT(char *) tigetstr (const char *); extern NCURSES_EXPORT_VAR(char) ttytype[]; extern NCURSES_EXPORT(int) putp (const char *); extern NCURSES_EXPORT(int) tigetflag (const char *); extern NCURSES_EXPORT(int) tigetnum (const char *); #if 0 /* disabled by -frewrite-includes */ #if 1 /* NCURSES_TPARM_VARARGS */ #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 834 "./term.h" extern NCURSES_EXPORT(char *) tparm (const char *, ...); /* special */ #else # 836 "./term.h" extern NCURSES_EXPORT(char *) tparm (const char *, long,long,long,long,long,long,long,long,long); /* special */ #endif # 838 "./term.h" extern NCURSES_EXPORT(char *) tiparm (const char *, ...); /* special */ #endif /* __NCURSES_H */ # 842 "./term.h" /* termcap database emulation (XPG4 uses const only for 2nd param of tgetent) */ #if 0 /* disabled by -frewrite-includes */ #if !defined(NCURSES_TERMCAP_H_incl) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 845 "./term.h" extern NCURSES_EXPORT(char *) tgetstr (const char *, char **); extern NCURSES_EXPORT(char *) tgoto (const char *, int, int); extern NCURSES_EXPORT(int) tgetent (char *, const char *); extern NCURSES_EXPORT(int) tgetflag (const char *); extern NCURSES_EXPORT(int) tgetnum (const char *); extern NCURSES_EXPORT(int) tputs (const char *, int, int (*)(int)); #endif /* NCURSES_TERMCAP_H_incl */ # 852 "./term.h" /* * Include curses.h before term.h to enable these extensions. */ #if 0 /* disabled by -frewrite-includes */ #if defined(NCURSES_SP_FUNCS) && (NCURSES_SP_FUNCS != 0) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 857 "./term.h" extern NCURSES_EXPORT(char *) NCURSES_SP_NAME(tigetstr) (SCREEN*, const char *); extern NCURSES_EXPORT(int) NCURSES_SP_NAME(putp) (SCREEN*, const char *); extern NCURSES_EXPORT(int) NCURSES_SP_NAME(tigetflag) (SCREEN*, const char *); extern NCURSES_EXPORT(int) NCURSES_SP_NAME(tigetnum) (SCREEN*, const char *); #if 0 /* disabled by -frewrite-includes */ #if 1 /* NCURSES_TPARM_VARARGS */ #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 864 "./term.h" extern NCURSES_EXPORT(char *) NCURSES_SP_NAME(tparm) (SCREEN*, const char *, ...); /* special */ #else # 866 "./term.h" extern NCURSES_EXPORT(char *) NCURSES_SP_NAME(tparm) (SCREEN*, const char *, long,long,long,long,long,long,long,long,long); /* special */ #endif # 868 "./term.h" /* termcap database emulation (XPG4 uses const only for 2nd param of tgetent) */ extern NCURSES_EXPORT(char *) NCURSES_SP_NAME(tgetstr) (SCREEN*, const char *, char **); extern NCURSES_EXPORT(char *) NCURSES_SP_NAME(tgoto) (SCREEN*, const char *, int, int); extern NCURSES_EXPORT(int) NCURSES_SP_NAME(tgetent) (SCREEN*, char *, const char *); extern NCURSES_EXPORT(int) NCURSES_SP_NAME(tgetflag) (SCREEN*, const char *); extern NCURSES_EXPORT(int) NCURSES_SP_NAME(tgetnum) (SCREEN*, const char *); extern NCURSES_EXPORT(int) NCURSES_SP_NAME(tputs) (SCREEN*, const char *, int, NCURSES_SP_OUTC); extern NCURSES_EXPORT(TERMINAL *) NCURSES_SP_NAME(set_curterm) (SCREEN*, TERMINAL *); extern NCURSES_EXPORT(int) NCURSES_SP_NAME(del_curterm) (SCREEN*, TERMINAL *); extern NCURSES_EXPORT(int) NCURSES_SP_NAME(restartterm) (SCREEN*, NCURSES_CONST char *, int, int *); #endif /* NCURSES_SP_FUNCS */ # 882 "./term.h" /* * Debugging features. */ extern NCURSES_EXPORT(void) exit_terminfo(int) GCC_NORETURN; #ifdef __cplusplus } #endif # 891 "./term.h" #endif /* NCURSES_TERM_H_incl */ # 893 "./term.h" # 411 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" 2 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 411 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" # 1 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_termios.h" 1 /**************************************************************************** * Copyright 2018,2020 Thomas E. Dickey * * Copyright 2011-2014,2017 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * * "Software"), to deal in the Software without restriction, including * * without limitation the rights to use, copy, modify, merge, publish, * * distribute, distribute with modifications, sublicense, and/or sell * * copies of the Software, and to permit persons to whom the Software is * * furnished to do so, subject to the following conditions: * * * * The above copyright notice and this permission notice shall be included * * in all copies or substantial portions of the Software. * * * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. * * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, * * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * * THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * * * Except as contained in this notice, the name(s) of the above copyright * * holders shall not be used in advertising or otherwise to promote the * * sale, use or other dealings in this Software without prior written * * authorization. * ****************************************************************************/ /**************************************************************************** * Author: Thomas E. Dickey 2011 * ****************************************************************************/ /* $Id: nc_termios.h,v 1.8 2020/08/29 20:53:19 tom Exp $ */ #ifndef NC_TERMIOS_included #define NC_TERMIOS_included 1 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 39 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_termios.h" # 40 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_termios.h" #if 0 /* disabled by -frewrite-includes */ #if HAVE_TERMIOS_H && HAVE_TCGETATTR #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 42 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_termios.h" #else /* !HAVE_TERMIOS_H */ # 44 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_termios.h" #if 0 /* disabled by -frewrite-includes */ #if HAVE_TERMIO_H #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 46 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_termios.h" /* Add definitions to make termio look like termios. * But ifdef it, since there are some implementations * that try to do this for us in a fake . */ #ifndef TCSADRAIN #define TCSADRAIN TCSETAW #endif # 54 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_termios.h" #ifndef TCSAFLUSH #define TCSAFLUSH TCSETAF #endif # 57 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_termios.h" #ifndef tcsetattr #define tcsetattr(fd, cmd, arg) ioctl(fd, cmd, arg) #endif # 60 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_termios.h" #ifndef tcgetattr #define tcgetattr(fd, arg) ioctl(fd, TCGETA, arg) #endif # 63 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_termios.h" #ifndef cfgetospeed #define cfgetospeed(t) ((t)->c_cflag & CBAUD) #endif # 66 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_termios.h" #ifndef TCIFLUSH #define TCIFLUSH 0 #endif # 69 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_termios.h" #ifndef tcflush #define tcflush(fd, arg) ioctl(fd, TCFLSH, arg) #endif # 72 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_termios.h" #if 0 /* disabled by -frewrite-includes */ #if defined(EXP_WIN32_DRIVER) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 74 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_termios.h" #undef TERMIOS #endif # 76 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_termios.h" #else /* !HAVE_TERMIO_H */ # 78 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_termios.h" #if 0 /* disabled by -frewrite-includes */ #if defined(_WIN32) && !defined(EXP_WIN32_DRIVER) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 80 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_termios.h" /* lflag bits */ #define ISIG 0x0001 #define ICANON 0x0002 #define ECHO 0x0004 #define ECHOE 0x0008 #define ECHOK 0x0010 #define ECHONL 0x0020 #define NOFLSH 0x0040 #define IEXTEN 0x0100 #define VEOF 4 #define VERASE 5 #define VINTR 6 #define VKILL 7 #define VMIN 9 #define VQUIT 10 #define VTIME 16 /* iflag bits */ #define IGNBRK 0x00001 #define BRKINT 0x00002 #define IGNPAR 0x00004 #define INPCK 0x00010 #define ISTRIP 0x00020 #define INLCR 0x00040 #define IGNCR 0x00080 #define ICRNL 0x00100 #define IXON 0x00400 #define IXOFF 0x01000 #define PARMRK 0x10000 /* oflag bits */ #define OPOST 0x00001 /* cflag bits */ #define CBAUD 0x0100f #define B0 0x00000 #define B50 0x00001 #define B75 0x00002 #define B110 0x00003 #define B134 0x00004 #define B150 0x00005 #define B200 0x00006 #define B300 0x00007 #define B600 0x00008 #define B1200 0x00009 #define B1800 0x0000a #define B2400 0x0000b #define B4800 0x0000c #define B9600 0x0000d #define CSIZE 0x00030 #define CS8 0x00030 #define CSTOPB 0x00040 #define CREAD 0x00080 #define PARENB 0x00100 #define PARODD 0x00200 #define HUPCL 0x00400 #define CLOCAL 0x00800 #define TCIFLUSH 0 #define TCSADRAIN 3 #ifndef cfgetospeed #define cfgetospeed(t) ((t)->c_cflag & CBAUD) #endif # 147 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_termios.h" #ifndef tcsetattr #define tcsetattr(fd, opt, arg) _nc_mingw_tcsetattr(fd, opt, arg) #endif # 151 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_termios.h" #ifndef tcgetattr #define tcgetattr(fd, arg) _nc_mingw_tcgetattr(fd, arg) #endif # 155 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_termios.h" #ifndef tcflush #define tcflush(fd, queue) _nc_mingw_tcflush(fd, queue) #endif # 159 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_termios.h" #undef ttyname #define ttyname(fd) NULL #endif /* _WIN32 */ # 164 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_termios.h" #endif /* HAVE_TERMIO_H */ # 165 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_termios.h" #endif /* HAVE_TERMIOS_H */ # 167 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_termios.h" #endif /* NC_TERMIOS_included */ # 169 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_termios.h" # 412 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" 2 #define IsPreScreen(sp) (((sp) != 0) && sp->_prescreen) #define HasTerminal(sp) (((sp) != 0) && (0 != ((sp)->_term))) #define IsValidScreen(sp) (HasTerminal(sp) && !IsPreScreen(sp)) #if 0 /* disabled by -frewrite-includes */ #if USE_REENTRANT #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 418 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define CurTerm _nc_prescreen._cur_term #else # 420 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define CurTerm cur_term #endif # 422 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #if 0 /* disabled by -frewrite-includes */ #if NCURSES_SP_FUNCS #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 424 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define TerminalOf(sp) ((sp) ? ((sp)->_term ? (sp)->_term : CurTerm) : CurTerm) #else # 426 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define TerminalOf(sp) CurTerm #endif # 428 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" /* * The legacy layout for TERMTYPE uses "short" for all of the numbers. Moving * past that, numeric capabilities can be "int" by using a TERMTYPE2 structure * in TERMINAL, and doing most of the internal work using TERMTYPE2. There are * a few places (mostly to expose the legacy layout) where the distinction * needs attention. */ #if 0 /* disabled by -frewrite-includes */ #if NCURSES_EXT_COLORS && HAVE_INIT_EXTENDED_COLOR #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 437 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define NCURSES_EXT_NUMBERS 1 #define NCURSES_INT2 int #define SIZEOF_INT2 4 #define TerminalType(tp) (tp)->type2 #else # 442 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define NCURSES_EXT_NUMBERS 0 #define NCURSES_INT2 short #define SIZEOF_INT2 2 #define TerminalType(tp) (tp)->type #endif # 447 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define SIZEOF_SHORT 2 #ifdef CUR #undef CUR #define CUR TerminalType(cur_term). #endif # 454 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" /* * Reduce dependency on cur_term global by using terminfo data from SCREEN's * pointer to this data. */ #ifdef USE_SP_TERMTYPE #undef CUR #endif # 462 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define SP_TERMTYPE TerminalType(TerminalOf(sp)). #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 465 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" # 1 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/term_entry.h" 1 /**************************************************************************** * Copyright 2018-2019,2020 Thomas E. Dickey * * Copyright 1998-2015,2017 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * * "Software"), to deal in the Software without restriction, including * * without limitation the rights to use, copy, modify, merge, publish, * * distribute, distribute with modifications, sublicense, and/or sell * * copies of the Software, and to permit persons to whom the Software is * * furnished to do so, subject to the following conditions: * * * * The above copyright notice and this permission notice shall be included * * in all copies or substantial portions of the Software. * * * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. * * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, * * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * * THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * * * Except as contained in this notice, the name(s) of the above copyright * * holders shall not be used in advertising or otherwise to promote the * * sale, use or other dealings in this Software without prior written * * authorization. * ****************************************************************************/ /**************************************************************************** * Author: Zeyd M. Ben-Halim 1992,1995 * * and: Eric S. Raymond * * and: Thomas E. Dickey 1998-on * ****************************************************************************/ /* $Id: term_entry.h,v 1.60 2020/02/29 15:46:00 anonymous.maarten Exp $ */ /* * term_entry.h -- interface to entry-manipulation code */ #ifndef NCURSES_TERM_ENTRY_H_incl #define NCURSES_TERM_ENTRY_H_incl 1 /* *INDENT-OFF* */ #ifdef __cplusplus extern "C" { #endif # 49 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/term_entry.h" #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 50 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/term_entry.h" # 51 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/term_entry.h" #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 51 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/term_entry.h" # 52 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/term_entry.h" /* * These macros may be used by programs that know about TERMTYPE: */ #if 0 /* disabled by -frewrite-includes */ #if NCURSES_XNAMES #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 57 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/term_entry.h" #define NUM_BOOLEANS(tp) (tp)->num_Booleans #define NUM_NUMBERS(tp) (tp)->num_Numbers #define NUM_STRINGS(tp) (tp)->num_Strings #define EXT_NAMES(tp,i,limit,index,table) (i >= limit) ? tp->ext_Names[index] : table[i] #else # 62 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/term_entry.h" #define NUM_BOOLEANS(tp) BOOLCOUNT #define NUM_NUMBERS(tp) NUMCOUNT #define NUM_STRINGS(tp) STRCOUNT #define EXT_NAMES(tp,i,limit,index,table) table[i] #endif # 67 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/term_entry.h" #define NUM_EXT_NAMES(tp) (unsigned) ((tp)->ext_Booleans + (tp)->ext_Numbers + (tp)->ext_Strings) #define for_each_boolean(n,tp) for(n = 0; n < NUM_BOOLEANS(tp); n++) #define for_each_number(n,tp) for(n = 0; n < NUM_NUMBERS(tp); n++) #define for_each_string(n,tp) for(n = 0; n < NUM_STRINGS(tp); n++) #if 0 /* disabled by -frewrite-includes */ #if NCURSES_XNAMES #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 75 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/term_entry.h" #define for_each_ext_boolean(n,tp) for(n = BOOLCOUNT; (int) n < (int) NUM_BOOLEANS(tp); n++) #define for_each_ext_number(n,tp) for(n = NUMCOUNT; (int) n < (int) NUM_NUMBERS(tp); n++) #define for_each_ext_string(n,tp) for(n = STRCOUNT; (int) n < (int) NUM_STRINGS(tp); n++) #endif # 79 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/term_entry.h" #define ExtBoolname(tp,i,names) EXT_NAMES(tp, i, BOOLCOUNT, (i - (tp->num_Booleans - tp->ext_Booleans)), names) #define ExtNumname(tp,i,names) EXT_NAMES(tp, i, NUMCOUNT, (i - (tp->num_Numbers - tp->ext_Numbers)) + tp->ext_Booleans, names) #define ExtStrname(tp,i,names) EXT_NAMES(tp, i, STRCOUNT, (i - (tp->num_Strings - tp->ext_Strings)) + (tp->ext_Numbers + tp->ext_Booleans), names) /* * The remaining type-definitions and macros are used only internally by the * ncurses utilities. */ #ifdef NCURSES_INTERNALS /* * see db_iterator.c - this enumeration lists the places searched for a * terminal description and defines the order in which they are searched. */ typedef enum { dbdTIC = 0, /* special, used by tic when writing entry */ #if 0 /* disabled by -frewrite-includes */ #if NCURSES_USE_DATABASE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 97 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/term_entry.h" dbdEnvOnce, /* the $TERMINFO environment variable */ dbdHome, /* $HOME/.terminfo */ dbdEnvList, /* the $TERMINFO_DIRS environment variable */ dbdCfgList, /* the compiled-in TERMINFO_DIRS value */ dbdCfgOnce, /* the compiled-in TERMINFO value */ #endif # 103 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/term_entry.h" #if 0 /* disabled by -frewrite-includes */ #if NCURSES_USE_TERMCAP #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 104 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/term_entry.h" dbdEnvOnce2, /* the $TERMCAP environment variable */ dbdEnvList2, /* the $TERMPATH environment variable */ dbdCfgList2, /* the compiled-in TERMPATH */ #endif # 108 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/term_entry.h" dbdLAST } DBDIRS; #define MAX_USES 32 #define MAX_CROSSLINKS 16 typedef struct entry ENTRY; typedef struct { char *name; ENTRY *link; long line; } ENTRY_USES; struct entry { TERMTYPE2 tterm; unsigned nuses; ENTRY_USES uses[MAX_USES]; int ncrosslinks; ENTRY *crosslinks[MAX_CROSSLINKS]; long cstart; long cend; long startline; ENTRY *next; ENTRY *last; }; extern NCURSES_EXPORT_VAR(ENTRY *) _nc_head; extern NCURSES_EXPORT_VAR(ENTRY *) _nc_tail; #define for_entry_list(qp) for (qp = _nc_head; qp; qp = qp->next) #define MAX_LINE 132 #define NULLHOOK (bool(*)(ENTRY *))0 /* * Note that WANTED and PRESENT are not simple inverses! If a capability * has been explicitly cancelled, it's not considered WANTED. */ #define WANTED(s) ((s) == ABSENT_STRING) #define PRESENT(s) (((s) != ABSENT_STRING) && ((s) != CANCELLED_STRING)) #define ANDMISSING(p,q) \ { \ if (PRESENT(p) && !PRESENT(q)) \ _nc_warning(#p " but no " #q); \ } #define PAIRED(p,q) \ { \ if (PRESENT(q) && !PRESENT(p)) \ _nc_warning(#q " but no " #p); \ if (PRESENT(p) && !PRESENT(q)) \ _nc_warning(#p " but no " #q); \ } /* * These entrypoints are used only by the ncurses utilities such as tic. */ /* alloc_entry.c: elementary allocation code */ extern NCURSES_EXPORT(ENTRY *) _nc_copy_entry (ENTRY *oldp); extern NCURSES_EXPORT(char *) _nc_save_str (const char *const); extern NCURSES_EXPORT(void) _nc_init_entry (ENTRY *const); extern NCURSES_EXPORT(void) _nc_merge_entry (ENTRY *const, ENTRY *const); extern NCURSES_EXPORT(void) _nc_wrap_entry (ENTRY *const, bool); /* alloc_ttype.c: elementary allocation code */ extern NCURSES_EXPORT(void) _nc_align_termtype (TERMTYPE2 *, TERMTYPE2 *); /* free_ttype.c: elementary allocation code */ extern NCURSES_EXPORT(void) _nc_free_termtype2 (TERMTYPE2 *); /* lib_termcap.c: trim sgr0 string for termcap users */ extern NCURSES_EXPORT(char *) _nc_trim_sgr0 (TERMTYPE2 *); /* parse_entry.c: entry-parsing code */ #if 0 /* disabled by -frewrite-includes */ #if NCURSES_XNAMES #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 186 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/term_entry.h" extern NCURSES_EXPORT_VAR(bool) _nc_user_definable; extern NCURSES_EXPORT_VAR(bool) _nc_disable_period; #endif # 189 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/term_entry.h" extern NCURSES_EXPORT(int) _nc_parse_entry (ENTRY *, int, bool); extern NCURSES_EXPORT(int) _nc_capcmp (const char *, const char *); /* write_entry.c: writing an entry to the file system */ extern NCURSES_EXPORT(void) _nc_set_writedir (const char *); extern NCURSES_EXPORT(void) _nc_write_entry (TERMTYPE2 *const); extern NCURSES_EXPORT(int) _nc_write_object (TERMTYPE2 *, char *, unsigned *, unsigned); /* comp_parse.c: entry list handling */ extern NCURSES_EXPORT(void) _nc_read_entry_source (FILE*, char*, int, bool, bool (*)(ENTRY*)); extern NCURSES_EXPORT(bool) _nc_entry_match (char *, char *); extern NCURSES_EXPORT(int) _nc_resolve_uses (bool); /* obs 20040705 */ extern NCURSES_EXPORT(int) _nc_resolve_uses2 (bool, bool); extern NCURSES_EXPORT(void) _nc_free_entries (ENTRY *); extern NCURSES_IMPEXP void (NCURSES_API *_nc_check_termtype)(TERMTYPE *); /* obs 20040705 */ extern NCURSES_IMPEXP void (NCURSES_API *_nc_check_termtype2)(TERMTYPE2 *, bool); /* trace_xnames.c */ extern NCURSES_EXPORT(void) _nc_trace_xnames (TERMTYPE *); #endif /* NCURSES_INTERNALS */ # 210 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/term_entry.h" /* * These entrypoints were used by tack before 1.08. */ #undef NCURSES_TACK_1_08 #ifdef NCURSES_INTERNALS #define NCURSES_TACK_1_08 /* nothing */ #else # 219 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/term_entry.h" #define NCURSES_TACK_1_08 GCC_DEPRECATED("upgrade to tack 1.08") #endif # 221 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/term_entry.h" /* alloc_ttype.c: elementary allocation code */ extern NCURSES_EXPORT(void) _nc_copy_termtype (TERMTYPE *, const TERMTYPE *) NCURSES_TACK_1_08; /* lib_acs.c */ extern NCURSES_EXPORT(void) _nc_init_acs (void) NCURSES_TACK_1_08; /* corresponds to traditional 'init_acs()' */ /* free_ttype.c: elementary allocation code */ extern NCURSES_EXPORT(void) _nc_free_termtype (TERMTYPE *) NCURSES_TACK_1_08; #ifdef __cplusplus } #endif # 234 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/term_entry.h" /* *INDENT-ON* */ #endif /* NCURSES_TERM_ENTRY_H_incl */ # 238 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/term_entry.h" # 466 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" 2 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 467 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" # 1 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_tparm.h" 1 /**************************************************************************** * Copyright 2018,2020 Thomas E. Dickey * * Copyright 2006-2012,2017 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * * "Software"), to deal in the Software without restriction, including * * without limitation the rights to use, copy, modify, merge, publish, * * distribute, distribute with modifications, sublicense, and/or sell * * copies of the Software, and to permit persons to whom the Software is * * furnished to do so, subject to the following conditions: * * * * The above copyright notice and this permission notice shall be included * * in all copies or substantial portions of the Software. * * * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. * * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, * * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * * THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * * * Except as contained in this notice, the name(s) of the above copyright * * holders shall not be used in advertising or otherwise to promote the * * sale, use or other dealings in this Software without prior written * * authorization. * ****************************************************************************/ /**************************************************************************** * Author: Thomas E. Dickey 2006 * ****************************************************************************/ /* $Id: nc_tparm.h,v 1.11 2020/05/27 23:33:31 tom Exp $ */ #ifndef NC_TPARM_included #define NC_TPARM_included 1 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 39 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_tparm.h" # 40 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_tparm.h" #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 40 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_tparm.h" # 41 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_tparm.h" /* * Cast parameters past the formatting-string for tparm() to match the * assumption of the varargs code. */ #ifndef TPARM_ARG #ifdef NCURSES_TPARM_ARG #define TPARM_ARG NCURSES_TPARM_ARG #else # 50 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_tparm.h" #define TPARM_ARG long #endif # 52 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_tparm.h" #endif /* TPARAM_ARG */ # 53 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_tparm.h" #define TPARM_N(n) (TPARM_ARG)(n) #define TPARM_9(a,b,c,d,e,f,g,h,i,j) tparm(a,TPARM_N(b),TPARM_N(c),TPARM_N(d),TPARM_N(e),TPARM_N(f),TPARM_N(g),TPARM_N(h),TPARM_N(i),TPARM_N(j)) #if 0 /* disabled by -frewrite-includes */ #if NCURSES_TPARM_VARARGS #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 59 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_tparm.h" #define TPARM_8(a,b,c,d,e,f,g,h,i) tparm(a,TPARM_N(b),TPARM_N(c),TPARM_N(d),TPARM_N(e),TPARM_N(f),TPARM_N(g),TPARM_N(h),TPARM_N(i)) #define TPARM_7(a,b,c,d,e,f,g,h) tparm(a,TPARM_N(b),TPARM_N(c),TPARM_N(d),TPARM_N(e),TPARM_N(f),TPARM_N(g),TPARM_N(h)) #define TPARM_6(a,b,c,d,e,f,g) tparm(a,TPARM_N(b),TPARM_N(c),TPARM_N(d),TPARM_N(e),TPARM_N(f),TPARM_N(g)) #define TPARM_5(a,b,c,d,e,f) tparm(a,TPARM_N(b),TPARM_N(c),TPARM_N(d),TPARM_N(e),TPARM_N(f)) #define TPARM_4(a,b,c,d,e) tparm(a,TPARM_N(b),TPARM_N(c),TPARM_N(d),TPARM_N(e)) #define TPARM_3(a,b,c,d) tparm(a,TPARM_N(b),TPARM_N(c),TPARM_N(d)) #define TPARM_2(a,b,c) tparm(a,TPARM_N(b),TPARM_N(c)) #define TPARM_1(a,b) tparm(a,TPARM_N(b)) #define TPARM_0(a) tparm(a) #else # 69 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_tparm.h" #define TPARM_8(a,b,c,d,e,f,g,h,i) TPARM_9(a,b,c,d,e,f,g,h,i,0) #define TPARM_7(a,b,c,d,e,f,g,h) TPARM_8(a,b,c,d,e,f,g,h,0) #define TPARM_6(a,b,c,d,e,f,g) TPARM_7(a,b,c,d,e,f,g,0) #define TPARM_5(a,b,c,d,e,f) TPARM_6(a,b,c,d,e,f,0) #define TPARM_4(a,b,c,d,e) TPARM_5(a,b,c,d,e,0) #define TPARM_3(a,b,c,d) TPARM_4(a,b,c,d,0) #define TPARM_2(a,b,c) TPARM_3(a,b,c,0) #define TPARM_1(a,b) TPARM_2(a,b,0) #define TPARM_0(a) TPARM_1(a,0) #endif # 79 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_tparm.h" #ifdef NCURSES_INTERNALS #define TIPARM_1(s,a) _nc_tiparm(1,s,a) #define TIPARM_2(s,a,b) _nc_tiparm(2,s,a,b) #define TIPARM_3(s,a,b,c) _nc_tiparm(3,s,a,b,c) #define TIPARM_4(s,a,b,c,d) _nc_tiparm(4,s,a,b,c,d) #define TIPARM_5(s,a,b,c,d,e) _nc_tiparm(5,s,a,b,c,d,e) #define TIPARM_6(s,a,b,c,d,e,f) _nc_tiparm(6,s,a,b,c,d,e,f) #define TIPARM_7(s,a,b,c,d,e,f,g) _nc_tiparm(7,s,a,b,c,d,e,f,g) #define TIPARM_8(s,a,b,c,d,e,f,g,h) _nc_tiparm(8,s,a,b,c,d,e,f,g,h) #define TIPARM_9(s,a,b,c,d,e,f,g,h,i) _nc_tiparm(9,s,a,b,c,d,e,f,g,h,i) #endif # 91 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_tparm.h" #endif /* NC_TPARM_included */ # 93 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_tparm.h" # 468 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" 2 /* * Simplify ifdef's for the "*_ATTR" macros in case italics are not configured. */ #if 0 /* disabled by -frewrite-includes */ #if defined(A_ITALIC) && defined(exit_italics_mode) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 473 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define USE_ITALIC 1 #else # 475 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define USE_ITALIC 0 #undef A_ITALIC #define A_ITALIC 0 #endif # 479 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" /* * Use these macros internally, to make tracing less verbose. But leave the * option for compiling the tracing into the library. */ #if 0 /* disabled by -frewrite-includes */ #if 1 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 485 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define ColorPair(n) (NCURSES_BITS(n, 0) & A_COLOR) #define PairNumber(a) (NCURSES_CAST(int,(((unsigned long)(a) & A_COLOR) >> NCURSES_ATTR_SHIFT))) #else # 488 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define ColorPair(pair) COLOR_PAIR(pair) #define PairNumber(attr) PAIR_NUMBER(attr) #endif # 491 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define unColor(n) unColor2(AttrOf(n)) #define unColor2(a) ((a) & ALL_BUT_COLOR) /* * Extended-colors stores the color pair in a separate struct-member than the * attributes. But for compatibility, we handle most cases where a program * written for non-extended colors stores the color in the attributes by * checking for a color pair in both places. */ #if 0 /* disabled by -frewrite-includes */ #if NCURSES_EXT_COLORS #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 502 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define if_EXT_COLORS(stmt) stmt #define SetPair(value,p) SetPair2((value).ext_color, AttrOf(value), p) #define SetPair2(c,a,p) c = (p), \ a = (unColor2(a) | ColorPair(oldColor(c))) #define GetPair(value) GetPair2((value).ext_color, AttrOf(value)) #define GetPair2(c,a) ((c) ? (c) : PairNumber(a)) #define oldColor(p) (((p) > 255) ? 255 : (p)) #define GET_WINDOW_PAIR(w) GetPair2((w)->_color, (w)->_attrs) #define SET_WINDOW_PAIR(w,p) (w)->_color = (p) #define SameAttrOf(a,b) (AttrOf(a) == AttrOf(b) && GetPair(a) == GetPair(b)) #define VIDPUTS(sp,attr,pair) do { \ int vid_pair = pair; \ NCURSES_SP_NAME(vid_puts)( \ NCURSES_SP_ARGx attr, \ (NCURSES_PAIRS_T) pair, \ &vid_pair, \ NCURSES_OUTC_FUNC); \ } while (0) #else /* !NCURSES_EXT_COLORS */ # 523 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define if_EXT_COLORS(stmt) /* nothing */ #define SetPair(value,p) RemAttr(value, A_COLOR), \ SetAttr(value, AttrOf(value) | ColorPair(p)) #define GetPair(value) PairNumber(AttrOf(value)) #define GET_WINDOW_PAIR(w) PairNumber(WINDOW_ATTRS(w)) #define SET_WINDOW_PAIR(w,p) WINDOW_ATTRS(w) &= ALL_BUT_COLOR, \ WINDOW_ATTRS(w) |= ColorPair(p) #define SameAttrOf(a,b) (AttrOf(a) == AttrOf(b)) #define VIDPUTS(sp,attr,pair) NCURSES_SP_NAME(vidputs)(NCURSES_SP_ARGx attr, NCURSES_OUTC_FUNC) #endif /* NCURSES_EXT_COLORS */ # 536 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define NCURSES_OUTC_FUNC NCURSES_SP_NAME(_nc_outch) #define NCURSES_PUTP2(name,value) NCURSES_SP_NAME(_nc_putp)(NCURSES_SP_ARGx name, value) #define NCURSES_PUTP2_FLUSH(name,value) NCURSES_SP_NAME(_nc_putp_flush)(NCURSES_SP_ARGx name, value) #if 0 /* disabled by -frewrite-includes */ #if NCURSES_NO_PADDING #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 542 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define GetNoPadding(sp) ((sp) ? (sp)->_no_padding : _nc_prescreen._no_padding) #define SetNoPadding(sp) _nc_set_no_padding(sp) extern NCURSES_EXPORT(void) _nc_set_no_padding(SCREEN *); #else # 546 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define GetNoPadding(sp) FALSE #define SetNoPadding(sp) /*nothing*/ #endif # 549 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define WINDOW_ATTRS(w) ((w)->_attrs) #define SCREEN_ATTRS(s) (*((s)->_current_attr)) #define GET_SCREEN_PAIR(s) GetPair(SCREEN_ATTRS(s)) #define SET_SCREEN_PAIR(s,p) SetPair(SCREEN_ATTRS(s), p) #if 0 /* disabled by -frewrite-includes */ #if USE_REENTRANT || NCURSES_SP_FUNCS #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 557 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" NCURSES_EXPORT(int *) _nc_ptr_Lines (SCREEN *); NCURSES_EXPORT(int *) _nc_ptr_Cols (SCREEN *); NCURSES_EXPORT(int *) _nc_ptr_Tabsize (SCREEN *); NCURSES_EXPORT(int *) _nc_ptr_Escdelay (SCREEN *); #endif # 562 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #if 0 /* disabled by -frewrite-includes */ #if USE_REENTRANT #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 564 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define ptrLines(sp) (sp ? &(sp->_LINES) : &(_nc_prescreen._LINES)) #define ptrCols(sp) (sp ? &(sp->_COLS) : &(_nc_prescreen._COLS)) #define ptrTabsize(sp) (sp ? &(sp->_TABSIZE) : &(_nc_prescreen._TABSIZE)) #define ptrEscdelay(sp) (sp ? &(sp->_ESCDELAY) : &(_nc_prescreen._ESCDELAY)) #define SET_LINES(value) *_nc_ptr_Lines(SP_PARM) = value #define SET_COLS(value) *_nc_ptr_Cols(SP_PARM) = value #define SET_TABSIZE(value) *_nc_ptr_Tabsize(SP_PARM) = value #define SET_ESCDELAY(value) *_nc_ptr_Escdelay(SP_PARM) = value #else # 576 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define ptrLines(sp) &LINES #define ptrCols(sp) &COLS #define ptrTabsize(sp) &TABSIZE #define ptrEscdelay(sp) &ESCDELAY #define SET_LINES(value) LINES = value #define SET_COLS(value) COLS = value #define SET_TABSIZE(value) TABSIZE = value #define SET_ESCDELAY(value) ESCDELAY = value #endif # 588 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define HasHardTabs() (NonEmpty(clear_all_tabs) && NonEmpty(set_tab)) #define TR_MUTEX(data) _tracef("%s@%d: me:%08lX COUNT:%2u/%2d/%6d/%2d/%s%9u: " #data, \ __FILE__, __LINE__, \ (unsigned long) (pthread_self()), \ data.__data.__lock, \ data.__data.__count, \ data.__data.__owner, \ data.__data.__kind, \ (data.__data.__nusers > 5) ? " OOPS " : "", \ data.__data.__nusers) #define TR_GLOBAL_MUTEX(name) TR_MUTEX(_nc_globals.mutex_##name) #if 0 /* disabled by -frewrite-includes */ #if USE_WEAK_SYMBOLS #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 603 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #if 0 /* disabled by -frewrite-includes */ #if defined(__GNUC__) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 604 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #if 0 /* disabled by -frewrite-includes */ # if defined __USE_ISOC99 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 605 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" # define _cat_pragma(exp) _Pragma(#exp) # define _weak_pragma(exp) _cat_pragma(weak name) # else # 608 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" # define _weak_pragma(exp) # endif # 610 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" # define _declare(name) __extension__ extern __typeof__(name) name # define weak_symbol(name) _weak_pragma(name) _declare(name) __attribute__((weak)) #else # 613 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" # undef USE_WEAK_SYMBOLS # define USE_WEAK_SYMBOLS 0 #endif # 616 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #endif # 617 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #ifdef USE_PTHREADS #if 0 /* disabled by -frewrite-includes */ #if USE_REENTRANT #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 621 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 621 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" # 622 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" extern NCURSES_EXPORT(void) _nc_init_pthreads(void); extern NCURSES_EXPORT(void) _nc_mutex_init(pthread_mutex_t *); extern NCURSES_EXPORT(int) _nc_mutex_lock(pthread_mutex_t *); extern NCURSES_EXPORT(int) _nc_mutex_trylock(pthread_mutex_t *); extern NCURSES_EXPORT(int) _nc_mutex_unlock(pthread_mutex_t *); #define _nc_lock_global(name) _nc_mutex_lock(&_nc_globals.mutex_##name) #define _nc_try_global(name) _nc_mutex_trylock(&_nc_globals.mutex_##name) #define _nc_unlock_global(name) _nc_mutex_unlock(&_nc_globals.mutex_##name) #else # 632 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #error POSIX threads requires --enable-reentrant option #endif # 634 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #ifdef USE_PTHREADS #if 0 /* disabled by -frewrite-includes */ # if USE_WEAK_SYMBOLS #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 637 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" weak_symbol(pthread_sigmask); weak_symbol(pthread_kill); weak_symbol(pthread_self); weak_symbol(pthread_equal); weak_symbol(pthread_mutex_init); weak_symbol(pthread_mutex_lock); weak_symbol(pthread_mutex_unlock); weak_symbol(pthread_mutex_trylock); weak_symbol(pthread_mutexattr_settype); weak_symbol(pthread_mutexattr_init); extern NCURSES_EXPORT(int) _nc_sigprocmask(int, const sigset_t *, sigset_t *); # undef sigprocmask # define sigprocmask(a, b, c) _nc_sigprocmask(a, b, c) # define GetThreadID() (((pthread_self)) ? pthread_self() : (pthread_t) getpid()) # else # 652 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" # define GetThreadID() pthread_self() # endif # 654 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #endif # 655 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #if 0 /* disabled by -frewrite-includes */ #if HAVE_NANOSLEEP #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 657 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #undef HAVE_NANOSLEEP #define HAVE_NANOSLEEP 0 /* nanosleep suspends all threads */ #endif # 660 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #else /* !USE_PTHREADS */ # 662 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #if 0 /* disabled by -frewrite-includes */ #if USE_PTHREADS_EINTR #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 664 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #if 0 /* disabled by -frewrite-includes */ # if USE_WEAK_SYMBOLS #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 665 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 665 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" # 666 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" weak_symbol(pthread_sigmask); weak_symbol(pthread_kill); weak_symbol(pthread_self); weak_symbol(pthread_equal); extern NCURSES_EXPORT(int) _nc_sigprocmask(int, const sigset_t *, sigset_t *); # undef sigprocmask # define sigprocmask(a, b, c) _nc_sigprocmask(a, b, c) # endif # 674 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #endif /* USE_PTHREADS_EINTR */ # 675 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define _nc_init_pthreads() /* nothing */ #define _nc_mutex_init(obj) /* nothing */ #define _nc_lock_global(name) /* nothing */ #define _nc_try_global(name) 0 #define _nc_unlock_global(name) /* nothing */ #endif /* USE_PTHREADS */ # 684 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" /* * When using sp-funcs, locks are targeted to SCREEN-level granularity. * So the locking is done in the non-sp-func (which calls the sp-func) rather * than in the sp-func itself. * * Use the _nc_nonsp_XXX functions in the function using "NCURSES_SP_NAME()". * Use the _nc_sp_XXX functions in the function using "#if NCURSES_SP_FUNCS". */ #if 0 /* disabled by -frewrite-includes */ #if NCURSES_SP_FUNCS #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 694 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define _nc_nonsp_lock_global(name) /* nothing */ #define _nc_nonsp_try_global(name) 0 #define _nc_nonsp_unlock_global(name) /* nothing */ #define _nc_sp_lock_global(name) _nc_lock_global(name) #define _nc_sp_try_global(name) _nc_try_global(name) #define _nc_sp_unlock_global(name) _nc_unlock_global(name) #else # 704 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define _nc_nonsp_lock_global(name) _nc_lock_global(name) #define _nc_nonsp_try_global(name) _nc_try_global(name) #define _nc_nonsp_unlock_global(name) _nc_unlock_global(name) #define _nc_sp_lock_global(name) /* nothing */ #define _nc_sp_try_global(name) 0 #define _nc_sp_unlock_global(name) /* nothing */ #endif # 714 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #if 0 /* disabled by -frewrite-includes */ #if HAVE_GETTIMEOFDAY #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 716 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" # define PRECISE_GETTIME 1 # define TimeType struct timeval #else # 719 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" # define PRECISE_GETTIME 0 # define TimeType time_t #endif # 722 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" /* * Definitions for color pairs */ #define MAX_OF_TYPE(t) (int)(((unsigned t)(~0))>>1) #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 729 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" # 1 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/new_pair.h" 1 /**************************************************************************** * Copyright 2018,2020 Thomas E. Dickey * * Copyright 2017 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * * "Software"), to deal in the Software without restriction, including * * without limitation the rights to use, copy, modify, merge, publish, * * distribute, distribute with modifications, sublicense, and/or sell * * copies of the Software, and to permit persons to whom the Software is * * furnished to do so, subject to the following conditions: * * * * The above copyright notice and this permission notice shall be included * * in all copies or substantial portions of the Software. * * * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. * * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, * * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * * THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * * * Except as contained in this notice, the name(s) of the above copyright * * holders shall not be used in advertising or otherwise to promote the * * sale, use or other dealings in this Software without prior written * * authorization. * ****************************************************************************/ /**************************************************************************** * Author: Thomas E. Dickey * ****************************************************************************/ /* * Common type definitions and macros for new_pair.c, lib_color.c * * $Id: new_pair.h,v 1.11 2020/04/11 16:43:47 tom Exp $ */ #ifndef NEW_PAIR_H #define NEW_PAIR_H 1 /* *INDENT-OFF* */ #define LIMIT_TYPED(n,t) \ (t)(((n) > MAX_OF_TYPE(t)) \ ? MAX_OF_TYPE(t) \ : ((n) < -MAX_OF_TYPE(t)) \ ? -MAX_OF_TYPE(t) \ : (n)) #define limit_COLOR(n) LIMIT_TYPED(n,NCURSES_COLOR_T) #define limit_PAIRS(n) LIMIT_TYPED(n,NCURSES_PAIRS_T) #define MAX_XCURSES_PAIR MAX_OF_TYPE(NCURSES_PAIRS_T) #if 0 /* disabled by -frewrite-includes */ #if NCURSES_EXT_COLORS #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 57 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/new_pair.h" #define OPTIONAL_PAIR GCC_UNUSED #define get_extended_pair(opts, color_pair) \ if ((opts) != NULL) { \ *(int*)(opts) = color_pair; \ } #define set_extended_pair(opts, color_pair) \ if ((opts) != NULL) { \ color_pair = *(const int*)(opts); \ } #else # 67 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/new_pair.h" #define OPTIONAL_PAIR /* nothing */ #define get_extended_pair(opts, color_pair) /* nothing */ #define set_extended_pair(opts, color_pair) \ if ((opts) != NULL) { \ color_pair = -1; \ } #endif # 74 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/new_pair.h" #ifdef NEW_PAIR_INTERNAL typedef enum { cpKEEP = -1, /* color pair 0 */ cpFREE = 0, /* free for use */ cpINIT = 1 /* initialized */ } CPMODE; typedef struct _color_pairs { int fg; int bg; #if 0 /* disabled by -frewrite-includes */ #if NCURSES_EXT_COLORS #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 88 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/new_pair.h" int mode; /* tells if the entry is allocated or free */ int prev; /* index of previous item */ int next; /* index of next item */ #endif # 92 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/new_pair.h" } colorpair_t; #define MakeColorPair(target,f,b) target.fg = f, target.bg = b #define isSamePair(a,b) ((a).fg == (b).fg && (a).bg == (b).bg) #define FORE_OF(c) (c).fg #define BACK_OF(c) (c).bg /* * Ensure that we use color pairs only when colors have been started, and also * that the index is within the limits of the table which we allocated. */ #define ValidPair(sp,pair) \ ((sp != 0) && (pair >= 0) && (pair < sp->_pair_limit) && sp->_coloron) #if 0 /* disabled by -frewrite-includes */ #if NCURSES_EXT_COLORS #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 108 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/new_pair.h" extern NCURSES_EXPORT(void) _nc_copy_pairs(SCREEN*, colorpair_t*, colorpair_t*, int); extern NCURSES_EXPORT(void) _nc_free_ordered_pairs(SCREEN*); extern NCURSES_EXPORT(void) _nc_reset_color_pair(SCREEN*, int, colorpair_t*); extern NCURSES_EXPORT(void) _nc_set_color_pair(SCREEN*, int, int); #else # 113 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/new_pair.h" #define _nc_free_ordered_pairs(sp) /* nothing */ #define _nc_reset_color_pair(sp, pair, data) /* nothing */ #define _nc_set_color_pair(sp, pair, mode) /* nothing */ #endif # 117 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/new_pair.h" #else # 119 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/new_pair.h" typedef struct _color_pairs colorpair_t; #endif /* NEW_PAIR_INTERNAL */ # 123 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/new_pair.h" #if 0 /* disabled by -frewrite-includes */ #if NO_LEAKS #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 125 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/new_pair.h" extern NCURSES_EXPORT(void) _nc_new_pair_leaks(SCREEN*); #endif # 127 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/new_pair.h" /* *INDENT-ON* */ #endif /* NEW_PAIR_H */ # 131 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/new_pair.h" # 730 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" 2 #define isDefaultColor(c) ((c) < 0) #define COLOR_DEFAULT -1 #if 0 /* disabled by -frewrite-includes */ #if defined(USE_BUILD_CC) || (defined(USE_TERMLIB) && !defined(NEED_NCURSES_CH_T)) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 735 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #undef NCURSES_CH_T /* this is not a termlib feature */ #define NCURSES_CH_T void /* ...but we need a pointer in SCREEN */ #endif /* USE_TERMLIB */ # 740 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #ifndef USE_TERMLIB struct ldat { NCURSES_CH_T *text; /* text of the line */ NCURSES_SIZE_T firstchar; /* first changed character in the line */ NCURSES_SIZE_T lastchar; /* last changed character in the line */ NCURSES_SIZE_T oldindex; /* index of the line at last update */ }; #endif /* USE_TERMLIB */ # 750 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" typedef enum { M_XTERM = -1 /* use xterm's mouse tracking? */ ,M_NONE = 0 /* no mouse device */ #if 0 /* disabled by -frewrite-includes */ #if USE_GPM_SUPPORT #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 755 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" ,M_GPM /* use GPM */ #endif # 757 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #if 0 /* disabled by -frewrite-includes */ #if USE_SYSMOUSE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 758 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" ,M_SYSMOUSE /* FreeBSD sysmouse on console */ #endif # 760 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #ifdef USE_TERM_DRIVER ,M_TERM_DRIVER /* Win32 console, etc */ #endif # 763 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" } MouseType; typedef enum { MF_X10 = 0 /* conventional 3-byte format */ , MF_SGR1006 /* xterm private mode 1006, SGR-style */ #ifdef EXP_XTERM_1005 , MF_XTERM_1005 /* xterm UTF-8 private mode 1005 */ #endif # 771 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" } MouseFormat; /* * Structures for scrolling. */ typedef struct { unsigned long hashval; int oldcount, newcount; int oldindex, newindex; } HASHMAP; /* * Structures for soft labels. */ struct _SLK; #if 0 /* disabled by -frewrite-includes */ #if !(defined(USE_TERMLIB) || defined(USE_BUILD_CC)) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 790 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" typedef struct { char *ent_text; /* text for the label */ char *form_text; /* formatted text (left/center/...) */ int ent_x; /* x coordinate of this field */ char dirty; /* this label has changed */ char visible; /* field is visible */ } slk_ent; typedef struct _SLK { bool dirty; /* all labels have changed */ bool hidden; /* soft labels are hidden */ WINDOW *win; slk_ent *ent; short maxlab; /* number of available labels */ short labcnt; /* number of allocated labels */ short maxlen; /* length of labels */ NCURSES_CH_T attr; /* soft label attribute */ } SLK; #endif /* USE_TERMLIB */ # 812 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" typedef struct { WINDOW *win; /* the window used in the hook */ int line; /* lines to take, < 0 => from bottom*/ int (*hook)(WINDOW *, int); /* callback for user */ } ripoff_t; #if 0 /* disabled by -frewrite-includes */ #if USE_GPM_SUPPORT #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 820 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #undef buttons /* term.h defines this, and gpm uses it! */ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 821 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" # 822 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #if 0 /* disabled by -frewrite-includes */ #if USE_WEAK_SYMBOLS #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 823 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" weak_symbol(Gpm_Wgetch); #endif # 825 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #ifdef HAVE_LIBDL /* link dynamically to GPM */ typedef int *TYPE_gpm_fd; typedef int (*TYPE_Gpm_Open) (Gpm_Connect *, int); typedef int (*TYPE_Gpm_Close) (void); typedef int (*TYPE_Gpm_GetEvent) (Gpm_Event *); #define my_gpm_fd SP_PARM->_mouse_gpm_fd #define my_Gpm_Open SP_PARM->_mouse_Gpm_Open #define my_Gpm_Close SP_PARM->_mouse_Gpm_Close #define my_Gpm_GetEvent SP_PARM->_mouse_Gpm_GetEvent #else # 838 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" /* link statically to GPM */ #define my_gpm_fd &gpm_fd #define my_Gpm_Open Gpm_Open #define my_Gpm_Close Gpm_Close #define my_Gpm_GetEvent Gpm_GetEvent #endif /* HAVE_LIBDL */ # 844 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #endif /* USE_GPM_SUPPORT */ # 845 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" typedef struct { long sequence; bool last_used; char *fix_sgr0; /* this holds the filtered sgr0 string */ char *last_bufp; /* help with fix_sgr0 leak */ TERMINAL *last_term; } TGETENT_CACHE; #define TGETENT_MAX 4 /* * When converting from terminfo to termcap, check for cases where we can trim * octal escapes down to 2-character form. It is useful for terminfo format * also, but not as important. */ #define MAX_TC_FIXUPS 10 #define MIN_TC_FIXUPS 4 #define isoctal(c) ((c) >= '0' && (c) <= '7') /* * State of tparm(). */ #define STACKSIZE 20 typedef struct { union { int num; char *str; } data; bool num_type; } STACK_FRAME; #define NUM_VARS 26 typedef struct { const char *tparam_base; STACK_FRAME stack[STACKSIZE]; int stack_ptr; char *out_buff; size_t out_size; size_t out_used; char *fmt_buff; size_t fmt_size; int dynamic_var[NUM_VARS]; int static_vars[NUM_VARS]; #ifdef TRACE const char *tname; #endif # 899 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" } TPARM_STATE; typedef struct { char *text; size_t size; } TRACEBUF; /* * The filesystem database normally uses a single-letter for the lower level * of directories. Use a hexadecimal code for filesystems which do not * preserve mixed-case names. */ #if 0 /* disabled by -frewrite-includes */ #if MIXEDCASE_FILENAMES #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 912 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define LEAF_FMT "%c" #define LEAF_LEN 1 #else # 915 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define LEAF_FMT "%02x" #define LEAF_LEN 2 #endif # 918 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" /* * TRACEMSE_FMT is no longer than 80 columns, there are 5 numbers that * could at most have 10 digits, and the mask contains no more than 32 bits * with each bit representing less than 15 characters. Usually the whole * string is less than 80 columns, but this buffer size is an absolute * limit. */ #define TRACEMSE_MAX (80 + (5 * 10) + (32 * 15)) #define TRACEMSE_FMT "id %2d at (%2d, %2d, %2d) state %4lx = {" /* } */ #ifdef USE_TERM_DRIVER struct DriverTCB; /* Terminal Control Block forward declaration */ #define INIT_TERM_DRIVER() _nc_globals.term_driver = _nc_get_driver #else # 933 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define INIT_TERM_DRIVER() /* nothing */ #endif # 935 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" typedef struct { const char *name; char *value; } ITERATOR_VARS; /* * Global data which is not specific to a screen. */ typedef struct { SIG_ATOMIC_T have_sigtstp; SIG_ATOMIC_T have_sigwinch; SIG_ATOMIC_T cleanup_nested; bool init_signals; bool init_screen; char *comp_sourcename; char *comp_termtype; bool have_tic_directory; bool keep_tic_directory; const char *tic_directory; char *dbi_list; int dbi_size; char *first_name; char **keyname_table; int init_keyname; int slk_format; int getstr_limit; /* getstr_limit based on POSIX LINE_MAX */ char *safeprint_buf; size_t safeprint_used; TGETENT_CACHE tgetent_cache[TGETENT_MAX]; int tgetent_index; long tgetent_sequence; char *dbd_blob; /* string-heap for dbd_list[] */ char **dbd_list; /* distinct places to look for data */ int dbd_size; /* length of dbd_list[] */ time_t dbd_time; /* cache last updated */ ITERATOR_VARS dbd_vars[dbdLAST]; #if 0 /* disabled by -frewrite-includes */ #if HAVE_TSEARCH #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 984 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" void *cached_tparm; int count_tparm; #endif /* HAVE_TSEARCH */ # 987 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #ifdef USE_TERM_DRIVER int (*term_driver)(struct DriverTCB*, const char*, int*); #endif # 991 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #ifndef USE_SP_WINDOWLIST WINDOWLIST *_nc_windowlist; #define WindowList(sp) _nc_globals._nc_windowlist #endif # 996 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #if 0 /* disabled by -frewrite-includes */ #if USE_HOME_TERMINFO #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 998 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" char *home_terminfo; #endif # 1000 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #if 0 /* disabled by -frewrite-includes */ #if !USE_SAFE_SPRINTF #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 1002 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" int safeprint_cols; int safeprint_rows; #endif # 1005 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #ifdef USE_PTHREADS pthread_mutex_t mutex_curses; pthread_mutex_t mutex_prescreen; pthread_mutex_t mutex_screen; pthread_mutex_t mutex_update; pthread_mutex_t mutex_tst_tracef; pthread_mutex_t mutex_tracef; int nested_tracef; int use_pthreads; #define _nc_use_pthreads _nc_globals.use_pthreads #if 0 /* disabled by -frewrite-includes */ #if USE_PTHREADS_EINTR #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 1017 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" pthread_t read_thread; /* The reading thread */ #endif # 1019 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #endif # 1020 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #if 0 /* disabled by -frewrite-includes */ #if USE_WIDEC_SUPPORT #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 1021 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" char key_name[MB_LEN_MAX + 1]; #endif # 1023 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #ifdef TRACE bool trace_opened; char trace_fname[PATH_MAX]; int trace_level; FILE *trace_fp; int trace_fd; char *tracearg_buf; size_t tracearg_used; TRACEBUF *tracebuf_ptr; size_t tracebuf_used; char tracechr_buf[40]; char *tracedmp_buf; size_t tracedmp_used; unsigned char *tracetry_buf; size_t tracetry_used; char traceatr_color_buf[2][80]; int traceatr_color_sel; int traceatr_color_last; #if 0 /* disabled by -frewrite-includes */ #if !defined(USE_PTHREADS) && USE_REENTRANT #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 1049 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" int nested_tracef; #endif # 1051 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #endif /* TRACE */ # 1052 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #if 0 /* disabled by -frewrite-includes */ #if NO_LEAKS #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 1054 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" bool leak_checking; #endif # 1056 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" } NCURSES_GLOBALS; extern NCURSES_EXPORT_VAR(NCURSES_GLOBALS) _nc_globals; #define N_RIPS 5 /* The limit reserves one byte for a terminating NUL */ #define my_getstr_limit (_nc_globals.getstr_limit - 1) #define _nc_getstr_limit(n) \ (((n) < 0) \ ? my_getstr_limit \ : (((n) > my_getstr_limit) \ ? my_getstr_limit \ : (n))) #ifdef USE_PTHREADS typedef struct _prescreen_list { struct _prescreen_list *next; pthread_t id; struct screen *sp; } PRESCREEN_LIST; #endif # 1078 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" /* * Global data which can be swept up into a SCREEN when one is created. * It may be modified before the next SCREEN is created. */ typedef struct { #ifdef USE_PTHREADS PRESCREEN_LIST *allocated; #else # 1087 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" struct screen * allocated; #endif # 1089 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" bool use_env; bool filter_mode; attr_t previous_attr; TPARM_STATE tparm_state; TTY *saved_tty; /* savetty/resetty information */ bool use_tioctl; NCURSES_SP_OUTC _outch; /* output handler if not putc */ #ifndef USE_SP_RIPOFF ripoff_t rippedoff[N_RIPS]; ripoff_t *rsp; #endif # 1100 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #if 0 /* disabled by -frewrite-includes */ #if NCURSES_NO_PADDING #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 1101 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" bool _no_padding; /* flag to set if padding disabled */ #endif # 1103 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #if 0 /* disabled by -frewrite-includes */ #if BROKEN_LINKER || USE_REENTRANT #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 1104 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" chtype *real_acs_map; int _LINES; int _COLS; int _TABSIZE; int _ESCDELAY; TERMINAL *_cur_term; #endif # 1111 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #ifdef TRACE #if 0 /* disabled by -frewrite-includes */ #if BROKEN_LINKER || USE_REENTRANT #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 1113 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" long _outchars; const char *_tputs_trace; #endif # 1116 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #endif # 1117 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" } NCURSES_PRESCREEN; /* * Use screen-specific ripoff data (for softkeys) rather than global. */ #ifdef USE_SP_RIPOFF #define safe_ripoff_sp (sp)->rsp #define safe_ripoff_stack (sp)->rippedoff #else # 1126 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define safe_ripoff_sp _nc_prescreen.rsp #define safe_ripoff_stack _nc_prescreen.rippedoff #endif # 1129 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" extern NCURSES_EXPORT_VAR(NCURSES_PRESCREEN) _nc_prescreen; typedef enum { ewInitial = 0, ewRunning, ewSuspend } ENDWIN; /* * The SCREEN structure. */ struct screen { int _ifd; /* input file descriptor for screen */ int _ofd; /* output file descriptor for screen */ FILE *_ofp; /* output file ptr for screen */ char *out_buffer; /* output buffer */ size_t out_limit; /* output buffer size */ size_t out_inuse; /* output buffer current use */ bool _filtered; /* filter() was called */ bool _prescreen; /* is in prescreen phase */ bool _use_env; /* LINES & COLS from environment? */ int _checkfd; /* filedesc for typeahead check */ TERMINAL *_term; /* terminal type information */ TTY _saved_tty; /* savetty/resetty information */ NCURSES_SIZE_T _lines; /* screen lines */ NCURSES_SIZE_T _columns; /* screen columns */ NCURSES_SIZE_T _lines_avail; /* lines available for stdscr */ NCURSES_SIZE_T _topstolen; /* lines stolen from top */ WINDOW *_curscr; /* current screen */ WINDOW *_newscr; /* virtual screen to be updated to */ WINDOW *_stdscr; /* screen's full-window context */ #define CurScreen(sp) (sp)->_curscr #define NewScreen(sp) (sp)->_newscr #define StdScreen(sp) (sp)->_stdscr TRIES *_keytry; /* "Try" for use with keypad mode */ TRIES *_key_ok; /* Disabled keys via keyok(,FALSE) */ bool _tried; /* keypad mode was initialized */ bool _keypad_on; /* keypad mode is currently on */ bool _called_wgetch; /* check for recursion in wgetch() */ int _fifo[FIFO_SIZE]; /* input push-back buffer */ short _fifohead, /* head of fifo queue */ _fifotail, /* tail of fifo queue */ _fifopeek, /* where to peek for next char */ _fifohold; /* set if breakout marked */ int _endwin; /* are we out of window mode? */ NCURSES_CH_T *_current_attr; /* holds current attributes set */ int _coloron; /* is color enabled? */ int _color_defs; /* are colors modified */ int _cursor; /* visibility of the cursor */ int _cursrow; /* physical cursor row */ int _curscol; /* physical cursor column */ bool _notty; /* true if we cannot switch non-tty */ int _nl; /* True if NL -> CR/NL is on */ int _raw; /* True if in raw mode */ int _cbreak; /* 1 if in cbreak mode */ /* > 1 if in halfdelay mode */ int _echo; /* True if echo on */ int _use_meta; /* use the meta key? */ struct _SLK *_slk; /* ptr to soft key struct / NULL */ int slk_format; /* selected format for this screen */ /* cursor movement costs; units are 10ths of milliseconds */ int _char_padding; /* cost of character put */ int _cr_cost; /* cost of (carriage_return) */ int _cup_cost; /* cost of (cursor_address) */ int _home_cost; /* cost of (cursor_home) */ int _ll_cost; /* cost of (cursor_to_ll) */ int _cub1_cost; /* cost of (cursor_left) */ int _cuf1_cost; /* cost of (cursor_right) */ int _cud1_cost; /* cost of (cursor_down) */ int _cuu1_cost; /* cost of (cursor_up) */ int _cub_cost; /* cost of (parm_cursor_left) */ int _cuf_cost; /* cost of (parm_cursor_right) */ int _cud_cost; /* cost of (parm_cursor_down) */ int _cuu_cost; /* cost of (parm_cursor_up) */ int _hpa_cost; /* cost of (column_address) */ int _vpa_cost; /* cost of (row_address) */ /* used in tty_update.c, must be chars */ int _ed_cost; /* cost of (clr_eos) */ int _el_cost; /* cost of (clr_eol) */ int _el1_cost; /* cost of (clr_bol) */ int _dch1_cost; /* cost of (delete_character) */ int _ich1_cost; /* cost of (insert_character) */ int _dch_cost; /* cost of (parm_dch) */ int _ich_cost; /* cost of (parm_ich) */ int _ech_cost; /* cost of (erase_chars) */ int _rep_cost; /* cost of (repeat_char) */ int _hpa_ch_cost; /* cost of (column_address) */ int _cup_ch_cost; /* cost of (cursor_address) */ int _cuf_ch_cost; /* cost of (parm_cursor_right) */ int _inline_cost; /* cost of inline-move */ int _smir_cost; /* cost of (enter_insert_mode) */ int _rmir_cost; /* cost of (exit_insert_mode) */ int _ip_cost; /* cost of (insert_padding) */ /* used in lib_mvcur.c */ char * _address_cursor; /* used in tty_update.c */ int _scrolling; /* 1 if terminal's smart enough to */ /* used in lib_color.c */ rgb_bits_t _direct_color; /* RGB overrides color-table */ color_t *_color_table; /* screen's color palette */ int _color_count; /* count of colors in palette */ colorpair_t *_color_pairs; /* screen's color pair list */ int _pair_count; /* same as COLOR_PAIRS */ int _pair_limit; /* actual limit of color-pairs */ int _pair_alloc; /* current table-size of color-pairs */ chtype _ok_attributes; /* valid attributes for terminal */ chtype _xmc_suppress; /* attributes to suppress if xmc */ chtype _xmc_triggers; /* attributes to process if xmc */ chtype * _acs_map; /* the real alternate-charset map */ bool * _screen_acs_map; /* used in lib_vidattr.c */ bool _use_rmso; /* true if we may use 'rmso' */ bool _use_rmul; /* true if we may use 'rmul' */ /* * These data correspond to the state of the idcok() and idlok() * functions. A caveat is in order here: the XSI and SVr4 * documentation specify that these functions apply to the window which * is given as an argument. However, ncurses implements this logic * only for the newscr/curscr update process, _not_ per-window. */ bool _nc_sp_idlok; bool _nc_sp_idcok; /* * These are the data that support the mouse interface. */ bool _mouse_initialized; MouseType _mouse_type; int _maxclick; bool (*_mouse_event) (SCREEN *); bool (*_mouse_inline)(SCREEN *); bool (*_mouse_parse) (SCREEN *, int); void (*_mouse_resume)(SCREEN *); void (*_mouse_wrap) (SCREEN *); int _mouse_fd; /* file-descriptor, if any */ bool _mouse_active; /* true if initialized */ mmask_t _mouse_mask; /* set via mousemask() */ mmask_t _mouse_mask2; /* OR's in press/release bits */ mmask_t _mouse_bstate; MouseFormat _mouse_format; /* type of xterm mouse protocol */ NCURSES_CONST char *_mouse_xtermcap; /* string to enable/disable mouse */ MEVENT _mouse_events[EV_MAX]; /* hold the last mouse event seen */ MEVENT *_mouse_eventp; /* next free slot in event queue */ /* * These are data that support the proper handling of the panel stack on an * per screen basis. */ struct panelhook _panelHook; bool _sig_winch; SCREEN *_next_screen; /* hashes for old and new lines */ unsigned long *oldhash, *newhash; HASHMAP *hashtab; int hashtab_len; int *_oldnum_list; int _oldnum_size; NCURSES_SP_OUTC _outch; /* output handler if not putc */ NCURSES_OUTC jump; ripoff_t rippedoff[N_RIPS]; ripoff_t *rsp; int _legacy_coding; /* see use_legacy_coding() */ #if 0 /* disabled by -frewrite-includes */ #if NCURSES_NO_PADDING #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 1310 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" bool _no_padding; /* flag to set if padding disabled */ #endif # 1312 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #if 0 /* disabled by -frewrite-includes */ #if USE_HARD_TABS #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 1314 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" int _ht_cost; /* cost of (tab) */ int _cbt_cost; /* cost of (backtab) */ #endif /* USE_HARD_TABS */ # 1317 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" /* used in lib_vidattr.c */ #if 0 /* disabled by -frewrite-includes */ #if USE_ITALIC #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 1320 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" bool _use_ritm; /* true if we may use 'ritm' */ #endif # 1322 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" /* used in getch/twait */ #if 0 /* disabled by -frewrite-includes */ #if USE_KLIBC_KBD #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 1325 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" bool _extended_key; /* true if an extended key */ #endif # 1327 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" /* used in lib_color.c */ #if 0 /* disabled by -frewrite-includes */ #if NCURSES_EXT_FUNCS #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 1330 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" bool _assumed_color; /* use assumed colors */ bool _default_color; /* use default colors */ bool _has_sgr_39_49; /* has ECMA default color support */ int _default_fg; /* assumed default foreground */ int _default_bg; /* assumed default background */ int _default_pairs; /* count pairs using default color */ #endif # 1337 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" /* system-dependent mouse data */ #if 0 /* disabled by -frewrite-includes */ #if USE_GPM_SUPPORT #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 1340 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" bool _mouse_gpm_loaded; bool _mouse_gpm_found; #ifdef HAVE_LIBDL void *_dlopen_gpm; TYPE_gpm_fd _mouse_gpm_fd; TYPE_Gpm_Open _mouse_Gpm_Open; TYPE_Gpm_Close _mouse_Gpm_Close; TYPE_Gpm_GetEvent _mouse_Gpm_GetEvent; #endif # 1349 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" Gpm_Connect _mouse_gpm_connect; #endif /* USE_GPM_SUPPORT */ # 1351 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #if 0 /* disabled by -frewrite-includes */ #if USE_EMX_MOUSE #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 1353 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" int _emxmouse_wfd; int _emxmouse_thread; int _emxmouse_activated; char _emxmouse_buttons[4]; #endif # 1358 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #if 0 /* disabled by -frewrite-includes */ #if USE_SYSMOUSE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 1360 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" MEVENT _sysmouse_fifo[FIFO_SIZE]; int _sysmouse_head; int _sysmouse_tail; int _sysmouse_char_width; /* character width */ int _sysmouse_char_height; /* character height */ int _sysmouse_old_buttons; int _sysmouse_new_buttons; #endif # 1368 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #if 0 /* disabled by -frewrite-includes */ #if defined(USE_TERM_DRIVER) || defined(EXP_WIN32_DRIVER) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 1370 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" MEVENT _drv_mouse_fifo[FIFO_SIZE]; int _drv_mouse_head; int _drv_mouse_tail; int _drv_mouse_old_buttons; int _drv_mouse_new_buttons; #endif # 1376 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" /* * This supports automatic resizing */ #if 0 /* disabled by -frewrite-includes */ #if USE_SIZECHANGE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 1380 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" int (*_resize)(NCURSES_SP_DCLx int y, int x); int (*_ungetch)(SCREEN *, int); #endif # 1383 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #ifdef USE_SP_WINDOWLIST WINDOWLIST* _windowlist; #define WindowList(sp) (sp)->_windowlist #endif # 1388 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #if 0 /* disabled by -frewrite-includes */ #if USE_REENTRANT #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 1390 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" char _ttytype[NAMESIZE]; int _ESCDELAY; int _TABSIZE; int _LINES; int _COLS; #endif # 1396 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #if 0 /* disabled by -frewrite-includes */ #if NCURSES_SP_FUNCS #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 1398 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" bool use_tioctl; #endif # 1400 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" /* * ncurses/ncursesw are the same up to this point. */ #if 0 /* disabled by -frewrite-includes */ #if USE_WIDEC_SUPPORT #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 1405 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" /* recent versions of 'screen' have partially-working support for * UTF-8, but do not permit ACS at the same time (see tty_update.c). */ bool _screen_acs_fix; bool _screen_unicode; #endif # 1411 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #if 0 /* disabled by -frewrite-includes */ #if NCURSES_EXT_FUNCS && NCURSES_EXT_COLORS #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 1413 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" void *_ordered_pairs; /* index used by alloc_pair() */ int _pairs_used; /* actual number of color-pairs used */ int _recent_pair; /* number for most recent free-pair */ #endif # 1417 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #ifdef TRACE char tracechr_buf[40]; char tracemse_buf[TRACEMSE_MAX]; #if 0 /* disabled by -frewrite-includes */ #if USE_REENTRANT #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 1422 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" long _outchars; const char *_tputs_trace; #endif # 1425 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #endif # 1426 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" }; extern NCURSES_EXPORT_VAR(SCREEN *) _nc_screen_chain; extern NCURSES_EXPORT_VAR(SIG_ATOMIC_T) _nc_have_sigwinch; WINDOWLIST { WINDOWLIST *next; SCREEN *screen; /* screen containing the window */ WINDOW win; /* WINDOW_EXT() needs to account for offset */ #if 0 /* disabled by -frewrite-includes */ #if NCURSES_WIDECHAR #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 1436 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" char addch_work[(MB_LEN_MAX * 9) + 1]; unsigned addch_used; /* number of bytes in addch_work[] */ int addch_x; /* x-position for addch_work[] */ int addch_y; /* y-position for addch_work[] */ #endif # 1441 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" }; #define WINDOW_EXT(w,m) (((WINDOWLIST *)((void *)((char *)(w) - offsetof(WINDOWLIST, win))))->m) #ifdef USE_SP_WINDOWLIST #define SP_INIT_WINDOWLIST(sp) WindowList(sp) = 0 #else # 1448 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define SP_INIT_WINDOWLIST(sp) /* nothing */ #endif # 1450 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define SP_PRE_INIT(sp) \ sp->_cursrow = -1; \ sp->_curscol = -1; \ sp->_nl = TRUE; \ sp->_raw = FALSE; \ sp->_cbreak = 0; \ sp->_echo = TRUE; \ sp->_fifohead = -1; \ sp->_endwin = ewSuspend; \ sp->_cursor = -1; \ SP_INIT_WINDOWLIST(sp); \ sp->_outch = NCURSES_OUTC_FUNC; \ sp->jump = 0 \ /* usually in */ #ifndef UCHAR_MAX #define UCHAR_MAX 255 #endif # 1469 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" /* The terminfo source is assumed to be 7-bit ASCII */ #define is7bits(c) ((unsigned)(c) < 128) /* Checks for isprint() should be done on 8-bit characters (non-wide) */ #define is8bits(c) ((unsigned)(c) <= UCHAR_MAX) #ifndef min #define min(a,b) ((a) > (b) ? (b) : (a)) #endif # 1479 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #ifndef max #define max(a,b) ((a) < (b) ? (b) : (a)) #endif # 1483 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" /* usually in */ #ifndef STDIN_FILENO #define STDIN_FILENO 0 #endif # 1488 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #ifndef STDOUT_FILENO #define STDOUT_FILENO 1 #endif # 1492 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #ifndef STDERR_FILENO #define STDERR_FILENO 2 #endif # 1496 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #ifndef EXIT_SUCCESS #define EXIT_SUCCESS 0 #endif # 1500 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #ifndef EXIT_FAILURE #define EXIT_FAILURE 1 #endif # 1504 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #ifndef R_OK #define R_OK 4 /* Test for read permission. */ #endif # 1508 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #ifndef W_OK #define W_OK 2 /* Test for write permission. */ #endif # 1511 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #ifndef X_OK #define X_OK 1 /* Test for execute permission. */ #endif # 1514 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #ifndef F_OK #define F_OK 0 /* Test for existence. */ #endif # 1517 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #if 0 /* disabled by -frewrite-includes */ #if HAVE_FCNTL_H #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 1519 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #if 0 /* expanded by -frewrite-includes */ #include /* may define O_BINARY */ #endif /* expanded by -frewrite-includes */ # 1519 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" # 1 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/fcntl.h" 1 3 4 /*- * SPDX-License-Identifier: BSD-3-Clause * * Copyright (c) 1983, 1990, 1993 * The Regents of the University of California. All rights reserved. * (c) UNIX System Laboratories, Inc. * All or some portions of this file are derived from material licensed * to the University of California by American Telephone and Telegraph * Co. or Unix System Laboratories, Inc. and are reproduced herein with * the permission of UNIX System Laboratories, Inc. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * @(#)fcntl.h 8.3 (Berkeley) 1/21/94 * $FreeBSD$ */ #ifndef _SYS_FCNTL_H_ #define _SYS_FCNTL_H_ /* * This file includes the definitions for open and fcntl * described by POSIX for ; it also includes * related kernel definitions. */ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 49 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/fcntl.h" 3 4 # 50 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/fcntl.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 50 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/fcntl.h" 3 4 # 51 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/fcntl.h" 3 4 #ifndef _MODE_T_DECLARED typedef __mode_t mode_t; #define _MODE_T_DECLARED #endif # 56 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/fcntl.h" 3 4 #ifndef _OFF_T_DECLARED typedef __off_t off_t; #define _OFF_T_DECLARED #endif # 61 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/fcntl.h" 3 4 #ifndef _PID_T_DECLARED typedef __pid_t pid_t; #define _PID_T_DECLARED #endif # 66 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/fcntl.h" 3 4 /* * File status flags: these are used by open(2), fcntl(2). * They are also used (indirectly) in the kernel file structure f_flags, * which is a superset of the open/fcntl flags. Open flags and f_flags * are inter-convertible using OFLAGS(fflags) and FFLAGS(oflags). * Open/fcntl flags begin with O_; kernel-internal flags begin with F. */ /* open-only flags */ #define O_RDONLY 0x0000 /* open for reading only */ #define O_WRONLY 0x0001 /* open for writing only */ #define O_RDWR 0x0002 /* open for reading and writing */ #define O_ACCMODE 0x0003 /* mask for above modes */ /* * Kernel encoding of open mode; separate read and write bits that are * independently testable: 1 greater than the above. * * XXX * FREAD and FWRITE are excluded from the #ifdef _KERNEL so that TIOCFLUSH, * which was documented to use FREAD/FWRITE, continues to work. */ #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 89 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/fcntl.h" 3 4 #define FREAD 0x0001 #define FWRITE 0x0002 #endif # 92 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/fcntl.h" 3 4 #define O_NONBLOCK 0x0004 /* no delay */ #define O_APPEND 0x0008 /* set append mode */ #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 95 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/fcntl.h" 3 4 #define O_SHLOCK 0x0010 /* open with shared file lock */ #define O_EXLOCK 0x0020 /* open with exclusive file lock */ #define O_ASYNC 0x0040 /* signal pgrp when data ready */ #define O_FSYNC 0x0080 /* synchronous writes */ #endif # 100 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/fcntl.h" 3 4 #define O_SYNC 0x0080 /* POSIX synonym for O_FSYNC */ #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 200809 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 102 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/fcntl.h" 3 4 #define O_NOFOLLOW 0x0100 /* don't follow symlinks */ #endif # 104 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/fcntl.h" 3 4 #define O_CREAT 0x0200 /* create if nonexistent */ #define O_TRUNC 0x0400 /* truncate to zero length */ #define O_EXCL 0x0800 /* error if already exists */ #ifdef _KERNEL #define FHASLOCK 0x4000 /* descriptor holds advisory lock */ #endif # 110 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/fcntl.h" 3 4 /* Defined by POSIX 1003.1; BSD default, but must be distinct from O_RDONLY. */ #define O_NOCTTY 0x8000 /* don't assign controlling terminal */ #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 115 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/fcntl.h" 3 4 /* Attempt to bypass buffer cache */ #define O_DIRECT 0x00010000 #endif # 118 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/fcntl.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 200809 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 120 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/fcntl.h" 3 4 #define O_DIRECTORY 0x00020000 /* Fail if not directory */ #define O_EXEC 0x00040000 /* Open for execute only */ #define O_SEARCH O_EXEC #endif # 124 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/fcntl.h" 3 4 #ifdef _KERNEL #define FEXEC O_EXEC #define FSEARCH O_SEARCH #endif # 128 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/fcntl.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 200809 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 130 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/fcntl.h" 3 4 /* Defined by POSIX 1003.1-2008; BSD default, but reserve for future use. */ #define O_TTY_INIT 0x00080000 /* Restore default termios attributes */ #define O_CLOEXEC 0x00100000 #endif # 135 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/fcntl.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 137 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/fcntl.h" 3 4 #define O_VERIFY 0x00200000 /* open only after verification */ #define O_PATH 0x00400000 /* fd is only a path */ #define O_RESOLVE_BENEATH 0x00800000 /* Do not allow name resolution to walk out of cwd */ #endif # 142 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/fcntl.h" 3 4 #define O_DSYNC 0x01000000 /* POSIX data sync */ #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 145 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/fcntl.h" 3 4 #define O_EMPTY_PATH 0x02000000 #endif # 147 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/fcntl.h" 3 4 /* * XXX missing O_RSYNC. */ #ifdef _KERNEL /* Only for devfs d_close() flags. */ #define FLASTCLOSE O_DIRECTORY #define FREVOKE O_VERIFY /* Only for fo_close() from half-succeeded open */ #define FOPENFAILED O_TTY_INIT /* Only for O_PATH files which passed ACCESS FREAD check on open */ #define FKQALLOWED O_RESOLVE_BENEATH /* convert from open() flags to/from fflags; convert O_RD/WR to FREAD/FWRITE */ #define FFLAGS(oflags) ((oflags) & O_EXEC ? (oflags) : (oflags) + 1) #define OFLAGS(fflags) \ (((fflags) & (O_EXEC | O_PATH)) != 0 ? (fflags) : (fflags) - 1) /* bits to save after open */ #define FMASK (FREAD|FWRITE|FAPPEND|FASYNC|FFSYNC|FDSYNC|FNONBLOCK| \ O_DIRECT|FEXEC|O_PATH) /* bits settable by fcntl(F_SETFL, ...) */ #define FCNTLFLAGS (FAPPEND|FASYNC|FFSYNC|FDSYNC|FNONBLOCK|FRDAHEAD|O_DIRECT) #if 0 /* disabled by -frewrite-includes */ #if defined(COMPAT_FREEBSD7) || defined(COMPAT_FREEBSD6) || \ defined(COMPAT_FREEBSD5) || defined(COMPAT_FREEBSD4) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 175 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/fcntl.h" 3 4 /* * Set by shm_open(3) in older libc's to get automatic MAP_ASYNC * behavior for POSIX shared memory objects (which are otherwise * implemented as plain files). */ #define FPOSIXSHM O_NOFOLLOW #undef FCNTLFLAGS #define FCNTLFLAGS (FAPPEND|FASYNC|FFSYNC|FNONBLOCK|FPOSIXSHM|FRDAHEAD| \ O_DIRECT) #endif # 185 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/fcntl.h" 3 4 #endif # 186 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/fcntl.h" 3 4 /* * The O_* flags used to have only F* names, which were used in the kernel * and by fcntl. We retain the F* names for the kernel f_flag field * and for backward compatibility for fcntl. These flags are deprecated. */ #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 193 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/fcntl.h" 3 4 #define FAPPEND O_APPEND /* kernel/compat */ #define FASYNC O_ASYNC /* kernel/compat */ #define FFSYNC O_FSYNC /* kernel */ #define FDSYNC O_DSYNC /* kernel */ #define FNONBLOCK O_NONBLOCK /* kernel */ #define FNDELAY O_NONBLOCK /* compat */ #define O_NDELAY O_NONBLOCK /* compat */ #endif # 201 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/fcntl.h" 3 4 /* * Historically, we ran out of bits in f_flag (which was once a short). * However, the flag bits not set in FMASK are only meaningful in the * initial open syscall. Those bits were thus given a * different meaning for fcntl(2). */ #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 209 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/fcntl.h" 3 4 /* Read ahead */ #define FRDAHEAD O_CREAT #endif # 212 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/fcntl.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 200809 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 214 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/fcntl.h" 3 4 /* * Magic value that specify the use of the current working directory * to determine the target of relative file paths in the openat() and * similar syscalls. */ #define AT_FDCWD -100 /* * Miscellaneous flags for the *at() syscalls. */ #define AT_EACCESS 0x0100 /* Check access using effective user and group ID */ #define AT_SYMLINK_NOFOLLOW 0x0200 /* Do not follow symbolic links */ #define AT_SYMLINK_FOLLOW 0x0400 /* Follow symbolic link */ #define AT_REMOVEDIR 0x0800 /* Remove directory instead of file */ #endif /* __POSIX_VISIBLE >= 200809 */ # 230 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/fcntl.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 231 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/fcntl.h" 3 4 /* #define AT_UNUSED1 0x1000 *//* Was AT_BENEATH */ #define AT_RESOLVE_BENEATH 0x2000 /* Do not allow name resolution to walk out of dirfd */ #define AT_EMPTY_PATH 0x4000 /* Operate on dirfd if path is empty */ #endif /* __BSD_VISIBLE */ # 236 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/fcntl.h" 3 4 /* * Constants used for fcntl(2) */ /* command values */ #define F_DUPFD 0 /* duplicate file descriptor */ #define F_GETFD 1 /* get file descriptor flags */ #define F_SETFD 2 /* set file descriptor flags */ #define F_GETFL 3 /* get file status flags */ #define F_SETFL 4 /* set file status flags */ #if 0 /* disabled by -frewrite-includes */ #if __XSI_VISIBLE || __POSIX_VISIBLE >= 200112 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 248 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/fcntl.h" 3 4 #define F_GETOWN 5 /* get SIGIO/SIGURG proc/pgrp */ #define F_SETOWN 6 /* set SIGIO/SIGURG proc/pgrp */ #endif # 251 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/fcntl.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 252 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/fcntl.h" 3 4 #define F_OGETLK 7 /* get record locking information */ #define F_OSETLK 8 /* set record locking information */ #define F_OSETLKW 9 /* F_SETLK; wait if blocked */ #define F_DUP2FD 10 /* duplicate file descriptor to arg */ #endif # 257 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/fcntl.h" 3 4 #define F_GETLK 11 /* get record locking information */ #define F_SETLK 12 /* set record locking information */ #define F_SETLKW 13 /* F_SETLK; wait if blocked */ #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 261 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/fcntl.h" 3 4 #define F_SETLK_REMOTE 14 /* debugging support for remote locks */ #define F_READAHEAD 15 /* read ahead */ #define F_RDAHEAD 16 /* Darwin compatible read ahead */ #endif # 265 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/fcntl.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 200809 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 266 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/fcntl.h" 3 4 #define F_DUPFD_CLOEXEC 17 /* Like F_DUPFD, but FD_CLOEXEC is set */ #endif # 268 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/fcntl.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 269 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/fcntl.h" 3 4 #define F_DUP2FD_CLOEXEC 18 /* Like F_DUP2FD, but FD_CLOEXEC is set */ #define F_ADD_SEALS 19 #define F_GET_SEALS 20 #define F_ISUNIONSTACK 21 /* Kludge for libc, don't use it. */ /* Seals (F_ADD_SEALS, F_GET_SEALS). */ #define F_SEAL_SEAL 0x0001 /* Prevent adding sealings */ #define F_SEAL_SHRINK 0x0002 /* May not shrink */ #define F_SEAL_GROW 0x0004 /* May not grow */ #define F_SEAL_WRITE 0x0008 /* May not write */ #endif /* __BSD_VISIBLE */ # 280 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/fcntl.h" 3 4 /* file descriptor flags (F_GETFD, F_SETFD) */ #define FD_CLOEXEC 1 /* close-on-exec flag */ /* record locking flags (F_GETLK, F_SETLK, F_SETLKW) */ #define F_RDLCK 1 /* shared or read lock */ #define F_UNLCK 2 /* unlock */ #define F_WRLCK 3 /* exclusive or write lock */ #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 289 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/fcntl.h" 3 4 #define F_UNLCKSYS 4 /* purge locks for a given system ID */ #define F_CANCEL 5 /* cancel an async lock request */ #endif # 292 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/fcntl.h" 3 4 #ifdef _KERNEL #define F_WAIT 0x010 /* Wait until lock is granted */ #define F_FLOCK 0x020 /* Use flock(2) semantics for lock */ #define F_POSIX 0x040 /* Use POSIX semantics for lock */ #define F_REMOTE 0x080 /* Lock owner is remote NFS client */ #define F_NOINTR 0x100 /* Ignore signals when waiting */ #define F_FIRSTOPEN 0x200 /* First right to advlock file */ #endif # 300 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/fcntl.h" 3 4 /* * Advisory file segment locking data type - * information passed to system by user */ struct flock { off_t l_start; /* starting offset */ off_t l_len; /* len = 0 means until end of file */ pid_t l_pid; /* lock owner */ short l_type; /* lock type: read/write, etc. */ short l_whence; /* type of l_start */ int l_sysid; /* remote system id or zero for local */ }; #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 315 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/fcntl.h" 3 4 /* * Old advisory file segment locking data type, * before adding l_sysid. */ struct __oflock { off_t l_start; /* starting offset */ off_t l_len; /* len = 0 means until end of file */ pid_t l_pid; /* lock owner */ short l_type; /* lock type: read/write, etc. */ short l_whence; /* type of l_start */ }; /* * Space control offset/length description */ struct spacectl_range { off_t r_offset; /* starting offset */ off_t r_len; /* length */ }; #endif # 335 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/fcntl.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 337 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/fcntl.h" 3 4 /* lock operations for flock(2) */ #define LOCK_SH 0x01 /* shared file lock */ #define LOCK_EX 0x02 /* exclusive file lock */ #define LOCK_NB 0x04 /* don't block when locking */ #define LOCK_UN 0x08 /* unlock file */ #endif # 343 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/fcntl.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 200112 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 345 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/fcntl.h" 3 4 /* * Advice to posix_fadvise */ #define POSIX_FADV_NORMAL 0 /* no special treatment */ #define POSIX_FADV_RANDOM 1 /* expect random page references */ #define POSIX_FADV_SEQUENTIAL 2 /* expect sequential page references */ #define POSIX_FADV_WILLNEED 3 /* will need these pages */ #define POSIX_FADV_DONTNEED 4 /* dont need these pages */ #define POSIX_FADV_NOREUSE 5 /* access data only once */ #endif # 355 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/fcntl.h" 3 4 #ifdef __BSD_VISIBLE /* * Magic value that specify that corresponding file descriptor to filename * is unknown and sanitary check should be omitted in the funlinkat() and * similar syscalls. */ #define FD_NONE -200 /* * Commands for fspacectl(2) */ #define SPACECTL_DEALLOC 1 /* deallocate space */ /* * fspacectl(2) flags */ #define SPACECTL_F_SUPPORTED 0 #endif # 374 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/fcntl.h" 3 4 #ifndef _KERNEL __BEGIN_DECLS int open(const char *, int, ...); int creat(const char *, mode_t); int fcntl(int, int, ...); #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 381 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/fcntl.h" 3 4 int flock(int, int); int fspacectl(int, int, const struct spacectl_range *, int, struct spacectl_range *); #endif # 385 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/fcntl.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 200809 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 386 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/fcntl.h" 3 4 int openat(int, const char *, int, ...); #endif # 388 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/fcntl.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 200112 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 389 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/fcntl.h" 3 4 int posix_fadvise(int, off_t, off_t, int); int posix_fallocate(int, off_t, off_t); #endif # 392 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/fcntl.h" 3 4 __END_DECLS #endif # 394 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/fcntl.h" 3 4 #endif /* !_SYS_FCNTL_H_ */ # 396 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/fcntl.h" 3 4 # 1520 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" 2 #endif # 1521 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #ifndef O_BINARY #define O_BINARY 0 #endif # 1525 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #ifdef TRACE #if 0 /* disabled by -frewrite-includes */ #if USE_REENTRANT #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 1528 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define COUNT_OUTCHARS(n) _nc_count_outchars(n); #else # 1530 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define COUNT_OUTCHARS(n) _nc_outchars += (n); #endif # 1532 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #else # 1533 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define COUNT_OUTCHARS(n) /* nothing */ #endif # 1535 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define RESET_OUTCHARS() COUNT_OUTCHARS(-_nc_outchars) #define UChar(c) ((unsigned char)(c)) #define UShort(c) ((unsigned short)(c)) #define ChCharOf(c) ((chtype)(c) & (chtype)A_CHARTEXT) #define ChAttrOf(c) ((chtype)(c) & (chtype)A_ATTRIBUTES) #define TR_PUTC(c) TR(TRACE_CHARPUT, ("PUTC %#x", UChar(c))) #ifndef MB_LEN_MAX #define MB_LEN_MAX 8 /* should be >= MB_CUR_MAX, but that may be a function */ #endif # 1548 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #if 0 /* disabled by -frewrite-includes */ #if USE_WIDEC_SUPPORT /* { */ #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 1550 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define isEILSEQ(status) (((size_t)status == (size_t)-1) && (errno == EILSEQ)) #define init_mb(state) memset(&state, 0, sizeof(state)) #if 0 /* disabled by -frewrite-includes */ #if NCURSES_EXT_COLORS #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 1555 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define NulColor , 0 #else # 1557 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define NulColor /* nothing */ #endif # 1559 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define NulChar 0,0,0,0 /* FIXME: see CCHARW_MAX */ #define CharOf(c) ((c).chars[0]) #define AttrOf(c) ((c).attr) #define AddAttr(c,a) AttrOf(c) |= ((a) & A_ATTRIBUTES) #define RemAttr(c,a) AttrOf(c) &= ~((a) & A_ATTRIBUTES) #define SetAttr(c,a) AttrOf(c) = ((a) & A_ATTRIBUTES) | WidecExt(c) #define NewChar2(c,a) { a, { c, NulChar } NulColor } #define NewChar(ch) NewChar2(ChCharOf(ch), ChAttrOf(ch)) #if 0 /* disabled by -frewrite-includes */ #if CCHARW_MAX == 5 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 1572 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define CharEq(a,b) (((a).attr == (b).attr) \ && (a).chars[0] == (b).chars[0] \ && (a).chars[1] == (b).chars[1] \ && (a).chars[2] == (b).chars[2] \ && (a).chars[3] == (b).chars[3] \ && (a).chars[4] == (b).chars[4] \ if_EXT_COLORS(&& (a).ext_color == (b).ext_color)) #if 0 /* disabled by -frewrite-includes */ #if 0 #elif CCHARW_MAX > 0 #endif #endif /* disabled by -frewrite-includes */ #elif 0 /* evaluated by -frewrite-includes */ # 1580 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #error Inconsistent values for CCHARW_MAX #else # 1582 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define CharEq(a,b) (!memcmp(&(a), &(b), sizeof(a))) #endif # 1584 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define SetChar(ch,c,a) do { \ NCURSES_CH_T *_cp = &ch; \ memset(_cp, 0, sizeof(ch)); \ _cp->chars[0] = (wchar_t) (c); \ _cp->attr = (a); \ if_EXT_COLORS(SetPair(ch, PairNumber(a))); \ } while (0) #define CHREF(wch) (&wch) #define CHDEREF(wch) (*wch) #define ARG_CH_T NCURSES_CH_T * #define CARG_CH_T const NCURSES_CH_T * #define PUTC_DATA char PUTC_buf[MB_LEN_MAX]; int PUTC_i, PUTC_n; \ mbstate_t PUT_st; wchar_t PUTC_ch #define PUTC_INIT init_mb (PUT_st) #define PUTC(ch) do { if(!isWidecExt(ch)) { \ if (Charable(ch)) { \ TR_PUTC(CharOf(ch)); \ NCURSES_OUTC_FUNC (NCURSES_SP_ARGx CharOf(ch)); \ COUNT_OUTCHARS(1); \ } else { \ for (PUTC_i = 0; PUTC_i < CCHARW_MAX; ++PUTC_i) { \ PUTC_ch = (ch).chars[PUTC_i]; \ if (PUTC_ch == L'\0') \ break; \ PUTC_INIT; \ PUTC_n = (int) wcrtomb(PUTC_buf, \ (ch).chars[PUTC_i], &PUT_st); \ if (PUTC_n <= 0) { \ if (PUTC_ch && is8bits(PUTC_ch) && PUTC_i == 0) { \ TR_PUTC(CharOf(ch)); \ NCURSES_OUTC_FUNC (NCURSES_SP_ARGx CharOf(ch)); \ } \ break; \ } else { \ int PUTC_j; \ for (PUTC_j = 0; PUTC_j < PUTC_n; ++PUTC_j) { \ TR_PUTC(PUTC_buf[PUTC_j]); \ NCURSES_OUTC_FUNC (NCURSES_SP_ARGx PUTC_buf[PUTC_j]); \ } \ } \ } \ COUNT_OUTCHARS(PUTC_i); \ } } } while (0) #define BLANK NewChar2(' ', WA_NORMAL) #define ZEROS NewChar2('\0', WA_NORMAL) #define ISBLANK(ch) ((ch).chars[0] == L' ' && (ch).chars[1] == L'\0') /* * Wide characters cannot be represented in the A_CHARTEXT mask of * attr_t's but an application might have set a narrow character there. * But even in that case, it would only be a printable character, or * zero. Otherwise we can use those bits to tell if a cell is the * first or extension part of a wide character. */ #define WidecExt(ch) (int) (AttrOf(ch) & A_CHARTEXT) #define isWidecBase(ch) (WidecExt(ch) == 1) #define isWidecExt(ch) (WidecExt(ch) > 1 && WidecExt(ch) < 32) #define SetWidecExt(dst, ext) AttrOf(dst) &= ~A_CHARTEXT, \ AttrOf(dst) |= (attr_t) (ext + 1) #define if_WIDEC(code) code #define Charable(ch) (((SP_PARM->_legacy_coding) \ || (AttrOf(ch) & A_ALTCHARSET) \ || (!isWidecExt(ch))) && \ (ch).chars[1] == L'\0' && \ _nc_is_charable(CharOf(ch))) #define L(ch) L ## ch #else /* }{ */ # 1655 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define CharOf(c) ChCharOf(c) #define AttrOf(c) ChAttrOf(c) #define AddAttr(c,a) c |= (a) #define RemAttr(c,a) c &= ~((a) & A_ATTRIBUTES) #define SetAttr(c,a) c = ((c) & ~A_ATTRIBUTES) | (a) #define NewChar(ch) (ch) #define NewChar2(c,a) ((c) | (a)) #define CharEq(a,b) ((a) == (b)) #define SetChar(ch,c,a) ch = (c) | (a) #define CHREF(wch) wch #define CHDEREF(wch) wch #define ARG_CH_T NCURSES_CH_T #define CARG_CH_T NCURSES_CH_T #define PUTC_DATA /* nothing */ #define PUTC(ch) { \ TR_PUTC(ch); \ NCURSES_OUTC_FUNC (NCURSES_SP_ARGx (int) ch); \ } #define BLANK (' '|A_NORMAL) #define ZEROS ('\0'|A_NORMAL) #define ISBLANK(ch) (CharOf(ch) == ' ') #define isWidecExt(ch) (0) #define if_WIDEC(code) /* nothing */ #define Charable(ch) ((ch) >= ' ' && (ch) <= '~') #define L(ch) ch #endif /* } */ # 1684 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define AttrOfD(ch) AttrOf(CHDEREF(ch)) #define CharOfD(ch) CharOf(CHDEREF(ch)) #define SetChar2(wch,ch) SetChar(wch,ChCharOf(ch),ChAttrOf(ch)) #define BLANK_ATTR A_NORMAL #define BLANK_TEXT L(' ') #define CHANGED -1 #define LEGALYX(w, y, x) \ ((w) != 0 && \ ((x) >= 0 && (x) <= (w)->_maxx && \ (y) >= 0 && (y) <= (w)->_maxy)) #define CHANGED_CELL(line,col) \ if (line->firstchar == _NOCHANGE) \ line->firstchar = line->lastchar = (NCURSES_SIZE_T) (col); \ else if ((col) < line->firstchar) \ line->firstchar = (NCURSES_SIZE_T) (col); \ else if ((col) > line->lastchar) \ line->lastchar = (NCURSES_SIZE_T) (col) #define CHANGED_RANGE(line,start,end) \ if (line->firstchar == _NOCHANGE \ || line->firstchar > (start)) \ line->firstchar = (NCURSES_SIZE_T) (start); \ if (line->lastchar == _NOCHANGE \ || line->lastchar < (end)) \ line->lastchar = (NCURSES_SIZE_T) (end) #define CHANGED_TO_EOL(line,start,end) \ if (line->firstchar == _NOCHANGE \ || line->firstchar > (start)) \ line->firstchar = (NCURSES_SIZE_T) (start); \ line->lastchar = (NCURSES_SIZE_T) (end) #define SIZEOF(v) (sizeof(v)/sizeof(v[0])) #define FreeIfNeeded(p) if ((p) != 0) free(p) /* FreeAndNull() is not a comma-separated expression because some compilers * do not accept a mixture of void with values. */ #define FreeAndNull(p) do { free(p); p = 0; } while (0) #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 1730 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" # 1 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_alloc.h" 1 /**************************************************************************** * Copyright 2019,2020 Thomas E. Dickey * * Copyright 1998-2013,2017 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * * "Software"), to deal in the Software without restriction, including * * without limitation the rights to use, copy, modify, merge, publish, * * distribute, distribute with modifications, sublicense, and/or sell * * copies of the Software, and to permit persons to whom the Software is * * furnished to do so, subject to the following conditions: * * * * The above copyright notice and this permission notice shall be included * * in all copies or substantial portions of the Software. * * * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. * * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, * * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * * THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * * * Except as contained in this notice, the name(s) of the above copyright * * holders shall not be used in advertising or otherwise to promote the * * sale, use or other dealings in this Software without prior written * * authorization. * ****************************************************************************/ /**************************************************************************** * Author: Thomas E. Dickey 1996-on * ****************************************************************************/ /* $Id: nc_alloc.h,v 1.27 2020/07/04 20:01:13 tom Exp $ */ #ifndef NC_ALLOC_included #define NC_ALLOC_included 1 /* *INDENT-OFF* */ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 39 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_alloc.h" # 40 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_alloc.h" #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 40 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_alloc.h" # 41 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_alloc.h" #ifdef __cplusplus extern "C" { #endif # 45 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_alloc.h" #if 0 /* disabled by -frewrite-includes */ #if defined(HAVE_LIBDMALLOC) && HAVE_LIBDMALLOC #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 47 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_alloc.h" #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 47 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_alloc.h" # 48 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_alloc.h" #undef strndup /* workaround for #define in GLIBC 2.7 */ #if 0 /* expanded by -frewrite-includes */ #include /* Gray Watson's library */ #endif /* expanded by -frewrite-includes */ # 49 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_alloc.h" # 50 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_alloc.h" #else # 51 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_alloc.h" #undef HAVE_LIBDMALLOC #define HAVE_LIBDMALLOC 0 #endif # 54 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_alloc.h" #if 0 /* disabled by -frewrite-includes */ #if defined(HAVE_LIBDBMALLOC) && HAVE_LIBDBMALLOC #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 56 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_alloc.h" #if 0 /* expanded by -frewrite-includes */ #include /* Conor Cahill's library */ #endif /* expanded by -frewrite-includes */ # 56 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_alloc.h" # 57 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_alloc.h" #else # 58 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_alloc.h" #undef HAVE_LIBDBMALLOC #define HAVE_LIBDBMALLOC 0 #endif # 61 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_alloc.h" #if 0 /* disabled by -frewrite-includes */ #if defined(HAVE_LIBMPATROL) && HAVE_LIBMPATROL #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 63 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_alloc.h" #if 0 /* expanded by -frewrite-includes */ #include /* Memory-Patrol library */ #endif /* expanded by -frewrite-includes */ # 63 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_alloc.h" # 64 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_alloc.h" #else # 65 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_alloc.h" #undef HAVE_LIBMPATROL #define HAVE_LIBMPATROL 0 #endif # 68 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_alloc.h" #ifndef NO_LEAKS #define NO_LEAKS 0 #endif # 72 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_alloc.h" #if 0 /* disabled by -frewrite-includes */ #if HAVE_LIBDBMALLOC || HAVE_LIBDMALLOC || NO_LEAKS #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 74 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_alloc.h" #define HAVE_NC_FREEALL 1 struct termtype; extern NCURSES_EXPORT(void) _nc_free_tinfo(int) GCC_NORETURN GCC_DEPRECATED("use exit_terminfo"); #ifdef NCURSES_INTERNALS extern NCURSES_EXPORT(void) _nc_free_tic(int) GCC_NORETURN; extern NCURSES_EXPORT(void) _nc_free_tparm(void); extern void _nc_leaks_dump_entry(void); extern NCURSES_EXPORT(void) _nc_leaks_tic(void); #if 0 /* disabled by -frewrite-includes */ #if NCURSES_SP_FUNCS #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 85 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_alloc.h" extern NCURSES_EXPORT(void) NCURSES_SP_NAME(_nc_free_and_exit)(SCREEN*, int) GCC_NORETURN; #endif # 87 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_alloc.h" extern NCURSES_EXPORT(void) _nc_free_and_exit(int) GCC_NORETURN; #else /* !NCURSES_INTERNALS */ # 90 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_alloc.h" extern NCURSES_EXPORT(void) _nc_free_and_exit(int) GCC_NORETURN GCC_DEPRECATED("use exit_curses"); #endif # 92 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_alloc.h" #define ExitProgram(code) exit_curses(code) #else # 96 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_alloc.h" extern NCURSES_EXPORT(void) _nc_free_and_exit(int) GCC_NORETURN GCC_DEPRECATED("use exit_curses"); #endif /* NO_LEAKS, etc */ # 98 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_alloc.h" #ifndef HAVE_NC_FREEALL #define HAVE_NC_FREEALL 0 #endif # 102 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_alloc.h" #ifndef ExitProgram #define ExitProgram(code) exit(code) #endif # 106 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_alloc.h" /* doalloc.c */ extern NCURSES_EXPORT(void *) _nc_doalloc(void *, size_t); #if 0 /* disabled by -frewrite-includes */ #if !HAVE_STRDUP #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 110 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_alloc.h" #undef strdup #define strdup _nc_strdup extern NCURSES_EXPORT(char *) _nc_strdup(const char *); #endif # 114 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_alloc.h" /* entries.c */ extern NCURSES_EXPORT(void) _nc_leaks_tinfo(void); #define typeMalloc(type,elts) (type *)malloc((size_t)(elts)*sizeof(type)) #define typeCalloc(type,elts) (type *)calloc((size_t)(elts),sizeof(type)) #define typeRealloc(type,elts,ptr) (type *)_nc_doalloc(ptr, (size_t)(elts)*sizeof(type)) #ifdef __cplusplus } #endif # 125 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_alloc.h" /* *INDENT-ON* */ #endif /* NC_ALLOC_included */ # 129 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/nc_alloc.h" # 1731 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" 2 /* * Use these for tic/infocmp malloc failures. Generally the ncurses library * tries to limp along after a failure. */ #define TYPE_MALLOC(type, size, name) \ do { \ name = typeMalloc(type, size); \ if (name == 0) \ _nc_err_abort(MSG_NO_MEMORY); \ } while (0) #define TYPE_REALLOC(type, size, name) \ do { \ name = typeRealloc(type, size, name); \ if (name == 0) \ _nc_err_abort(MSG_NO_MEMORY); \ } while (0) /* * TTY bit definition for converting tabs to spaces. */ #ifdef TAB3 # define OFLAGS_TABS TAB3 /* POSIX specifies TAB3 */ #else # 1756 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" # ifdef XTABS # define OFLAGS_TABS XTABS /* XTABS is usually the "same" */ # else # 1759 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" # ifdef OXTABS # define OFLAGS_TABS OXTABS /* the traditional BSD equivalent */ # else # 1762 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" # define OFLAGS_TABS 0 # endif # 1764 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" # endif # 1765 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #endif # 1766 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #ifdef __TANDEM #define ROOT_UID 65535 #endif # 1770 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #ifndef ROOT_UID #define ROOT_UID 0 #endif # 1774 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" /* * Standardize/simplify common loops */ #define each_screen(p) p = _nc_screen_chain; p != 0; p = (p)->_next_screen #define each_window(sp,p) p = WindowList(sp); p != 0; p = (p)->next #define each_ripoff(p) p = safe_ripoff_stack; (p - safe_ripoff_stack) < N_RIPS; ++p /* * Prefixes for call/return points of library function traces. We use these to * instrument the public functions so that the traces can be easily transformed * into regression scripts. */ #define T_CALLED(fmt) "called {" fmt #define T_CREATE(fmt) "create :" fmt #define T_RETURN(fmt) "return }" fmt #define NonNull(s) ((s) != 0 ? s : "") #define NonEmpty(s) ((s) != 0 && *(s) != '\0') #ifdef TRACE #if 0 /* disabled by -frewrite-includes */ #if USE_REENTRANT #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 1797 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define TPUTS_TRACE(s) _nc_set_tputs_trace(s); #else # 1799 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define TPUTS_TRACE(s) _nc_tputs_trace = s; #endif # 1801 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #ifdef HAVE_CONSISTENT_GETENV #define START_TRACE() \ if ((_nc_tracing & TRACE_MAXIMUM) == 0) { \ int t = _nc_getenv_num("NCURSES_TRACE"); \ if (t >= 0) \ curses_trace((unsigned) t); \ } #else # 1810 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define START_TRACE() /* nothing */ #endif # 1812 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" /* * Many of the _tracef() calls use static buffers; lock the trace state before * trying to fill them. */ #if 0 /* disabled by -frewrite-includes */ #if USE_REENTRANT #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 1818 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define USE_TRACEF(mask) _nc_use_tracef(mask) extern NCURSES_EXPORT(int) _nc_use_tracef (unsigned); extern NCURSES_EXPORT(void) _nc_locked_tracef (const char *, ...) GCC_PRINTFLIKE(1,2); #else # 1822 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define USE_TRACEF(mask) (_nc_tracing & (mask)) #define _nc_locked_tracef _tracef #endif # 1825 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define TR(n, a) if (USE_TRACEF(n)) _nc_locked_tracef a #define T(a) TR(TRACE_CALLS, a) #define TRACE_RETURN(value,type) return _nc_retrace_##type((type)(value)) #define TRACE_RETURN1(value,dst) return _nc_retrace_##dst(value) #define TRACE_RETURN2(value,dst,src) return _nc_retrace_##dst##_##src(value) #define TRACE_RETURN_SP(value,type) return _nc_retrace_##type(SP_PARM, value) typedef void VoidFunc(void); #define TR_FUNC_LEN ((sizeof(void *) + sizeof(void (*)(void))) * 2 + 4) #define TR_FUNC_BFR(max) char tr_func_data[max][TR_FUNC_LEN] #define TR_FUNC_ARG(num,func) _nc_fmt_funcptr(&tr_func_data[num][0], (const char *)&(func), sizeof((func))) #define returnAttr(code) TRACE_RETURN(code,attr_t) #define returnBits(code) TRACE_RETURN(code,unsigned) #define returnBool(code) TRACE_RETURN(code,bool) #define returnCPtr(code) TRACE_RETURN1(code,cptr) #define returnCVoidPtr(code) TRACE_RETURN1(code,cvoid_ptr) #define returnChar(code) TRACE_RETURN(code,char) #define returnChtype(code) TRACE_RETURN(code,chtype) #define returnCode(code) TRACE_RETURN(code,int) #define returnIntAttr(code) TRACE_RETURN2(code,int,attr_t) #define returnMMask(code) TRACE_RETURN_SP(code,mmask_t) #define returnPtr(code) TRACE_RETURN1(code,ptr) #define returnSP(code) TRACE_RETURN1(code,sp) #define returnVoid T((T_RETURN(""))); return #define returnVoidPtr(code) TRACE_RETURN1(code,void_ptr) #define returnWin(code) TRACE_RETURN1(code,win) #define returnDB(rc) do { TR(TRACE_DATABASE,(T_RETURN("code %d"), (rc))); return (rc); } while (0) extern NCURSES_EXPORT(NCURSES_BOOL) _nc_retrace_bool (int); extern NCURSES_EXPORT(NCURSES_CONST void *) _nc_retrace_cvoid_ptr (NCURSES_CONST void *); extern NCURSES_EXPORT(SCREEN *) _nc_retrace_sp (SCREEN *); extern NCURSES_EXPORT(WINDOW *) _nc_retrace_win (WINDOW *); extern NCURSES_EXPORT(attr_t) _nc_retrace_attr_t (attr_t); extern NCURSES_EXPORT(char *) _nc_retrace_ptr (char *); extern NCURSES_EXPORT(char *) _nc_trace_ttymode(const TTY *tty); extern NCURSES_EXPORT(char *) _nc_varargs (const char *, va_list); extern NCURSES_EXPORT(chtype) _nc_retrace_chtype (chtype); extern NCURSES_EXPORT(const char *) _nc_altcharset_name(attr_t, chtype); extern NCURSES_EXPORT(const char *) _nc_retrace_cptr (const char *); extern NCURSES_EXPORT(char) _nc_retrace_char (int); extern NCURSES_EXPORT(int) _nc_retrace_int (int); extern NCURSES_EXPORT(int) _nc_retrace_int_attr_t (attr_t); extern NCURSES_EXPORT(mmask_t) _nc_retrace_mmask_t (SCREEN *, mmask_t); extern NCURSES_EXPORT(unsigned) _nc_retrace_unsigned (unsigned); extern NCURSES_EXPORT(void *) _nc_retrace_void_ptr (void *); extern NCURSES_EXPORT(void) _nc_fifo_dump (SCREEN *); extern NCURSES_EXPORT(char *) _nc_fmt_funcptr(char *, const char *, size_t); #if 0 /* disabled by -frewrite-includes */ #if USE_REENTRANT #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 1879 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" NCURSES_WRAPPED_VAR(long, _nc_outchars); NCURSES_WRAPPED_VAR(const char *, _nc_tputs_trace); #define _nc_outchars NCURSES_PUBLIC_VAR(_nc_outchars()) #define _nc_tputs_trace NCURSES_PUBLIC_VAR(_nc_tputs_trace()) extern NCURSES_EXPORT(void) _nc_set_tputs_trace (const char *); extern NCURSES_EXPORT(void) _nc_count_outchars (long); #else # 1886 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" extern NCURSES_EXPORT_VAR(const char *) _nc_tputs_trace; extern NCURSES_EXPORT_VAR(long) _nc_outchars; #endif # 1889 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" extern NCURSES_EXPORT_VAR(unsigned) _nc_tracing; extern NCURSES_EXPORT(char *) _nc_tracebits (void); extern NCURSES_EXPORT(char *) _tracemouse (const MEVENT *); extern NCURSES_EXPORT(void) _tracedump (const char *, WINDOW *); #if 0 /* disabled by -frewrite-includes */ #if USE_WIDEC_SUPPORT #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 1897 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" extern NCURSES_EXPORT(const char *) _nc_viswbuf2 (int, const wchar_t *); extern NCURSES_EXPORT(const char *) _nc_viswbufn (const wchar_t *, int); #endif # 1900 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" extern NCURSES_EXPORT(const char *) _nc_viscbuf2 (int, const NCURSES_CH_T *, int); extern NCURSES_EXPORT(const char *) _nc_viscbuf (const NCURSES_CH_T *, int); #else /* !TRACE */ # 1905 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define START_TRACE() /* nothing */ #define T(a) #define TR(n, a) #define TPUTS_TRACE(s) #define TR_FUNC_BFR(max) #define returnAttr(code) return code #define returnBits(code) return code #define returnBool(code) return code #define returnCPtr(code) return code #define returnCVoidPtr(code) return code #define returnChar(code) return ((char) code) #define returnChtype(code) return code #define returnCode(code) return code #define returnIntAttr(code) return code #define returnMMask(code) return code #define returnPtr(code) return code #define returnSP(code) return code #define returnVoid return #define returnVoidPtr(code) return code #define returnWin(code) return code #define returnDB(code) return code #endif /* TRACE/!TRACE */ # 1932 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" /* * Workaround for defective implementation of gcc attribute warn_unused_result */ #if 0 /* disabled by -frewrite-includes */ #if defined(__GNUC__) && defined(_FORTIFY_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 1937 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define IGNORE_RC(func) errno = (int) func #else # 1939 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define IGNORE_RC(func) (void) func #endif /* gcc workarounds */ # 1941 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" /* * Return-codes for tgetent() and friends. */ #define TGETENT_YES 1 /* entry is found */ #define TGETENT_NO 0 /* entry is not found */ #define TGETENT_ERR -1 /* an error occurred */ extern NCURSES_EXPORT(const char *) _nc_visbuf2 (int, const char *); extern NCURSES_EXPORT(const char *) _nc_visbufn (const char *, int); #define EMPTY_MODULE(name) \ extern NCURSES_EXPORT(void) name (void); \ NCURSES_EXPORT(void) name (void) { } #define ALL_BUT_COLOR ((chtype)~(A_COLOR)) #define NONBLANK_ATTR (A_BOLD | A_DIM | A_BLINK | A_ITALIC) #define TPARM_ATTR (A_STANDOUT | A_UNDERLINE | A_REVERSE | A_BLINK | A_DIM | A_BOLD | A_ALTCHARSET | A_INVIS | A_PROTECT) #define XMC_CONFLICT (A_STANDOUT | A_UNDERLINE | A_REVERSE | A_BLINK | A_DIM | A_BOLD | A_INVIS | A_PROTECT | A_ITALIC) #define XMC_CHANGES(c) ((c) & SP_PARM->_xmc_suppress) #define toggle_attr_on(S,at) {\ if (PairNumber(at) > 0) {\ (S) = ((S) & ALL_BUT_COLOR) | (attr_t) (at);\ } else {\ (S) |= (attr_t) (at);\ }\ TR(TRACE_ATTRS, ("new attribute is %s", _traceattr((S))));} #define toggle_attr_off(S,at) {\ if (PairNumber(at) > 0) {\ (S) &= ~(at|A_COLOR);\ } else {\ (S) &= ~(at);\ }\ TR(TRACE_ATTRS, ("new attribute is %s", _traceattr((S))));} #define DelCharCost(sp,count) \ ((parm_dch != 0) \ ? sp->_dch_cost \ : ((delete_character != 0) \ ? (sp->_dch1_cost * count) \ : INFINITY)) #define InsCharCost(sp,count) \ ((parm_ich != 0) \ ? sp->_ich_cost \ : ((enter_insert_mode && exit_insert_mode) \ ? sp->_smir_cost + sp->_rmir_cost + (sp->_ip_cost * count) \ : ((insert_character != 0) \ ? ((sp->_ich1_cost + sp->_ip_cost) * count) \ : INFINITY))) #if 0 /* disabled by -frewrite-includes */ #if USE_XMC_SUPPORT #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 1996 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define UpdateAttrs(sp,c) if (!SameAttrOf(SCREEN_ATTRS(sp), c)) { \ attr_t chg = AttrOf(SCREEN_ATTRS(sp)); \ VIDPUTS(sp, AttrOf(c), GetPair(c)); \ if (magic_cookie_glitch > 0 \ && XMC_CHANGES((chg ^ AttrOf(SCREEN_ATTRS(sp))))) { \ T(("%s @%d before glitch %d,%d", \ __FILE__, __LINE__, \ sp->_cursrow, \ sp->_curscol)); \ NCURSES_SP_NAME(_nc_do_xmc_glitch)(NCURSES_SP_ARGx chg); \ } \ } #else # 2009 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define UpdateAttrs(sp,c) if (!SameAttrOf(SCREEN_ATTRS(sp), c)) { \ VIDPUTS(sp, AttrOf(c), GetPair(c)); \ } #endif # 2013 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" /* * Macros to make additional parameter to implement wgetch_events() */ #ifdef NCURSES_WGETCH_EVENTS #define EVENTLIST_0th(param) param #define EVENTLIST_1st(param) param #define EVENTLIST_2nd(param) , param #define TWAIT_MASK (TW_ANY | TW_EVENT) #else # 2023 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define EVENTLIST_0th(param) void #define EVENTLIST_1st(param) /* nothing */ #define EVENTLIST_2nd(param) /* nothing */ #define TWAIT_MASK TW_ANY #endif # 2028 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #if 0 /* disabled by -frewrite-includes */ #if NCURSES_EXPANDED && NCURSES_EXT_FUNCS #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 2030 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #undef toggle_attr_on #define toggle_attr_on(S,at) _nc_toggle_attr_on(&(S), at) extern NCURSES_EXPORT(void) _nc_toggle_attr_on (attr_t *, attr_t); #undef toggle_attr_off #define toggle_attr_off(S,at) _nc_toggle_attr_off(&(S), at) extern NCURSES_EXPORT(void) _nc_toggle_attr_off (attr_t *, attr_t); #undef DelCharCost #define DelCharCost(sp, count) NCURSES_SP_NAME(_nc_DelCharCost)(NCURSES_SP_ARGx count) #undef InsCharCost #define InsCharCost(sp, count) NCURSES_SP_NAME(_nc_InsCharCost)(NCURSES_SP_ARGx count) extern NCURSES_EXPORT(int) NCURSES_SP_NAME(_nc_DelCharCost) (NCURSES_SP_DCLx int _c); extern NCURSES_EXPORT(int) NCURSES_SP_NAME(_nc_InsCharCost) (NCURSES_SP_DCLx int _c); #undef UpdateAttrs #define UpdateAttrs(sp,c) NCURSES_SP_NAME(_nc_UpdateAttrs)(NCURSES_SP_ARGx CHREF(c)) #if 0 /* disabled by -frewrite-includes */ #if USE_WIDEC_SUPPORT || defined(NEED_NCURSES_CH_T) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 2052 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" extern NCURSES_EXPORT(void) NCURSES_SP_NAME(_nc_UpdateAttrs) (NCURSES_SP_DCLx CARG_CH_T _c); #else # 2054 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" extern NCURSES_EXPORT(void) NCURSES_SP_NAME(_nc_UpdateAttrs) (NCURSES_SP_DCLx chtype c); #endif # 2056 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #if 0 /* disabled by -frewrite-includes */ #if NCURSES_SP_FUNCS #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 2058 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" extern NCURSES_EXPORT(int) _nc_DelCharCost (int); extern NCURSES_EXPORT(int) _nc_InsCharCost (int); extern NCURSES_EXPORT(void) _nc_UpdateAttrs (CARG_CH_T); #endif /* NCURSES_SP_FUNCS */ # 2062 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #else # 2064 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" extern NCURSES_EXPORT(void) _nc_expanded (void); #endif # 2068 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #if 0 /* disabled by -frewrite-includes */ #if !NCURSES_EXT_FUNCS #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 2070 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define set_escdelay(value) ESCDELAY = value #endif # 2072 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #if 0 /* disabled by -frewrite-includes */ #if !HAVE_GETCWD #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 2074 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define getcwd(buf,len) getwd(buf) #endif # 2076 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define save_ttytype(termp) \ if (TerminalType(termp).term_names != 0) { \ _nc_STRNCPY(ttytype, \ TerminalType(termp).term_names, \ NAMESIZE - 1); \ ttytype[NAMESIZE - 1] = '\0'; \ } #if 0 /* disabled by -frewrite-includes */ #if !NCURSES_WCWIDTH_GRAPHICS #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 2086 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" extern NCURSES_EXPORT(int) _nc_wacs_width(unsigned); #else # 2088 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define _nc_wacs_width(ch) wcwidth(ch) #endif # 2090 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" /* charable.c */ #if 0 /* disabled by -frewrite-includes */ #if USE_WIDEC_SUPPORT #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 2093 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" extern NCURSES_EXPORT(bool) _nc_is_charable(wchar_t); extern NCURSES_EXPORT(int) _nc_to_char(wint_t); extern NCURSES_EXPORT(wint_t) _nc_to_widechar(int); #endif # 2097 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" /* comp_captab.c */ typedef struct { short nte_name; /* offset of name to hash on */ int nte_type; /* BOOLEAN, NUMBER or STRING */ short nte_index; /* index of associated variable in its array */ short nte_link; /* index in table of next hash, or -1 */ } name_table_data; typedef struct { short from; short to; short source; } alias_table_data; /* comp_userdefs.c */ typedef struct { short ute_name; /* offset of name to hash on */ unsigned ute_type; /* mask (BOOLEAN, NUMBER, STRING) */ unsigned ute_argc; /* number of parameters */ unsigned ute_args; /* bit-mask for string parameters */ short ute_index; /* index of associated variable in its array */ short ute_link; /* index in table of next hash, or -1 */ } user_table_data; /* doupdate.c */ #if 0 /* disabled by -frewrite-includes */ #if USE_XMC_SUPPORT #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 2125 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" extern NCURSES_EXPORT(void) _nc_do_xmc_glitch (attr_t); #endif # 2127 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" /* hardscroll.c */ #if 0 /* disabled by -frewrite-includes */ #if defined(TRACE) || defined(SCROLLDEBUG) || defined(HASHDEBUG) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 2130 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" extern NCURSES_EXPORT(void) _nc_linedump (void); #endif # 2132 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" /* lib_acs.c */ extern NCURSES_EXPORT(void) _nc_init_acs (void); /* corresponds to traditional 'init_acs()' */ extern NCURSES_EXPORT(int) _nc_msec_cost (const char *const, int); /* used by 'tack' program */ /* lib_addch.c */ #if 0 /* disabled by -frewrite-includes */ #if USE_WIDEC_SUPPORT #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 2139 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" NCURSES_EXPORT(int) _nc_build_wch(WINDOW *win, ARG_CH_T ch); #endif # 2141 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" /* lib_addstr.c */ #if 0 /* disabled by -frewrite-includes */ #if USE_WIDEC_SUPPORT && !(defined(USE_TERMLIB) || defined(USE_BUILD_CC)) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 2144 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" extern NCURSES_EXPORT(int) _nc_wchstrlen(const cchar_t *); #endif # 2146 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" /* lib_color.c */ extern NCURSES_EXPORT(int) _nc_init_color(SCREEN *, int, int, int, int); extern NCURSES_EXPORT(int) _nc_init_pair(SCREEN *, int, int, int); extern NCURSES_EXPORT(int) _nc_pair_content(SCREEN *, int, int *, int *); extern NCURSES_EXPORT(bool) _nc_reset_colors(void); extern NCURSES_EXPORT(void) _nc_reserve_pairs(SCREEN *, int); extern NCURSES_EXPORT(void) _nc_change_pair(SCREEN *, int); #define ReservePairs(sp,want) \ if ((sp->_color_pairs == 0) || (want >= sp->_pair_alloc)) \ _nc_reserve_pairs(sp, want) /* lib_getch.c */ extern NCURSES_EXPORT(int) _nc_wgetch(WINDOW *, int *, int EVENTLIST_2nd(_nc_eventlist *)); /* lib_insch.c */ extern NCURSES_EXPORT(int) _nc_insert_ch(SCREEN *, WINDOW *, chtype); /* lib_mvcur.c */ #define INFINITY 1000000 /* cost: too high to use */ extern NCURSES_EXPORT(int) _nc_mvcur(int yold, int xold, int ynew, int xnew); extern NCURSES_EXPORT(void) _nc_mvcur_init (void); extern NCURSES_EXPORT(void) _nc_mvcur_resume (void); extern NCURSES_EXPORT(void) _nc_mvcur_wrap (void); extern NCURSES_EXPORT(int) _nc_scrolln (int, int, int, int); extern NCURSES_EXPORT(void) _nc_screen_init (void); extern NCURSES_EXPORT(void) _nc_screen_resume (void); extern NCURSES_EXPORT(void) _nc_screen_wrap (void); /* lib_mouse.c */ extern NCURSES_EXPORT(bool) _nc_has_mouse (SCREEN *); /* lib_mvcur.c */ #define INFINITY 1000000 /* cost: too high to use */ #define BAUDBYTE 9 /* 9 = 7 bits + 1 parity + 1 stop */ /* lib_setup.c */ extern NCURSES_EXPORT(char *) _nc_get_locale(void); extern NCURSES_EXPORT(int) _nc_unicode_locale(void); extern NCURSES_EXPORT(int) _nc_locale_breaks_acs(TERMINAL *); extern NCURSES_EXPORT(int) _nc_setupterm(const char *, int, int *, int); extern NCURSES_EXPORT(void) _nc_tinfo_cmdch(TERMINAL *, int); #ifdef USE_PTHREADS extern NCURSES_EXPORT(SCREEN *) _nc_find_prescr(void); extern NCURSES_EXPORT(void) _nc_forget_prescr(void); #else # 2198 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define _nc_find_prescr() _nc_prescreen.allocated #define _nc_forget_prescr() _nc_prescreen.allocated = 0 #endif # 2201 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" /* lib_set_term.c */ extern NCURSES_EXPORT(int) _nc_ripoffline(int, int(*)(WINDOW*, int)); /* lib_setup.c */ #define ExitTerminfo(code) exit_terminfo(code) #define SETUP_FAIL ERR #define ret_error(rc, fmt, p, q) if (errret) {\ *errret = rc;\ q;\ returnCode(SETUP_FAIL);\ } else {\ fprintf(stderr, fmt, p);\ q;\ ExitTerminfo(EXIT_FAILURE);\ } #define ret_error1(rc, fmt, p, q) ret_error(rc, "'%s': " fmt, p, q) #define ret_error0(rc, msg) if (errret) {\ *errret = rc;\ returnCode(SETUP_FAIL);\ } else {\ fprintf(stderr, msg);\ ExitTerminfo(EXIT_FAILURE);\ } /* lib_tstp.c */ #if 0 /* disabled by -frewrite-includes */ #if USE_SIGWINCH #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 2232 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" extern NCURSES_EXPORT(int) _nc_handle_sigwinch(SCREEN *); #else # 2234 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define _nc_handle_sigwinch(a) /* nothing */ #endif # 2236 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" /* lib_wacs.c */ #if 0 /* disabled by -frewrite-includes */ #if USE_WIDEC_SUPPORT #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 2239 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" extern NCURSES_EXPORT(void) _nc_init_wacs(void); #endif # 2241 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" typedef struct { char *s_head; /* beginning of the string (may be null) */ char *s_tail; /* end of the string (may be null) */ size_t s_size; /* current remaining size available */ size_t s_init; /* total size available */ } string_desc; /* strings.c */ extern NCURSES_EXPORT(string_desc *) _nc_str_init (string_desc *, char *, size_t); extern NCURSES_EXPORT(string_desc *) _nc_str_null (string_desc *, size_t); extern NCURSES_EXPORT(string_desc *) _nc_str_copy (string_desc *, string_desc *); extern NCURSES_EXPORT(bool) _nc_safe_strcat (string_desc *, const char *); extern NCURSES_EXPORT(bool) _nc_safe_strcpy (string_desc *, const char *); #if 0 /* disabled by -frewrite-includes */ #if !HAVE_STRSTR #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 2257 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define strstr _nc_strstr extern NCURSES_EXPORT(char *) _nc_strstr (const char *, const char *); #endif # 2260 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" /* safe_sprintf.c */ extern NCURSES_EXPORT(char *) _nc_printf_string (const char *, va_list); /* tries.c */ extern NCURSES_EXPORT(int) _nc_add_to_try (TRIES **, const char *, unsigned); extern NCURSES_EXPORT(char *) _nc_expand_try (TRIES *, unsigned, int *, size_t); extern NCURSES_EXPORT(int) _nc_remove_key (TRIES **, unsigned); extern NCURSES_EXPORT(int) _nc_remove_string (TRIES **, const char *); /* elsewhere ... */ extern NCURSES_EXPORT(SCREEN *) _nc_screen_of (WINDOW *); extern NCURSES_EXPORT(TERMINAL*) _nc_get_cur_term (void); extern NCURSES_EXPORT(WINDOW *) _nc_makenew (int, int, int, int, int); extern NCURSES_EXPORT(char *) _nc_trace_buf (int, size_t); extern NCURSES_EXPORT(char *) _nc_trace_bufcat (int, const char *); extern NCURSES_EXPORT(char *) _nc_tracechar (SCREEN *, int); extern NCURSES_EXPORT(char *) _nc_tracemouse (SCREEN *, MEVENT const *); extern NCURSES_EXPORT(char *) _nc_trace_mmask_t (SCREEN *, mmask_t); extern NCURSES_EXPORT(int) _nc_access (const char *, int); extern NCURSES_EXPORT(int) _nc_baudrate (int); extern NCURSES_EXPORT(ENTRY *) _nc_delink_entry (ENTRY *, TERMTYPE2 *); extern NCURSES_EXPORT(int) _nc_freewin (WINDOW *); extern NCURSES_EXPORT(int) _nc_getenv_num (const char *); extern NCURSES_EXPORT(int) _nc_keypad (SCREEN *, int); extern NCURSES_EXPORT(int) _nc_ospeed (int); extern NCURSES_EXPORT(int) _nc_outch (int); extern NCURSES_EXPORT(int) _nc_putchar (int); extern NCURSES_EXPORT(int) _nc_putp(const char *, const char *); extern NCURSES_EXPORT(int) _nc_putp_flush(const char *, const char *); extern NCURSES_EXPORT(int) _nc_read_termcap_entry (const char *const, TERMTYPE2 *const); extern NCURSES_EXPORT(int) _nc_setup_tinfo(const char *, TERMTYPE2 *); extern NCURSES_EXPORT(int) _nc_setupscreen (int, int, FILE *, int, int); extern NCURSES_EXPORT(int) _nc_timed_wait (SCREEN *, int, int, int * EVENTLIST_2nd(_nc_eventlist *)); extern NCURSES_EXPORT(void) _nc_init_termtype (TERMTYPE2 *const); extern NCURSES_EXPORT(void) _nc_do_color (int, int, int, NCURSES_OUTC); extern NCURSES_EXPORT(void) _nc_flush (void); extern NCURSES_EXPORT(void) _nc_free_entry (ENTRY *, TERMTYPE2 *); extern NCURSES_EXPORT(void) _nc_freeall (void); extern NCURSES_EXPORT(void) _nc_hash_map (void); extern NCURSES_EXPORT(void) _nc_init_keytry (SCREEN *); extern NCURSES_EXPORT(void) _nc_keep_tic_dir (const char *); extern NCURSES_EXPORT(void) _nc_make_oldhash (int i); extern NCURSES_EXPORT(void) _nc_scroll_oldhash (int n, int top, int bot); extern NCURSES_EXPORT(void) _nc_scroll_optimize (void); extern NCURSES_EXPORT(void) _nc_set_buffer (FILE *, int); extern NCURSES_EXPORT(void) _nc_setenv_num (const char *, int); extern NCURSES_EXPORT(void) _nc_signal_handler (int); extern NCURSES_EXPORT(void) _nc_synchook (WINDOW *); extern NCURSES_EXPORT(void) _nc_trace_tries (TRIES *); #if 0 /* disabled by -frewrite-includes */ #if NCURSES_EXT_NUMBERS #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 2312 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" extern NCURSES_EXPORT(const TERMTYPE2 *) _nc_fallback2 (const char *); #else # 2314 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define _nc_fallback2(tp) _nc_fallback(tp) #endif # 2316 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #if 0 /* disabled by -frewrite-includes */ #if NCURSES_EXT_NUMBERS #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 2318 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" extern NCURSES_EXPORT(void) _nc_copy_termtype2 (TERMTYPE2 *, const TERMTYPE2 *); extern NCURSES_EXPORT(void) _nc_export_termtype2(TERMTYPE *, const TERMTYPE2 *); #else # 2321 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define _nc_copy_termtype2(dst,src) _nc_copy_termtype((dst),(src)) #define _nc_export_termtype2(dst,src) /* nothing */ #define _nc_free_termtype2(t) _nc_free_termtype(t) /* also... */ #define _nc_read_entry2 _nc_read_entry #endif # 2327 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #if 0 /* disabled by -frewrite-includes */ #if NO_LEAKS #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 2329 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" extern NCURSES_EXPORT(void) _nc_alloc_entry_leaks(void); extern NCURSES_EXPORT(void) _nc_captoinfo_leaks(void); extern NCURSES_EXPORT(void) _nc_codes_leaks(void); extern NCURSES_EXPORT(void) _nc_comp_captab_leaks(void); extern NCURSES_EXPORT(void) _nc_comp_error_leaks(void); extern NCURSES_EXPORT(void) _nc_comp_scan_leaks(void); extern NCURSES_EXPORT(void) _nc_comp_userdefs_leaks(void); extern NCURSES_EXPORT(void) _nc_db_iterator_leaks(void); extern NCURSES_EXPORT(void) _nc_keyname_leaks(void); extern NCURSES_EXPORT(void) _nc_names_leaks(void); extern NCURSES_EXPORT(void) _nc_tgetent_leak(TERMINAL *); extern NCURSES_EXPORT(void) _nc_tgetent_leaks(void); #endif # 2342 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #if 0 /* disabled by -frewrite-includes */ #if !(defined(USE_TERMLIB) || defined(USE_BUILD_CC)) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 2344 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" extern NCURSES_EXPORT(NCURSES_CH_T) _nc_render (WINDOW *, NCURSES_CH_T); extern NCURSES_EXPORT(int) _nc_waddch_nosync (WINDOW *, const NCURSES_CH_T); extern NCURSES_EXPORT(void) _nc_scroll_window (WINDOW *, int const, int const, int const, NCURSES_CH_T); #endif # 2348 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #if 0 /* disabled by -frewrite-includes */ #if USE_WIDEC_SUPPORT #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 2350 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" extern NCURSES_EXPORT(int) _nc_insert_wch(WINDOW *, const cchar_t *); #endif # 2352 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #if 0 /* disabled by -frewrite-includes */ #if USE_WIDEC_SUPPORT && !(defined(USE_TERMLIB) || defined(USE_BUILD_CC)) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 2354 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" extern NCURSES_EXPORT(size_t) _nc_wcrtomb (char *, wchar_t, mbstate_t *); #endif # 2356 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #if 0 /* disabled by -frewrite-includes */ #if USE_SIZECHANGE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 2358 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" extern NCURSES_EXPORT(void) _nc_update_screensize (SCREEN *); #endif # 2360 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #if 0 /* disabled by -frewrite-includes */ #if HAVE_RESIZETERM #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 2362 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" extern NCURSES_EXPORT(void) _nc_resize_margins (WINDOW *); #else # 2364 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define _nc_resize_margins(wp) /* nothing */ #endif # 2366 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #ifdef NCURSES_WGETCH_EVENTS extern NCURSES_EXPORT(int) _nc_eventlist_timeout(_nc_eventlist *); #else # 2370 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define wgetch_events(win, evl) wgetch(win) #define wgetnstr_events(win, str, maxlen, evl) wgetnstr(win, str, maxlen) #endif # 2373 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" /* * Wide-character macros to hide some platform-differences. */ #if 0 /* disabled by -frewrite-includes */ #if USE_WIDEC_SUPPORT #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 2378 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #if 0 /* disabled by -frewrite-includes */ #if defined(_NC_WINDOWS) && !defined(_NC_MSC) && !defined(EXP_WIN32_DRIVER) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 2380 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" /* * MinGW has wide-character functions, but they do not work correctly. */ extern int __MINGW_NOTHROW _nc_wctomb(char *, wchar_t); #define wctomb(s,wc) _nc_wctomb(s,wc) #define wcrtomb(s,wc,n) _nc_wctomb(s,wc) extern int __MINGW_NOTHROW _nc_mbtowc(wchar_t *, const char *, size_t); #define mbtowc(pwc,s,n) _nc_mbtowc(pwc,s,n) extern int __MINGW_NOTHROW _nc_mblen(const char *, size_t); #define mblen(s,n) _nc_mblen(s, n) #endif /* _NC_WINDOWS && !_NC_MSC */ # 2394 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #if 0 /* disabled by -frewrite-includes */ #if HAVE_MBTOWC && HAVE_MBLEN #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 2396 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define reset_mbytes(state) IGNORE_RC(mblen(NULL, (size_t) 0)), IGNORE_RC(mbtowc(NULL, NULL, (size_t) 0)) #define count_mbytes(buffer,length,state) mblen(buffer,length) #define check_mbytes(wch,buffer,length,state) \ (int) mbtowc(&wch, buffer, length) #define state_unused #if 0 /* disabled by -frewrite-includes */ #if 0 #elif HAVE_MBRTOWC && HAVE_MBRLEN #endif #endif /* disabled by -frewrite-includes */ #elif 0 /* evaluated by -frewrite-includes */ # 2402 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define reset_mbytes(state) init_mb(state) #define count_mbytes(buffer,length,state) mbrlen(buffer,length,&state) #define check_mbytes(wch,buffer,length,state) \ (int) mbrtowc(&wch, buffer, length, &state) #else # 2407 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" make an error #endif # 2409 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #endif /* USE_WIDEC_SUPPORT */ # 2411 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" /* * Not everyone has vsscanf(), but we'd like to use it for scanw(). */ #if 0 /* disabled by -frewrite-includes */ #if !HAVE_VSSCANF #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 2416 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" extern int vsscanf(const char *str, const char *format, va_list __arg); #endif # 2418 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" /* scroll indices */ extern NCURSES_EXPORT_VAR(int *) _nc_oldnums; #define USE_SETBUF_0 0 #define NC_OUTPUT(sp) ((sp != 0 && sp->_ofp != 0) ? sp->_ofp : stdout) /* * On systems with a broken linker, define 'SP' as a function to force the * linker to pull in the data-only module with 'SP'. */ #define _nc_alloc_screen_sp() typeCalloc(SCREEN, 1) #if 0 /* disabled by -frewrite-includes */ #if BROKEN_LINKER #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 2433 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define SP _nc_screen() extern NCURSES_EXPORT(SCREEN *) _nc_screen (void); extern NCURSES_EXPORT(int) _nc_alloc_screen (void); extern NCURSES_EXPORT(void) _nc_set_screen (SCREEN *); #define CURRENT_SCREEN _nc_screen() #else # 2439 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" /* current screen is private data; avoid possible linking conflicts too */ extern NCURSES_EXPORT_VAR(SCREEN *) SP; #define CURRENT_SCREEN SP #define _nc_alloc_screen() ((SP = _nc_alloc_screen_sp()) != 0) #define _nc_set_screen(sp) SP = sp #endif # 2445 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #if 0 /* disabled by -frewrite-includes */ #if NCURSES_SP_FUNCS #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 2447 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define CURRENT_SCREEN_PRE (IsPreScreen(CURRENT_SCREEN) ? CURRENT_SCREEN : new_prescr()) #else # 2449 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define CURRENT_SCREEN_PRE CURRENT_SCREEN #endif # 2451 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" /* * We don't want to use the lines or columns capabilities internally, because * if the application is running multiple screens under X, it's quite possible * they could all have type xterm but have different sizes! So... */ #define screen_lines(sp) (sp)->_lines #define screen_columns(sp) (sp)->_columns extern NCURSES_EXPORT(int) _nc_slk_initialize (WINDOW *, int); extern NCURSES_EXPORT(int) _nc_format_slks (NCURSES_SP_DCLx int _c); /* * Some constants related to SLK's */ #define MAX_SKEY_OLD 8 /* count of soft keys */ #define MAX_SKEY_LEN_OLD 8 /* max length of soft key text */ #define MAX_SKEY_PC 12 /* This is what most PC's have */ #define MAX_SKEY_LEN_PC 5 /* Macro to check whether or not we use a standard format */ #define SLK_STDFMT(fmt) (fmt < 3) /* Macro to determine height of label window */ #define SLK_LINES(fmt) (SLK_STDFMT(fmt) ? 1 : ((fmt) - 2)) #define MAX_SKEY(fmt) (SLK_STDFMT(fmt)? MAX_SKEY_OLD : MAX_SKEY_PC) #define MAX_SKEY_LEN(fmt) (SLK_STDFMT(fmt)? MAX_SKEY_LEN_OLD : MAX_SKEY_LEN_PC) /* * Common error messages */ #define MSG_NO_MEMORY "Out of memory" #define MSG_NO_INPUTS "Premature EOF" extern NCURSES_EXPORT(int) _nc_set_tty_mode(TTY *); extern NCURSES_EXPORT(int) _nc_get_tty_mode(TTY *); /* timed_wait flag definitions */ #define TW_NONE 0 #define TW_INPUT 1 #define TW_MOUSE 2 #define TW_ANY (TW_INPUT | TW_MOUSE) #define TW_EVENT 4 #define SetSafeOutcWrapper(outc) \ SCREEN* sp = CURRENT_SCREEN; \ struct screen outc_wrapper; \ if (sp==0) { \ sp = &outc_wrapper; \ memset(sp,0,sizeof(struct screen)); \ sp->_outch = _nc_outc_wrapper; \ }\ sp->jump = outc #ifdef USE_TERM_DRIVER typedef struct _termInfo { bool caninit; bool hascolor; bool initcolor; bool canchange; int tabsize; int maxcolors; int maxpairs; int nocolorvideo; int numbuttons; int numlabels; int labelwidth; int labelheight; const color_t* defaultPalette; } TerminalInfo; typedef struct term_driver { bool isTerminfo; const char* (*td_name)(struct DriverTCB*); bool (*td_CanHandle)(struct DriverTCB*, const char*, int*); void (*td_init)(struct DriverTCB*); void (*td_release)(struct DriverTCB*); int (*td_size)(struct DriverTCB*, int* Line, int *Cols); int (*td_sgmode)(struct DriverTCB*, int setFlag, TTY*); chtype (*td_conattr)(struct DriverTCB*); int (*td_hwcur)(struct DriverTCB*, int yold, int xold, int y, int x); int (*td_mode)(struct DriverTCB*, int progFlag, int defFlag); bool (*td_rescol)(struct DriverTCB*); bool (*td_rescolors)(struct DriverTCB*); void (*td_color)(struct DriverTCB*, int fore, int color, int(*)(SCREEN*, int)); int (*td_doBeepOrFlash)(struct DriverTCB*, int); void (*td_initpair)(struct DriverTCB*, int, int, int); void (*td_initcolor)(struct DriverTCB*, int, int, int, int); void (*td_docolor)(struct DriverTCB*, int, int, int, int(*)(SCREEN*, int)); void (*td_initmouse)(struct DriverTCB*); int (*td_testmouse)(struct DriverTCB*, int EVENTLIST_2nd(_nc_eventlist*)); void (*td_setfilter)(struct DriverTCB*); void (*td_hwlabel)(struct DriverTCB*, int, char*); void (*td_hwlabelOnOff)(struct DriverTCB*, int); int (*td_update)(struct DriverTCB*); int (*td_defaultcolors)(struct DriverTCB*, int, int); int (*td_print)(struct DriverTCB*, char*, int); int (*td_getsize)(struct DriverTCB*, int*, int*); int (*td_setsize)(struct DriverTCB*, int, int); void (*td_initacs)(struct DriverTCB*, chtype*, chtype*); void (*td_scinit)(SCREEN *); void (*td_scexit)(SCREEN *); int (*td_twait)(struct DriverTCB*, int, int, int* EVENTLIST_2nd(_nc_eventlist*)); int (*td_read)(struct DriverTCB*, int*); int (*td_nap)(struct DriverTCB*, int); int (*td_kpad)(struct DriverTCB*, int); int (*td_kyOk)(struct DriverTCB*, int, int); bool (*td_kyExist)(struct DriverTCB*, int); int (*td_cursorSet)(struct DriverTCB*, int); } TERM_DRIVER; typedef struct DriverTCB { TERMINAL term; /* needs to be the first Element !!! */ TERM_DRIVER* drv; /* The driver for that Terminal */ SCREEN* csp; /* The screen that owns that Terminal */ TerminalInfo info; /* Driver independent core capabilities of the Terminal */ void* prop; /* Driver dependent property storage to be used by the Driver */ long magic; } TERMINAL_CONTROL_BLOCK; #define NCDRV_MAGIC(id) (0x47110000 | (id&0xffff)) #define NCDRV_TINFO 0x01 #define NCDRV_WINCONSOLE 0x02 #define TCBOf(sp) ((TERMINAL_CONTROL_BLOCK*)(TerminalOf(sp))) #define InfoOf(sp) TCBOf(sp)->info #define CallDriver(sp,method) TCBOf(sp)->drv->method(TCBOf(sp)) #define CallDriver_1(sp,method,arg1) TCBOf(sp)->drv->method(TCBOf(sp),arg1) #define CallDriver_2(sp,method,arg1,arg2) TCBOf(sp)->drv->method(TCBOf(sp),arg1,arg2) #define CallDriver_3(sp,method,arg1,arg2,arg3) TCBOf(sp)->drv->method(TCBOf(sp),arg1,arg2,arg3) #define CallDriver_4(sp,method,arg1,arg2,arg3,arg4) TCBOf(sp)->drv->method(TCBOf(sp),arg1,arg2,arg3,arg4) extern NCURSES_EXPORT_VAR(const color_t*) _nc_cga_palette; extern NCURSES_EXPORT_VAR(const color_t*) _nc_hls_palette; extern NCURSES_EXPORT(int) _nc_get_driver(TERMINAL_CONTROL_BLOCK*, const char*, int*); extern NCURSES_EXPORT(void) _nc_get_screensize_ex(SCREEN *, TERMINAL *, int *, int *); #endif /* USE_TERM_DRIVER */ # 2597 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" /* * Entrypoints which are actually provided in the terminal driver, which would * be an sp-name otherwise. */ #ifdef USE_TERM_DRIVER #define TINFO_HAS_KEY _nc_tinfo_has_key #define TINFO_DOUPDATE _nc_tinfo_doupdate #define TINFO_MVCUR _nc_tinfo_mvcur extern NCURSES_EXPORT(int) TINFO_HAS_KEY(SCREEN*, int); extern NCURSES_EXPORT(int) TINFO_DOUPDATE(SCREEN *); extern NCURSES_EXPORT(int) TINFO_MVCUR(SCREEN*, int, int, int, int); #else # 2610 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define TINFO_HAS_KEY NCURSES_SP_NAME(has_key) #define TINFO_DOUPDATE NCURSES_SP_NAME(doupdate) #define TINFO_MVCUR NCURSES_SP_NAME(_nc_mvcur) #endif # 2614 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #if 0 /* disabled by -frewrite-includes */ #if defined(EXP_WIN32_DRIVER) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 2616 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 2616 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" # 2617 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #endif # 2618 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" /* * Entrypoints using an extra parameter with the terminal driver. */ #ifdef USE_TERM_DRIVER extern NCURSES_EXPORT(void) _nc_get_screensize(SCREEN *, TERMINAL *, int *, int *); extern NCURSES_EXPORT(int) _nc_setupterm_ex(TERMINAL **, const char *, int , int *, int); #define TINFO_GET_SIZE(sp, tp, lp, cp) \ _nc_get_screensize(sp, tp, lp, cp) #define TINFO_SET_CURTERM(sp, tp) \ NCURSES_SP_NAME(set_curterm)(sp, tp) #define TINFO_SETUP_TERM(tpp, name, fd, err, reuse) \ _nc_setupterm_ex(tpp, name, fd, err, reuse) #else /* !USE_TERM_DRIVER */ # 2632 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" extern NCURSES_EXPORT(void) _nc_get_screensize(SCREEN *, int *, int *); #define TINFO_GET_SIZE(sp, tp, lp, cp) \ _nc_get_screensize(sp, lp, cp) #define TINFO_SET_CURTERM(sp, tp) \ set_curterm(tp) #define TINFO_SETUP_TERM(tpp, name, fd, err, reuse) \ _nc_setupterm(name, fd, err, reuse) #endif /* !USE_TERM_DRIVER */ # 2640 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #ifdef EXP_WIN32_DRIVER extern NCURSES_EXPORT_VAR(TERM_DRIVER) _nc_TINFO_DRIVER; #else # 2644 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #ifdef USE_TERM_DRIVER #if 0 /* disabled by -frewrite-includes */ #if defined(USE_WIN32CON_DRIVER) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 2646 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 2646 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" # 2647 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" extern NCURSES_EXPORT_VAR(TERM_DRIVER) _nc_WIN_DRIVER; extern NCURSES_EXPORT(int) _nc_mingw_isatty(int fd); extern NCURSES_EXPORT(int) _nc_mingw_isconsole(int fd); extern NCURSES_EXPORT(int) _nc_mingw_console_read( SCREEN *sp, HANDLE fd, int *buf); extern NCURSES_EXPORT(int) _nc_mingw_testmouse( SCREEN * sp, HANDLE fd, int delay EVENTLIST_2nd(_nc_eventlist*)); #else # 2659 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #endif # 2660 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" extern NCURSES_EXPORT_VAR(TERM_DRIVER) _nc_TINFO_DRIVER; #endif /* USE_TERM_DRIVER */ # 2662 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #endif /* EXP_WIN32_DRIVER */ # 2663 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #if 0 /* disabled by -frewrite-includes */ #if defined(USE_TERM_DRIVER) && defined(EXP_WIN32_DRIVER) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 2665 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define NC_ISATTY(fd) (0 != _nc_console_isatty(fd)) #if 0 /* disabled by -frewrite-includes */ #if 0 #elif defined(USE_TERM_DRIVER) && defined(USE_WIN32CON_DRIVER) #endif #endif /* disabled by -frewrite-includes */ #elif 0 /* evaluated by -frewrite-includes */ # 2667 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define NC_ISATTY(fd) _nc_mingw_isatty(fd) #else # 2669 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define NC_ISATTY(fd) isatty(fd) #endif # 2671 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #ifdef USE_TERM_DRIVER # define IsTermInfo(sp) ((TCBOf(sp) != 0) && ((TCBOf(sp)->drv->isTerminfo))) # define HasTInfoTerminal(sp) ((0 != TerminalOf(sp)) && IsTermInfo(sp)) #if 0 /* disabled by -frewrite-includes */ # if defined(EXP_WIN32_DRIVER) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 2676 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" # define IsTermInfoOnConsole(sp) (IsTermInfo(sp)&&_nc_console_test(TerminalOf(sp)->Filedes)) #if 0 /* disabled by -frewrite-includes */ #if 0 # elif defined(USE_WIN32CON_DRIVER) #endif #endif /* disabled by -frewrite-includes */ #elif 0 /* evaluated by -frewrite-includes */ # 2678 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" # define IsTermInfoOnConsole(sp) (IsTermInfo(sp)&&_nc_mingw_isconsole(TerminalOf(sp)->Filedes)) # else # 2680 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" # define IsTermInfoOnConsole(sp) FALSE # endif # 2682 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #else # 2683 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" # define IsTermInfo(sp) TRUE # define HasTInfoTerminal(sp) (0 != TerminalOf(sp)) #if 0 /* disabled by -frewrite-includes */ # if defined(EXP_WIN32_DRIVER) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 2686 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" # define IsTermInfoOnConsole(sp) _nc_console_test(TerminalOf(sp)->Filedes) # else # 2688 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" # define IsTermInfoOnConsole(sp) FALSE # endif # 2690 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #endif # 2691 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define IsValidTIScreen(sp) (HasTInfoTerminal(sp)) /* * Exported entrypoints beyond the published API */ #if 0 /* disabled by -frewrite-includes */ #if NCURSES_SP_FUNCS #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 2698 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" extern NCURSES_EXPORT(WINDOW *) _nc_curscr_of(SCREEN*); extern NCURSES_EXPORT(WINDOW *) _nc_newscr_of(SCREEN*); extern NCURSES_EXPORT(WINDOW *) _nc_stdscr_of(SCREEN*); extern NCURSES_EXPORT(int) _nc_outc_wrapper(SCREEN*,int); #if 0 /* disabled by -frewrite-includes */ #if USE_REENTRANT #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 2704 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" extern NCURSES_EXPORT(int) NCURSES_SP_NAME(_nc_TABSIZE)(SCREEN*); extern NCURSES_EXPORT(char *) NCURSES_SP_NAME(longname)(SCREEN*); #endif # 2707 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #if 0 /* disabled by -frewrite-includes */ #if NCURSES_EXT_FUNCS #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 2709 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" extern NCURSES_EXPORT(int) NCURSES_SP_NAME(_nc_set_tabsize)(SCREEN*, int); #endif # 2711 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" /* * We put the safe versions of various calls here as they are not published * part of the API up to now */ extern NCURSES_EXPORT(TERMINAL*) NCURSES_SP_NAME(_nc_get_cur_term) (SCREEN *sp); extern NCURSES_EXPORT(WINDOW *) NCURSES_SP_NAME(_nc_makenew) (SCREEN*, int, int, int, int, int); extern NCURSES_EXPORT(bool) NCURSES_SP_NAME(_nc_reset_colors)(SCREEN*); extern NCURSES_EXPORT(char *) NCURSES_SP_NAME(_nc_printf_string)(SCREEN*, const char *, va_list); extern NCURSES_EXPORT(chtype) NCURSES_SP_NAME(_nc_acs_char)(SCREEN*,int); extern NCURSES_EXPORT(int) NCURSES_SP_NAME(_nc_get_tty_mode)(SCREEN*,TTY*); extern NCURSES_EXPORT(int) NCURSES_SP_NAME(_nc_mcprint)(SCREEN*,char*, int); extern NCURSES_EXPORT(int) NCURSES_SP_NAME(_nc_msec_cost)(SCREEN*, const char *, int); extern NCURSES_EXPORT(int) NCURSES_SP_NAME(_nc_mvcur)(SCREEN*, int, int, int, int); extern NCURSES_EXPORT(int) NCURSES_SP_NAME(_nc_outch)(SCREEN*, int); extern NCURSES_EXPORT(int) NCURSES_SP_NAME(_nc_putchar)(SCREEN*, int); extern NCURSES_EXPORT(int) NCURSES_SP_NAME(_nc_putp)(SCREEN*, const char *, const char*); extern NCURSES_EXPORT(int) NCURSES_SP_NAME(_nc_putp_flush)(SCREEN*, const char *, const char *); extern NCURSES_EXPORT(int) NCURSES_SP_NAME(_nc_ripoffline)(SCREEN*, int, int (*)(WINDOW *,int)); extern NCURSES_EXPORT(int) NCURSES_SP_NAME(_nc_scrolln)(SCREEN*, int, int, int, int); extern NCURSES_EXPORT(int) NCURSES_SP_NAME(_nc_set_tty_mode)(SCREEN*, TTY*); extern NCURSES_EXPORT(int) NCURSES_SP_NAME(_nc_setupscreen)(SCREEN**, int, int, FILE *, int, int); extern NCURSES_EXPORT(int) NCURSES_SP_NAME(_nc_tgetent)(SCREEN*,char*,const char *); extern NCURSES_EXPORT(void) NCURSES_SP_NAME(_nc_do_color)(SCREEN*, int, int, int, NCURSES_SP_OUTC); extern NCURSES_EXPORT(void) NCURSES_SP_NAME(_nc_do_xmc_glitch)(SCREEN*, attr_t); extern NCURSES_EXPORT(void) NCURSES_SP_NAME(_nc_flush)(SCREEN*); extern NCURSES_EXPORT(void) NCURSES_SP_NAME(_nc_free_and_exit)(SCREEN*, int) GCC_NORETURN; extern NCURSES_EXPORT(void) NCURSES_SP_NAME(_nc_freeall)(SCREEN*); extern NCURSES_EXPORT(void) NCURSES_SP_NAME(_nc_hash_map)(SCREEN*); extern NCURSES_EXPORT(void) NCURSES_SP_NAME(_nc_init_acs)(SCREEN*); extern NCURSES_EXPORT(void) NCURSES_SP_NAME(_nc_make_oldhash)(SCREEN*, int i); extern NCURSES_EXPORT(void) NCURSES_SP_NAME(_nc_mvcur_init)(SCREEN*); extern NCURSES_EXPORT(void) NCURSES_SP_NAME(_nc_mvcur_resume)(SCREEN*); extern NCURSES_EXPORT(void) NCURSES_SP_NAME(_nc_mvcur_wrap)(SCREEN*); extern NCURSES_EXPORT(void) NCURSES_SP_NAME(_nc_screen_init)(SCREEN*); extern NCURSES_EXPORT(void) NCURSES_SP_NAME(_nc_screen_resume)(SCREEN*); extern NCURSES_EXPORT(void) NCURSES_SP_NAME(_nc_screen_wrap)(SCREEN*); extern NCURSES_EXPORT(void) NCURSES_SP_NAME(_nc_scroll_oldhash)(SCREEN*, int n, int top, int bot); extern NCURSES_EXPORT(void) NCURSES_SP_NAME(_nc_scroll_optimize)(SCREEN*); extern NCURSES_EXPORT(void) NCURSES_SP_NAME(_nc_set_buffer)(SCREEN*, FILE *, int); extern NCURSES_EXPORT(void) _nc_cookie_init(SCREEN *sp); #if 0 /* disabled by -frewrite-includes */ #if defined(TRACE) || defined(SCROLLDEBUG) || defined(HASHDEBUG) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 2755 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" extern NCURSES_EXPORT(void) NCURSES_SP_NAME(_nc_linedump)(SCREEN*); #endif # 2757 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #if 0 /* disabled by -frewrite-includes */ #if USE_WIDEC_SUPPORT #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 2759 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" extern NCURSES_EXPORT(wchar_t *) NCURSES_SP_NAME(_nc_wunctrl)(SCREEN*, cchar_t *); #endif # 2761 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #endif /* NCURSES_SP_FUNCS */ # 2763 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #if 0 /* disabled by -frewrite-includes */ #if NCURSES_SP_FUNCS #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 2765 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define safe_keyname NCURSES_SP_NAME(keyname) #define safe_unctrl NCURSES_SP_NAME(unctrl) #define safe_ungetch NCURSES_SP_NAME(ungetch) #else # 2771 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #define safe_keyname _nc_keyname #define safe_unctrl _nc_unctrl #define safe_ungetch _nc_ungetch extern NCURSES_EXPORT(NCURSES_CONST char *) _nc_keyname (SCREEN *, int); extern NCURSES_EXPORT(int) _nc_ungetch (SCREEN *, int); extern NCURSES_EXPORT(NCURSES_CONST char *) _nc_unctrl (SCREEN *, chtype); #endif # 2781 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #ifdef EXP_XTERM_1005 NCURSES_EXPORT(int) _nc_conv_to_utf8(unsigned char *, unsigned, unsigned); NCURSES_EXPORT(int) _nc_conv_to_utf32(unsigned *, const char *, unsigned); #endif # 2786 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" #ifdef __cplusplus } #endif # 2790 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" /* *INDENT-ON* */ #endif /* CURSES_PRIV_H */ # 2794 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/curses.priv.h" # 55 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/tinfo/read_termcap.c" 2 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 56 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/tinfo/read_termcap.c" # 1 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/ctype.h" 1 3 4 /*- * SPDX-License-Identifier: BSD-3-Clause * * Copyright (c) 1989, 1993 * The Regents of the University of California. All rights reserved. * (c) UNIX System Laboratories, Inc. * All or some portions of this file are derived from material licensed * to the University of California by American Telephone and Telegraph * Co. or Unix System Laboratories, Inc. and are reproduced herein with * the permission of UNIX System Laboratories, Inc. * * This code is derived from software contributed to Berkeley by * Paul Borman at Krystal Technologies. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * @(#)ctype.h 8.4 (Berkeley) 1/21/94 * $FreeBSD$ */ #ifndef _CTYPE_H_ #define _CTYPE_H_ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 46 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/ctype.h" 3 4 # 47 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/ctype.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 47 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/ctype.h" 3 4 # 48 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/ctype.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include <_ctype.h> #endif /* expanded by -frewrite-includes */ # 48 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/ctype.h" 3 4 # 49 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/ctype.h" 3 4 __BEGIN_DECLS int isalnum(int); int isalpha(int); int iscntrl(int); int isdigit(int); int isgraph(int); int islower(int); int isprint(int); int ispunct(int); int isspace(int); int isupper(int); int isxdigit(int); int tolower(int); int toupper(int); #if 0 /* disabled by -frewrite-includes */ #if __XSI_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 66 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/ctype.h" 3 4 int isascii(int); int toascii(int); #endif # 69 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/ctype.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __ISO_C_VISIBLE >= 1999 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 71 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/ctype.h" 3 4 int isblank(int); #endif # 73 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/ctype.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 75 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/ctype.h" 3 4 int digittoint(int); int ishexnumber(int); int isideogram(int); int isnumber(int); int isphonogram(int); int isrune(int); int isspecial(int); #endif # 83 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/ctype.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __POSIX_VISIBLE >= 200809 || defined(_XLOCALE_H_) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 85 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/ctype.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 85 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/ctype.h" 3 4 # 1 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/xlocale/_ctype.h" 1 3 4 /*- * SPDX-License-Identifier: BSD-2-Clause-FreeBSD * * Copyright (c) 2011 The FreeBSD Foundation * All rights reserved. * * This software was developed by David Chisnall under sponsorship from * the FreeBSD Foundation. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * $FreeBSD$ */ #if 0 /* disabled by -frewrite-includes */ #if (defined(_XLOCALE_WCTYPES) && !defined(_XLOCALE_WCTYPE_H)) || \ (!defined(_XLOCALE_WCTYPES) && !defined(_XLOCALE_CTYPE_H)) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 37 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/xlocale/_ctype.h" 3 4 #ifdef _XLOCALE_WCTYPES #define _XLOCALE_WCTYPE_H #else # 41 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/xlocale/_ctype.h" 3 4 #define _XLOCALE_CTYPE_H #endif # 43 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/xlocale/_ctype.h" 3 4 #ifndef _LOCALE_T_DEFINED #define _LOCALE_T_DEFINED typedef struct _xlocale *locale_t; #endif # 48 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/xlocale/_ctype.h" 3 4 #ifndef _XLOCALE_RUN_FUNCTIONS_DEFINED #define _XLOCALE_RUN_FUNCTIONS_DEFINED 1 unsigned long ___runetype_l(__ct_rune_t, locale_t) __pure; __ct_rune_t ___tolower_l(__ct_rune_t, locale_t) __pure; __ct_rune_t ___toupper_l(__ct_rune_t, locale_t) __pure; _RuneLocale *__runes_for_locale(locale_t, int*); #endif # 56 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/xlocale/_ctype.h" 3 4 #ifndef _XLOCALE_INLINE #if 0 /* disabled by -frewrite-includes */ #if defined(__GNUC__) && !defined(__GNUC_STDC_INLINE__) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 59 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/xlocale/_ctype.h" 3 4 /* GNU89 inline has nonstandard semantics. */ #define _XLOCALE_INLINE extern __inline #else # 62 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/xlocale/_ctype.h" 3 4 /* Hack to work around people who define inline away */ #ifdef inline #define _XLOCALE_INLINE static __inline #else # 66 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/xlocale/_ctype.h" 3 4 /* Define with C++ / C99 compatible semantics */ #define _XLOCALE_INLINE inline #endif # 69 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/xlocale/_ctype.h" 3 4 #endif # 70 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/xlocale/_ctype.h" 3 4 #endif /* _XLOCALE_INLINE */ # 71 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/xlocale/_ctype.h" 3 4 #ifdef _XLOCALE_WCTYPES _XLOCALE_INLINE int __maskrune_l(__ct_rune_t __c, unsigned long __f, locale_t __loc); _XLOCALE_INLINE int __istype_l(__ct_rune_t __c, unsigned long __f, locale_t __loc); _XLOCALE_INLINE int __maskrune_l(__ct_rune_t __c, unsigned long __f, locale_t __loc) { int __limit; _RuneLocale *runes = __runes_for_locale(__loc, &__limit); return ((__c < 0 || __c >= _CACHED_RUNES) ? ___runetype_l(__c, __loc) : runes->__runetype[__c]) & __f; } _XLOCALE_INLINE int __istype_l(__ct_rune_t __c, unsigned long __f, locale_t __loc) { return (!!__maskrune_l(__c, __f, __loc)); } #define XLOCALE_ISCTYPE(fname, cat) \ _XLOCALE_INLINE int isw##fname##_l(int, locale_t);\ _XLOCALE_INLINE int isw##fname##_l(int __c, locale_t __l)\ { return __istype_l(__c, cat, __l); } #else # 98 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/xlocale/_ctype.h" 3 4 _XLOCALE_INLINE int __sbmaskrune_l(__ct_rune_t __c, unsigned long __f, locale_t __loc); _XLOCALE_INLINE int __sbistype_l(__ct_rune_t __c, unsigned long __f, locale_t __loc); _XLOCALE_INLINE int __sbmaskrune_l(__ct_rune_t __c, unsigned long __f, locale_t __loc) { int __limit; _RuneLocale *runes = __runes_for_locale(__loc, &__limit); return (__c < 0 || __c >= __limit) ? 0 : runes->__runetype[__c] & __f; } _XLOCALE_INLINE int __sbistype_l(__ct_rune_t __c, unsigned long __f, locale_t __loc) { return (!!__sbmaskrune_l(__c, __f, __loc)); } #define XLOCALE_ISCTYPE(__fname, __cat) \ _XLOCALE_INLINE int is##__fname##_l(int, locale_t); \ _XLOCALE_INLINE int is##__fname##_l(int __c, locale_t __l)\ { return __sbistype_l(__c, __cat, __l); } #endif # 123 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/xlocale/_ctype.h" 3 4 XLOCALE_ISCTYPE(alnum, _CTYPE_A|_CTYPE_D|_CTYPE_N) XLOCALE_ISCTYPE(alpha, _CTYPE_A) XLOCALE_ISCTYPE(blank, _CTYPE_B) XLOCALE_ISCTYPE(cntrl, _CTYPE_C) XLOCALE_ISCTYPE(digit, _CTYPE_D) XLOCALE_ISCTYPE(graph, _CTYPE_G) XLOCALE_ISCTYPE(hexnumber, _CTYPE_X) XLOCALE_ISCTYPE(ideogram, _CTYPE_I) XLOCALE_ISCTYPE(lower, _CTYPE_L) XLOCALE_ISCTYPE(number, _CTYPE_D|_CTYPE_N) XLOCALE_ISCTYPE(phonogram, _CTYPE_Q) XLOCALE_ISCTYPE(print, _CTYPE_R) XLOCALE_ISCTYPE(punct, _CTYPE_P) XLOCALE_ISCTYPE(rune, 0xFFFFFF00L) XLOCALE_ISCTYPE(space, _CTYPE_S) XLOCALE_ISCTYPE(special, _CTYPE_T) XLOCALE_ISCTYPE(upper, _CTYPE_U) XLOCALE_ISCTYPE(xdigit, _CTYPE_X) #undef XLOCALE_ISCTYPE #ifdef _XLOCALE_WCTYPES _XLOCALE_INLINE int towlower_l(int, locale_t); _XLOCALE_INLINE int __wcwidth_l(__ct_rune_t, locale_t); _XLOCALE_INLINE int towupper_l(int, locale_t); _XLOCALE_INLINE int towlower_l(int __c, locale_t __l) { int __limit; _RuneLocale *__runes = __runes_for_locale(__l, &__limit); return (__c < 0 || __c >= _CACHED_RUNES) ? ___tolower_l(__c, __l) : __runes->__maplower[__c]; } _XLOCALE_INLINE int towupper_l(int __c, locale_t __l) { int __limit; _RuneLocale *__runes = __runes_for_locale(__l, &__limit); return (__c < 0 || __c >= _CACHED_RUNES) ? ___toupper_l(__c, __l) : __runes->__mapupper[__c]; } _XLOCALE_INLINE int __wcwidth_l(__ct_rune_t _c, locale_t __l) { unsigned int _x; if (_c == 0) return (0); _x = (unsigned int)__maskrune_l(_c, _CTYPE_SWM|_CTYPE_R, __l); if ((_x & _CTYPE_SWM) != 0) return ((_x & _CTYPE_SWM) >> _CTYPE_SWS); return ((_x & _CTYPE_R) != 0 ? 1 : -1); } int iswctype_l(wint_t __wc, wctype_t __charclass, locale_t __l); wctype_t wctype_l(const char *property, locale_t __l); wint_t towctrans_l(wint_t __wc, wctrans_t desc, locale_t __l); wint_t nextwctype_l(wint_t __wc, wctype_t wct, locale_t __l); wctrans_t wctrans_l(const char *__charclass, locale_t __l); #undef _XLOCALE_WCTYPES #else # 182 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/xlocale/_ctype.h" 3 4 _XLOCALE_INLINE int digittoint_l(int, locale_t); _XLOCALE_INLINE int tolower_l(int, locale_t); _XLOCALE_INLINE int toupper_l(int, locale_t); _XLOCALE_INLINE int digittoint_l(int __c, locale_t __l) { return __sbmaskrune_l((__c), 0xFF, __l); } _XLOCALE_INLINE int tolower_l(int __c, locale_t __l) { int __limit; _RuneLocale *__runes = __runes_for_locale(__l, &__limit); return (__c < 0 || __c >= __limit) ? __c : __runes->__maplower[__c]; } _XLOCALE_INLINE int toupper_l(int __c, locale_t __l) { int __limit; _RuneLocale *__runes = __runes_for_locale(__l, &__limit); return (__c < 0 || __c >= __limit) ? __c : __runes->__mapupper[__c]; } #endif # 204 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/xlocale/_ctype.h" 3 4 #endif /* (defined(_XLOCALE_WCTYPES) && !defined(_XLOCALE_WCTYPE_H)) || \ (!defined(_XLOCALE_WCTYPES) && !defined(_XLOCALE_CTYPE_H)) */ # 206 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/xlocale/_ctype.h" 3 4 # 86 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/ctype.h" 2 3 4 #endif # 87 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/ctype.h" 3 4 __END_DECLS #ifndef __cplusplus #define isalnum(c) __sbistype((c), _CTYPE_A|_CTYPE_D|_CTYPE_N) #define isalpha(c) __sbistype((c), _CTYPE_A) #define iscntrl(c) __sbistype((c), _CTYPE_C) #define isdigit(c) __sbistype((c), _CTYPE_D) #define isgraph(c) __sbistype((c), _CTYPE_G) #define islower(c) __sbistype((c), _CTYPE_L) #define isprint(c) __sbistype((c), _CTYPE_R) #define ispunct(c) __sbistype((c), _CTYPE_P) #define isspace(c) __sbistype((c), _CTYPE_S) #define isupper(c) __sbistype((c), _CTYPE_U) #define isxdigit(c) __sbistype((c), _CTYPE_X) #define tolower(c) __sbtolower(c) #define toupper(c) __sbtoupper(c) #endif /* !__cplusplus */ # 104 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/ctype.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __XSI_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 106 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/ctype.h" 3 4 /* * POSIX.1-2001 specifies _tolower() and _toupper() to be macros equivalent to * tolower() and toupper() respectively, minus extra checking to ensure that * the argument is a lower or uppercase letter respectively. We've chosen to * implement these macros with the same error checking as tolower() and * toupper() since this doesn't violate the specification itself, only its * intent. We purposely leave _tolower() and _toupper() undocumented to * discourage their use. * * XXX isascii() and toascii() should similarly be undocumented. */ #define _tolower(c) __sbtolower(c) #define _toupper(c) __sbtoupper(c) #define isascii(c) (((c) & ~0x7F) == 0) #define toascii(c) ((c) & 0x7F) #endif # 122 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/ctype.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __ISO_C_VISIBLE >= 1999 && !defined(__cplusplus) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 124 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/ctype.h" 3 4 #define isblank(c) __sbistype((c), _CTYPE_B) #endif # 126 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/ctype.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __BSD_VISIBLE #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 128 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/ctype.h" 3 4 #define digittoint(c) __sbmaskrune((c), 0xFF) #define ishexnumber(c) __sbistype((c), _CTYPE_X) #define isideogram(c) __sbistype((c), _CTYPE_I) #define isnumber(c) __sbistype((c), _CTYPE_D|_CTYPE_N) #define isphonogram(c) __sbistype((c), _CTYPE_Q) #define isrune(c) __sbistype((c), 0xFFFFFF00L) #define isspecial(c) __sbistype((c), _CTYPE_T) #endif # 136 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/ctype.h" 3 4 #endif /* !_CTYPE_H_ */ # 138 "/usr/obj/uprising-tmp/usr/home/avg/devel/freebsd/machines/uprising/amd64.amd64/tmp/usr/include/ctype.h" 3 4 # 57 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/tinfo/read_termcap.c" 2 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 57 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/tinfo/read_termcap.c" # 58 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/tinfo/read_termcap.c" #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 58 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/tinfo/read_termcap.c" # 1 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/tic.h" 1 /**************************************************************************** * Copyright 2018-2019,2020 Thomas E. Dickey * * Copyright 1998-2012,2017 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * * "Software"), to deal in the Software without restriction, including * * without limitation the rights to use, copy, modify, merge, publish, * * distribute, distribute with modifications, sublicense, and/or sell * * copies of the Software, and to permit persons to whom the Software is * * furnished to do so, subject to the following conditions: * * * * The above copyright notice and this permission notice shall be included * * in all copies or substantial portions of the Software. * * * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. * * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, * * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * * THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * * * Except as contained in this notice, the name(s) of the above copyright * * holders shall not be used in advertising or otherwise to promote the * * sale, use or other dealings in this Software without prior written * * authorization. * ****************************************************************************/ /**************************************************************************** * Author: Zeyd M. Ben-Halim 1992,1995 * * and: Eric S. Raymond * * and: Thomas E. Dickey 1996 on * ****************************************************************************/ /* * $Id: tic.h,v 1.81 2020/02/02 23:34:34 tom Exp $ * tic.h - Global variables and structures for the terminfo compiler. */ #ifndef __TIC_H #define __TIC_H /* *INDENT-OFF* */ #ifdef __cplusplus extern "C" { #endif # 47 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/tic.h" #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 48 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/tic.h" # 49 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/tic.h" #if 0 /* expanded by -frewrite-includes */ #include /* for the _tracef() prototype, ERR/OK, bool defs */ #endif /* expanded by -frewrite-includes */ # 50 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/tic.h" # 51 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/tic.h" /* ** The format of SVr2 compiled terminfo files is as follows: ** ** Header (12 bytes), containing information given below ** Names Section, containing the names of the terminal ** Boolean Section, containing the values of all of the ** boolean capabilities ** A null byte may be inserted here to make ** sure that the Number Section begins on an ** even word boundary. ** Number Section, containing the values of all of the numeric ** capabilities, each as a short integer ** String Section, containing short integer offsets into the ** String Table, one per string capability ** String Table, containing the actual characters of the string ** capabilities. ** ** In the SVr2 format, "short" means signed 16-bit numbers, which is sometimes ** inconvenient. The numbers are signed, to provide for absent and canceled ** values. ncurses6.1 introduced an extension to this compiled format, by ** making the Number Section a list of signed 32-bit integers. ** ** NOTE that all short integers in the file are stored using VAX/PDP-style ** byte-order, i.e., least-significant byte first. ** ** There is no structure definition here because it would only confuse ** matters. Terminfo format is a raw byte layout, not a structure ** dump. If you happen to be on a little-endian machine with 16-bit ** shorts that requires no padding between short members in a struct, ** then there is a natural C structure that captures the header, but ** not very helpfully. */ #define MAGIC 0432 /* first two bytes of a compiled entry */ #define MAGIC2 01036 /* first two bytes of a compiled 32-bit entry */ #undef BYTE #define BYTE(p,n) (unsigned char)((p)[n]) #define IS_NEG1(p) ((BYTE(p,0) == 0377) && (BYTE(p,1) == 0377)) #define IS_NEG2(p) ((BYTE(p,0) == 0376) && (BYTE(p,1) == 0377)) #define LOW_MSB(p) (BYTE(p,0) + 256*BYTE(p,1)) #define IS_TIC_MAGIC(p) (LOW_MSB(p) == MAGIC || LOW_MSB(p) == MAGIC2) #define quick_prefix(s) (!strncmp((s), "b64:", (size_t)4) || !strncmp((s), "hex:", (size_t)4)) /* * The "maximum" here is misleading; XSI guarantees minimum values, which a * given implementation may exceed. */ #define MAX_NAME_SIZE 512 /* maximum legal name field size (XSI:127) */ #define MAX_ENTRY_SIZE1 4096 /* maximum legal entry size (SVr2) */ #define MAX_ENTRY_SIZE2 32768 /* maximum legal entry size (ncurses6.1) */ #if 0 /* disabled by -frewrite-includes */ #if NCURSES_EXT_COLORS && HAVE_INIT_EXTENDED_COLOR #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 108 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/tic.h" #define MAX_ENTRY_SIZE MAX_ENTRY_SIZE2 #else # 110 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/tic.h" #define MAX_ENTRY_SIZE MAX_ENTRY_SIZE1 #endif # 112 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/tic.h" /* * The maximum size of individual name or alias is guaranteed in XSI to be at * least 14, since that corresponds to the older filename lengths. Newer * systems allow longer aliases, though not many terminal descriptions are * written to use them. The MAX_ALIAS symbol is used for warnings. */ #if 0 /* disabled by -frewrite-includes */ #if HAVE_LONG_FILE_NAMES #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 120 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/tic.h" #define MAX_ALIAS 32 /* smaller than POSIX minimum for PATH_MAX */ #else # 122 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/tic.h" #define MAX_ALIAS 14 /* SVr3 filename length */ #endif # 124 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/tic.h" /* location of user's personal info directory */ #define PRIVATE_INFO "%s/.terminfo" /* plug getenv("HOME") into %s */ /* * Some traces are designed to be used via tic's verbose option (and similar in * infocmp and toe) rather than the 'trace()' function. So we use the bits * above the normal trace() parameter as a debug-level. */ #define MAX_DEBUG_LEVEL 15 #define DEBUG_LEVEL(n) ((n) << TRACE_SHIFT) #define set_trace_level(n) \ _nc_tracing &= DEBUG_LEVEL(MAX_DEBUG_LEVEL) \ + DEBUG_LEVEL(MAX_DEBUG_LEVEL) - 1, \ _nc_tracing |= DEBUG_LEVEL(n) #ifdef TRACE #define DEBUG(n, a) if (_nc_tracing >= DEBUG_LEVEL(n)) _tracef a #else # 145 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/tic.h" #define DEBUG(n, a) /*nothing*/ #endif # 147 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/tic.h" /* * These are the types of tokens returned by the scanner. The first * three are also used in the hash table of capability names. The scanner * returns one of these values after loading the specifics into the global * structure curr_token. */ #define BOOLEAN 0 /* Boolean capability */ #define NUMBER 1 /* Numeric capability */ #define STRING 2 /* String-valued capability */ #define CANCEL 3 /* Capability to be cancelled in following tc's */ #define NAMES 4 /* The names for a terminal type */ #define UNDEF 5 /* Undefined */ #define NO_PUSHBACK -1 /* used in pushtype to indicate no pushback */ /* * The global structure in which the specific parts of a * scanned token are returned. */ struct token { char *tk_name; /* name of capability */ int tk_valnumber; /* value of capability (if a number) */ char *tk_valstring; /* value of capability (if a string) */ }; /* * Offsets to string capabilities, with the corresponding functionkey codes. */ struct tinfo_fkeys { unsigned offset; chtype code; }; typedef short HashValue; /* * The file comp_captab.c contains an array of these structures, one per * possible capability. These are indexed by a hash table array of pointers to * the same structures for use by the parser. */ struct name_table_entry { const char *nte_name; /* name to hash on */ int nte_type; /* BOOLEAN, NUMBER or STRING */ HashValue nte_index; /* index of associated variable in its array */ HashValue nte_link; /* index in table of next hash, or -1 */ }; /* * Use this structure to hide differences between terminfo and termcap tables. */ typedef struct { unsigned table_size; const HashValue *table_data; HashValue (*hash_of)(const char *); int (*compare_names)(const char *, const char *); } HashData; struct alias { const char *from; const char *to; const char *source; }; #define NOTFOUND ((struct name_table_entry *) 0) /* * The file comp_userdefs.c contains an array of these structures, one per * possible capability. These are indexed by a hash table array of pointers to * the same structures for use by the parser. */ struct user_table_entry { const char *ute_name; /* name to hash on */ int ute_type; /* mask (BOOLEAN, NUMBER, STRING) */ unsigned ute_argc; /* number of parameters */ unsigned ute_args; /* bit-mask for string parameters */ HashValue ute_index; /* index of associated variable in its array */ HashValue ute_link; /* index in table of next hash, or -1 */ }; /* * The casts are required for correct sign-propagation with systems such as * AIX, IRIX64, Solaris which default to unsigned characters. The C standard * leaves this detail unspecified. */ /* out-of-band values for representing absent capabilities */ #define ABSENT_BOOLEAN ((signed char)-1) /* 255 */ #define ABSENT_NUMERIC (-1) #define ABSENT_STRING (char *)0 /* out-of-band values for representing cancels */ #define CANCELLED_BOOLEAN ((signed char)-2) /* 254 */ #define CANCELLED_NUMERIC (-2) #define CANCELLED_STRING (char *)(-1) #define VALID_BOOLEAN(s) ((unsigned char)(s) <= 1) /* reject "-1" */ #define VALID_NUMERIC(s) ((s) >= 0) #define VALID_STRING(s) ((s) != CANCELLED_STRING && (s) != ABSENT_STRING) /* termcap entries longer than this may break old binaries */ #define MAX_TERMCAP_LENGTH 1023 /* this is a documented limitation of terminfo */ #define MAX_TERMINFO_LENGTH 4096 #ifndef TERMINFO #define TERMINFO "/usr/share/terminfo" #endif # 262 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/tic.h" #ifdef NCURSES_TERM_ENTRY_H_incl /* * These entrypoints are used only by the ncurses utilities such as tic. */ #ifdef NCURSES_INTERNALS /* access.c */ extern NCURSES_EXPORT(unsigned) _nc_pathlast (const char *); extern NCURSES_EXPORT(bool) _nc_is_abs_path (const char *); extern NCURSES_EXPORT(bool) _nc_is_dir_path (const char *); extern NCURSES_EXPORT(bool) _nc_is_file_path (const char *); extern NCURSES_EXPORT(char *) _nc_basename (char *); extern NCURSES_EXPORT(char *) _nc_rootname (char *); /* comp_captab.c */ extern NCURSES_EXPORT(const struct name_table_entry *) _nc_get_table (bool); extern NCURSES_EXPORT(const HashData *) _nc_get_hash_info (bool); extern NCURSES_EXPORT(const struct alias *) _nc_get_alias_table (bool); /* comp_hash.c: name lookup */ extern NCURSES_EXPORT(struct name_table_entry const *) _nc_find_type_entry (const char *, int, bool); extern NCURSES_EXPORT(struct user_table_entry const *) _nc_find_user_entry (const char *); /* comp_scan.c: lexical analysis */ extern NCURSES_EXPORT(int) _nc_get_token (bool); extern NCURSES_EXPORT(void) _nc_panic_mode (char); extern NCURSES_EXPORT(void) _nc_push_token (int); extern NCURSES_EXPORT_VAR(int) _nc_curr_col; extern NCURSES_EXPORT_VAR(int) _nc_curr_line; extern NCURSES_EXPORT_VAR(int) _nc_syntax; extern NCURSES_EXPORT_VAR(int) _nc_strict_bsd; extern NCURSES_EXPORT_VAR(long) _nc_comment_end; extern NCURSES_EXPORT_VAR(long) _nc_comment_start; extern NCURSES_EXPORT_VAR(long) _nc_curr_file_pos; extern NCURSES_EXPORT_VAR(long) _nc_start_line; #define SYN_TERMINFO 0 #define SYN_TERMCAP 1 /* comp_error.c: warning & abort messages */ extern NCURSES_EXPORT(const char *) _nc_get_source (void); extern NCURSES_EXPORT(void) _nc_err_abort (const char *const,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN; extern NCURSES_EXPORT(void) _nc_get_type (char *name); extern NCURSES_EXPORT(void) _nc_set_source (const char *const); extern NCURSES_EXPORT(void) _nc_set_type (const char *const); extern NCURSES_EXPORT(void) _nc_syserr_abort (const char *const,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN; extern NCURSES_EXPORT(void) _nc_warning (const char *const,...) GCC_PRINTFLIKE(1,2); extern NCURSES_EXPORT_VAR(bool) _nc_suppress_warnings; /* comp_scan.c */ extern NCURSES_EXPORT_VAR(struct token) _nc_curr_token; /* comp_userdefs.c */ NCURSES_EXPORT(const struct user_table_entry *) _nc_get_userdefs_table (void); NCURSES_EXPORT(const HashData *) _nc_get_hash_user (void); /* captoinfo.c: capability conversion */ extern NCURSES_EXPORT(char *) _nc_captoinfo (const char *, const char *, int const); extern NCURSES_EXPORT(char *) _nc_infotocap (const char *, const char *, int const); /* home_terminfo.c */ extern NCURSES_EXPORT(char *) _nc_home_terminfo (void); /* init_keytry.c */ #if 0 /* disabled by -frewrite-includes */ #if BROKEN_LINKER #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 329 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/tic.h" #define _nc_tinfo_fkeys _nc_tinfo_fkeysf() extern NCURSES_EXPORT(const struct tinfo_fkeys *) _nc_tinfo_fkeysf (void); #else # 332 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/tic.h" extern NCURSES_EXPORT_VAR(const struct tinfo_fkeys) _nc_tinfo_fkeys[]; #endif # 334 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/tic.h" /* lib_tparm.c */ #define NUM_PARM 9 extern NCURSES_EXPORT_VAR(int) _nc_tparm_err; extern NCURSES_EXPORT(int) _nc_tparm_analyze(const char *, char **, int *); /* lib_trace.c */ extern NCURSES_EXPORT_VAR(unsigned) _nc_tracing; extern NCURSES_EXPORT(const char *) _nc_visbuf (const char *); extern NCURSES_EXPORT(const char *) _nc_visbuf2 (int, const char *); /* lib_tputs.c */ extern NCURSES_EXPORT_VAR(int) _nc_nulls_sent; /* Add one for every null sent */ /* comp_main.c: compiler main */ extern const char * _nc_progname; /* db_iterator.c */ extern NCURSES_EXPORT(const char *) _nc_next_db(DBDIRS *, int *); extern NCURSES_EXPORT(const char *) _nc_tic_dir (const char *); extern NCURSES_EXPORT(void) _nc_first_db(DBDIRS *, int *); extern NCURSES_EXPORT(void) _nc_last_db(void); /* write_entry.c */ extern NCURSES_EXPORT(int) _nc_tic_written (void); #endif /* NCURSES_INTERNALS */ # 363 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/tic.h" /* * These entrypoints were used by tack before 1.08. */ #undef NCURSES_TACK_1_08 #ifdef NCURSES_INTERNALS #define NCURSES_TACK_1_08 /* nothing */ #else # 372 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/tic.h" #define NCURSES_TACK_1_08 GCC_DEPRECATED("upgrade to tack 1.08") #endif # 374 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/tic.h" /* comp_hash.c: name lookup */ extern NCURSES_EXPORT(struct name_table_entry const *) _nc_find_entry (const char *, const HashValue *) NCURSES_TACK_1_08; extern NCURSES_EXPORT(const HashValue *) _nc_get_hash_table (bool) NCURSES_TACK_1_08; /* comp_scan.c: lexical analysis */ extern NCURSES_EXPORT(void) _nc_reset_input (FILE *, char *) NCURSES_TACK_1_08; /* comp_expand.c: expand string into readable form */ extern NCURSES_EXPORT(char *) _nc_tic_expand (const char *, bool, int) NCURSES_TACK_1_08; /* comp_scan.c: decode string from readable form */ extern NCURSES_EXPORT(int) _nc_trans_string (char *, char *) NCURSES_TACK_1_08; #endif /* NCURSES_TERM_ENTRY_H_incl */ # 390 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/tic.h" #ifdef __cplusplus } #endif # 394 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/tic.h" /* *INDENT-ON* */ #endif /* __TIC_H */ # 397 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/include/tic.h" # 59 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/tinfo/read_termcap.c" 2 MODULE_ID("$Id: read_termcap.c,v 1.98 2020/02/02 23:34:34 tom Exp $") #if 0 /* disabled by -frewrite-includes */ #if !PURE_TERMINFO #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 63 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/tinfo/read_termcap.c" #define TC_SUCCESS 0 #define TC_NOT_FOUND -1 #define TC_SYS_ERR -2 #define TC_REF_LOOP -3 #define TC_UNRESOLVED -4 /* this is not returned by BSD cgetent */ static const char * get_termpath(void) { const char *result; if (!use_terminfo_vars() || (result = getenv("TERMPATH")) == 0) result = TERMPATH; TR(TRACE_DATABASE, ("TERMPATH is %s", result)); return result; } /* * Note: * getcap(), cgetent(), etc., are BSD functions. A copy of those was added to * this file in November 1995, derived from the BSD4.4 Lite sources. * * The initial adaptation uses 518 lines from that source. * The current source (in 2009) uses 183 lines of BSD4.4 Lite (441 ignoring * whitespace). */ #if 0 /* disabled by -frewrite-includes */ #if USE_GETCAP #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 91 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/tinfo/read_termcap.c" #if 0 /* disabled by -frewrite-includes */ #if HAVE_BSD_CGETENT #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 93 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/tinfo/read_termcap.c" #define _nc_cgetcap cgetcap #define _nc_cgetent(buf, oline, db_array, name) cgetent(buf, db_array, name) #define _nc_cgetmatch cgetmatch #define _nc_cgetset cgetset #else # 98 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/tinfo/read_termcap.c" static int _nc_cgetmatch(char *, const char *); static int _nc_getent(char **, unsigned *, int *, int, char **, int, const char *, int, char *); static int _nc_nfcmp(const char *, char *); /*- * Copyright (c) 1992, 1993 * The Regents of the University of California. All rights reserved. * * This code is derived from software contributed to Berkeley by * Casey Leedom of Lawrence Livermore National Laboratory. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ /* static char sccsid[] = "@(#)getcap.c 8.3 (Berkeley) 3/25/94"; */ #define BFRAG 1024 #define BSIZE 1024 #define MAX_RECURSION 32 /* maximum getent recursion */ static size_t topreclen; /* toprec length */ static char *toprec; /* Additional record specified by cgetset() */ static int gottoprec; /* Flag indicating retrieval of toprecord */ /* * Cgetset() allows the addition of a user specified buffer to be added to the * database array, in effect "pushing" the buffer on top of the virtual * database. 0 is returned on success, -1 on failure. */ static int _nc_cgetset(const char *ent) { if (ent == 0) { FreeIfNeeded(toprec); toprec = 0; topreclen = 0; return (0); } topreclen = strlen(ent); if ((toprec = typeMalloc(char, topreclen + 1)) == 0) { errno = ENOMEM; return (-1); } gottoprec = 0; _nc_STRCPY(toprec, ent, topreclen); return (0); } /* * Cgetcap searches the capability record buf for the capability cap with type * `type'. A pointer to the value of cap is returned on success, 0 if the * requested capability couldn't be found. * * Specifying a type of ':' means that nothing should follow cap (:cap:). In * this case a pointer to the terminating ':' or NUL will be returned if cap is * found. * * If (cap, '@') or (cap, terminator, '@') is found before (cap, terminator) * return 0. */ static char * _nc_cgetcap(char *buf, const char *cap, int type) { register const char *cp; register char *bp; bp = buf; for (;;) { /* * Skip past the current capability field - it's either the * name field if this is the first time through the loop, or * the remainder of a field whose name failed to match cap. */ for (;;) { if (*bp == '\0') return (0); else if (*bp++ == ':') break; } /* * Try to match (cap, type) in buf. */ for (cp = cap; *cp == *bp && *bp != '\0'; cp++, bp++) continue; if (*cp != '\0') continue; if (*bp == '@') return (0); if (type == ':') { if (*bp != '\0' && *bp != ':') continue; return (bp); } if (*bp != type) continue; bp++; return (*bp == '@' ? 0 : bp); } /* NOTREACHED */ } /* * Cgetent extracts the capability record name from the NULL terminated file * array db_array and returns a pointer to a malloc'd copy of it in buf. Buf * must be retained through all subsequent calls to cgetcap, cgetnum, cgetflag, * and cgetstr, but may then be freed. * * Returns: * * positive # on success (i.e., the index in db_array) * TC_NOT_FOUND if the requested record couldn't be found * TC_SYS_ERR if a system error was encountered (e.g.,couldn't open a file) * TC_REF_LOOP if a potential reference loop is detected * TC_UNRESOLVED if we had too many recurrences to resolve */ static int _nc_cgetent(char **buf, int *oline, char **db_array, const char *name) { unsigned dummy; return (_nc_getent(buf, &dummy, oline, 0, db_array, -1, name, 0, 0)); } /* * Getent implements the functions of cgetent. If fd is non-negative, * *db_array has already been opened and fd is the open file descriptor. We * do this to save time and avoid using up file descriptors for tc= * recursions. * * Getent returns the same success/failure codes as cgetent. On success, a * pointer to a malloc'd capability record with all tc= capabilities fully * expanded and its length (not including trailing ASCII NUL) are left in * *cap and *len. * * Basic algorithm: * + Allocate memory incrementally as needed in chunks of size BFRAG * for capability buffer. * + Recurse for each tc=name and interpolate result. Stop when all * names interpolated, a name can't be found, or depth exceeds * MAX_RECURSION. */ #define DOALLOC(size) typeRealloc(char, size, record) static int _nc_getent( char **cap, /* termcap-content */ unsigned *len, /* length, needed for recursion */ int *beginning, /* line-number at match */ int in_array, /* index in 'db_array[] */ char **db_array, /* list of files to search */ int fd, const char *name, int depth, char *nfield) { register char *r_end, *rp; int myfd = FALSE; char *record = 0; int tc_not_resolved; int current; int lineno; /* * Return with ``loop detected'' error if we've recurred more than * MAX_RECURSION times. */ if (depth > MAX_RECURSION) return (TC_REF_LOOP); /* * Check if we have a top record from cgetset(). */ if (depth == 0 && toprec != 0 && _nc_cgetmatch(toprec, name) == 0) { if ((record = DOALLOC(topreclen + BFRAG)) == 0) { errno = ENOMEM; return (TC_SYS_ERR); } _nc_STRCPY(record, toprec, topreclen + BFRAG); rp = record + topreclen + 1; r_end = rp + BFRAG; current = in_array; } else { int foundit; /* * Allocate first chunk of memory. */ if ((record = DOALLOC(BFRAG)) == 0) { errno = ENOMEM; return (TC_SYS_ERR); } rp = r_end = record + BFRAG; foundit = FALSE; /* * Loop through database array until finding the record. */ for (current = in_array; db_array[current] != 0; current++) { int eof = FALSE; /* * Open database if not already open. */ if (fd >= 0) { (void) lseek(fd, (off_t) 0, SEEK_SET); } else if ((_nc_access(db_array[current], R_OK) < 0) || (fd = open(db_array[current], O_RDONLY, 0)) < 0) { /* No error on unfound file. */ if (errno == ENOENT) continue; free(record); return (TC_SYS_ERR); } else { myfd = TRUE; } lineno = 0; /* * Find the requested capability record ... */ { char buf[2048]; register char *b_end = buf; register char *bp = buf; register int c; /* * Loop invariants: * There is always room for one more character in record. * R_end always points just past end of record. * Rp always points just past last character in record. * B_end always points just past last character in buf. * Bp always points at next character in buf. */ for (;;) { int first = lineno + 1; /* * Read in a line implementing (\, newline) * line continuation. */ rp = record; for (;;) { if (bp >= b_end) { int n; n = (int) read(fd, buf, sizeof(buf)); if (n <= 0) { if (myfd) (void) close(fd); if (n < 0) { free(record); return (TC_SYS_ERR); } fd = -1; eof = TRUE; break; } b_end = buf + n; bp = buf; } c = *bp++; if (c == '\n') { lineno++; /* * Unlike BSD 4.3, this ignores a backslash at the * end of a comment-line. That makes it consistent * with the rest of ncurses -TD */ if (rp == record || *record == '#' || *(rp - 1) != '\\') break; } *rp++ = (char) c; /* * Enforce loop invariant: if no room * left in record buffer, try to get * some more. */ if (rp >= r_end) { unsigned pos; size_t newsize; pos = (unsigned) (rp - record); newsize = (size_t) (r_end - record + BFRAG); record = DOALLOC(newsize); if (record == 0) { if (myfd) (void) close(fd); errno = ENOMEM; return (TC_SYS_ERR); } r_end = record + newsize; rp = record + pos; } } /* loop invariant lets us do this */ *rp++ = '\0'; /* * If encountered eof check next file. */ if (eof) break; /* * Toss blank lines and comments. */ if (*record == '\0' || *record == '#') continue; /* * See if this is the record we want ... */ if (_nc_cgetmatch(record, name) == 0 && (nfield == 0 || !_nc_nfcmp(nfield, record))) { foundit = TRUE; *beginning = first; break; /* found it! */ } } } if (foundit) break; } if (!foundit) { free(record); return (TC_NOT_FOUND); } } /* * Got the capability record, but now we have to expand all tc=name * references in it ... */ { register char *newicap, *s; register int newilen; unsigned ilen; int diff, iret, tclen, oline; char *icap = 0, *scan, *tc, *tcstart, *tcend; /* * Loop invariants: * There is room for one more character in record. * R_end points just past end of record. * Rp points just past last character in record. * Scan points at remainder of record that needs to be * scanned for tc=name constructs. */ scan = record; tc_not_resolved = FALSE; for (;;) { if ((tc = _nc_cgetcap(scan, "tc", '=')) == 0) { break; } /* * Find end of tc=name and stomp on the trailing `:' * (if present) so we can use it to call ourselves. */ s = tc; while (*s != '\0') { if (*s++ == ':') { *(s - 1) = '\0'; break; } } tcstart = tc - 3; tclen = (int) (s - tcstart); tcend = s; icap = 0; iret = _nc_getent(&icap, &ilen, &oline, current, db_array, fd, tc, depth + 1, 0); newicap = icap; /* Put into a register. */ newilen = (int) ilen; if (iret != TC_SUCCESS) { /* an error */ if (iret < TC_NOT_FOUND) { if (myfd) (void) close(fd); free(record); FreeIfNeeded(icap); return (iret); } if (iret == TC_UNRESOLVED) { tc_not_resolved = TRUE; /* couldn't resolve tc */ } else if (iret == TC_NOT_FOUND) { *(s - 1) = ':'; scan = s - 1; tc_not_resolved = TRUE; continue; } } /* not interested in name field of tc'ed record */ s = newicap; while (*s != '\0' && *s++ != ':') ; newilen -= (int) (s - newicap); newicap = s; /* make sure interpolated record is `:'-terminated */ s += newilen; if (*(s - 1) != ':') { *s = ':'; /* overwrite NUL with : */ newilen++; } /* * Make sure there's enough room to insert the * new record. */ diff = newilen - tclen; if (diff >= r_end - rp) { unsigned pos, tcpos, tcposend; size_t newsize; pos = (unsigned) (rp - record); newsize = (size_t) (r_end - record + diff + BFRAG); tcpos = (unsigned) (tcstart - record); tcposend = (unsigned) (tcend - record); record = DOALLOC(newsize); if (record == 0) { if (myfd) (void) close(fd); free(icap); errno = ENOMEM; return (TC_SYS_ERR); } r_end = record + newsize; rp = record + pos; tcstart = record + tcpos; tcend = record + tcposend; } /* * Insert tc'ed record into our record. */ s = tcstart + newilen; memmove(s, tcend, (size_t) (rp - tcend)); memmove(tcstart, newicap, (size_t) newilen); rp += diff; free(icap); /* * Start scan on `:' so next cgetcap works properly * (cgetcap always skips first field). */ scan = s - 1; } } /* * Close file (if we opened it), give back any extra memory, and * return capability, length and success. */ if (myfd) (void) close(fd); *len = (unsigned) (rp - record - 1); /* don't count NUL */ if (r_end > rp) { if ((record = DOALLOC((size_t) (rp - record))) == 0) { errno = ENOMEM; return (TC_SYS_ERR); } } *cap = record; if (tc_not_resolved) { return (TC_UNRESOLVED); } return (current); } /* * Cgetmatch will return 0 if name is one of the names of the capability * record buf, -1 if not. */ static int _nc_cgetmatch(char *buf, const char *name) { register const char *np; register char *bp; /* * Start search at beginning of record. */ bp = buf; for (;;) { /* * Try to match a record name. */ np = name; for (;;) { if (*np == '\0') { if (*bp == '|' || *bp == ':' || *bp == '\0') return (0); else break; } else if (*bp++ != *np++) { break; } } /* * Match failed, skip to next name in record. */ bp--; /* a '|' or ':' may have stopped the match */ for (;;) { if (*bp == '\0' || *bp == ':') return (-1); /* match failed totally */ else if (*bp++ == '|') break; /* found next name */ } } } /* * Compare name field of record. */ static int _nc_nfcmp(const char *nf, char *rec) { char *cp, tmp; int ret; for (cp = rec; *cp != ':'; cp++) ; tmp = *(cp + 1); *(cp + 1) = '\0'; ret = strcmp(nf, rec); *(cp + 1) = tmp; return (ret); } #endif /* HAVE_BSD_CGETENT */ # 664 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/tinfo/read_termcap.c" /* * Since ncurses provides its own 'tgetent()', we cannot use the native one. * So we reproduce the logic to get down to cgetent() -- or our cut-down * version of that -- to circumvent the problem of configuring against the * termcap library. */ #define USE_BSD_TGETENT 1 #if 0 /* disabled by -frewrite-includes */ #if USE_BSD_TGETENT #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 674 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/tinfo/read_termcap.c" /* * Copyright (c) 1980, 1993 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. All advertising materials mentioning features or use of this software * must display the following acknowledgment: * This product includes software developed by the University of * California, Berkeley and its contributors. * 4. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ /* static char sccsid[] = "@(#)termcap.c 8.1 (Berkeley) 6/4/93" */ #define PBUFSIZ 512 /* max length of filename path */ #define PVECSIZ 32 /* max number of names in path */ #define TBUFSIZ (2048*2) /* * On entry, srcp points to a non ':' character which is the beginning of the * token, if any. We'll try to return a string that doesn't end with a ':'. */ static char * get_tc_token(char **srcp, int *endp) { int ch; bool found = FALSE; char *s, *base; char *tok = 0; *endp = TRUE; for (s = base = *srcp; *s != '\0';) { ch = *s++; if (ch == '\\') { if (*s == '\0') { break; } else if (*s++ == '\n') { while (isspace(UChar(*s))) s++; } else { found = TRUE; } } else if (ch == ':') { if (found) { tok = base; s[-1] = '\0'; *srcp = s; *endp = FALSE; break; } base = s; } else if (isgraph(UChar(ch))) { found = TRUE; } } /* malformed entry may end without a ':' */ if (tok == 0 && found) { tok = base; } return tok; } static char * copy_tc_token(char *dst, const char *src, size_t len) { int ch; while ((ch = *src++) != '\0') { if (ch == '\\' && *src == '\n') { while (isspace(UChar(*src))) src++; continue; } if (--len == 0) { dst = 0; break; } *dst++ = (char) ch; } return dst; } /* * Get an entry for terminal name in buffer bp from the termcap file. */ static int _nc_tgetent(char *bp, char **sourcename, int *lineno, const char *name) { static char *the_source; register char *p; register char *cp; char *dummy = NULL; CGETENT_CONST char **fname; char *home; int i; char pathbuf[PBUFSIZ]; /* holds raw path of filenames */ CGETENT_CONST char *pathvec[PVECSIZ]; /* point to names in pathbuf */ const char *termpath; string_desc desc; *lineno = 1; fname = pathvec; p = pathbuf; cp = use_terminfo_vars()? getenv("TERMCAP") : NULL; /* * TERMCAP can have one of two things in it. It can be the name of a file * to use instead of /etc/termcap. In this case it better start with a * "/". Or it can be an entry to use so we don't have to read the file. * In this case it has to already have the newlines crunched out. If * TERMCAP does not hold a file name then a path of names is searched * instead. The path is found in the TERMPATH variable, or becomes * "$HOME/.termcap /etc/termcap" if no TERMPATH exists. */ _nc_str_init(&desc, pathbuf, sizeof(pathbuf)); if (cp == NULL) { _nc_safe_strcpy(&desc, get_termpath()); } else if (!_nc_is_abs_path(cp)) { /* TERMCAP holds an entry */ if ((termpath = get_termpath()) != 0) { _nc_safe_strcat(&desc, termpath); } else { char temp[PBUFSIZ]; temp[0] = 0; if ((home = getenv("HOME")) != 0 && *home != '\0' && strchr(home, ' ') == 0 && strlen(home) < sizeof(temp) - 10) { /* setup path */ _nc_SPRINTF(temp, _nc_SLIMIT(sizeof(temp)) "%s/", home); /* $HOME first */ } /* if no $HOME look in current directory */ _nc_STRCAT(temp, ".termcap", sizeof(temp)); _nc_safe_strcat(&desc, temp); _nc_safe_strcat(&desc, " "); _nc_safe_strcat(&desc, get_termpath()); } } else { /* user-defined name in TERMCAP */ _nc_safe_strcat(&desc, cp); /* still can be tokenized */ } *fname++ = pathbuf; /* tokenize path into vector of names */ while (*++p) { if (*p == ' ' || *p == NCURSES_PATHSEP) { *p = '\0'; while (*++p) if (*p != ' ' && *p != NCURSES_PATHSEP) break; if (*p == '\0') break; *fname++ = p; if (fname >= pathvec + PVECSIZ) { fname--; break; } } } *fname = 0; /* mark end of vector */ #if 0 /* disabled by -frewrite-includes */ #if !HAVE_BSD_CGETENT #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 855 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/tinfo/read_termcap.c" (void) _nc_cgetset(0); #endif # 857 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/tinfo/read_termcap.c" if (_nc_is_abs_path(cp)) { if (_nc_cgetset(cp) < 0) { return (TC_SYS_ERR); } } i = _nc_cgetent(&dummy, lineno, pathvec, name); /* ncurses' termcap-parsing routines cannot handle multiple adjacent * empty fields, and mistakenly use the last valid cap entry instead of * the first (breaks tc= includes) */ *bp = '\0'; if (i >= 0) { char *pd, *ps, *tok; int endflag = FALSE; char *list[1023]; size_t n, count = 0; pd = bp; ps = dummy; while (!endflag && (tok = get_tc_token(&ps, &endflag)) != 0) { bool ignore = FALSE; for (n = 1; n < count; n++) { char *s = list[n]; if (s[0] == tok[0] && s[1] == tok[1]) { ignore = TRUE; break; } } if (ignore != TRUE) { list[count++] = tok; pd = copy_tc_token(pd, tok, (size_t) (TBUFSIZ - (2 + pd - bp))); if (pd == 0) { i = -1; break; } *pd++ = ':'; *pd = '\0'; } } } FreeIfNeeded(dummy); FreeIfNeeded(the_source); the_source = 0; /* This is not related to the BSD cgetent(), but to fake up a suitable * filename for ncurses' error reporting. (If we are not using BSD * cgetent, then it is the actual filename). */ if (i >= 0) { #if 0 /* disabled by -frewrite-includes */ #if HAVE_BSD_CGETENT #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 912 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/tinfo/read_termcap.c" char temp[PATH_MAX]; _nc_str_init(&desc, temp, sizeof(temp)); _nc_safe_strcpy(&desc, pathvec[i]); _nc_safe_strcat(&desc, ".db"); if (_nc_access(temp, R_OK) == 0) { _nc_safe_strcpy(&desc, pathvec[i]); } if ((the_source = strdup(temp)) != 0) *sourcename = the_source; #else # 923 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/tinfo/read_termcap.c" if ((the_source = strdup(pathvec[i])) != 0) *sourcename = the_source; #endif # 926 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/tinfo/read_termcap.c" } return (i); } #endif /* USE_BSD_TGETENT */ # 931 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/tinfo/read_termcap.c" #endif /* USE_GETCAP */ # 932 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/tinfo/read_termcap.c" #define MAXPATHS 32 /* * Add a filename to the list in 'termpaths[]', checking that we really have * a right to open the file. */ #if 0 /* disabled by -frewrite-includes */ #if !USE_GETCAP #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 940 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/tinfo/read_termcap.c" static int add_tc(char *termpaths[], char *path, int count) { char *save = strchr(path, NCURSES_PATHSEP); if (save != 0) *save = '\0'; if (count < MAXPATHS && _nc_access(path, R_OK) == 0) { termpaths[count++] = path; TR(TRACE_DATABASE, ("Adding termpath %s", path)); } termpaths[count] = 0; if (save != 0) *save = NCURSES_PATHSEP; return count; } #define ADD_TC(path, count) filecount = add_tc(termpaths, path, count) #endif /* !USE_GETCAP */ # 958 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/tinfo/read_termcap.c" NCURSES_EXPORT(int) _nc_read_termcap_entry(const char *const tn, TERMTYPE2 *const tp) { int found = TGETENT_NO; ENTRY *ep; #if 0 /* disabled by -frewrite-includes */ #if USE_GETCAP_CACHE #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 965 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/tinfo/read_termcap.c" char cwd_buf[PATH_MAX]; #endif # 967 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/tinfo/read_termcap.c" #if 0 /* disabled by -frewrite-includes */ #if USE_GETCAP #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 968 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/tinfo/read_termcap.c" char *p, tc[TBUFSIZ]; char *tc_buf = 0; #define MY_SIZE sizeof(tc) - 1 int status; static char *source; static int lineno; TR(TRACE_DATABASE, ("read termcap entry for %s", tn)); if (strlen(tn) == 0 || strcmp(tn, ".") == 0 || strcmp(tn, "..") == 0 || _nc_pathlast(tn) != 0) { TR(TRACE_DATABASE, ("illegal or missing entry name '%s'", tn)); return TGETENT_NO; } if (use_terminfo_vars() && (p = getenv("TERMCAP")) != 0 && !_nc_is_abs_path(p) && _nc_name_match(p, tn, "|:")) { /* TERMCAP holds a termcap entry */ tc_buf = strdup(p); _nc_set_source("TERMCAP"); } else { /* we're using getcap(3) */ if ((status = _nc_tgetent(tc, &source, &lineno, tn)) < 0) return (status == TC_NOT_FOUND ? TGETENT_NO : TGETENT_ERR); _nc_curr_line = lineno; _nc_set_source(source); tc_buf = tc; } if (tc_buf == 0) return (TGETENT_ERR); _nc_read_entry_source((FILE *) 0, tc_buf, FALSE, TRUE, NULLHOOK); if (tc_buf != tc) free(tc_buf); #else # 1005 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/tinfo/read_termcap.c" /* * Here is what the 4.4BSD termcap(3) page prescribes: * * It will look in the environment for a TERMCAP variable. If found, and * the value does not begin with a slash, and the terminal type name is the * same as the environment string TERM, the TERMCAP string is used instead * of reading a termcap file. If it does begin with a slash, the string is * used as a path name of the termcap file to search. If TERMCAP does not * begin with a slash and name is different from TERM, tgetent() searches * the files $HOME/.termcap and /usr/share/misc/termcap, in that order, * unless the environment variable TERMPATH exists, in which case it * specifies a list of file pathnames (separated by spaces or colons) to be * searched instead. * * It goes on to state: * * Whenever multiple files are searched and a tc field occurs in the * requested entry, the entry it names must be found in the same file or * one of the succeeding files. * * However, this restriction is relaxed in ncurses; tc references to * previous files are permitted. * * This routine returns 1 if an entry is found, 0 if not found, and -1 if * the database is not accessible. */ FILE *fp; char *tc, *termpaths[MAXPATHS]; int filecount = 0; int j, k; bool use_buffer = FALSE; bool normal = TRUE; char *tc_buf = 0; char pathbuf[PATH_MAX]; char *copied = 0; char *cp; struct stat test_stat[MAXPATHS]; termpaths[filecount] = 0; if (use_terminfo_vars() && (tc = getenv("TERMCAP")) != 0) { if (_nc_is_abs_path(tc)) { /* interpret as a filename */ ADD_TC(tc, 0); normal = FALSE; } else if (_nc_name_match(tc, tn, "|:")) { /* treat as a capability file */ tc_buf = strdup(tc); use_buffer = (tc_buf != 0); normal = FALSE; } } if (normal) { /* normal case */ char envhome[PATH_MAX], *h; copied = strdup(get_termpath()); for (cp = copied; *cp; cp++) { if (*cp == NCURSES_PATHSEP) *cp = '\0'; else if (cp == copied || cp[-1] == '\0') { ADD_TC(cp, filecount); } } #define PRIVATE_CAP "%s/.termcap" if (use_terminfo_vars() && (h = getenv("HOME")) != NULL && *h != '\0' && (strlen(h) + sizeof(PRIVATE_CAP)) < PATH_MAX) { /* user's .termcap, if any, should override it */ _nc_STRCPY(envhome, h, sizeof(envhome)); _nc_SPRINTF(pathbuf, _nc_SLIMIT(sizeof(pathbuf)) PRIVATE_CAP, envhome); ADD_TC(pathbuf, filecount); } } /* * Probably /etc/termcap is a symlink to /usr/share/misc/termcap. * Avoid reading the same file twice. */ #if 0 /* disabled by -frewrite-includes */ #if HAVE_LINK #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 1084 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/tinfo/read_termcap.c" for (j = 0; j < filecount; j++) { bool omit = FALSE; if (stat(termpaths[j], &test_stat[j]) != 0 || !S_ISREG(test_stat[j].st_mode)) { omit = TRUE; } else { for (k = 0; k < j; k++) { if (test_stat[k].st_dev == test_stat[j].st_dev && test_stat[k].st_ino == test_stat[j].st_ino) { omit = TRUE; break; } } } if (omit) { TR(TRACE_DATABASE, ("Path %s is a duplicate", termpaths[j])); for (k = j + 1; k < filecount; k++) { termpaths[k - 1] = termpaths[k]; test_stat[k - 1] = test_stat[k]; } --filecount; --j; } } #endif # 1109 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/tinfo/read_termcap.c" /* parse the sources */ if (use_buffer) { _nc_set_source("TERMCAP"); /* * We don't suppress warning messages here. The presumption is * that since it's just a single entry, they won't be a pain. */ _nc_read_entry_source((FILE *) 0, tc_buf, FALSE, FALSE, NULLHOOK); free(tc_buf); } else { int i; for (i = 0; i < filecount; i++) { TR(TRACE_DATABASE, ("Looking for %s in %s", tn, termpaths[i])); if (_nc_access(termpaths[i], R_OK) == 0 && (fp = fopen(termpaths[i], "r")) != (FILE *) 0) { _nc_set_source(termpaths[i]); /* * Suppress warning messages. Otherwise you get 400 lines of * crap from archaic termcap files as ncurses complains about * all the obsolete capabilities. */ _nc_read_entry_source(fp, (char *) 0, FALSE, TRUE, NULLHOOK); (void) fclose(fp); } } } if (copied != 0) free(copied); #endif /* USE_GETCAP */ # 1144 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/tinfo/read_termcap.c" if (_nc_head == 0) return (TGETENT_ERR); /* resolve all use references */ if (_nc_resolve_uses2(TRUE, FALSE) != TRUE) return (TGETENT_ERR); /* find a terminal matching tn, if we can */ #if 0 /* disabled by -frewrite-includes */ #if USE_GETCAP_CACHE #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 1154 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/tinfo/read_termcap.c" if (getcwd(cwd_buf, sizeof(cwd_buf)) != 0) { _nc_set_writedir((char *) 0); /* note: this does a chdir */ #endif # 1157 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/tinfo/read_termcap.c" for_entry_list(ep) { if (_nc_name_match(ep->tterm.term_names, tn, "|:")) { /* * Make a local copy of the terminal capabilities, delinked * from the list. */ *tp = ep->tterm; _nc_free_entry(_nc_head, &(ep->tterm)); /* * OK, now try to write the type to user's terminfo directory. * Next time he loads this, it will come through terminfo. * * Advantage: Second and subsequent fetches of this entry will * be very fast. * * Disadvantage: After the first time a termcap type is loaded * by its user, editing it in the /etc/termcap file, or in * TERMCAP, or in a local ~/.termcap, will be ineffective * unless the terminfo entry is explicitly removed. */ #if 0 /* disabled by -frewrite-includes */ #if USE_GETCAP_CACHE #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 1179 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/tinfo/read_termcap.c" (void) _nc_write_entry(tp); #endif # 1181 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/tinfo/read_termcap.c" found = TGETENT_YES; break; } } #if 0 /* disabled by -frewrite-includes */ #if USE_GETCAP_CACHE #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 1186 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/tinfo/read_termcap.c" chdir(cwd_buf); } #endif # 1189 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/tinfo/read_termcap.c" return (found); } #else # 1193 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/tinfo/read_termcap.c" extern NCURSES_EXPORT(void) _nc_read_termcap(void); NCURSES_EXPORT(void) _nc_read_termcap(void) { } #endif /* PURE_TERMINFO */ # 1201 "/usr/home/avg/devel/freebsd/machines/uprising/contrib/ncurses/ncurses/tinfo/read_termcap.c"