1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # T2 SDE: package/.../pdisk/code_update.patch
5 # Copyright (C) 2004 - 2005 The T2 SDE Project
6 # Copyright (C) 1998 - 2003 ROCK Linux Project
8 # More information can be found in the files COPYING and README.
10 # This patch file is dual-licensed. It is available under the license the
11 # patched project is licensed under, as long as it is an OpenSource license
12 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
13 # of the GNU General Public License as published by the Free Software
14 # Foundation; either version 2 of the License, or (at your option) any later
16 # --- T2-COPYRIGHT-NOTE-END ---
18 --- ./errors.c 2000-05-16 09:10:57.000000000 -0500
19 +++ ./errors.c 2002-12-19 20:51:14.000000000 -0500
29 +// for strrchr and strerror
32 // for va_start(), etc.
44 +#define sys_nerr errno
50 #if defined(__linux__) || defined(NeXT) || defined(__unix__)
51 if (value > 0 && value < sys_nerr) {
52 - fprintf(stderr, " (%s)\n", sys_errlist[value]);
53 + fprintf(stderr, " (%s)\n", strerror(value));
55 fprintf(stderr, "\n");
59 #if defined(__linux__) || defined(NeXT) || defined(__unix__)
60 if (value > 0 && value < sys_nerr) {
61 - fprintf(stderr, " (%s)\n", sys_errlist[value]);
62 + fprintf(stderr, " (%s)\n", strerror(value));
64 fprintf(stderr, "\n");
66 --- ./file_media.c 2000-05-16 09:10:55.000000000 -0500
67 +++ ./file_media.c 2002-12-19 20:48:18.000000000 -0500
72 +#define llseek lseek64
73 #define LOFF_MAX 9223372036854775807LL
74 extern __loff_t llseek __P ((int __fd, __loff_t __offset, int __whence));