]> git.pld-linux.org Git - packages/ash.git/blob - ash-dietlibc.patch
- backup for now
[packages/ash.git] / ash-dietlibc.patch
1 diff -ruN ash-0.4.0.org/Makefile ash-0.4.0/Makefile
2 --- ash-0.4.0.org/Makefile      Wed Sep 11 12:06:11 2002
3 +++ ash-0.4.0/Makefile  Wed Sep 11 13:10:46 2002
4 @@ -50,9 +50,14 @@
5  init.c: mkinit $(INIT_DEPS)
6         ./mkinit $(INIT_DEPS)
7  
8 -mkinit: mkinit.o
9 -mknodes: mknodes.o
10 -mksyntax: mksyntax.o
11 +mkinit: mkinit.c
12 +       cc -o mkinit mkinit.c
13 +mknodes: mknodes.c
14 +       cc -o mknodes mknodes.c
15 +mksyntax: mksyntax.c
16 +       cc -o mksyntax mksyntax.c
17 +mksignames: mksignames.c
18 +       cc -o mksignames mksignames.c
19  
20  signames.c: mksignames
21         ./mksignames
22 diff -ruN ash-0.4.0.org/error.h ash-0.4.0/error.h
23 --- ash-0.4.0.org/error.h       Wed Sep 11 12:06:11 2002
24 +++ ash-0.4.0/error.h   Wed Sep 11 13:10:46 2002
25 @@ -102,7 +102,3 @@
26   * so we use _setjmp instead.
27   */
28  
29 -#if defined(BSD) && !defined(__SVR4) && !defined(__GLIBC__)
30 -#define setjmp(jmploc) _setjmp(jmploc)
31 -#define longjmp(jmploc, val)   _longjmp(jmploc, val)
32 -#endif
33 diff -ruN ash-0.4.0.org/eval.c ash-0.4.0/eval.c
34 --- ash-0.4.0.org/eval.c        Wed Sep 11 12:06:11 2002
35 +++ ash-0.4.0/eval.c    Wed Sep 11 13:10:46 2002
36 @@ -78,6 +78,7 @@
37  #endif
38  
39  
40 +#define __UCLIBC__
41  /* flags in argument to evaltree */
42  #define EV_EXIT 01             /* exit after evaluating tree */
43  #define EV_TESTED 02           /* exit status is checked; ignore -e flag */
44 @@ -1149,11 +1150,8 @@
45  get_standard_path()
46  {
47         char *p;
48 -       size_t len;
49  
50 -       len = confstr(_CS_PATH, NULL, 0);
51 -       p = stalloc(len + 2);
52 -       *p = '\0';
53 -       confstr(_CS_PATH, p, len);
54 +       p = stalloc(15);
55 +       *p = "/bin:/usr/bin";
56         return p;
57  }
58 diff -ruN ash-0.4.0.org/mksignames.c ash-0.4.0/mksignames.c
59 --- ash-0.4.0.org/mksignames.c  Wed Sep 11 12:06:11 2002
60 +++ ash-0.4.0/mksignames.c      Wed Sep 11 13:11:00 2002
61 @@ -353,7 +353,7 @@
62    fprintf (stream, "#include <signal.h>\n\n");
63    fprintf (stream,
64            "/* A translation list so we can be polite to our users. */\n");
65 -  fprintf (stream, "char *signal_names[NSIG + 2] = {\n");
66 +  fprintf (stream, "char *signal_names[66] = {\n");
67  
68    for (i = 0; i <= NSIG; i++)
69      fprintf (stream, "    \"%s\",\n", signal_names[i]);
70 diff -ruN ash-0.4.0.org/output.c ash-0.4.0/output.c
71 --- ash-0.4.0.org/output.c      Wed Sep 11 12:06:11 2002
72 +++ ash-0.4.0/output.c  Wed Sep 11 13:10:46 2002
73 @@ -620,7 +620,7 @@
74  
75  void
76  openmemout() {
77 -       memout.stream = open_memstream(&memout.buf, &memout.bufsize);
78 +//     memout.stream = open_memstream(&memout.buf, &memout.bufsize);
79  }
80  
81  
82 diff -ruN ash-0.4.0.org/setmode.c ash-0.4.0/setmode.c
83 --- ash-0.4.0.org/setmode.c     Wed Sep 11 12:06:11 2002
84 +++ ash-0.4.0/setmode.c Wed Sep 11 13:10:46 2002
85 @@ -45,7 +45,9 @@
86  #endif
87  #endif /* LIBC_SCCS and not lint */
88  
89 +#define _BSD_SOURCE
90  #include <sys/types.h>
91 +#undef _BSD_SOURCE
92  #include <sys/stat.h>
93  
94  #include <assert.h>
95 @@ -64,9 +66,7 @@
96  __weak_alias(setmode,_setmode)
97  #endif
98  
99 -#ifdef __GLIBC__
100 -#define S_ISTXT __S_ISVTX
101 -#endif
102 +#define S_ISTXT 01000
103  
104  #define        SET_LEN 6               /* initial # of bitcmd struct to malloc */
105  #define        SET_LEN_INCR 4          /* # of bitcmd structs to add as needed */
This page took 0.056801 seconds and 4 git commands to generate.