* libcurses++, libc++ and liblightOS++ are installed into the crosscompiler directory
[lightOS.git] / apps / bash / bash.patch
blobc3820415212e2684abb6653877b496ce18562831
1 --- /dev/null 2008-11-11 09:49:46.000000000 +0100
2 +++ src/config.h 2009-02-21 21:05:18.000000000 +0100
3 @@ -0,0 +1,1084 @@
4 +/* config.h -- Configuration file for bash. */
6 +/* Copyright (C) 1987-2009 Free Software Foundation, Inc.
8 + This file is part of GNU Bash, the Bourne Again SHell.
10 + Bash is free software: you can redistribute it and/or modify
11 + it under the terms of the GNU General Public License as published by
12 + the Free Software Foundation, either version 3 of the License, or
13 + (at your option) any later version.
15 + Bash is distributed in the hope that it will be useful,
16 + but WITHOUT ANY WARRANTY; without even the implied warranty of
17 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 + GNU General Public License for more details.
20 + You should have received a copy of the GNU General Public License
21 + along with Bash. If not, see <http://www.gnu.org/licenses/>.
22 +*/
24 +#ifndef _CONFIG_H_
25 +#define _CONFIG_H_
27 +#if ! defined(BUILD_TOOL)
28 + #include <libarch/arch/type.h>
29 +#endif
31 +/* Configuration feature settings controllable by autoconf. */
33 +/* Define JOB_CONTROL if your operating system supports
34 + BSD-like job control. */
35 +#undef JOB_CONTROL
37 +/* Define ALIAS if you want the alias features. */
38 +#undef ALIAS
40 +/* Define PUSHD_AND_POPD if you want those commands to be compiled in.
41 + (Also the `dirs' commands.) */
42 +#undef PUSHD_AND_POPD
44 +/* Define BRACE_EXPANSION if you want curly brace expansion a la Csh:
45 + foo{a,b} -> fooa foob. Even if this is compiled in (the default) you
46 + can turn it off at shell startup with `-nobraceexpansion', or during
47 + shell execution with `set +o braceexpand'. */
48 +#undef BRACE_EXPANSION
50 +/* Define READLINE to get the nifty/glitzy editing features.
51 + This is on by default. You can turn it off interactively
52 + with the -nolineediting flag. */
53 +#undef READLINE
55 +/* Define BANG_HISTORY if you want to have Csh style "!" history expansion.
56 + This is unrelated to READLINE. */
57 +#undef BANG_HISTORY
59 +/* Define HISTORY if you want to have access to previously typed commands.
61 + If both HISTORY and READLINE are defined, you can get at the commands
62 + with line editing commands, and you can directly manipulate the history
63 + from the command line.
65 + If only HISTORY is defined, the `fc' and `history' builtins are
66 + available. */
67 +#undef HISTORY
69 +/* Define this if you want completion that puts all alternatives into
70 + a brace expansion shell expression. */
71 +#if defined (BRACE_EXPANSION) && defined (READLINE)
72 +# define BRACE_COMPLETION
73 +#endif /* BRACE_EXPANSION */
75 +/* Define DEFAULT_ECHO_TO_XPG if you want the echo builtin to interpret
76 + the backslash-escape characters by default, like the XPG Single Unix
77 + Specification V2 for echo.
78 + This requires that V9_ECHO be defined. */
79 +#undef DEFAULT_ECHO_TO_XPG
81 +/* Define HELP_BUILTIN if you want the `help' shell builtin and the long
82 + documentation strings compiled into the shell. */
83 +#undef HELP_BUILTIN
85 +/* Define RESTRICTED_SHELL if you want the generated shell to have the
86 + ability to be a restricted one. The shell thus generated can become
87 + restricted by being run with the name "rbash", or by setting the -r
88 + flag. */
89 +#undef RESTRICTED_SHELL
91 +/* Define DISABLED_BUILTINS if you want "builtin foo" to always run the
92 + shell builtin "foo", even if it has been disabled with "enable -n foo". */
93 +#undef DISABLED_BUILTINS
95 +/* Define PROCESS_SUBSTITUTION if you want the K*rn shell-like process
96 + substitution features "<(file)". */
97 +/* Right now, you cannot do this on machines without fully operational
98 + FIFO support. This currently include NeXT and Alliant. */
99 +#undef PROCESS_SUBSTITUTION
101 +/* Define PROMPT_STRING_DECODE if you want the backslash-escaped special
102 + characters in PS1 and PS2 expanded. Variable expansion will still be
103 + performed. */
104 +#undef PROMPT_STRING_DECODE
106 +/* Define SELECT_COMMAND if you want the Korn-shell style `select' command:
107 + select word in word_list; do command_list; done */
108 +#undef SELECT_COMMAND
110 +/* Define COMMAND_TIMING of you want the ksh-style `time' reserved word and
111 + the ability to time pipelines, functions, and builtins. */
112 +#undef COMMAND_TIMING
114 +/* Define ARRAY_VARS if you want ksh-style one-dimensional array variables. */
115 +#undef ARRAY_VARS
117 +/* Define DPAREN_ARITHMETIC if you want the ksh-style ((...)) arithmetic
118 + evaluation command. */
119 +#undef DPAREN_ARITHMETIC
121 +/* Define EXTENDED_GLOB if you want the ksh-style [*+@?!](patlist) extended
122 + pattern matching. */
123 +#undef EXTENDED_GLOB
125 +/* Define COND_COMMAND if you want the ksh-style [[...]] conditional
126 + command. */
127 +#undef COND_COMMAND
129 +/* Define COND_REGEXP if you want extended regular expression matching and the
130 + =~ binary operator in the [[...]] conditional command. */
131 +#define COND_REGEXP
133 +/* Define COPROCESS_SUPPORT if you want support for ksh-like coprocesses and
134 + the `coproc' reserved word */
135 +#define COPROCESS_SUPPORT
137 +/* Define ARITH_FOR_COMMAND if you want the ksh93-style
138 + for (( init; test; step )) do list; done
139 + arithmetic for command. */
140 +#undef ARITH_FOR_COMMAND
142 +/* Define NETWORK_REDIRECTIONS if you want /dev/(tcp|udp)/host/port to open
143 + socket connections when used in redirections */
144 +#undef NETWORK_REDIRECTIONS
146 +/* Define PROGRAMMABLE_COMPLETION for the programmable completion features
147 + and the complete builtin. */
148 +#undef PROGRAMMABLE_COMPLETION
150 +/* Define NO_MULTIBYTE_SUPPORT to not compile in support for multibyte
151 + characters, even if the OS supports them. */
152 +// TODO: change later
153 +#define NO_MULTIBYTE_SUPPORT
155 +/* Define DEBUGGER if you want to compile in some features used only by the
156 + bash debugger. */
157 +#undef DEBUGGER
159 +/* Define STRICT_POSIX if you want bash to be strictly posix.2 conformant by
160 + default (except for echo; that is controlled separately). */
161 +#undef STRICT_POSIX
163 +/* Define MEMSCRAMBLE if you want the bash malloc and free to scramble
164 + memory contents on malloc() and free(). */
165 +#undef MEMSCRAMBLE
167 +/* Define AFS if you are using Transarc's AFS. */
168 +#undef AFS
170 +/* Define for case-modifying variable attributes; variables modified on
171 + assignment */
172 +#undef CASEMOD_ATTRS
174 +/* Define for case-modifying word expansions */
175 +#undef CASEMOD_EXPANSIONS
177 +#undef ENABLE_NLS
179 +/* End of configuration settings controllable by autoconf. */
180 +/* Other settable options appear in config-top.h. */
182 +#include "config-top.h"
184 +/* Beginning of autoconf additions. */
186 +/* Characteristics of the C compiler */
187 +//#undef const
189 +//#undef inline
191 +/* Define if cpp supports the ANSI-C stringizing `#' operator */
192 +#define HAVE_STRINGIZE 1
194 +/* Define if the compiler supports `long double' variables. */
195 +#define HAVE_LONG_DOUBLE 1
197 +#undef PROTOTYPES
199 +#undef __CHAR_UNSIGNED__
201 +/* Define if the compiler supports `long long' variables. */
202 +#define HAVE_LONG_LONG 1
204 +#define HAVE_UNSIGNED_LONG_LONG 1
206 +/* The number of bytes in a int. */
207 +#define SIZEOF_INT _LIBARCH_INT_SIZE
209 +/* The number of bytes in a long. */
210 +#define SIZEOF_LONG _LIBARCH_LONG_SIZE
212 +/* The number of bytes in a pointer to char. */
213 +#define SIZEOF_CHAR_P _LIBARCH_POINTER_SIZE
215 +/* The number of bytes in a double (hopefully 8). */
216 +// TODO
217 +#define SIZEOF_DOUBLE 8
219 +/* The number of bytes in a `long long', if we have one. */
220 +#define SIZEOF_LONG_LONG _LIBARCH_LONG_LONG_SIZE
222 +/* System paths */
224 +// TODO
225 +//#define DEFAULT_MAIL_DIRECTORY "/usr/spool/mail"
227 +/* Characteristics of the system's header files and libraries that affect
228 + the compilation environment. */
230 +/* Define if the system does not provide POSIX.1 features except
231 + with this defined. */
232 +#define _POSIX_1_SOURCE 1
234 +/* Define if you need to in order for stat and other things to work. */
235 +// TODO
236 +//#undef _POSIX_SOURCE
238 +/* Define to use GNU libc extensions */
239 +#undef _GNU_SOURCE
241 +/* Define if you have the ANSI C header files. */
242 +#define STDC_HEADERS 1
244 +/* Memory management functions. */
246 +/* Define if using the bash version of malloc in lib/malloc/malloc.c */
247 +#undef USING_BASH_MALLOC
249 +#undef DISABLE_MALLOC_WRAPPERS
251 +/* Define if using alloca.c. */
252 +#undef C_ALLOCA
254 +/* Define to one of _getb67, GETB67, getb67 for Cray-2 and Cray-YMP systems.
255 + This function is required for alloca.c support on those systems. */
256 +#undef CRAY_STACKSEG_END
258 +/* Define if you have alloca, as a function or macro. */
259 +#undef HAVE_ALLOCA
261 +/* Define if you have <alloca.h> and it should be used (not on Ultrix). */
262 +#undef HAVE_ALLOCA_H
265 +/* SYSTEM TYPES */
267 +/* Define to `long' if <sys/types.h> doesn't define. */
268 +#undef off_t
270 +/* Define to `int' if <sys/types.h> doesn't define. */
271 +#undef mode_t
273 +/* Define to `int' if <signal.h> doesn't define. */
274 +#undef sigset_t
276 +/* Define to `int' if <sys/types.h> doesn't define. */
277 +#undef pid_t
279 +/* Define to `short' if <sys/types.h> doesn't define. */
280 +#undef bits16_t
282 +/* Define to `unsigned short' if <sys/types.h> doesn't define. */
283 +#undef u_bits16_t
285 +/* Define to `int' if <sys/types.h> doesn't define. */
286 +#undef bits32_t
288 +/* Define to `unsigned int' if <sys/types.h> doesn't define. */
289 +#undef u_bits32_t
291 +/* Define to `double' if <sys/types.h> doesn't define. */
292 +#undef bits64_t
294 +/* Define to `unsigned int' if <sys/types.h> doesn't define. */
295 +#undef u_int
297 +/* Define to `unsigned long' if <sys/types.h> doesn't define. */
298 +#undef u_long
300 +/* Define to `int' if <sys/types.h> doesn't define. */
301 +#undef ptrdiff_t
303 +/* Define to `unsigned' if <sys/types.h> doesn't define. */
304 +#undef size_t
306 +/* Define to `int' if <sys/types.h> doesn't define. */
307 +#undef ssize_t
309 +/* Define to `long' if <stdint.h> doesn't define. */
310 +#undef intmax_t
312 +/* Define to `unsigned long' if <stdint.h> doesn't define. */
313 +#undef uintmax_t
315 +/* Define to `int' if <sys/types.h> doesn't define. */
316 +#undef uid_t
318 +/* Define to `long' if <sys/types.h> doesn't define. */
319 +#undef clock_t
321 +/* Define to `long' if <sys/types.h> doesn't define. */
322 +#undef time_t
324 +/* Define to `int' if <sys/types.h> doesn't define. */
325 +#undef gid_t
327 +/* Define to `unsigned int' if <sys/socket.h> doesn't define. */
328 +#undef socklen_t
330 +#undef HAVE_MBSTATE_T
332 +/* Define if you have quad_t in <sys/types.h>. */
333 +#undef HAVE_QUAD_T
335 +/* Define if you have wchar_t in <wctype.h>. */
336 +#undef HAVE_WCHAR_T
338 +/* Define if you have wctype_t in <wctype.h>. */
339 +#undef HAVE_WCTYPE_T
341 +/* Define if you have wint_t in <wctype.h>. */
342 +#undef HAVE_WINT_T
344 +#undef RLIMTYPE
346 +/* Define to the type of elements in the array set by `getgroups'.
347 + Usually this is either `int' or `gid_t'. */
348 +#define GETGROUPS_T int
350 +/* Characteristics of the machine archictecture. */
352 +/* If using the C implementation of alloca, define if you know the
353 + direction of stack growth for your system; otherwise it will be
354 + automatically deduced at run-time.
355 + STACK_DIRECTION > 0 => grows toward higher addresses
356 + STACK_DIRECTION < 0 => grows toward lower addresses
357 + STACK_DIRECTION = 0 => direction of growth unknown
358 + */
359 +#undef STACK_DIRECTION
361 +/* Define if the machine architecture is big-endian. */
362 +#undef WORDS_BIGENDIAN
364 +/* Check for the presence of certain non-function symbols in the system
365 + libraries. */
367 +/* Define if `sys_siglist' is declared by <signal.h> or <unistd.h>. */
368 +#undef HAVE_DECL_SYS_SIGLIST
369 +#undef SYS_SIGLIST_DECLARED
371 +/* Define if `_sys_siglist' is declared by <signal.h> or <unistd.h>. */
372 +#undef UNDER_SYS_SIGLIST_DECLARED
374 +#undef HAVE_SYS_SIGLIST
376 +#undef HAVE_UNDER_SYS_SIGLIST
378 +#undef HAVE_SYS_ERRLIST
380 +#undef HAVE_TZNAME
381 +#undef HAVE_DECL_TZNAME
383 +/* Characteristics of some of the system structures. */
385 +#undef HAVE_STRUCT_DIRENT_D_INO
387 +#undef HAVE_STRUCT_DIRENT_D_FILENO
389 +#undef HAVE_STRUCT_DIRENT_D_NAMLEN
391 +#undef TIOCSTAT_IN_SYS_IOCTL
393 +#undef FIONREAD_IN_SYS_IOCTL
395 +#undef GWINSZ_IN_SYS_IOCTL
397 +#undef STRUCT_WINSIZE_IN_SYS_IOCTL
399 +#undef TM_IN_SYS_TIME
401 +#undef STRUCT_WINSIZE_IN_TERMIOS
403 +#undef SPEED_T_IN_SYS_TYPES
405 +#undef TERMIOS_LDISC
407 +#undef TERMIO_LDISC
409 +#undef HAVE_STRUCT_STAT_ST_BLOCKS
411 +#undef HAVE_STRUCT_TM_TM_ZONE
412 +#undef HAVE_TM_ZONE
414 +#undef HAVE_TIMEVAL
416 +#undef HAVE_STRUCT_TIMEZONE
418 +/* Characteristics of definitions in the system header files. */
420 +#undef HAVE_GETPW_DECLS
422 +#undef HAVE_RESOURCE
424 +#undef HAVE_LIBC_FNM_EXTMATCH
426 +#undef HAVE_DECL_CONFSTR
428 +#define HAVE_DECL_PRINTF 1
430 +#undef HAVE_DECL_SBRK
432 +#define HAVE_DECL_STRCPY 1
434 +#undef HAVE_DECL_STRSIGNAL
436 +#undef HAVE_DECL_STRTOLD
438 +#undef PRI_MACROS_BROKEN
440 +#undef STRTOLD_BROKEN
442 +/* Define if WCONTINUED is defined in system headers, but rejected by waitpid */
443 +#undef WCONTINUED_BROKEN
445 +/* These are checked with BASH_CHECK_DECL */
447 +#undef HAVE_DECL_STRTOIMAX
448 +#undef HAVE_DECL_STRTOL
449 +#undef HAVE_DECL_STRTOLL
450 +#undef HAVE_DECL_STRTOUL
451 +#undef HAVE_DECL_STRTOULL
452 +#undef HAVE_DECL_STRTOUMAX
454 +/* Characteristics of system calls and C library functions. */
456 +/* Define if the `getpgrp' function takes no argument. */
457 +#undef GETPGRP_VOID
459 +#undef NAMED_PIPES_MISSING
461 +#undef OPENDIR_NOT_ROBUST
463 +#undef PGRP_PIPE
465 +/* Define if the setvbuf function takes the buffering type as its second
466 + argument and the buffer pointer as the third, as on System V
467 + before release 3. */
468 +#undef SETVBUF_REVERSED
470 +#undef STAT_MACROS_BROKEN
472 +#undef ULIMIT_MAXFDS
474 +#undef CAN_REDEFINE_GETENV
476 +#undef HAVE_STD_PUTENV
478 +#define HAVE_STD_UNSETENV 1
480 +#undef HAVE_PRINTF_A_FORMAT
482 +#undef CTYPE_NON_ASCII
484 +/* Define if you have <langinfo.h> and nl_langinfo(CODESET). */
485 +#undef HAVE_LANGINFO_CODESET
487 +/* Characteristics of properties exported by the kernel. */
489 +/* Define if the kernel can exec files beginning with #! */
490 +#undef HAVE_HASH_BANG_EXEC
492 +/* Define if you have the /dev/fd devices to map open files into the file system. */
493 +#undef HAVE_DEV_FD
495 +/* Defined to /dev/fd or /proc/self/fd (linux). */
496 +#undef DEV_FD_PREFIX
498 +/* Define if you have the /dev/stdin device. */
499 +#undef HAVE_DEV_STDIN
502 +/* Type and behavior of signal handling functions. */
504 +/* Define as the return type of signal handlers (int or void). */
505 +#define RETSIGTYPE void
507 +/* Define if return type of signal handlers is void */
508 +#define VOID_SIGHANDLER 1
510 +#undef MUST_REINSTALL_SIGHANDLERS
512 +#undef HAVE_BSD_SIGNALS
514 +#undef HAVE_POSIX_SIGNALS
516 +#undef HAVE_USG_SIGHOLD
518 +#undef UNUSABLE_RT_SIGNALS
521 +/* Presence of system and C library functions. */
523 +/* Define if you have the asprintf function. */
524 +#undef HAVE_ASPRINTF
526 +/* Define if you have the bcopy function. */
527 +#undef HAVE_BCOPY
529 +/* Define if you have the bzero function. */
530 +#undef HAVE_BZERO
532 +/* Define if you have the confstr function. */
533 +#undef HAVE_CONFSTR
535 +/* Define if you have the dlclose function. */
536 +#undef HAVE_DLCLOSE
538 +/* Define if you have the dlopen function. */
539 +#undef HAVE_DLOPEN
541 +/* Define if you have the dlsym function. */
542 +#undef HAVE_DLSYM
544 +/* Define if you don't have vprintf but do have _doprnt. */
545 +#undef HAVE_DOPRNT
547 +/* Define if you have the dup2 function. */
548 +#undef HAVE_DUP2
550 +/* Define if you have the eaccess function. */
551 +#undef HAVE_EACCESS
553 +/* Define if you have the fcntl function. */
554 +#undef HAVE_FCNTL
556 +/* Define if you have the fdprintf function. */
557 +#undef HAVE_FDPRINTF
559 +/* Define if you have the fpurge/__fpurge function. */
560 +#undef HAVE_FPURGE
561 +#undef HAVE___FPURGE
562 +#undef HAVE_DECL_FPURGE
564 +/* Define if you have the getaddrinfo function. */
565 +#undef HAVE_GETADDRINFO
567 +/* Define if you have the getcwd function. */
568 +#define HAVE_GETCWD 1
570 +/* Define if you have the getdtablesize function. */
571 +#undef HAVE_GETDTABLESIZE
573 +/* Define if you have the getgroups function. */
574 +#undef HAVE_GETGROUPS
576 +/* Define if you have the gethostbyname function. */
577 +#undef HAVE_GETHOSTBYNAME
579 +/* Define if you have the gethostname function. */
580 +#undef HAVE_GETHOSTNAME
582 +/* Define if you have the getpagesize function. */
583 +#undef HAVE_GETPAGESIZE
585 +/* Define if you have the getpeername function. */
586 +#undef HAVE_GETPEERNAME
588 +/* Define if you have the getpwent function. */
589 +#undef HAVE_GETPWENT
591 +/* Define if you have the getpwnam function. */
592 +#undef HAVE_GETPWNAM
594 +/* Define if you have the getpwuid function. */
595 +#undef HAVE_GETPWUID
597 +/* Define if you have the getrlimit function. */
598 +#undef HAVE_GETRLIMIT
600 +/* Define if you have the getrusage function. */
601 +#undef HAVE_GETRUSAGE
603 +/* Define if you have the getservbyname function. */
604 +#undef HAVE_GETSERVBYNAME
606 +/* Define if you have the getservent function. */
607 +#undef HAVE_GETSERVENT
609 +/* Define if you have the gettimeofday function. */
610 +#undef HAVE_GETTIMEOFDAY
612 +/* Define if you have the getwd function. */
613 +#undef HAVE_GETWD
615 +/* Define if you have the inet_aton function. */
616 +#undef HAVE_INET_ATON
618 +/* Define if you have the isascii function. */
619 +#define HAVE_ISASCII 1
621 +/* Define if you have the isblank function. */
622 +#define HAVE_ISBLANK 1
624 +/* Define if you have the isgraph function. */
625 +#define HAVE_ISGRAPH 1
627 +/* Define if you have the isinf function in libc */
628 +#undef HAVE_ISINF_IN_LIBC
630 +/* Define if you have the isnan function in libc */
631 +#undef HAVE_ISNAN_IN_LIBC
633 +/* Define if you have the isprint function. */
634 +#define HAVE_ISPRINT 1
636 +/* Define if you have the isspace function. */
637 +#define HAVE_ISSPACE 1
639 +/* Define if you have the iswctype function. */
640 +#undef HAVE_ISWCTYPE
642 +/* Define if you have the iswlower function. */
643 +#undef HAVE_ISWLOWER
645 +/* Define if you have the iswupper function. */
646 +#undef HAVE_ISWUPPER
648 +/* Define if you have the isxdigit function. */
649 +#define HAVE_ISXDIGIT 1
651 +/* Define if you have the kill function. */
652 +#undef HAVE_KILL
654 +/* Define if you have the killpg function. */
655 +#undef HAVE_KILLPG
657 +/* Define if you have the lstat function. */
658 +#define HAVE_LSTAT 1
660 +/* Define if you have the mbrlen function. */
661 +#undef HAVE_MBRLEN
663 +/* Define if you have the mbrtowc function. */
664 +#undef HAVE_MBRTOWC
666 +/* Define if you have the mbscmp function. */
667 +#undef HAVE_MBSCMP
669 +/* Define if you have the mbsrtowcs function. */
670 +#undef HAVE_MBSRTOWCS
672 +/* Define if you have the memmove function. */
673 +#define HAVE_MEMMOVE 1
675 +/* Define if you have the memset function. */
676 +#define HAVE_MEMSET 1
678 +/* Define if you have the mkfifo function. */
679 +#undef HAVE_MKFIFO
681 +/* Define if you have the pathconf function. */
682 +#undef HAVE_PATHCONF
684 +/* Define if you have the putenv function. */
685 +#undef HAVE_PUTENV
687 +/* Define if you have the raise function. */
688 +#define HAVE_RAISE 1
690 +/* Define if you have the readlink function. */
691 +#undef HAVE_READLINK
693 +/* Define if you have the regcomp function. */
694 +#undef HAVE_REGCOMP
696 +/* Define if you have the regexec function. */
697 +#undef HAVE_REGEXEC
699 +/* Define if you have the rename function. */
700 +#define HAVE_RENAME 1
702 +/* Define if you have the sbrk function. */
703 +#undef HAVE_SBRK
705 +/* Define if you have the select function. */
706 +#undef HAVE_SELECT
708 +/* Define if you have the setdtablesize function. */
709 +#undef HAVE_SETDTABLESIZE
711 +/* Define if you have the setenv function. */
712 +#define HAVE_SETENV 1
714 +/* Define if you have the setitimer function. */
715 +#undef HAVE_SETITIMER
717 +/* Define if you have the setlinebuf function. */
718 +#undef HAVE_SETLINEBUF
720 +/* Define if you have the setlocale function. */
721 +#undef HAVE_SETLOCALE
723 +/* Define if you have the setostype function. */
724 +#undef HAVE_SETOSTYPE
726 +/* Define if you have the setregid function. */
727 +#undef HAVE_SETREGID
728 +#undef HAVE_DECL_SETREGID
730 +/* Define if you have the setvbuf function. */
731 +#define HAVE_SETVBUF 1
733 +/* Define if you have the siginterrupt function. */
734 +#undef HAVE_SIGINTERRUPT
736 +/* Define if you have the POSIX.1-style sigsetjmp function. */
737 +#undef HAVE_POSIX_SIGSETJMP
739 +/* Define if you have the snprintf function. */
740 +#define HAVE_SNPRINTF 1
742 +/* Define if you have the strcasecmp function. */
743 +#undef HAVE_STRCASECMP
745 +/* Define if you have the strchr function. */
746 +#define HAVE_STRCHR 1
748 +/* Define if you have the strcoll function. */
749 +#undef HAVE_STRCOLL
751 +/* Define if you have the strerror function. */
752 +#define HAVE_STRERROR 1
754 +/* Define if you have the strftime function. */
755 +#define HAVE_STRFTIME 1
757 +/* Define if you have the strnlen function. */
758 +#undef HAVE_STRNLEN
760 +/* Define if you have the strpbrk function. */
761 +#undef HAVE_STRPBRK
763 +/* Define if you have the strstr function. */
764 +#define HAVE_STRSTR 1
766 +/* Define if you have the strtod function. */
767 +#undef HAVE_STRTOD
769 +/* Define if you have the strtoimax function. */
770 +#undef HAVE_STRTOIMAX
772 +/* Define if you have the strtol function. */
773 +#define HAVE_STRTOL 1
775 +/* Define if you have the strtoll function. */
776 +#define HAVE_STRTOLL 1
778 +/* Define if you have the strtoul function. */
779 +#define HAVE_STRTOUL 1
781 +/* Define if you have the strtoull function. */
782 +#define HAVE_STRTOULL 1
784 +/* Define if you have the strtoumax function. */
785 +#undef HAVE_STRTOUMAX
787 +/* Define if you have the strsignal function or macro. */
788 +#undef HAVE_STRSIGNAL
790 +/* Define if you have the sysconf function. */
791 +#undef HAVE_SYSCONF
793 +/* Define if you have the tcgetattr function. */
794 +#define HAVE_TCGETATTR 1
796 +/* Define if you have the tcgetpgrp function. */
797 +#undef HAVE_TCGETPGRP
799 +/* Define if you have the times function. */
800 +#undef HAVE_TIMES
802 +/* Define if you have the towlower function. */
803 +#undef HAVE_TOWLOWER
805 +/* Define if you have the towupper function. */
806 +#undef HAVE_TOWUPPER
808 +/* Define if you have the ttyname function. */
809 +#undef HAVE_TTYNAME
811 +/* Define if you have the tzset function. */
812 +#undef HAVE_TZSET
814 +/* Define if you have the ulimit function. */
815 +#undef HAVE_ULIMIT
817 +/* Define if you have the uname function. */
818 +#undef HAVE_UNAME
820 +/* Define if you have the unsetenv function. */
821 +#define HAVE_UNSETENV 1
823 +/* Define if you have the vasprintf function. */
824 +#define HAVE_VASPRINTF 1
826 +/* Define if you have the vprintf function. */
827 +#define HAVE_VPRINTF 1
829 +/* Define if you have the vsnprintf function. */
830 +#define HAVE_VSNPRINTF 1
832 +/* Define if you have the waitpid function. */
833 +#undef HAVE_WAITPID
835 +/* Define if you have the wait3 function. */
836 +#undef HAVE_WAIT3
838 +/* Define if you have the wcrtomb function. */
839 +#undef HAVE_WCRTOMB
841 +/* Define if you have the wcscoll function. */
842 +#undef HAVE_WCSCOLL
844 +/* Define if you have the wcsdup function. */
845 +#undef HAVE_WCSDUP
847 +/* Define if you have the wctype function. */
848 +#undef HAVE_WCTYPE
850 +/* Define if you have the wcwidth function. */
851 +#undef HAVE_WCWIDTH
853 +/* Presence of certain system include files. */
855 +/* Define if you have the <arpa/inet.h> header file. */
856 +#undef HAVE_ARPA_INET_H
858 +/* Define if you have the <dirent.h> header file. */
859 +#define HAVE_DIRENT_H 1
861 +/* Define if you have the <dlfcn.h> header file. */
862 +#undef HAVE_DLFCN_H
864 +/* Define if you have the <grp.h> header file. */
865 +#undef HAVE_GRP_H
867 +/* Define if you have the <inttypes.h> header file. */
868 +#define HAVE_INTTYPES_H 1
870 +/* Define if you have the <langinfo.h> header file. */
871 +#undef HAVE_LANGINFO_H
873 +/* Define if you have the <libintl.h> header file. */
874 +#undef HAVE_LIBINTL_H
876 +/* Define if you have the <limits.h> header file. */
877 +#define HAVE_LIMITS_H 1
879 +/* Define if you have the <locale.h> header file. */
880 +#undef HAVE_LOCALE_H
882 +/* Define if you have the <ndir.h> header file. */
883 +#undef HAVE_NDIR_H
885 +/* Define if you have the <netdh.h> header file. */
886 +#undef HAVE_NETDB_H
888 +/* Define if you have the <netinet/in.h> header file. */
889 +#undef HAVE_NETINET_IN_H
891 +/* Define if you have the <pwd.h> header file. */
892 +#define HAVE_PWD_H 1
894 +/* Define if you have the <regex.h> header file. */
895 +#undef HAVE_REGEX_H
897 +/* Define if you have the <stdlib.h> header file. */
898 +#define HAVE_STDLIB_H 1
900 +/* Define if you have the <stdarg.h> header file. */
901 +#define HAVE_STDARG_H 1
903 +/* Define if you have the <string.h> header file. */
904 +#define HAVE_STRING_H 1
906 +/* Define if you have the <strings.h> header file. */
907 +#undef HAVE_STRINGS_H
909 +/* Define if you have the <memory.h> header file. */
910 +#undef HAVE_MEMORY_H
912 +/* Define if you have the <stddef.h> header file. */
913 +#define HAVE_STDDEF_H 1
915 +/* Define if you have the <stdint.h> header file. */
916 +#define HAVE_STDINT_H 1
918 +/* Define if you have the <sys/dir.h> header file. */
919 +#undef HAVE_SYS_DIR_H
921 +/* Define if you have the <sys/file.h> header file. */
922 +#undef HAVE_SYS_FILE_H
924 +/* Define if you have the <sys/ndir.h> header file. */
925 +#undef HAVE_SYS_NDIR_H
927 +/* Define if you have the <sys/param.h> header file. */
928 +#undef HAVE_SYS_PARAM_H
930 +/* Define if you have the <sys/pte.h> header file. */
931 +#undef HAVE_SYS_PTE_H
933 +/* Define if you have the <sys/ptem.h> header file. */
934 +#undef HAVE_SYS_PTEM_H
936 +/* Define if you have the <sys/resource.h> header file. */
937 +#undef HAVE_SYS_RESOURCE_H
939 +/* Define if you have the <sys/select.h> header file. */
940 +#undef HAVE_SYS_SELECT_H
942 +/* Define if you have the <sys/socket.h> header file. */
943 +#undef HAVE_SYS_SOCKET_H
945 +/* Define if you have the <sys/stat.h> header file. */
946 +#define HAVE_SYS_STAT_H 1
948 +/* Define if you have the <sys/stream.h> header file. */
949 +#undef HAVE_SYS_STREAM_H
951 +/* Define if you have <sys/time.h> */
952 +#define HAVE_SYS_TIME_H 1
954 +#undef TIME_WITH_SYS_TIME
956 +/* Define if you have <sys/times.h> */
957 +#undef HAVE_SYS_TIMES_H
959 +/* Define if you have the <sys/types.h> header file. */
960 +#define HAVE_SYS_TYPES_H 1
962 +/* Define if you have <sys/wait.h> that is POSIX.1 compatible. */
963 +#define HAVE_SYS_WAIT_H 1
965 +/* Define if you have the <termcap.h> header file. */
966 +#undef HAVE_TERMCAP_H
968 +/* Define if you have the <termio.h> header file. */
969 +#undef HAVE_TERMIO_H
971 +/* Define if you have the <termios.h> header file. */
972 +#define HAVE_TERMIOS_H 1
974 +/* Define if you have the <unistd.h> header file. */
975 +#define HAVE_UNISTD_H 1
977 +/* Define if you have the <varargs.h> header file. */
978 +#undef HAVE_VARARGS_H
980 +/* Define if you have the <wchar.h> header file. */
981 +#undef HAVE_WCHAR_H
983 +/* Define if you have the <varargs.h> header file. */
984 +#undef HAVE_WCTYPE_H
986 +/* Presence of certain system libraries. */
988 +#undef HAVE_LIBDL
990 +#undef HAVE_LIBSUN
992 +#undef HAVE_LIBSOCKET
995 +/* Define if on MINIX. */
996 +#undef _MINIX
998 +/* Are we running SVR5 (UnixWare 7)? */
999 +#undef SVR5
1001 +/* Are we running SVR4.2? */
1002 +#undef SVR4_2
1004 +/* Are we running some version of SVR4? */
1005 +#undef SVR4
1007 +/* Define if job control is unusable or unsupported. */
1008 +#define JOB_CONTROL_MISSING 1
1010 +/* Do we need to define _KERNEL to get the RLIMIT_* defines from
1011 + <sys/resource.h>? */
1012 +#undef RLIMIT_NEEDS_KERNEL
1014 +/* Number of bits in a file offset, on hosts where this is settable. */
1015 +#undef _FILE_OFFSET_BITS
1017 +/* Define for large files on AIX-style hosts. */
1018 +#undef _LARGE_FILES
1020 +/* Do strcoll(3) and strcmp(3) give different results in the default locale? */
1021 +#undef STRCOLL_BROKEN
1023 +#undef DUP2_BROKEN
1025 +#undef GETCWD_BROKEN
1027 +/* Additional defines for configuring lib/intl, maintained by autoscan/autoheader */
1029 +/* Define if you have the <argz.h> header file. */
1030 +#undef HAVE_ARGZ_H
1032 +/* Define if you have the <errno.h> header file. */
1033 +#define HAVE_ERRNO_H 1
1035 +/* Define if you have the <fcntl.h> header file. */
1036 +#undef HAVE_FCNTL_H
1038 +/* Define if you have the <malloc.h> header file. */
1039 +#undef HAVE_MALLOC_H
1041 +/* Define if you have the <stdio_ext.h> header file. */
1042 +#undef HAVE_STDIO_EXT_H
1044 +/* Define if you have the `dcgettext' function. */
1045 +#undef HAVE_DCGETTEXT
1047 +/* Define if you have the `localeconv' function. */
1048 +#undef HAVE_LOCALECONV
1050 +/* Define if your system has a working `malloc' function. */
1051 +/* #undef HAVE_MALLOC */
1053 +/* Define if you have the `mempcpy' function. */
1054 +#undef HAVE_MEMPCPY
1056 +/* Define if you have a working `mmap' system call. */
1057 +#undef HAVE_MMAP
1059 +/* Define if you have the `munmap' function. */
1060 +#undef HAVE_MUNMAP
1062 +/* Define if you have the `nl_langinfo' function. */
1063 +#undef HAVE_NL_LANGINFO
1065 +/* Define if you have the `stpcpy' function. */
1066 +#undef HAVE_STPCPY
1068 +/* Define if you have the `strcspn' function. */
1069 +#undef HAVE_STRCSPN
1071 +/* Define if you have the `strdup' function. */
1072 +#undef HAVE_STRDUP
1074 +/* Define if you have the `__argz_count' function. */
1075 +#undef HAVE___ARGZ_COUNT
1077 +/* Define if you have the `__argz_next' function. */
1078 +#undef HAVE___ARGZ_NEXT
1080 +/* Define if you have the `__argz_stringify' function. */
1081 +#undef HAVE___ARGZ_STRINGIFY
1083 +/* End additions for lib/intl */
1085 +#include "config-bot.h"
1087 +#endif /* _CONFIG_H_ */
1089 --- /dev/null 2008-11-15 15:27:58.000000000 +0100
1090 +++ src/pathnames.h 2009-01-23 16:04:51.000000000 +0100
1091 @@ -0,0 +1,33 @@
1092 +/* pathnames.h -- absolute filenames that bash wants for various defaults. */
1094 +/* Copyright (C) 1987-2009 Free Software Foundation, Inc.
1096 + This file is part of GNU Bash, the Bourne Again SHell.
1098 + Bash is free software: you can redistribute it and/or modify
1099 + it under the terms of the GNU General Public License as published by
1100 + the Free Software Foundation, either version 3 of the License, or
1101 + (at your option) any later version.
1103 + Bash is distributed in the hope that it will be useful,
1104 + but WITHOUT ANY WARRANTY; without even the implied warranty of
1105 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1106 + GNU General Public License for more details.
1108 + You should have received a copy of the GNU General Public License
1109 + along with Bash. If not, see <http://www.gnu.org/licenses/>.
1112 +#if !defined (_PATHNAMES_H_)
1113 +#define _PATHNAMES_H_
1115 +/* The default file for hostname completion. */
1116 +#define DEFAULT_HOSTS_FILE "/etc/hosts"
1118 +/* The default login shell startup file. */
1119 +#define SYS_PROFILE "/etc/profile"
1121 +/* The default location of the bash debugger initialization/startup file. */
1122 +#define DEBUGGER_START_FILE "@DEBUGGER_START_FILE@"
1124 +#endif /* _PATHNAMES_H */
1126 --- src/config-top.h 2009-01-04 20:32:23.000000000 +0100
1127 +++ src/config-top.h 2009-01-30 20:05:06.000000000 +0100
1128 @@ -54,14 +54,14 @@
1129 /* The default value of the PATH variable. */
1130 #ifndef DEFAULT_PATH_VALUE
1131 #define DEFAULT_PATH_VALUE \
1132 - "/usr/gnu/bin:/usr/local/bin:/bin:/usr/bin:."
1133 + "/bin:."
1134 #endif
1136 /* The value for PATH when invoking `command -p'. This is only used when
1137 the Posix.2 confstr () function, or CS_PATH define are not present. */
1138 #ifndef STANDARD_UTILS_PATH
1139 #define STANDARD_UTILS_PATH \
1140 - "/bin:/usr/bin:/sbin:/usr/sbin:/etc:/usr/etc"
1141 + "/bin"
1142 #endif
1144 /* Default primary and secondary prompt strings. */
1146 --- src/expr.c 2009-01-04 20:32:29.000000000 +0100
1147 +++ src/expr.c 2009-02-21 18:23:45.000000000 +0100
1148 @@ -323,7 +323,7 @@
1149 val = 0;
1150 noeval = 0;
1152 - FASTCOPY (evalbuf, oevalbuf, sizeof (evalbuf));
1153 + FASTCOPY (&evalbuf, &oevalbuf, sizeof (evalbuf));
1155 c = setjmp (evalbuf);
1157 @@ -345,7 +345,7 @@
1158 if (validp)
1159 *validp = 1;
1161 - FASTCOPY (oevalbuf, evalbuf, sizeof (evalbuf));
1162 + FASTCOPY (&oevalbuf, &evalbuf, sizeof (evalbuf));
1164 return (val);
1167 --- src/nojobs.c 2009-01-16 22:50:31.000000000 +0100
1168 +++ src/nojobs.c 2009-02-21 18:52:54.000000000 +0100
1169 @@ -65,6 +65,8 @@
1170 # define WAITPID(pid, statusp, options) wait (statusp)
1171 #endif /* !HAVE_WAITPID */
1173 +#include "trap.h"
1175 /* Return the fd from which we are actually getting input. */
1176 #define input_tty() (shell_tty != -1) ? shell_tty : fileno (stderr)
1178 @@ -407,6 +409,7 @@
1181 /* Initialize the job control mechanism, and set up the tty stuff. */
1182 +int
1183 initialize_job_control (force)
1184 int force;
1186 @@ -848,6 +851,7 @@
1187 static int got_tty_state;
1189 /* Fill the contents of shell_tty_info with the current tty info. */
1190 +int
1191 get_tty_state ()
1193 int tty;
1194 @@ -879,6 +883,7 @@
1197 /* Give the terminal to PGRP. */
1198 +int
1199 give_terminal_to (pgrp, force)
1200 pid_t pgrp;
1201 int force;
1203 --- src/shell.c 2009-01-04 20:32:41.000000000 +0100
1204 +++ src/shell.c 2009-02-21 19:02:46.000000000 +0100
1205 @@ -55,9 +55,9 @@
1206 #include "builtins.h"
1207 #include "builtins/common.h"
1209 -#if defined (JOB_CONTROL)
1210 +//#if defined (JOB_CONTROL)
1211 #include "jobs.h"
1212 -#endif /* JOB_CONTROL */
1213 +//#endif /* JOB_CONTROL */
1215 #include "input.h"
1216 #include "execute_cmd.h"
1217 @@ -1635,7 +1635,7 @@
1219 else
1221 - current_user.user_name = _("I have no name!");
1222 + current_user.user_name = (char*) _("I have no name!");
1223 current_user.user_name = savestring (current_user.user_name);
1224 current_user.shell = savestring ("/bin/sh");
1225 current_user.home_dir = savestring ("/");
1227 --- src/sig.c 2009-01-04 20:32:41.000000000 +0100
1228 +++ src/sig.c 2009-02-21 19:11:49.000000000 +0100
1229 @@ -35,9 +35,9 @@
1230 #include "bashintl.h"
1232 #include "shell.h"
1233 -#if defined (JOB_CONTROL)
1234 +//#if defined (JOB_CONTROL)
1235 #include "jobs.h"
1236 -#endif /* JOB_CONTROL */
1237 +//#endif /* JOB_CONTROL */
1238 #include "siglist.h"
1239 #include "sig.h"
1240 #include "trap.h"
1242 --- src/siglist.c 2009-01-04 20:32:41.000000000 +0100
1243 +++ src/siglist.c 2009-02-21 19:28:53.000000000 +0100
1244 @@ -34,7 +34,9 @@
1246 #include "xmalloc.h"
1248 -char *sys_siglist[NSIG];
1249 +#include "bashintl.h"
1251 +const char *sys_siglist[NSIG];
1253 void
1254 initialize_siglist ()
1255 @@ -221,7 +223,7 @@
1256 sys_siglist[i] =
1257 (char *)xmalloc (10 + strlen (_("Unknown Signal #")));
1259 - sprintf (sys_siglist[i], _("Unknown Signal #%d"), i);
1260 + sprintf ((char*)sys_siglist[i], _("Unknown Signal #%d"), i);
1265 --- src/siglist.h 2009-01-04 20:32:41.000000000 +0100
1266 +++ src/siglist.h 2009-02-21 19:26:30.000000000 +0100
1267 @@ -21,6 +21,8 @@
1268 #if !defined (_SIGLIST_H_)
1269 #define _SIGLIST_H_
1271 +#include "stdc.h"
1273 #if !defined (SYS_SIGLIST_DECLARED) && !defined (HAVE_STRSIGNAL)
1275 #if defined (HAVE_UNDER_SYS_SIGLIST) && !defined (HAVE_SYS_SIGLIST) && !defined (sys_siglist)
1276 @@ -28,7 +30,7 @@
1277 #endif /* HAVE_UNDER_SYS_SIGLIST && !HAVE_SYS_SIGLIST && !sys_siglist */
1279 #if !defined (sys_siglist)
1280 -extern char *sys_siglist[];
1281 +extern const char *sys_siglist[];
1282 #endif /* !sys_siglist */
1284 #endif /* !SYS_SIGLIST_DECLARED && !HAVE_STRSIGNAL */
1285 @@ -41,4 +43,6 @@
1286 extern char *strsignal __P((int));
1287 #endif
1289 +extern void initialize_siglist __P((void));
1291 #endif /* _SIGLIST_H */
1293 --- src/trap.c 2009-01-16 23:07:53.000000000 +0100
1294 +++ src/trap.c 2009-02-21 21:49:20.000000000 +0100
1295 @@ -750,7 +750,7 @@
1296 save_return_catch_flag = return_catch_flag;
1297 if (return_catch_flag)
1299 - COPY_PROCENV (return_catch, save_return_catch);
1300 + COPY_PROCENV (&return_catch, &save_return_catch);
1301 function_code = setjmp (return_catch);
1304 @@ -785,7 +785,7 @@
1306 return_catch_flag = save_return_catch_flag;
1307 return_catch_value = trap_exit_value;
1308 - COPY_PROCENV (save_return_catch, return_catch);
1309 + COPY_PROCENV (&save_return_catch, &return_catch);
1310 if (function_code)
1311 longjmp (return_catch, 1);
1313 --- /dev/null 2008-11-11 09:49:46.000000000 +0100
1314 +++ src/version.h 2009-02-21 20:48:11.000000000 +0100
1315 @@ -0,0 +1,17 @@
1316 +/* Version control for the shell. This file gets changed when you say
1317 + `make version.h' to the Makefile. It is created by mkversion. */
1319 +/* The distribution version number of this shell. */
1320 +#define DISTVERSION "4.0"
1322 +/* The last built version of this shell. */
1323 +#define BUILDVERSION 1
1325 +/* The release status of this shell. */
1326 +#define RELSTATUS "release"
1328 +/* The default shell compatibility-level (the current version) */
1329 +#define DEFAULT_COMPAT_LEVEL 40
1331 +/* A version string for use by sccs and the what command. */
1332 +#define SCCSVERSION "@(#)Bash version 4.0.0(1) release GNU"
1334 --- src/builtins/evalfile.c 2009-01-08 14:23:34.000000000 +0100
1335 +++ src/builtins/evalfile.c 2009-02-21 22:11:00.000000000 +0100
1336 @@ -198,7 +198,7 @@
1338 else
1340 - COPY_PROCENV (return_catch, old_return_catch);
1341 + COPY_PROCENV (&return_catch, &old_return_catch);
1342 if (flags & FEVAL_NONINT)
1343 old_interactive = interactive;
1345 @@ -254,7 +254,7 @@
1346 interactive = old_interactive;
1347 return_catch_flag--;
1348 sourcelevel--;
1349 - COPY_PROCENV (old_return_catch, return_catch);
1350 + COPY_PROCENV (&old_return_catch, &return_catch);
1353 #if defined (ARRAY_VARS)