Ticket #275: patch-275t.txt

File patch-275t.txt, 5.6 KB (added by ydario, 6 years ago)
Line 
1Index: libc/include/sys/process.h
2===================================================================
3--- libc/include/sys/process.h  (revision 3803)
4+++ libc/include/sys/process.h  (working copy)
5@@ -48,50 +48,50 @@
6 
7 void abort (void)  __attribute__ ((__noreturn__));
8 int atexit (void (*)(void));
9-int execl (__const__ char *, __const__ char *, ...);
10-int execle (__const__ char *, __const__ char *, ...);
11-int execlp (__const__ char *, __const__ char *, ...);
12-int execlpe (__const__ char *, __const__ char *, ...);
13-int execv (__const__ char *, char * __const__ *);
14-int execve (__const__ char *, char * __const__ *, char * __const__ *);
15-int execvp (__const__ char *, char * __const__ *);
16-int execvpe (__const__ char *, char * __const__ *, char * __const__ *);
17+int execl (const char *, const char *, ...);
18+int execle (const char *, const char *, ...);
19+int execlp (const char *, const char *, ...);
20+int execlpe (const char *, const char *, ...);
21+int execv (const char *, char * const *);
22+int execve (const char *, char * const *, char * const *);
23+int execvp (const char *, char * const *);
24+int execvpe (const char *, char * const *, char * const *);
25 void exit (int) __attribute__ ((__noreturn__));
26 void _exit (int) __attribute__ ((__noreturn__));
27 pid_t fork (void);
28 pid_t getpid (void);
29 pid_t getppid (void);
30-int spawnl (int, __const__ char *, __const__ char *, ...);
31-int spawnle (int, __const__ char *, __const__ char *, ...);
32-int spawnlp (int, __const__ char *, __const__ char *, ...);
33-int spawnlpe (int, __const__ char *, __const__ char *, ...);
34-int spawnv (int, __const__ char *, char * __const__ *);
35-int spawnve (int, __const__ char *, char * __const__ *, char * __const__ *);
36-int spawnvp (int, __const__ char *, char * __const__ *);
37-int spawnvpe (int, __const__ char *, char * __const__ *, char * __const__ *);
38-int system (__const__ char *);
39+int spawnl (int, const char *, const char *, ...);
40+int spawnle (int, const char *, const char *, ...);
41+int spawnlp (int, const char *, const char *, ...);
42+int spawnlpe (int, const char *, const char *, ...);
43+int spawnv (int, const char *, char * const *);
44+int spawnve (int, const char *, char * const *, char * const *);
45+int spawnvp (int, const char *, char * const *);
46+int spawnvpe (int, const char *, char * const *, char * const *);
47+int system (const char *);
48 pid_t wait (int *);
49 pid_t waitpid (pid_t, int *, int);
50 
51-int _execl (__const__ char *, __const__ char *, ...);
52-int _execle (__const__ char *, __const__ char *, ...);
53-int _execlp (__const__ char *, __const__ char *, ...);
54-int _execlpe (__const__ char *, __const__ char *, ...);
55-int _execv (__const__ char *, char * __const__ *);
56-int _execve (__const__ char *, char * __const__ *, char * __const__ *);
57-int _execvp (__const__ char *, char * __const__ *);
58-int _execvpe (__const__ char *, char * __const__ *, char * __const__ *);
59+int _execl (const char *, const char *, ...);
60+int _execle (const char *, const char *, ...);
61+int _execlp (const char *, const char *, ...);
62+int _execlpe (const char *, const char *, ...);
63+int _execv (const char *, char * const *);
64+int _execve (const char *, char * const *, char * const *);
65+int _execvp (const char *, char * const *);
66+int _execvpe (const char *, char * const *, char * const *);
67 int _fork (void);
68 pid_t _getpid (void);
69 pid_t _getppid (void);
70-int _spawnl (int, __const__ char *, __const__ char *, ...);
71-int _spawnle (int, __const__ char *, __const__ char *, ...);
72-int _spawnlp (int, __const__ char *, __const__ char *, ...);
73-int _spawnlpe (int, __const__ char *, __const__ char *, ...);
74-int _spawnv (int, __const__ char *, char * __const__ *);
75-int _spawnve (int, __const__ char *, char * __const__ *, char * __const__ *);
76-int _spawnvp (int, __const__ char *, char * __const__ *);
77-int _spawnvpe (int, __const__ char *, char * __const__ *, char * __const__ *);
78+int _spawnl (int, const char *, const char *, ...);
79+int _spawnle (int, const char *, const char *, ...);
80+int _spawnlp (int, const char *, const char *, ...);
81+int _spawnlpe (int, const char *, const char *, ...);
82+int _spawnv (int, const char *, char * const *);
83+int _spawnve (int, const char *, char * const *, char * const *);
84+int _spawnvp (int, const char *, char * const *);
85+int _spawnvpe (int, const char *, char * const *, char * const *);
86 pid_t _wait (int *);
87 pid_t _waitpid (pid_t, int *, int);
88 
89Index: libc/include/locale.h
90===================================================================
91--- libc/include/locale.h       (revision 3803)
92+++ libc/include/locale.h       (working copy)
93@@ -78,8 +78,8 @@
94 #define        LC_ALL          (-1) /* bird: was 0 */
95 #define        LC_COLLATE      0    /* bird: was 1 */
96 #define        LC_CTYPE        1    /* bird: was 2 */
97-#define        LC_MONETARY     2    /* bird: was 3 */
98-#define        LC_NUMERIC      3    /* bird: was 4 */
99+#define        LC_NUMERIC      2    /* bird: was 4 */
100+#define        LC_MONETARY     3    /* bird: was 3 */
101 #define        LC_TIME         4    /* bird: was 5 */
102 #define        LC_MESSAGES     5    /* bird: was 6 */
103 
104Index: libc/Config.kmk
105===================================================================
106--- libc/Config.kmk     (revision 3803)
107+++ libc/Config.kmk     (working copy)
108@@ -80,8 +80,9 @@
109 TEMPLATE_libc_DEPS = $(LIBC-STD.H)
110 TEMPLATE_libc_INST = usr/lib/
111 TEMPLATE_libc_CFLAGS = $(TEMPLATE_lib_CFLAGS) -std=gnu99 -Wall -Wundef -Wmissing-prototypes
112+TEMPLATE_libc_CFLAGS += -fgnu89-inline
113 TEMPLATE_libc_CFLAGS.os2 = $(TEMPLATE_lib_CFLAGS.os2) -mstack-arg-probe
114-TEMPLATE_libc_CFLAGS.release = $(TEMPLATE_lib_CFLAGS.release) -O3 -mcpu=pentium
115+TEMPLATE_libc_CFLAGS.release = $(TEMPLATE_lib_CFLAGS.release) -O3 -mtune=pentium
116 
117 TEMPLATE_libc.logstrict = .
118 TEMPLATE_libc.logstrict_EXTENDS = libc