Ticket #176: patch-2.5.4.patch
File patch-2.5.4.patch, 40.3 KB (added by , 17 years ago) |
---|
-
aclocal.m4
Only in patch-2.5.4: .svn diff -urbB patch-2.5.4.0/aclocal.m4 patch-2.5.4/aclocal.m4
old new 1 undefine([AC_SYS_LARGEFILE]) 2 1 3 # The following is taken from automake 1.4, 2 4 # except that it prefers the compiler option -Ae to "-Aa -D_HPUX_SOURCE" 3 5 # because only the former supports 64-bit integral types on HP-UX 10.20. -
patch-2.5.4
diff -urbB patch-2.5.4.0/common.h patch-2.5.4/common.h
old new 124 124 125 125 126 126 #ifndef FILESYSTEM_PREFIX_LEN 127 #define FILESYSTEM_PREFIX_LEN(f) 0 127 # ifndef __EMX__ 128 # define FILESYSTEM_PREFIX_LEN(f) 0 129 # else 130 # define FILESYSTEM_PREFIX_LEN(f) ((f)[0] && (f)[1] == ':' ? 2 : 0) 131 # endif /* __EMX__ */ 128 132 #endif 129 133 130 134 #ifndef ISSLASH 131 #define ISSLASH(c) ((c) == '/') 135 # ifndef __EMX__ 136 # define ISSLASH(c) ((c) == '/') 137 # else 138 # define ISSLASH(c) ((c) == '/' || (c) == '\\') 139 # endif /* __EMX__ */ 132 140 #endif 133 141 134 142 … … 324 332 #endif 325 333 326 334 #ifndef TTY_DEVICE 327 #define TTY_DEVICE "/dev/tty" 335 # ifndef __EMX__ 336 # define TTY_DEVICE "/dev/tty" 337 # else 338 # define TTY_DEVICE "/dev/con" 339 # endif 340 #endif 341 342 #ifdef __EMX__00_YD 343 # ifndef chdir 344 # define chdir _chdir2 345 # endif 346 # ifndef getcwd 347 # define getcwd _getcwd2 348 # endif 349 # if !HAVE_STRNCASECMP && !defined(strncasecmp) 350 # define strncasecmp strnicmp 351 # endif 328 352 #endif 353 -
config.hin
Only in patch-2.5.4: config.guess Only in patch-2.5.4.0: config.guess0 Only in patch-2.5.4: config.h diff -urbB patch-2.5.4.0/config.hin patch-2.5.4/config.hin
old new 1 1 /* config.hin. Generated automatically from configure.in by autoheader. */ 2 2 3 /* Define if on AIX 3. 4 System headers sometimes define this. 5 We just want to avoid a redefinition error message. */ 6 #ifndef _ALL_SOURCE 7 #undef _ALL_SOURCE 3 #include<stdlib.h> 4 5 #include<errno.h> 6 7 /* Replace chdir() by _chdir2() if necessary (EMX only) */ 8 #if defined EMX_REPLACE_CHDIR && !defined chdir 9 #define chdir replace_chdir 10 static inline int replace_chdir(const char *name) { return _chdir2(name); } 8 11 #endif 9 12 10 /* Define if the closedir function returns void instead of int.*/13 /* Define if the `closedir' function returns void instead of `int'. */ 11 14 #undef CLOSEDIR_VOID 12 15 13 /* Define to empty if the keyword does not work.*/16 /* Define to empty if `const' does not conform to ANSI C. */ 14 17 #undef const 15 18 16 /* Define if you don't have vprintf but do have _doprnt. */ 17 #undef HAVE_DOPRNT 19 /* Define if there is a member named d_ino in the struct describing directory 20 headers. */ 21 #undef D_INO_IN_DIRENT 18 22 19 /* Define if you support file names longer than 14 characters.*/20 #undef HAVE_LONG_FILE_NAMES23 /* EMX needs _chdir2() */ 24 #undef EMX_REPLACE_CHDIR 21 25 22 /* Define if you have the vprintf function.*/23 #undef HAVE_VPRINTF26 /* EMX needs _getcwd2() */ 27 #undef EMX_REPLACE_GETCWD 24 28 25 /* Define if on MINIX. */ 26 #undef _MINIX 29 /* Replace getcwd() by _getcwd2() if necessary (EMX only) */ 30 #if defined EMX_REPLACE_GETCWD && !defined getcwd 31 #define getcwd replace_getcwd 32 static inline char* replace_getcwd(char *buffer, size_t size) { return _getcwd2(buffer, size); } 33 #endif 27 34 28 /* Define to `int' if <sys/types.h> doesn't define.*/29 #undef mode_t35 /* Define if you have the `chdir' function. */ 36 #undef HAVE_CHDIR 30 37 31 /* Define to `long' if <sys/types.h> doesn't define.*/32 #undef off_t38 /* Define if you have the `chown' function. */ 39 #undef HAVE_CHOWN 33 40 34 /* Define to `int' if <sys/types.h> doesn't define.*/35 #undef pid_t41 /* Define if you have the <dirent.h> header file, and it defines `DIR'. */ 42 #undef HAVE_DIRENT_H 36 43 37 /* Define if the system does not provide POSIX.1 features except 38 with this defined. */ 39 #undef _POSIX_1_SOURCE 44 /* Define if the malloc check has been performed. */ 45 #undef HAVE_DONE_WORKING_MALLOC_CHECK 40 46 41 /* Define if you need to in order for stat and other things to work.*/42 #undef _POSIX_SOURCE47 /* Define if the realloc check has been performed. */ 48 #undef HAVE_DONE_WORKING_REALLOC_CHECK 43 49 44 /* Define as the return type of signal handlers (int or void).*/45 #undef RETSIGTYPE50 /* Define if you don't have `vprintf' but do have `_doprnt.' */ 51 #undef HAVE_DOPRNT 46 52 47 /* Define to `unsigned' if <sys/types.h> doesn't define.*/48 #undef size_t53 /* Define if you have the `fchown' function. */ 54 #undef HAVE_FCHOWN 49 55 50 /* Define if you have the ANSI C header files.*/51 #undef STDC_HEADERS56 /* Define if you have the <fcntl.h> header file. */ 57 #undef HAVE_FCNTL_H 52 58 53 /* Define if you can safely include both <sys/time.h> and <time.h>.*/54 #undef TIME_WITH_SYS_TIME59 /* Define if you have the `fseeko' function. */ 60 #undef HAVE_FSEEKO 55 61 56 /* Define if you have the _doprintf function.*/57 #undef HAVE_ _DOPRINTF62 /* Define if you have the `getcwd' function. */ 63 #undef HAVE_GETCWD 58 64 59 /* Define if you have the fseeko function.*/60 #undef HAVE_ FSEEKO65 /* Define if you have the <inttypes.h> header file. */ 66 #undef HAVE_INTTYPES_H 61 67 62 /* Define if you have the isascii function.*/68 /* Define if you have the `isascii' function. */ 63 69 #undef HAVE_ISASCII 64 70 65 /* Define if you have the memchr function. */ 71 /* Define if you have the `lchown' function. */ 72 #undef HAVE_LCHOWN 73 74 /* Define if you have the <limits.h> header file. */ 75 #undef HAVE_LIMITS_H 76 77 /* Define if you have the `link' function. */ 78 #undef HAVE_LINK 79 80 /* Define if you support file names longer than 14 characters. */ 81 #undef HAVE_LONG_FILE_NAMES 82 83 /* Define if you have the `lstat' function. */ 84 #undef HAVE_LSTAT 85 86 /* Define if you have the `memchr' function. */ 66 87 #undef HAVE_MEMCHR 67 88 68 /* Define if you have the memcmp function.*/89 /* Define if you have the `memcmp' function. */ 69 90 #undef HAVE_MEMCMP 70 91 71 /* Define if you have the mkdir function. */ 92 /* Define if you have the <memory.h> header file. */ 93 #undef HAVE_MEMORY_H 94 95 /* Define if you have the `mkdir' function. */ 72 96 #undef HAVE_MKDIR 73 97 74 /* Define if you have the mktemp function. */ 98 /* Define if you have the `mkfifo' function. */ 99 #undef HAVE_MKFIFO 100 101 /* Define if you have the `mknod' function. */ 102 #undef HAVE_MKNOD 103 104 /* Define if you have the `mktemp' function. */ 75 105 #undef HAVE_MKTEMP 76 106 77 /* Define if you have the pathconf function. */ 107 /* Define if you have the <ndir.h> header file, and it defines `DIR'. */ 108 #undef HAVE_NDIR_H 109 110 /* Define if you have the <os2.h> header file. */ 111 #undef HAVE_OS2_H 112 113 /* Define if you have the `pathconf' function. */ 78 114 #undef HAVE_PATHCONF 79 115 80 /* Define if you have the raise function.*/116 /* Define if you have the `raise' function. */ 81 117 #undef HAVE_RAISE 82 118 83 /* Define if you have the rename function. */ 119 /* Define if you have the `readlink' function. */ 120 #undef HAVE_READLINK 121 122 /* Define if you have the `rename' function. */ 84 123 #undef HAVE_RENAME 85 124 86 /* Define if you have the rmdir function.*/125 /* Define if you have the `rmdir' function. */ 87 126 #undef HAVE_RMDIR 88 127 89 /* Define if you have the setmode function.*/128 /* Define if you have the `setmode' function. */ 90 129 #undef HAVE_SETMODE 91 130 92 /* Define if you have the sigaction function.*/131 /* Define if you have the `sigaction' function. */ 93 132 #undef HAVE_SIGACTION 94 133 95 /* Define if you have the sigprocmask function.*/134 /* Define if you have the `sigprocmask' function. */ 96 135 #undef HAVE_SIGPROCMASK 97 136 98 /* Define if you have the sigsetmask function.*/137 /* Define if you have the `sigsetmask' function. */ 99 138 #undef HAVE_SIGSETMASK 100 139 101 /* Define if you have the strerror function.*/102 #undef HAVE_ST RERROR140 /* Define if you have the `stat' function. */ 141 #undef HAVE_STAT 103 142 104 /* Define if you have the < dirent.h> header file.*/105 #undef HAVE_ DIRENT_H143 /* Define if you have the <stdlib.h> header file. */ 144 #undef HAVE_STDLIB_H 106 145 107 /* Define if you have the <fcntl.h> header file.*/108 #undef HAVE_ FCNTL_H146 /* Define if you have the `strcasecmp' function. */ 147 #undef HAVE_STRCASECMP 109 148 110 /* Define if you have the <limits.h> header file.*/111 #undef HAVE_ LIMITS_H149 /* Define if you have the `strerror' function. */ 150 #undef HAVE_STRERROR 112 151 113 /* Define if you have the <ndir.h> header file. */ 114 #undef HAVE_NDIR_H 152 /* Define if you have the `stricmp' function. */ 153 #undef HAVE_STRICMP 154 155 /* Define if you have the <strings.h> header file. */ 156 #undef HAVE_STRINGS_H 115 157 116 158 /* Define if you have the <string.h> header file. */ 117 159 #undef HAVE_STRING_H 118 160 119 /* Define if you have the <sys/dir.h> header file. */ 161 /* Define if you have the `strncasecmp' function. */ 162 #undef HAVE_STRNCASECMP 163 164 /* Define if you have the `strnicmp' function. */ 165 #undef HAVE_STRNICMP 166 167 /* Define if struct utimbuf is declared -- usually in <utime.h>. Some systems 168 have utime.h but don't declare the struct anywhere. */ 169 #undef HAVE_STRUCT_UTIMBUF 170 171 /* Define if you have the `symlink' function. */ 172 #undef HAVE_SYMLINK 173 174 /* Define if you have the `sync' function. */ 175 #undef HAVE_SYNC 176 177 /* Define if you have the <sys/dir.h> header file, and it defines `DIR'. */ 120 178 #undef HAVE_SYS_DIR_H 121 179 122 /* Define if you have the <sys/ndir.h> header file .*/180 /* Define if you have the <sys/ndir.h> header file, and it defines `DIR'. */ 123 181 #undef HAVE_SYS_NDIR_H 124 182 183 /* Define if you have the <sys/nls.h> header file. */ 184 #undef HAVE_SYS_NLS_H 185 125 186 /* Define if you have the <unistd.h> header file. */ 126 187 #undef HAVE_UNISTD_H 127 188 … … 131 192 /* Define if you have the <varargs.h> header file. */ 132 193 #undef HAVE_VARARGS_H 133 194 134 /* Number of bits in a file offset, on hosts where this is settable. */135 #undef _FILE_OFFSET_BITS195 /* Define if you have the `vprintf' function. */ 196 #undef HAVE_VPRINTF 136 197 137 /* Define to make fseeko etc. visible, on some hosts. */138 #undef _LARGEFILE_SOURCE198 /* Define if you have the `_chdir2' function. */ 199 #undef HAVE__CHDIR2 139 200 140 /* Define for large files, on AIX-style hosts. */141 #undef _LARGE_FILES201 /* Define if you have the `_doprintf' function. */ 202 #undef HAVE__DOPRINTF 142 203 143 /* Define if compiler has function prototypes*/144 #undef PROTOTYPES204 /* Define if you have the `_getcwd2' function. */ 205 #undef HAVE__GETCWD2 145 206 146 /* Define if <inttypes.h> exists, doesn't clash with <sys/types.h>, 147 and declares uintmax_t. */ 148 #undef HAVE_INTTYPES_H 207 /* Define if you have the `_nls_init' function. */ 208 #undef HAVE__NLS_INIT 149 209 150 /* Define if struct utimbuf is declared -- usually in <utime.h>. 151 Some systems have utime.h but don't declare the struct anywhere. */ 152 #undef HAVE_STRUCT_UTIMBUF 210 /* Define if you have the `_response' function. */ 211 #undef HAVE__RESPONSE 153 212 154 /* Define if the malloc check has been performed.*/155 #undef HAVE_ DONE_WORKING_MALLOC_CHECK213 /* Define if you have the `_wildcard' function. */ 214 #undef HAVE__WILDCARD 156 215 157 216 /* Define to rpl_malloc if the replacement function should be used. */ 158 217 #undef malloc 159 218 160 /* Define if the realloc check has been performed. */ 161 #undef HAVE_DONE_WORKING_REALLOC_CHECK 219 /* Define to `int' if <sys/types.h> does not define. */ 220 #undef mode_t 221 222 /* Define to `long' if <sys/types.h> does not define. */ 223 #undef off_t 224 225 /* Define to `int' if <sys/types.h> does not define. */ 226 #undef pid_t 227 228 /* Define if compiler has function prototypes */ 229 #undef PROTOTYPES 162 230 163 231 /* Define to rpl_realloc if the replacement function should be used. */ 164 232 #undef realloc 165 233 166 /* Define if there is a member named d_ino in the struct describing 167 directory headers. */ 168 #undef D_INO_IN_DIRENT 234 /* Define as the return type of signal handlers (`int' or `void'). */ 235 #undef RETSIGTYPE 236 237 /* Define to `unsigned' if <sys/types.h> does not define. */ 238 #undef size_t 239 240 /* Define if you have the ANSI C header files. */ 241 #undef STDC_HEADERS 242 243 /* Define if you can safely include both <sys/time.h> and <time.h>. */ 244 #undef TIME_WITH_SYS_TIME 245 246 /* If libc does not support chown(), replace it by a dummy function */ 247 #if !HAVE_CHOWN && !defined chown 248 static inline int replace_chown(const char *file, unsigned uid, unsigned gid) { errno = EPERM; return -1; } 249 #define chown(x,y,z) replace_chown(x,y,z) 250 #endif 251 252 /* If libc does not support fchown(), replace it by a dummy function */ 253 #if !HAVE_FCHOWN && !defined fchown 254 static inline int replace_fchown(int fd, unsigned owner, unsigned group) { errno = EPERM; return -1; } 255 #define fchown(x,y,z) replace_fchown(x,y,z) 256 #endif 257 258 /* If libc does not support lchown(), replace it by chown */ 259 #if !HAVE_LCHOWN && !defined lchown 260 static inline int replace_lchown(const char *file, unsigned uid, unsigned gid) { errno = EPERM; return -1; } 261 #define lchown replace_lchown 262 #endif 263 264 /* If libc does not support link(), replace it by a dummy function */ 265 #if !HAVE_LINK && !defined link 266 static inline int replace_link(const char *oldpath, const char *newpath) { errno = EPERM; return -1; } 267 #define link replace_link 268 #endif 269 270 /* If libc does not support lstat(), replace it by stat() (EMX only) */ 271 #if !HAVE_LSTAT && HAVE_STAT && !defined lstat 272 # define lstat stat 273 #endif 169 274 275 /* If libc does not support mkfifo(), replace it by a dummy function */ 276 #if !HAVE_MKFIFO && !defined mkfifo 277 static inline int replace_mkfifo(const char *pathname, unsigned mode) { errno = EPERM; return -1; } 278 #define mkfifo(x,y) replace_mkfifo(x,y) 279 #endif 280 281 /* If libc does not support mknod(), replace it by a dummy function */ 282 #if !HAVE_MKNOD && !defined mknod 283 static inline int replace_mknod(const char *pathname, unsigned mode, unsigned dev) { errno = EPERM; return -1; } 284 #define mknod(x,y,z) replace_mknod(x,y,z) 285 #endif 286 287 /* If libc does not support readlink(), replace it by a dummy function */ 288 #if !HAVE_READLINK && !defined readlink 289 static inline int replace_readlink(const char *path, char *buf, size_t bufsize) { errno = EPERM; return -1; } 290 #define readlink replace_readlink 291 #endif 292 293 /* Replace strcasecmp() by stricmp() if necessary (EMX only) */ 294 #if !HAVE_STRCASECMP && HAVE_STRICMP && !defined strcasecmp 295 # define strcasecmp(x,y) stricmp(x,y) 296 #endif 297 298 /* Replace strncasecmp() by strnicmp() if necessary (EMX only) */ 299 #if !HAVE_STRNCASECMP && HAVE_STRNICMP && !defined strncasecmp 300 # define strncasecmp strnicmp 301 #endif 302 303 /* If libc does not support symlink(), replace it by a dummy function */ 304 #if !HAVE_SYMLINK && !defined symlink 305 static inline int replace_symlink(const char *oldpath, const char *newpath) { errno = EPERM; return -1; } 306 #define symlink replace_symlink 307 #endif 308 309 /* If libc does not support sync(), replace it by an empty macro */ 310 #if !HAVE_SYNC && !defined sync 311 #define sync() {} 312 #endif 313 314 /* Define if on AIX 3. 315 System headers sometimes define this. 316 We just want to avoid a redefinition error message. */ 317 #ifndef _ALL_SOURCE 318 # undef _ALL_SOURCE 319 #endif 320 321 /* Number of bits in a file offset, on hosts where this is settable. */ 322 #undef _FILE_OFFSET_BITS 323 324 #if HAVE__RESPONSE && defined __EMX__ 325 # define _EMX_RESPONSE(a, b) _response(a, b) 326 #else 327 # define _EMX_RESPONSE(a, b) 328 #endif 329 330 #if HAVE__WILDCARD && defined __EMX__ 331 # define _EMX_WILDCARD(a, b) _wildcard(a, b) 332 #else 333 # define _EMX_WILDCARD(a, b) 334 #endif 335 336 #if HAVE_SYS_NLS_H && HAVE__NLS_INIT 337 # include<sys/nls.h> 338 # define TOUPPER(x) _nls_toupper(x) 339 # define TOLOWER(x) _nls_tolower(x) 340 #endif 341 342 #if (HAVE__RESPONSE || HAVE__WILDCARD) && !defined initialize_main 343 # define initialize_main(pargc, pargv) { \ 344 _EMX_RESPONSE(pargc, pargv); _EMX_WILDCARD(pargc, pargv); } 345 #endif 346 347 /* Define to make fseeko etc. visible, on some hosts. */ 348 #undef _LARGEFILE_SOURCE 349 350 /* Define for large files, on AIX-style hosts. */ 351 #undef _LARGE_FILES 352 353 /* Define if on MINIX. */ 354 #undef _MINIX 355 356 /* Define if the system does not provide POSIX.1 features except with this 357 defined. */ 358 #undef _POSIX_1_SOURCE 359 360 /* Define if you need to in order for stat and other things to work. */ 361 #undef _POSIX_SOURCE -
config.sub
Only in patch-2.5.4: config.log Only in patch-2.5.4: config.status diff -urbB patch-2.5.4.0/config.sub patch-2.5.4/config.sub
old new 1 1 #! /bin/sh 2 # Configuration validation subroutine script, version 1.1. 3 # Copyright (C) 1991, 92-97, 1998, 1999 Free Software Foundation, Inc. 2 # Configuration validation subroutine script. 3 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 4 # Free Software Foundation, Inc. 5 6 timestamp='2001-05-11' 7 4 8 # This file is (in principle) common to ALL GNU software. 5 9 # The presence of a machine in this file suggests that SOME GNU software 6 10 # can handle that machine. It does not imply ALL GNU software can. … … 25 29 # configuration script generated by Autoconf, you may include it under 26 30 # the same distribution terms that you use for the rest of that program. 27 31 32 # Please send patches to <config-patches@gnu.org>. 33 # 28 34 # Configuration subroutine to validate and canonicalize a configuration type. 29 35 # Supply the specified configuration type as an argument. 30 36 # If it is invalid, we print an error message on stderr and exit with code 1. … … 45 51 # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM 46 52 # It is wrong to echo any other type of specification. 47 53 48 if [ x$1 = x ] 49 then 50 echo Configuration name missing. 1>&2 51 echo "Usage: $0 CPU-MFR-OPSYS" 1>&2 52 echo "or $0 ALIAS" 1>&2 53 echo where ALIAS is a recognized configuration type. 1>&2 54 exit 1 55 fi 54 me=`echo "$0" | sed -e 's,.*/,,'` 55 56 usage="\ 57 Usage: $0 [OPTION] CPU-MFR-OPSYS 58 $0 [OPTION] ALIAS 59 60 Canonicalize a configuration name. 61 62 Operation modes: 63 -h, --help print this help, then exit 64 -t, --time-stamp print date of last modification, then exit 65 -v, --version print version number, then exit 66 67 Report bugs and patches to <config-patches@gnu.org>." 68 69 version="\ 70 GNU config.sub ($timestamp) 71 72 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 73 Free Software Foundation, Inc. 74 75 This is free software; see the source for copying conditions. There is NO 76 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." 77 78 help=" 79 Try \`$me --help' for more information." 80 81 # Parse command line 82 while test $# -gt 0 ; do 83 case $1 in 84 --time-stamp | --time* | -t ) 85 echo "$timestamp" ; exit 0 ;; 86 --version | -v ) 87 echo "$version" ; exit 0 ;; 88 --help | --h* | -h ) 89 echo "$usage"; exit 0 ;; 90 -- ) # Stop option processing 91 shift; break ;; 92 - ) # Use stdin as input. 93 break ;; 94 -* ) 95 echo "$me: invalid option $1$help" 96 exit 1 ;; 56 97 57 # First pass through any local machine types.58 case $1 in59 98 *local*) 99 # First pass through any local machine types. 60 100 echo $1 61 exit 0 62 ;; 63 *) 64 ;; 101 exit 0;; 102 103 * ) 104 break ;; 105 esac 106 done 107 108 case $# in 109 0) echo "$me: missing argument$help" >&2 110 exit 1;; 111 1) ;; 112 *) echo "$me: too many arguments$help" >&2 113 exit 1;; 65 114 esac 66 115 67 116 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). 68 117 # Here we must recognize all the valid KERNEL-OS combinations. 69 118 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` 70 119 case $maybe_os in 71 linux-gnu*)120 nto-qnx* | linux-gnu* | storm-chaos* | os2-emx*) 72 121 os=-$maybe_os 73 122 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` 74 123 ;; … … 94 143 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ 95 144 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ 96 145 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ 97 -apple )146 -apple | -axis) 98 147 os= 99 148 basic_machine=$1 100 149 ;; … … 166 215 case $basic_machine in 167 216 # Recognize the basic CPU types without company name. 168 217 # Some are omitted here because they have special meanings below. 169 tahoe | i860 | ia64 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \ 170 | arme[lb] | pyramid | mn10200 | mn10300 | tron | a29k \ 218 tahoe | i860 | ia64 | m32r | m68k | m68000 | m88k | ns32k | arc \ 219 | arm | arme[lb] | arm[bl]e | armv[2345] | armv[345][lb] | strongarm | xscale \ 220 | pyramid | mn10200 | mn10300 | tron | a29k \ 171 221 | 580 | i960 | h8300 \ 222 | x86 | ppcbe | mipsbe | mipsle | shbe | shle \ 172 223 | hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0w | hppa2.0n \ 173 | alpha | alphaev[4-7] | alphaev56 | alphapca5[67] \ 174 | we32k | ns16k | clipper | i370 | sh | powerpc | powerpcle \ 175 | 1750a | dsp16xx | pdp11 | mips16 | mips64 | mipsel | mips64el \ 224 | hppa64 \ 225 | alpha | alphaev[4-8] | alphaev56 | alphapca5[67] \ 226 | alphaev6[78] \ 227 | we32k | ns16k | clipper | i370 | sh | sh[34] \ 228 | powerpc | powerpcle \ 229 | 1750a | dsp16xx | pdp10 | pdp11 \ 230 | mips16 | mips64 | mipsel | mips64el \ 176 231 | mips64orion | mips64orionel | mipstx39 | mipstx39el \ 177 232 | mips64vr4300 | mips64vr4300el | mips64vr4100 | mips64vr4100el \ 178 | mips64vr5000 | miprs64vr5000el | mcore \ 179 | sparc | sparclet | sparclite | sparc64 | sparcv9 | v850 | c4x \ 180 | thumb | d10v) 233 | mips64vr5000 | miprs64vr5000el | mcore | s390 | s390x \ 234 | sparc | sparclet | sparclite | sparc64 | sparcv9 | sparcv9b \ 235 | v850 | c4x \ 236 | thumb | d10v | d30v | fr30 | avr | openrisc | tic80 \ 237 | pj | pjl | h8500 | z8k) 181 238 basic_machine=$basic_machine-unknown 182 239 ;; 183 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | z8k | v70 | h8500 | w65) 240 m6811 | m68hc11 | m6812 | m68hc12) 241 # Motorola 68HC11/12. 242 basic_machine=$basic_machine-unknown 243 os=-none 244 ;; 245 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | z8k | v70 | w65 | z8k) 184 246 ;; 185 247 186 248 # We use `pc' rather than `unknown' 187 249 # because (1) that's what they normally are, and 188 250 # (2) the word "unknown" tends to confuse beginning users. 189 i [34567]86)251 i*86 | x86_64) 190 252 basic_machine=$basic_machine-pc 191 253 ;; 192 254 # Object if more than one company name word. … … 196 258 ;; 197 259 # Recognize the basic CPU types with company name. 198 260 # FIXME: clean up the formatting here. 199 vax-* | tahoe-* | i[34567]86-* | i860-* | ia64-* | m32r-* | m68k-* | m68000-* \ 200 | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \ 261 vax-* | tahoe-* | i*86-* | i860-* | ia64-* | m32r-* | m68k-* | m68000-* \ 262 | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | c[123]* \ 263 | arm-* | armbe-* | armle-* | armv*-* | strongarm-* | xscale-* \ 201 264 | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \ 202 265 | power-* | none-* | 580-* | cray2-* | h8300-* | h8500-* | i960-* \ 203 266 | xmp-* | ymp-* \ 204 | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* | hppa2.0n-* \ 205 | alpha-* | alphaev[4-7]-* | alphaev56-* | alphapca5[67]-* \ 267 | x86-* | ppcbe-* | mipsbe-* | mipsle-* | shbe-* | shle-* \ 268 | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* \ 269 | hppa2.0n-* | hppa64-* \ 270 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphapca5[67]-* \ 271 | alphaev6[78]-* \ 206 272 | we32k-* | cydra-* | ns16k-* | pn-* | np1-* | xps100-* \ 207 273 | clipper-* | orion-* \ 208 | sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \ 209 | sparc64-* | sparcv9-* | sparc86x-* | mips16-* | mips64-* | mipsel-* \ 274 | sparclite-* | pdp10-* | pdp11-* | sh-* | sh[34]-* | sh[34]eb-* \ 275 | powerpc-* | powerpcle-* | sparc64-* | sparcv9-* | sparcv9b-* | sparc86x-* \ 276 | mips16-* | mips64-* | mipsel-* \ 210 277 | mips64el-* | mips64orion-* | mips64orionel-* \ 211 278 | mips64vr4100-* | mips64vr4100el-* | mips64vr4300-* | mips64vr4300el-* \ 212 279 | mipstx39-* | mipstx39el-* | mcore-* \ 213 | f301-* | armv*-* | t3e-* \ 280 | f30[01]-* | f700-* | s390-* | s390x-* | sv1-* | t3e-* \ 281 | [cjt]90-* \ 214 282 | m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | d10v-* \ 215 | thumb-* | v850-* | d30v-* | tic30-* | c30-* ) 283 | thumb-* | v850-* | d30v-* | tic30-* | tic80-* | c30-* | fr30-* \ 284 | bs2000-* | tic54x-* | c54x-* | x86_64-* | pj-* | pjl-*) 216 285 ;; 217 286 # Recognize the various machine names and aliases which stand 218 287 # for a CPU type and a company and sometimes even an OS. … … 249 318 os=-sysv 250 319 ;; 251 320 amiga | amiga-*) 252 basic_machine=m68k- cbm321 basic_machine=m68k-unknown 253 322 ;; 254 323 amigaos | amigados) 255 basic_machine=m68k- cbm324 basic_machine=m68k-unknown 256 325 os=-amigaos 257 326 ;; 258 327 amigaunix | amix) 259 basic_machine=m68k- cbm328 basic_machine=m68k-unknown 260 329 os=-sysv4 261 330 ;; 262 331 apollo68) … … 303 372 basic_machine=cray2-cray 304 373 os=-unicos 305 374 ;; 306 [c tj]90-cray)307 basic_machine= c90-cray375 [cjt]90) 376 basic_machine=${basic_machine}-cray 308 377 os=-unicos 309 378 ;; 310 379 crds | unos) 311 380 basic_machine=m68k-crds 312 381 ;; 382 cris | cris-* | etrax*) 383 basic_machine=cris-axis 384 ;; 313 385 da30 | da30-*) 314 386 basic_machine=m68k-da30 315 387 ;; … … 357 429 basic_machine=tron-gmicro 358 430 os=-sysv 359 431 ;; 432 go32) 433 basic_machine=i386-pc 434 os=-go32 435 ;; 360 436 h3050r* | hiux*) 361 437 basic_machine=hppa1.1-hitachi 362 438 os=-hiuxwe2 … … 430 506 ;; 431 507 i370-ibm* | ibm*) 432 508 basic_machine=i370-ibm 433 os=-mvs434 509 ;; 435 510 # I'm not sure what "Sysv32" means. Should this be sysv3.2? 436 i [34567]86v32)511 i*86v32) 437 512 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 438 513 os=-sysv32 439 514 ;; 440 i [34567]86v4*)515 i*86v4*) 441 516 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 442 517 os=-sysv4 443 518 ;; 444 i [34567]86v)519 i*86v) 445 520 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 446 521 os=-sysv 447 522 ;; 448 i [34567]86sol2)523 i*86sol2) 449 524 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 450 525 os=-solaris2 451 526 ;; … … 457 532 basic_machine=i386-unknown 458 533 os=-vsta 459 534 ;; 460 i386-go32 | go32)461 basic_machine=i386-unknown462 os=-go32463 ;;464 i386-mingw32 | mingw32)465 basic_machine=i386-unknown466 os=-mingw32467 ;;468 535 iris | iris4d) 469 536 basic_machine=mips-sgi 470 537 case $os in … … 490 557 basic_machine=ns32k-utek 491 558 os=-sysv 492 559 ;; 560 mingw32) 561 basic_machine=i386-pc 562 os=-mingw32 563 ;; 493 564 miniframe) 494 565 basic_machine=m68000-convergent 495 566 ;; … … 511 582 mips3*) 512 583 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown 513 584 ;; 585 mmix*) 586 basic_machine=mmix-knuth 587 os=-mmixware 588 ;; 514 589 monitor) 515 590 basic_machine=m68k-rom68k 516 591 os=-coff 517 592 ;; 518 593 msdos) 519 basic_machine=i386- unknown594 basic_machine=i386-pc 520 595 os=-msdos 521 596 ;; 597 mvs) 598 basic_machine=i370-ibm 599 os=-mvs 600 ;; 522 601 ncr3000) 523 602 basic_machine=i486-ncr 524 603 os=-sysv4 … … 528 607 os=-netbsd 529 608 ;; 530 609 netwinder) 531 basic_machine=armv4l- corel610 basic_machine=armv4l-rebel 532 611 os=-linux 533 612 ;; 534 613 news | news700 | news800 | news900) … … 576 655 basic_machine=i960-intel 577 656 os=-mon960 578 657 ;; 658 nonstopux) 659 basic_machine=mips-compaq 660 os=-nonstopux 661 ;; 579 662 np1) 580 663 basic_machine=np1-gould 581 664 ;; 665 nsr-tandem) 666 basic_machine=nsr-tandem 667 ;; 582 668 op50n-* | op60c-*) 583 669 basic_machine=hppa1.1-oki 584 670 os=-proelf … … 608 694 pc532 | pc532-*) 609 695 basic_machine=ns32k-pc532 610 696 ;; 611 pentium | p5 | k5 | k6 | nex en)697 pentium | p5 | k5 | k6 | nexgen) 612 698 basic_machine=i586-pc 613 699 ;; 614 pentiumpro | p6 | 6x86 )700 pentiumpro | p6 | 6x86 | athlon) 615 701 basic_machine=i686-pc 616 702 ;; 617 703 pentiumii | pentium2) 618 basic_machine=i 786-pc704 basic_machine=i686-pc 619 705 ;; 620 pentium-* | p5-* | k5-* | k6-* | nex en-*)706 pentium-* | p5-* | k5-* | k6-* | nexgen-*) 621 707 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` 622 708 ;; 623 pentiumpro-* | p6-* | 6x86-* )709 pentiumpro-* | p6-* | 6x86-* | athlon-*) 624 710 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` 625 711 ;; 626 712 pentiumii-* | pentium2-*) 627 basic_machine=i 786-`echo $basic_machine | sed 's/^[^-]*-//'`713 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` 628 714 ;; 629 715 pn) 630 716 basic_machine=pn-gould 631 717 ;; 632 power) basic_machine= rs6000-ibm718 power) basic_machine=power-ibm 633 719 ;; 634 720 ppc) basic_machine=powerpc-unknown 635 721 ;; … … 644 730 ps2) 645 731 basic_machine=i386-ibm 646 732 ;; 733 pw32) 734 basic_machine=i586-unknown 735 os=-pw32 736 ;; 647 737 rom68k) 648 738 basic_machine=m68k-rom68k 649 739 os=-coff … … 723 813 sun386 | sun386i | roadrunner) 724 814 basic_machine=i386-sun 725 815 ;; 816 sv1) 817 basic_machine=sv1-cray 818 os=-unicos 819 ;; 726 820 symmetry) 727 821 basic_machine=i386-sequent 728 822 os=-dynix … … 731 825 basic_machine=t3e-cray 732 826 os=-unicos 733 827 ;; 828 tic54x | c54x*) 829 basic_machine=tic54x-unknown 830 os=-coff 831 ;; 734 832 tx39) 735 833 basic_machine=mipstx39-unknown 736 834 ;; … … 826 924 vax) 827 925 basic_machine=vax-dec 828 926 ;; 927 pdp10) 928 # there are many clones, so DEC is not a safe bet 929 basic_machine=pdp10-unknown 930 ;; 829 931 pdp11) 830 932 basic_machine=pdp11-dec 831 933 ;; 832 934 we32k) 833 935 basic_machine=we32k-att 834 936 ;; 835 sparc | sparcv9) 937 sh3 | sh4) 938 basic_machine=sh-unknown 939 ;; 940 sparc | sparcv9 | sparcv9b) 836 941 basic_machine=sparc-sun 837 942 ;; 838 943 cydra) … … 854 959 basic_machine=c4x-none 855 960 os=-coff 856 961 ;; 962 *-unknown) 963 # Make sure to match an already-canonicalized machine name. 964 ;; 857 965 *) 858 966 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 859 967 exit 1 … … 912 1020 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ 913 1021 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ 914 1022 | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \ 915 | -interix* | -uwin* | -rhapsody* | -openstep* | -oskit*) 1023 | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \ 1024 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ 1025 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* | -os2*) 916 1026 # Remember, each alternative MUST END IN *, to match a version number. 917 1027 ;; 1028 -qnx*) 1029 case $basic_machine in 1030 x86-* | i*86-*) 1031 ;; 1032 *) 1033 os=-nto$os 1034 ;; 1035 esac 1036 ;; 1037 -nto*) 1038 os=-nto-qnx 1039 ;; 918 1040 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ 919 1041 | -windows* | -osx | -abug | -netware* | -os9* | -beos* \ 920 | -macos* | -mpw* | -magic* | -m on960* | -lnews*)1042 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) 921 1043 ;; 922 1044 -mac*) 923 1045 os=`echo $os | sed -e 's|mac|macos|'` … … 931 1053 -sunos6*) 932 1054 os=`echo $os | sed -e 's|sunos6|solaris3|'` 933 1055 ;; 1056 -opened*) 1057 os=-openedition 1058 ;; 1059 -wince*) 1060 os=-wince 1061 ;; 934 1062 -osfrose*) 935 1063 os=-osfrose 936 1064 ;; … … 955 1083 -ns2 ) 956 1084 os=-nextstep2 957 1085 ;; 1086 -nsk*) 1087 os=-nsk 1088 ;; 958 1089 # Preserve the version number of sinix5. 959 1090 -sinix5.*) 960 1091 os=`echo $os | sed -e 's|sinix|sysv|'` … … 989 1120 -xenix) 990 1121 os=-xenix 991 1122 ;; 992 -*mint | - *MiNT)1123 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) 993 1124 os=-mint 994 1125 ;; 995 1126 -none) … … 1017 1148 *-acorn) 1018 1149 os=-riscix1.2 1019 1150 ;; 1020 arm*- corel)1151 arm*-rebel) 1021 1152 os=-linux 1022 1153 ;; 1023 1154 arm*-semi) 1024 1155 os=-aout 1025 1156 ;; 1157 pdp10-*) 1158 os=-tops20 1159 ;; 1026 1160 pdp11-*) 1027 1161 os=-none 1028 1162 ;; … … 1131 1265 *-masscomp) 1132 1266 os=-rtu 1133 1267 ;; 1134 f30 1-fujitsu)1268 f30[01]-fujitsu | f700-fujitsu) 1135 1269 os=-uxpv 1136 1270 ;; 1137 1271 *-rom68k) … … 1191 1325 -genix*) 1192 1326 vendor=ns 1193 1327 ;; 1194 -mvs* )1328 -mvs* | -opened*) 1195 1329 vendor=ibm 1196 1330 ;; 1197 1331 -ptx*) … … 1209 1343 -mpw* | -macos*) 1210 1344 vendor=apple 1211 1345 ;; 1212 -*mint | - *MiNT)1346 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) 1213 1347 vendor=atari 1214 1348 ;; 1215 1349 esac … … 1218 1352 esac 1219 1353 1220 1354 echo $basic_machine$os 1355 exit 0 1356 1357 # Local variables: 1358 # eval: (add-hook 'write-file-hooks 'time-stamp) 1359 # time-stamp-start: "timestamp='" 1360 # time-stamp-format: "%:y-%02m-%02d" 1361 # time-stamp-end: "'" 1362 # End: -
configure.in
Only in patch-2.5.4: configure diff -urbB patch-2.5.4.0/configure.in patch-2.5.4/configure.in
old new 27 27 AC_MINIX 28 28 AC_ISC_POSIX 29 29 AC_EXEEXT 30 AC_OBJEXT 30 31 31 32 AM_C_PROTOTYPES 32 33 AC_C_CONST -
Makefile.in
Only in patch-2.5.4.0: configure0 Only in patch-2.5.4: diff-patches Only in patch-2.5.4.0: error.h Only in patch-2.5.4: error.h0 Only in patch-2.5.4/m4: .svn Only in patch-2.5.4: Makefile diff -urbB patch-2.5.4.0/Makefile.in patch-2.5.4/Makefile.in
old new 18 18 19 19 #### Start of system configuration section. #### 20 20 21 SHELL = /bin/sh 22 21 23 srcdir = @srcdir@ 22 24 VPATH = @srcdir@ 23 25 … … 40 42 PACKAGE = @PACKAGE@ 41 43 U = @U@ 42 44 VERSION = @VERSION@ 45 OBJEXT = @OBJEXT@ 43 46 44 47 prefix = @prefix@ 45 48 exec_prefix = @exec_prefix@ … … 63 66 SRCS = addext.c argmatch.c backupfile.c basename.c error.c inp.c maketime.c \ 64 67 mkdir.c partime.c patch.c pch.c quotearg.c quotesys.c \ 65 68 rmdir.c util.c version.c xmalloc.c $(LIBSRCS) 66 OBJS = addext$U. o argmatch$U.o backupfile$U.o basename$U.o error$U.o inp$U.o\67 maketime. o partime.o patch$U.o pch$U.o quotearg$U.o quotesys.o\68 util$U. o version$U.o xmalloc$U.o$(LIBOBJS)69 OBJS = addext$U.$(OBJEXT) argmatch$U.$(OBJEXT) backupfile$U.$(OBJEXT) basename$U.$(OBJEXT) error$U.$(OBJEXT) inp$U.$(OBJEXT) \ 70 maketime.$(OBJEXT) partime.$(OBJEXT) patch$U.$(OBJEXT) pch$U.$(OBJEXT) quotearg$U.$(OBJEXT) quotesys.$(OBJEXT) \ 71 util$U.$(OBJEXT) version$U.$(OBJEXT) xmalloc$U.$(OBJEXT) $(LIBOBJS) 69 72 HDRS = argmatch.h backupfile.h basename.h common.h error.h getopt.h \ 70 73 inp.h maketime.h partime.h patchlevel.h pch.h quotearg.h quotesys.h \ 71 74 util.h version.h xalloc.h … … 90 93 COMPILE = $(CC) -c $(CPPFLAGS) $(DEFS) -Ded_PROGRAM=\"$(ed_PROGRAM)\" \ 91 94 -I. -I$(srcdir) $(CFLAGS) 92 95 93 .c. o:96 .c.$(OBJEXT): 94 97 $(COMPILE) $< 95 98 96 99 patch$(EXEEXT): $(OBJS) … … 134 137 etags $(HDRS) patchlevel.h $(SRCS) 135 138 136 139 mostlyclean:: 137 rm -f ansi2knr core* *core *. o*_.c140 rm -f ansi2knr core* *core *.$(OBJEXT) *_.c 138 141 139 142 clean:: mostlyclean 140 143 rm -f patch$(EXEEXT) … … 160 163 tar -chf - $(PV) | gzip -9 >$(PV).tar.gz 161 164 rm -rf $(PV) 162 165 163 ansi2knr. o: config.h164 ansi2knr: ansi2knr. o165 $(CC) -o $@ $(CFLAGS) $(LDFLAGS) ansi2knr. o$(LIBS)166 ansi2knr.$(OBJEXT): config.h 167 ansi2knr: ansi2knr.$(OBJEXT) 168 $(CC) -o $@ $(CFLAGS) $(LDFLAGS) ansi2knr.$(OBJEXT) $(LIBS) 166 169 addext_.c argmatch_.c backupfile_.c basename_.c error_.c \ 167 170 getopt_.c getopt1_.c inp_.c malloc_.c mkdir_.c patch_.c pch_.c quotearg_.c \ 168 171 rename_.c util_.c version_.c xmalloc_.c: ansi2knr … … 171 174 ./ansi2knr $< $@ 172 175 173 176 $(OBJS): config.h 174 addext$U. o: backupfile.h175 argmatch$U. o: argmatch.h error.h quotearg.h176 backupfile$U. o: argmatch.h backupfile.h177 error$U. o: error.h178 getopt$U. o getopt1$U.o: getopt.h179 inp$U. o: backupfile.h common.h inp.h pch.h quotearg.h util.h xalloc.h180 maketime. o: maketime.h partime.h181 partime. o: partime.h182 patch$U. o: argmatch.h backupfile.h common.h getopt.h inp.h \177 addext$U.$(OBJEXT): backupfile.h 178 argmatch$U.$(OBJEXT): argmatch.h error.h quotearg.h 179 backupfile$U.$(OBJEXT): argmatch.h backupfile.h 180 error$U.$(OBJEXT): error.h 181 getopt$U.$(OBJEXT) getopt1$U.$(OBJEXT): getopt.h 182 inp$U.$(OBJEXT): backupfile.h common.h inp.h pch.h quotearg.h util.h xalloc.h 183 maketime.$(OBJEXT): maketime.h partime.h 184 partime.$(OBJEXT): partime.h 185 patch$U.$(OBJEXT): argmatch.h backupfile.h common.h getopt.h inp.h \ 183 186 pch.h quotearg.h util.h version.h xalloc.h 184 pch$U. o: backupfile.h basename.h common.h inp.h pch.h quotearg.h util.h185 quotearg$U. o: quotearg.h xalloc.h186 quotesys. o: quotesys.h187 util$U. o: backupfile.h basename.h common.h maketime.h \187 pch$U.$(OBJEXT): backupfile.h basename.h common.h inp.h pch.h quotearg.h util.h 188 quotearg$U.$(OBJEXT): quotearg.h xalloc.h 189 quotesys.$(OBJEXT): quotesys.h 190 util$U.$(OBJEXT): backupfile.h basename.h common.h maketime.h \ 188 191 partime.h quotearg.h quotesys.h util.h version.h xalloc.h 189 version$U. o: common.h patchlevel.h util.h version.h190 xmalloc$U. o: xalloc.h192 version$U.$(OBJEXT): common.h patchlevel.h util.h version.h 193 xmalloc$U.$(OBJEXT): xalloc.h -
patch-2.5.4
diff -urbB patch-2.5.4.0/mkdir.c patch-2.5.4/mkdir.c
old new 75 75 if (errno != ENOENT) 76 76 return -1; 77 77 78 #ifndef __EMX__ 78 79 cpid = fork (); 80 #else 81 mode = umask (0); /* Get current umask. */ 82 umask (mode | ((S_IRWXU | S_IRWXG | S_IRWXO) & ~dmode)); 83 cpid = spawnl (P_NOWAIT, "mkdir.exe", "mkdir.exe", dpath, (char *) 0); 84 umask(mode); /* restore umask */ 85 #endif 86 79 87 switch (cpid) 80 88 { 81 89 case -1: /* Cannot fork. */ 82 90 return -1; /* errno is already set. */ 83 91 92 #ifndef __EMX__ 84 93 case 0: /* Child process. */ 85 94 /* Cheap hack to set mode of new directory. Since this child 86 95 process is going away anyway, we zap its umask. … … 91 100 umask (mode | ((S_IRWXU | S_IRWXG | S_IRWXO) & ~dmode)); 92 101 execl ("/bin/mkdir", "mkdir", dpath, (char *) 0); 93 102 _exit (1); 103 #endif /* NOT __EMX__ */ 94 104 95 105 default: /* Parent process. */ 96 106 /* Wait for kid to finish. */ -
mkinstalldirs
diff -urbB patch-2.5.4.0/mkinstalldirs patch-2.5.4/mkinstalldirs
old new 4 4 # Created: 1993-05-16 5 5 # Public domain 6 6 7 # $Id: mkinstalldirs,v 1.1 2.2.1 1998/12/26 17:32:14bje Exp $7 # $Id: mkinstalldirs,v 1.14 1999/04/09 21:44:01 bje Exp $ 8 8 9 9 errstatus=0 10 dirmode="" 11 12 usage="\ 13 Usage: mkinstalldirs [-h] [--help] [-m mode] dir ..." 14 15 # process command line arguments 16 while test $# -gt 0 ; do 17 case "${1}" in 18 -h | --help | --h* ) # -h for help 19 echo "${usage}" 1>&2; exit 0 ;; 20 -m ) # -m PERM arg 21 shift 22 test $# -eq 0 && { echo "${usage}" 1>&2; exit 1; } 23 dirmode="${1}" 24 shift ;; 25 -- ) shift; break ;; # stop option processing 26 -* ) echo "${usage}" 1>&2; exit 1 ;; # unknown option 27 * ) break ;; # first non-opt arg 28 esac 29 done 10 30 11 31 for file 12 32 do … … 21 41 -* ) pathcomp=./$pathcomp ;; 22 42 esac 23 43 24 if test ! -d "$pathcomp" ; then44 if test ! -d "$pathcomp" -a ! -d "$pathcomp/"; then 25 45 echo "mkdir $pathcomp" 26 46 27 47 mkdir "$pathcomp" || lasterr=$? 28 48 29 if test ! -d "$pathcomp" ; then49 if test ! -d "$pathcomp" -a ! -d "$pathcomp/"; then 30 50 errstatus=$lasterr 51 else 52 if test ! -z "$dirmode"; then 53 echo "chmod $dirmode $pathcomp" 54 55 lasterr="" 56 chmod $dirmode "$pathcomp" || lasterr=$? 57 58 if test ! -z "$lasterr"; then 59 errstatus=$lasterr 60 fi 61 fi 31 62 fi 32 63 fi 33 64 … … 37 68 38 69 exit $errstatus 39 70 40 # mkinstalldirs ends here 71 # Local Variables: 72 # mode:shell-script 73 # sh-indentation:3 74 # End: -
patch-2.5.4
Only in patch-2.5.4/pc: .svn Only in patch-2.5.4/pc/djgpp: .svn diff -urbB patch-2.5.4.0/rmdir.c patch-2.5.4/rmdir.c
old new 57 57 return -1; 58 58 } 59 59 60 #ifndef __EMX__ 61 cpid = fork (); 62 #else 63 cpid = spawnl (P_NOWAIT, "rmdir.exe", "rmdir.exe", dpath, (char *) 0); 64 #endif 60 65 cpid = fork (); 61 66 switch (cpid) 62 67 { 63 68 case -1: /* cannot fork */ 64 69 return -1; /* errno already set */ 65 70 71 #ifndef __EMX__ 66 72 case 0: /* child process */ 67 73 execl ("/bin/rmdir", "rmdir", dpath, (char *) 0); 68 74 _exit (1); 75 #endif 69 76 70 77 default: /* parent process */ 71 78 -
patch-2.5.4
diff -urbB patch-2.5.4.0/util.c patch-2.5.4/util.c
old new 133 133 if (debug & 4) 134 134 say ("Renaming file %s to %s\n", 135 135 quotearg_n (0, to), quotearg_n (1, bakname)); 136 #ifdef __EMX__ 137 /* under OS/2 rename() fails if the target file exists */ 138 if (access(bakname, R_OK) == 0) unlink(bakname); 139 #endif /* __EMX__ */ 136 140 while (rename (to, bakname) != 0) 137 141 { 138 142 if (errno != try_makedirs_errno) … … 151 155 if (debug & 4) 152 156 say ("Renaming file %s to %s\n", 153 157 quotearg_n (0, from), quotearg_n (1, to)); 154 158 #ifdef __EMX__ 159 /* under OS/2 rename() fails if the target file exists */ 160 if (access(to, R_OK) == 0) unlink(to); 161 #endif /* __EMX__ */ 155 162 if (rename (from, to) == 0) 156 163 *from_needs_removal = 0; 157 164 else