home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 4 / FreshFish_May-June1994.bin / bbs / gnu / bash-1.13.4-src.lha / src / diffs / bash-1.13.4.diffs < prev   
Encoding:
Text File  |  1993-12-15  |  19.4 KB  |  641 lines

  1. diff -rc bash-1.13.4-fsf/.machine bash-1.13.4-amiga/.machine
  2. *** bash-1.13.4-fsf/.machine    Tue Aug 31 20:37:31 1993
  3. --- bash-1.13.4-amiga/.machine    Sun Nov 21 14:41:24 1993
  4. ***************
  5. *** 1 ****
  6. ! bash last made for a sparc running SunOS4
  7. --- 1 ----
  8. ! bash last made for a amiga  running amigados 
  9. diff -rc bash-1.13.4-fsf/Makefile bash-1.13.4-amiga/Makefile
  10. *** bash-1.13.4-fsf/Makefile    Tue Aug 31 18:52:30 1993
  11. --- bash-1.13.4-amiga/Makefile    Sat Nov 20 15:48:47 1993
  12. ***************
  13. *** 18,25 ****
  14.   
  15.   # Force CPPNAME to be the name of your C preprocesor if Bash can't
  16.   # find it.  For instance, `CPPNAME=/usr/libexec/cpp' on 4.4 BSD.
  17. ! CPPNAME =
  18. ! CPP     = `$(CPPMAGIC) $(GETCPPSYMS) $(CPPNAME)` -P
  19.   
  20.   # If all else fails, try this line instead.
  21.   # CPP     = $(CC) -E
  22. --- 18,26 ----
  23.   
  24.   # Force CPPNAME to be the name of your C preprocesor if Bash can't
  25.   # find it.  For instance, `CPPNAME=/usr/libexec/cpp' on 4.4 BSD.
  26. ! CPPNAME = /gcc/lib/gcc-lib/amigados/2.5.7/cpp
  27. ! #CPP     = `$(CPPMAGIC) $(GETCPPSYMS) $(CPPNAME)` -P
  28. ! CPP    =  $(CPPNAME) `$(GETCPPSYMS)` -P
  29.   
  30.   # If all else fails, try this line instead.
  31.   # CPP     = $(CC) -E
  32. ***************
  33. *** 44,52 ****
  34.   # much trouble with this, just forget it.  It is for making
  35.   # bash-Makefile pretty and readable; something that isn't strictly
  36.   # necessary.
  37. ! # SQUASH_BLANKS = cat -s
  38.   #
  39. ! SQUASH_BLANKS = $(GAWK) -f $(CAT_S)
  40.   
  41.   all:    .notified bash-Makefile
  42.       $(MAKE) $(MFLAGS) $(MAKEARGS) -f bash-Makefile
  43. --- 45,53 ----
  44.   # much trouble with this, just forget it.  It is for making
  45.   # bash-Makefile pretty and readable; something that isn't strictly
  46.   # necessary.
  47. ! SQUASH_BLANKS = cat -s
  48.   #
  49. ! #SQUASH_BLANKS = $(GAWK) -f $(CAT_S)
  50.   
  51.   all:    .notified bash-Makefile
  52.       $(MAKE) $(MFLAGS) $(MAKEARGS) -f bash-Makefile
  53. diff -rc bash-1.13.4-fsf/bashline.c bash-1.13.4-amiga/bashline.c
  54. *** bash-1.13.4-fsf/bashline.c    Fri Nov 12 15:55:36 1993
  55. --- bash-1.13.4-amiga/bashline.c    Sat Nov 20 15:15:57 1993
  56. ***************
  57. *** 1569,1576 ****
  58. --- 1569,1578 ----
  59.   bash_complete_username_internal (what_to_do)
  60.        int what_to_do;
  61.   {
  62. + #ifndef amigados
  63.     bash_specific_completion
  64.       (what_to_do, (Function *)username_completion_function);
  65. + #endif /* amigados */
  66.   }
  67.   
  68.   static void
  69. diff -rc bash-1.13.4-fsf/builtins/Makefile bash-1.13.4-amiga/builtins/Makefile
  70. *** bash-1.13.4-fsf/builtins/Makefile    Tue Aug 31 18:52:32 1993
  71. --- bash-1.13.4-amiga/builtins/Makefile    Sat Nov 20 16:26:25 1993
  72. ***************
  73. *** 59,66 ****
  74.   
  75.   builtext.h builtins.c: $(MKBUILTINS) $(DEFS)
  76.       $(RM) builtext.h builtins.c
  77. !     ./$(MKBUILTINS) -externfile builtext.h -structfile builtins.c \
  78. !     -noproduction $(DIRECTDEFINE) $(DEFS)
  79.   
  80.   mkbuiltins: mkbuiltins.c ../config.h
  81.       $(CC) $(CFLAGS) -o $(MKBUILTINS) mkbuiltins.c
  82. --- 59,66 ----
  83.   
  84.   builtext.h builtins.c: $(MKBUILTINS) $(DEFS)
  85.       $(RM) builtext.h builtins.c
  86. !     ./$(MKBUILTINS) -externfile - -noproduction $(DIRECTDEFINE) $(DEFS) >builtext.h
  87. !     ./$(MKBUILTINS) -structfile builtins.c -noproduction $(DIRECTDEFINE) $(DEFS)
  88.   
  89.   mkbuiltins: mkbuiltins.c ../config.h
  90.       $(CC) $(CFLAGS) -o $(MKBUILTINS) mkbuiltins.c
  91. diff -rc bash-1.13.4-fsf/builtins/mkbuiltins.c bash-1.13.4-amiga/builtins/mkbuiltins.c
  92. *** bash-1.13.4-fsf/builtins/mkbuiltins.c    Tue Aug 31 18:52:33 1993
  93. --- bash-1.13.4-amiga/builtins/mkbuiltins.c    Sat Nov 20 15:16:04 1993
  94. ***************
  95. *** 201,207 ****
  96.   
  97.         if (extern_filename)
  98.       {
  99. !       externfile = fopen (extern_filename, "w");
  100.   
  101.         if (!externfile)
  102.           file_error (extern_filename);
  103. --- 201,210 ----
  104.   
  105.         if (extern_filename)
  106.       {
  107. !       if (strcmp (extern_filename, "-") == 0)
  108. !         externfile = stdout;
  109. !       else
  110. !         externfile = fopen (extern_filename, "w");
  111.   
  112.         if (!externfile)
  113.           file_error (extern_filename);
  114. ***************
  115. *** 242,248 ****
  116.         unlink (temp_struct_filename);
  117.       }
  118.   
  119. !       if (externfile)
  120.       fclose (externfile);
  121.       }
  122.   
  123. --- 245,251 ----
  124.         unlink (temp_struct_filename);
  125.       }
  126.   
  127. !       if (externfile && externfile != stdout)
  128.       fclose (externfile);
  129.       }
  130.   
  131. ***************
  132. *** 1049,1054 ****
  133. --- 1052,1058 ----
  134.             /* Write the extern definition. */
  135.             if (externfile)
  136.           {
  137. +           fprintf (externfile, "/* %s */\n", defs -> filename);
  138.             if (builtin->function)
  139.               fprintf (externfile, "extern int %s ();\n",
  140.                    builtin->function);
  141. diff -rc bash-1.13.4-fsf/builtins/psize.sh bash-1.13.4-amiga/builtins/psize.sh
  142. *** bash-1.13.4-fsf/builtins/psize.sh    Tue Aug 31 18:52:34 1993
  143. --- bash-1.13.4-amiga/builtins/psize.sh    Sat Nov 20 15:16:06 1993
  144. ***************
  145. *** 11,17 ****
  146.   echo " */"
  147.   echo ""
  148.   
  149. ! ./psize.aux 2>/tmp/pipesize | sleep 3
  150.   
  151.   echo "#define PIPESIZE `cat /tmp/pipesize`"
  152.   
  153. --- 11,20 ----
  154.   echo " */"
  155.   echo ""
  156.   
  157. ! #./psize.aux 2>/tmp/pipesize | sleep 3
  158. ! # Begin Amiga hack
  159. ! echo 5120 >/tmp/pipesize
  160. ! #endif Amiga hack
  161.   
  162.   echo "#define PIPESIZE `cat /tmp/pipesize`"
  163.   
  164. diff -rc bash-1.13.4-fsf/config.h bash-1.13.4-amiga/config.h
  165. *** bash-1.13.4-fsf/config.h    Tue Aug 31 18:52:35 1993
  166. --- bash-1.13.4-amiga/config.h    Sat Nov 20 16:07:25 1993
  167. ***************
  168. *** 52,58 ****
  169. --- 52,60 ----
  170.   
  171.   /* Define JOB_CONTROL if your operating system supports
  172.      BSD-like job control. */
  173. + #ifndef amigados
  174.   #define JOB_CONTROL
  175. + #endif /* amigados */
  176.   
  177.   /* Note that vanilla System V machines don't support BSD job control,
  178.      although some do support Posix job control. */
  179. ***************
  180. *** 98,110 ****
  181. --- 100,122 ----
  182.   #endif /* BANG_HISTORY && !HISTORY */
  183.   
  184.   /* The default value of the PATH variable. */
  185. + #ifdef amigados
  186. + #define DEFAULT_PATH_VALUE \
  187. +   ":/c:/gcc:/usr/bin:/bin:/usr/local/bin:.:/local/bin"
  188. + #else
  189.   #define DEFAULT_PATH_VALUE \
  190.     ":/usr/gnu/bin:/usr/local/bin:/usr/ucb:/bin:/usr/bin:/etc:/usr/etc"
  191. + #endif /* amigados */
  192.   
  193.   /* The value for PATH when invoking `command -p'.  This is only used when
  194.      the Posix.2 confstr () function, or CS_PATH define are not present. */
  195. + #ifdef amigados
  196. + #define STANDARD_UTILS_PATH \
  197. +   "/c:/gcc:/usr/bin:/bin:/usr/local/bin:.:/local/bin"
  198. + #else
  199.   #define STANDARD_UTILS_PATH \
  200.     "/bin:/usr/bin:/usr/ucb:/usr/sbin:/etc:/usr/etc"
  201. + #endif /* amigados */
  202.   
  203.   /* Define V9_ECHO if you want to give the echo builtin backslash-escape
  204.      interpretation using the -e option, in the style of the Bell Labs 9th
  205. ***************
  206. *** 137,142 ****
  207. --- 149,174 ----
  208.   /* Define DISABLED_BUILTINS if you want "builtin foo" to always run the
  209.      shell builtin "foo", even if it has been disabled with "enable -n foo". */
  210.   /* #define DISABLED_BUILTINS */
  211. + #ifdef amigados
  212. + #define SYSTEM_NAME "amiga"
  213. + #define OS_NAME "amigados"
  214. + #define PPROMPT "bash$ "
  215. + #define SPROMPT "> "
  216. + #ifdef HOSTTYPE
  217. + # undef HOSTTYPE
  218. + #endif /* HOSTTYPE */
  219. + #define HOSTTYPE "amiga"
  220. + #ifndef MAINTAINER
  221. + # define MAINTAINER "phb@colombo.telesys-innov.fr"
  222. + #endif /* MAINTAINER */
  223. + #ifdef JOB_CONTROL
  224. + # undef JOB_CONTROL
  225. + #endif /* JOB_CONTROL */
  226. + #ifdef HAVE_BSD_SIGNALS
  227. + # undef HAVE_BSD_SIGNALS
  228. + #endif
  229. + #endif /* amigados */
  230.   
  231.   /* Define PROCESS_SUBSTITUTION if you want the K*rn shell-like process
  232.      substitution features "<(file)". */
  233. diff -rc bash-1.13.4-fsf/cpp-Makefile bash-1.13.4-amiga/cpp-Makefile
  234. *** bash-1.13.4-fsf/cpp-Makefile    Fri Nov 12 15:54:50 1993
  235. --- bash-1.13.4-amiga/cpp-Makefile    Sat Nov 20 16:35:05 1993
  236. ***************
  237. *** 248,254 ****
  238.          $(SIGHANDLER) $(SYSDEP) $(WAITH) $(GETWD) $(DUP2) $(STRERROR) \
  239.          $(DIRENT) $(DIRENTH) $(STRINGH) $(VARARGSH) $(STRCHR) $(DEVFD) \
  240.          -D$(Machine) -D$(OS)
  241. ! DEBUG_FLAGS = $(PROFILE_FLAGS) -O -g
  242.   LDFLAGS    = $(NOSHARE) $(SYSDEP_LD) $(EXTRA_LD_PATH) $(DEBUG_FLAGS)
  243.   CFLAGS    = $(DEBUG_FLAGS) $(SYSTEM_FLAGS) -DSHELL $(ALLOCA_CFLAGS) \
  244.         $(MALLOC_CFLAGS)
  245. --- 248,254 ----
  246.          $(SIGHANDLER) $(SYSDEP) $(WAITH) $(GETWD) $(DUP2) $(STRERROR) \
  247.          $(DIRENT) $(DIRENTH) $(STRINGH) $(VARARGSH) $(STRCHR) $(DEVFD) \
  248.          -D$(Machine) -D$(OS)
  249. ! DEBUG_FLAGS = $(PROFILE_FLAGS) -O
  250.   LDFLAGS    = $(NOSHARE) $(SYSDEP_LD) $(EXTRA_LD_PATH) $(DEBUG_FLAGS)
  251.   CFLAGS    = $(DEBUG_FLAGS) $(SYSTEM_FLAGS) -DSHELL $(ALLOCA_CFLAGS) \
  252.         $(MALLOC_CFLAGS)
  253. ***************
  254. *** 289,295 ****
  255.        $(MAKE) $(MFLAGS) CPPFLAGS='$(CPPFLAGS)' \
  256.        CFLAGS='$(CFLAGS) '$(LIBINC_USAGE)' -I.' LDFLAGS='$(LDFLAGS)' \
  257.        RANLIB='$(RANLIB)' AR='$(AR)' CC='$(CC)' RM='$(RM)' \
  258. !      DIRECTDEFINE='-D 'directory)
  259.   
  260.   /**/# Flags used when building libraries.
  261.   LIBRARY_CFLAGS  = $(DEBUG_FLAGS) $(SIGHANDLER) $(ALLOCA_CFLAGS) \
  262. --- 289,295 ----
  263.        $(MAKE) $(MFLAGS) CPPFLAGS='$(CPPFLAGS)' \
  264.        CFLAGS='$(CFLAGS) '$(LIBINC_USAGE)' -I.' LDFLAGS='$(LDFLAGS)' \
  265.        RANLIB='$(RANLIB)' AR='$(AR)' CC='$(CC)' RM='$(RM)' \
  266. !      DIRECTDEFINE='-D builtins/')
  267.   
  268.   /**/# Flags used when building libraries.
  269.   LIBRARY_CFLAGS  = $(DEBUG_FLAGS) $(SIGHANDLER) $(ALLOCA_CFLAGS) \
  270. ***************
  271. *** 672,679 ****
  272.   #endif
  273.   
  274.   /**/# The group of configuration flags.  These are for shell.c
  275. ! CFG_FLAGS = -DPPROMPT=$(PPROMPT) -DSPROMPT=$(SPROMPT) -DOS_NAME='$(OS_NAME)'\
  276. !         -DSYSTEM_NAME='$(SYSTEM_NAME)' $(SIGLIST_FLAG) $(MAINTAIN_DEFINE)
  277.   
  278.   /**/# The directory which contains the source for malloc.  The name must
  279.   /**/# end in a slash, as in "./lib/malloc/".
  280. --- 672,678 ----
  281.   #endif
  282.   
  283.   /**/# The group of configuration flags.  These are for shell.c
  284. ! CFG_FLAGS = $(SIGLIST_FLAG)
  285.   
  286.   /**/# The directory which contains the source for malloc.  The name must
  287.   /**/# end in a slash, as in "./lib/malloc/".
  288. diff -rc bash-1.13.4-fsf/execute_cmd.c bash-1.13.4-amiga/execute_cmd.c
  289. *** bash-1.13.4-fsf/execute_cmd.c    Fri Nov 12 15:55:41 1993
  290. --- bash-1.13.4-amiga/execute_cmd.c    Tue Dec 14 19:38:01 1993
  291. ***************
  292. *** 1897,1904 ****
  293.     if (nofork && pipe_in == NO_PIPE && pipe_out == NO_PIPE)
  294.       pid = 0;
  295.     else
  296. !     pid = make_child (savestring (command_line), async);
  297.     if (pid == 0)
  298.       {
  299.         int old_interactive;
  300. --- 1897,1905 ----
  301.     if (nofork && pipe_in == NO_PIPE && pipe_out == NO_PIPE)
  302.       pid = 0;
  303.     else
  304. !     {
  305. !         pid = make_child (savestring (command_line), async);
  306. !     }
  307.     if (pid == 0)
  308.       {
  309.         int old_interactive;
  310. diff -rc bash-1.13.4-fsf/lib/readline/Makefile bash-1.13.4-amiga/lib/readline/Makefile
  311. *** bash-1.13.4-fsf/lib/readline/Makefile    Tue Aug 31 18:53:48 1993
  312. --- bash-1.13.4-amiga/lib/readline/Makefile    Sun Nov 21 13:12:19 1993
  313. ***************
  314. *** 14,22 ****
  315. --- 14,27 ----
  316.   # Please note that the values for INCLUDES, CC, AR, RM, CP,
  317.   # RANLIB, and selfdir are passed in from ../Makefile, and do
  318.   # not need to be defined here.
  319. + # (except for the Amiga case, for now...  -fnf)
  320. + CC = gcc
  321. + CFLAGS = -O2 -DHAVE_UNISTD_H
  322.   
  323.   # Here is a rule for making .o files from .c files that doesn't force
  324.   # the type of the machine (like -sun3) into the flags.
  325.   .c.o:
  326.       $(CC) -c $(CFLAGS) $(INCLUDES) $(LOCAL_DEFINES) $(CPPFLAGS) $*.c
  327.   
  328. ***************
  329. *** 28,34 ****
  330.   
  331.   # Some systems need to define this (like older NeXT systems) in order
  332.   # to prevent namespace conflicts.
  333. ! CFLAGS = # -DSTATIC_MALLOC
  334.   
  335.   # For libraries which include headers from other libraries.
  336.   LOCAL_INCLUDES = -I. -I../
  337. --- 33,39 ----
  338.   
  339.   # Some systems need to define this (like older NeXT systems) in order
  340.   # to prevent namespace conflicts.
  341. ! #CFLAGS = # -DSTATIC_MALLOC
  342.   
  343.   # For libraries which include headers from other libraries.
  344.   LOCAL_INCLUDES = -I. -I../
  345. ***************
  346. *** 68,79 ****
  347.   libreadline.a: $(OBJECTS)
  348.       $(RM) -f $@
  349.       $(AR) cq $@ $(OBJECTS)
  350. !     -if [ -f "$(RANLIB)" ]; then $(RANLIB) $@; fi
  351.   
  352.   libhistory.a: history.o
  353.       $(RM) -f $@
  354.       $(AR) cq $@ history.o
  355. !     -if [ -f "$(RANLIB)" ]; then $(RANLIB) $@; fi
  356.   
  357.   what-tar:
  358.       @for file in $(THINGS_TO_TAR); do \
  359. --- 73,84 ----
  360.   libreadline.a: $(OBJECTS)
  361.       $(RM) -f $@
  362.       $(AR) cq $@ $(OBJECTS)
  363. !     -if test -f "$(RANLIB)"; then $(RANLIB) $@; fi
  364.   
  365.   libhistory.a: history.o
  366.       $(RM) -f $@
  367.       $(AR) cq $@ history.o
  368. !     -if test -f "$(RANLIB)"; then $(RANLIB) $@; fi
  369.   
  370.   what-tar:
  371.       @for file in $(THINGS_TO_TAR); do \
  372. ***************
  373. *** 96,102 ****
  374.       $(CP) readline.h keymaps.h chardefs.h history.h $(incdir)/readline/
  375.       -mv $(bindir)/libreadline.a $(bindir)/libreadline.old
  376.       cp libreadline.a $(bindir)/libreadline.a
  377. !     if [ -f "$(RANLIB)" ]; then $(RANLIB) -t $(bindir)/libreadline.a; fi
  378.   
  379.   clean:
  380.       rm -f $(OBJECTS) *.a
  381. --- 101,107 ----
  382.       $(CP) readline.h keymaps.h chardefs.h history.h $(incdir)/readline/
  383.       -mv $(bindir)/libreadline.a $(bindir)/libreadline.old
  384.       cp libreadline.a $(bindir)/libreadline.a
  385. !     if test -f "$(RANLIB)" ; then $(RANLIB) -t $(bindir)/libreadline.a; fi
  386.   
  387.   clean:
  388.       rm -f $(OBJECTS) *.a
  389. diff -rc bash-1.13.4-fsf/lib/readline/complete.c bash-1.13.4-amiga/lib/readline/complete.c
  390. *** bash-1.13.4-fsf/lib/readline/complete.c    Tue Aug 31 18:53:50 1993
  391. --- bash-1.13.4-amiga/lib/readline/complete.c    Sun Nov 21 13:24:33 1993
  392. ***************
  393. *** 1211,1213 ****
  394. --- 1211,1236 ----
  395.     abort ();
  396.   }
  397.   #endif /* STATIC_MALLOC */
  398. + #ifdef amigados
  399. + struct passwd *getpwent ()
  400. + {
  401. +   static struct passwd fake_passwd = {
  402. +     "root",        /* pw_name */
  403. +     "*nologin*",    /* pw_passwd */
  404. +     0,            /* pw_uid */
  405. +     0,            /* pw_gid */
  406. +     0,            /* pw_change */
  407. +     "pw_class",        /* pw_class */
  408. +     "pw_gecos",        /* pw_gecos */
  409. +     "/",        /* pw_dir */
  410. +     "/bin/sh",        /* pw_shell */
  411. +     0            /* pw_expire */
  412. +   };
  413. + }
  414. + int setpwent ()
  415. + {
  416. + }
  417. + #endif    /* amigados */
  418. diff -rc bash-1.13.4-fsf/lib/readline/rltty.c bash-1.13.4-amiga/lib/readline/rltty.c
  419. *** bash-1.13.4-fsf/lib/readline/rltty.c    Tue Aug 31 18:53:50 1993
  420. --- bash-1.13.4-amiga/lib/readline/rltty.c    Sun Nov 21 13:07:24 1993
  421. ***************
  422. *** 333,338 ****
  423. --- 333,341 ----
  424.   #  define DRAIN_OUTPUT(fd)    tcdrain (fd)
  425.   #  define GETATTR(tty, tiop)    (tcgetattr (tty, tiop))
  426.   #  define SETATTR(tty, tiop)    (tcsetattr (tty, TCSANOW, tiop))
  427. + #  if defined (amigados)
  428. + #    define tcflow(fd, action)  /* Not in current ixemul.library */
  429. + #  endif
  430.   #else
  431.   #  define TIOTYPE struct termio
  432.   #  define DRAIN_OUTPUT(fd)
  433. diff -rc bash-1.13.4-fsf/lib/tilde/tilde.c bash-1.13.4-amiga/lib/tilde/tilde.c
  434. *** bash-1.13.4-fsf/lib/tilde/tilde.c    Tue Aug 31 18:53:53 1993
  435. --- bash-1.13.4-amiga/lib/tilde/tilde.c    Sat Nov 20 15:17:06 1993
  436. ***************
  437. *** 242,247 ****
  438. --- 242,252 ----
  439.       {
  440.         /* Prepend $HOME to the rest of the string. */
  441.         char *temp_home = (char *)getenv ("HOME");
  442. + #ifdef amigados
  443. +       /* Default $HOME to s:, which is the semi-traditional place
  444. +          for reconfiguration files and whatnot.  -fnf */
  445. +       temp_home = temp_home ? temp_home : "/s";
  446. + #endif
  447.   
  448.         /* If there is no HOME variable, look up the directory in
  449.            the password database. */
  450. diff -rc bash-1.13.4-fsf/machines.h bash-1.13.4-amiga/machines.h
  451. *** bash-1.13.4-fsf/machines.h    Fri Nov 12 15:55:44 1993
  452. --- bash-1.13.4-amiga/machines.h    Sat Nov 20 15:31:05 1993
  453. ***************
  454. *** 1159,1170 ****
  455.   #  undef USE_GNU_MALLOC
  456.   #endif /* drs6000 */
  457.   
  458.   /* ******************************************** */
  459.   /*                        */
  460.   /*  System V Release 4 on the Commodore Amiga   */
  461.   /*                        */
  462.   /* ******************************************** */
  463. ! #if defined (amiga)
  464.   #  define M_MACHINE "amiga"
  465.   #  define M_OS "USG"
  466.   #  define SYSDEP_CFLAGS -DUSGr4
  467. --- 1159,1194 ----
  468.   #  undef USE_GNU_MALLOC
  469.   #endif /* drs6000 */
  470.   
  471. + /* **************************************************************** */
  472. + /*                                    */
  473. + /*  Commodore Amiga running AmigaDOS                       */
  474. + /*                                    */
  475. + /* **************************************************************** */
  476. + #if defined (amiga) && defined (amigados)
  477. + #define M_MACHINE "amiga"
  478. + #define M_OS "amigados"
  479. + #if !defined (HAVE_GCC)
  480. + # define HAVE_GCC
  481. + #endif /* HAVE_GCC */
  482. + #define SYSDEP_CFLAGS -O2
  483. + #define REQUIRED_LIBRARIES
  484. + #define HAVE_SYS_SIGLIST
  485. + #define HAVE_ALLOCA
  486. + #undef USE_GNU_MALLOC
  487. + #undef  HAVE_SETLINEBUF
  488. + #define HAVE_VFPRINTF
  489. + #if !defined (HAVE_RESOURCE)
  490. + #  define HAVE_RESOURCE
  491. + #endif
  492. + #endif  /* Commodore Amiga running AmigaDOS */
  493.   /* ******************************************** */
  494.   /*                        */
  495.   /*  System V Release 4 on the Commodore Amiga   */
  496.   /*                        */
  497.   /* ******************************************** */
  498. ! #if defined (amiga) && !defined (amigados)
  499.   #  define M_MACHINE "amiga"
  500.   #  define M_OS "USG"
  501.   #  define SYSDEP_CFLAGS -DUSGr4
  502. diff -rc bash-1.13.4-fsf/nojobs.c bash-1.13.4-amiga/nojobs.c
  503. *** bash-1.13.4-fsf/nojobs.c    Fri Nov 12 15:55:47 1993
  504. --- bash-1.13.4-amiga/nojobs.c    Tue Dec 14 19:38:03 1993
  505. ***************
  506. *** 294,300 ****
  507. --- 294,304 ----
  508.     retry_fork:
  509.   #endif /* _POSIX_VERSION */
  510.   
  511. + #ifdef amigados
  512. +   if ((pid = vfork ()) < 0)
  513. + #else
  514.     if ((pid = fork ()) < 0)
  515. + #endif
  516.       {
  517.   #if defined (_POSIX_VERSION)
  518.         /* Posix systems with a non-blocking waitpid () system call available
  519. ***************
  520. *** 314,319 ****
  521. --- 318,326 ----
  522.    
  523.     if (!pid)
  524.       {
  525. + #if defined (_POSIX_VERSION)
  526. +       extern sigset_t top_level_mask;
  527. + #endif
  528.   #if defined (BUFFERED_INPUT)
  529.         if (default_buffered_input > 0)
  530.       {
  531. diff -rc bash-1.13.4-fsf/shell.c bash-1.13.4-amiga/shell.c
  532. *** bash-1.13.4-fsf/shell.c    Fri Nov 12 15:55:55 1993
  533. --- bash-1.13.4-amiga/shell.c    Sun Nov 21 13:29:56 1993
  534. ***************
  535. *** 1957,1963 ****
  536. --- 1957,1967 ----
  537.     struct sockaddr sa;
  538.                     
  539.     l = sizeof(sa);
  540. + #if defined (amigados)
  541. +   return (0);    /* fake it, no getpeername() yet in ixemul.library */
  542. + #else
  543.     rv = getpeername(0, &sa, &l);
  544. + #endif
  545.     if (rv < 0 && errno == ENOTSOCK)
  546.       return 0;
  547.     else
  548. diff -rc bash-1.13.4-fsf/support/getcppsyms.c bash-1.13.4-amiga/support/getcppsyms.c
  549. *** bash-1.13.4-fsf/support/getcppsyms.c    Tue Aug 31 18:53:58 1993
  550. --- bash-1.13.4-amiga/support/getcppsyms.c    Sat Nov 20 15:17:29 1993
  551. ***************
  552. *** 380,385 ****
  553. --- 380,391 ----
  554.   #if defined (vax)
  555.     printf (" -Dvax");
  556.   #endif /* vax */
  557. + #if defined (amiga)
  558. +   printf (" -Damiga");
  559. + #endif
  560. + #if defined (amigados)
  561. +   printf (" -Damigados");
  562. + #endif
  563.   
  564.     printf ("\n");
  565.     exit (0);
  566. diff -rc bash-1.13.4-fsf/support/mksysdefs bash-1.13.4-amiga/support/mksysdefs
  567. *** bash-1.13.4-fsf/support/mksysdefs    Fri Nov 12 15:55:46 1993
  568. --- bash-1.13.4-amiga/support/mksysdefs    Sat Nov 20 15:45:50 1993
  569. ***************
  570. *** 61,80 ****
  571.   fi
  572.   
  573.   # Get name of maintainer.
  574. ! if (whoami) >/dev/null 2>&1 && (hostname) >/dev/null 2>&1; then
  575. !   WHOAMI=`whoami`@`hostname`;
  576. ! else
  577. !   WHOAMI=`who am i | awk '{ print $1; }'`
  578. ! fi
  579. ! if [ "$WHOAMI" = "" ]; then 
  580. !   WHOAMI=`id | sed 's/uid=[01-9]*(//' | sed 's/) [) A-Za-z01-9(=,]*//'`
  581. !   if (hostname) >/dev/null 2>&1; then
  582. !     WHOAMI=$WHOAMI@`hostname`
  583. !   elif [ -f /usr/bin/uuname -o -f /bin/uuname ]; then
  584. !     WHOAMI=`uuname -l`!$WHOAMI
  585. !   fi
  586. ! fi
  587.   
  588.   if [ "$WHOAMI" = "" ]; then
  589.     WHOAMI=root
  590. --- 61,80 ----
  591.   fi
  592.   
  593.   # Get name of maintainer.
  594. ! #if (whoami) >/dev/null 2>&1 && (hostname) >/dev/null 2>&1; then
  595. ! #  WHOAMI=`whoami`@`hostname`;
  596. ! #else
  597. ! #  WHOAMI=`who am i | awk '{ print $1; }'`
  598. ! #fi
  599. ! #
  600. ! #if [ "$WHOAMI" = "" ]; then 
  601. ! #  WHOAMI=`id | sed 's/uid=[01-9]*(//' | sed 's/) [) A-Za-z01-9(=,]*//'`
  602. ! #  if (hostname) >/dev/null 2>&1; then
  603. ! #    WHOAMI=$WHOAMI@`hostname`
  604. ! #  elif [ -f /usr/bin/uuname -o -f /bin/uuname ]; then
  605. ! #    WHOAMI=`uuname -l`!$WHOAMI
  606. ! #  fi
  607. ! #fi
  608.   
  609.   if [ "$WHOAMI" = "" ]; then
  610.     WHOAMI=root
  611. diff -rc bash-1.13.4-fsf/trap.c bash-1.13.4-amiga/trap.c
  612. *** bash-1.13.4-fsf/trap.c    Fri Nov 12 15:56:03 1993
  613. --- bash-1.13.4-amiga/trap.c    Sat Nov 20 15:17:33 1993
  614. ***************
  615. *** 145,151 ****
  616.   /* Non-zero when we catch a trapped signal. */
  617.   static int catch_flag = 0;
  618.   
  619. ! #if !defined (USG) && !defined (USGr4)
  620.   #define HAVE_BSD_SIGNALS
  621.   #endif
  622.   
  623. --- 145,151 ----
  624.   /* Non-zero when we catch a trapped signal. */
  625.   static int catch_flag = 0;
  626.   
  627. ! #if !defined (USG) && !defined (USGr4) && !defined(amigados)
  628.   #define HAVE_BSD_SIGNALS
  629.   #endif
  630.   
  631.