Dash:
[t2-trunk.git] / package / base / embutils / not-dietlibc.diff
blob04cd419c83d5db3fd90b8ba8f3c542360b9d9128
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/embutils/not-dietlibc.diff
3 # Copyright (C) 2019 - 2021 The T2 SDE Project
4 #
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
7 #
8 # This patch file is dual-licensed. It is available under the license the
9 # patched project is licensed under, as long as it is an OpenSource license
10 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
11 # of the GNU General Public License version 2 as used by the T2 SDE.
12 # --- T2-COPYRIGHT-NOTE-END ---
14 --- embutils-0.19/mknod.c.vanilla 2019-09-17 15:30:52.292000000 +0200
15 +++ embutils-0.19/mknod.c 2019-09-17 15:31:29.436000000 +0200
16 @@ -4,6 +4,7 @@
17 #include <fcntl.h>
18 #include <sys/stat.h>
19 #include <stdlib.h>
20 +#include <sys/sysmacros.h>
21 #include "write12.h"
23 char* Name="mknod: ";
24 --- embutils-0.19/tar.c.vanilla 2019-09-17 15:32:15.112000000 +0200
25 +++ embutils-0.19/tar.c 2019-09-17 15:33:24.648000000 +0200
26 @@ -21,6 +21,8 @@
27 #ifdef __sun__
28 #include <sys/mkdev.h>
29 #endif
30 +#include <sys/sysmacros.h>
31 +#include <sys/types.h>
32 #include "write12.h"
34 #ifdef __MINGW32__
35 --- embutils-0.19/Makefile.vanilla 2019-09-17 15:33:35.044000000 +0200
36 +++ embutils-0.19/Makefile 2019-09-17 15:35:58.784000000 +0200
37 @@ -10,8 +10,8 @@
38 FLAGS=
40 PRGS=sync echo chroot mkdir rmdir mknod pwd true false clear chown chgrp \
41 -chmod sleep tty tar basename df tee uname arch hostname env time dirname \
42 -domainname id ln mv cp yes which cat rm wc ls whoami mkfifo head install \
43 -sosrm soscp sosmv sosln soslns md5sum sleep2 allinone uniq tr mesg du \
44 +chmod sleep tty tar basename df tee uname arch hostname time dirname \
45 +id ln mv cp yes which cat rm wc ls whoami mkfifo head install \
46 +sosrm soscp sosmv sosln soslns sleep2 uniq tr mesg du \
47 uuencode uudecode nohup nice cmp mktemp truncate test date \
48 printenv chrootuid renice \
49 @@ -19,6 +19,6 @@
50 OS:=$(shell uname)
51 ifeq ($(OS),Linux)
52 -PRGS+=chvt dmesg kill dd write tail mount pivot_root insmod rmmod \
53 +PRGS+=chvt dd write tail mount pivot_root insmod rmmod \
54 lsmod touch umount
55 endif
57 --- embutils-0.19/ls.c.vanilla 2019-09-17 15:33:58.704000000 +0200
58 +++ embutils-0.19/ls.c 2019-09-17 15:34:11.976000000 +0200
59 @@ -40,6 +40,7 @@
60 #include <termios.h>
61 #include <sys/ioctl.h>
62 #include <limits.h>
63 +#include <sys/sysmacros.h>
65 struct statlist {
66 struct stat s;
67 --- embutils-0.19/kill.c.vanilla 2019-09-17 15:36:14.308000000 +0200
68 +++ embutils-0.19/kill.c 2019-09-17 15:36:50.416000000 +0200
69 @@ -90,7 +90,9 @@
70 { SIGSTKFLT, 6, STR_POS( 70, 0, 0,175) },
71 #endif
72 { SIGCHLD, 4, STR_POS( 77, 87, 78, 78) },
73 +#if 0
74 { SIGCLD, 3, STR_POS(156,153,153,186) },
75 +#endif
76 { SIGCONT, 4, STR_POS( 82, 82,112,120) },
77 { SIGSTOP, 4, STR_POS( 87, 72,102,108) },
78 { SIGTSTP, 4, STR_POS( 92, 77,107,115) },
79 --- embutils-0.19/dd.c.vanilla 2019-09-17 15:37:52.120000000 +0200
80 +++ embutils-0.19/dd.c 2019-09-17 15:38:50.516000000 +0200
81 @@ -6,6 +6,10 @@
83 #include <sys/uio.h>
85 +#ifndef PAGE_SIZE
86 +#define PAGE_SIZE 4096
87 +#endif
90 * if=FILE read from FILE instead of stdin
91 * of=FILE write to FILE instead of stdout