mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

150 lines
4.5 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/base/nvi/errno.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2003 Clifford Wolf
  10. #
  11. # This program is free software; you can redistribute it and/or modify
  12. # it under the terms of the GNU General Public License as published by
  13. # the Free Software Foundation; either version 2 of the License, or
  14. # (at your option) any later version. A copy of the GNU General Public
  15. # License can be found at Documentation/COPYING.
  16. #
  17. # Many people helped and are helping developing ROCK Linux. Please
  18. # have a look at http://www.rocklinux.org/ and the Documentation/TEAM
  19. # file for details.
  20. #
  21. # --- ROCK-COPYRIGHT-NOTE-END ---
  22. --- ./ex/tag.h.orig 1995-01-31 18:59:16.000000000 +0100
  23. +++ ./ex/tag.h 2002-10-12 16:45:16.000000000 +0200
  24. @@ -38,7 +38,7 @@
  25. struct _tagf { /* Tag file. */
  26. TAILQ_ENTRY(_tagf) q; /* Linked list of tag files. */
  27. char *name; /* Tag file name. */
  28. - int errno; /* Error. */
  29. + int errnum; /* Error. */
  30. #define TAGF_ERR 0x01 /* Error occurred. */
  31. #define TAGF_ERR_WARN 0x02 /* Error reported. */
  32. --- ./ex/ex_tag.c.orig 2002-10-12 16:46:54.000000000 +0200
  33. +++ ./ex/ex_tag.c 2002-10-12 16:47:21.000000000 +0200
  34. @@ -727,7 +727,7 @@
  35. if (F_ISSET(tfp, TAGF_ERR) &&
  36. !F_ISSET(tfp, TAGF_ERR_WARN)) {
  37. p = msg_print(sp, tfp->name, &nf1);
  38. - errno = tfp->errno;
  39. + errno = tfp->errnum;
  40. msgq(sp, M_SYSERR, "%s", p);
  41. if (nf1)
  42. FREE_SPACE(sp, p, 0);
  43. @@ -815,7 +815,7 @@
  44. char *endp, *back, *front, *map, *p;
  45. if ((fd = open(tfp->name, O_RDONLY, 0)) < 0) {
  46. - tfp->errno = errno;
  47. + tfp->errnum = errno;
  48. return (1);
  49. }
  50. @@ -830,7 +830,7 @@
  51. */
  52. if (fstat(fd, &sb) || (map = mmap(NULL, (size_t)sb.st_size,
  53. PROT_READ, MAP_PRIVATE, fd, (off_t)0)) == (caddr_t)-1) {
  54. - tfp->errno = errno;
  55. + tfp->errnum = errno;
  56. (void)close(fd);
  57. return (1);
  58. }
  59. --- ./PORT/db.1.85/hash/hash.h.orig 1994-06-24 17:12:29.000000000 +0200
  60. +++ ./PORT/db.1.85/hash/hash.h 2002-10-12 16:41:21.000000000 +0200
  61. @@ -103,7 +103,7 @@
  62. BUFHEAD *cpage; /* Current page */
  63. int cbucket; /* Current bucket */
  64. int cndx; /* Index of next item on cpage */
  65. - int errno; /* Error Number -- for DBM
  66. + int errnum; /* Error Number -- for DBM
  67. * compatability */
  68. int new_file; /* Indicates if fd is backing store
  69. * or no */
  70. --- ./PORT/db.1.85/hash/hash.c.orig 2002-10-12 16:27:14.000000000 +0200
  71. +++ ./PORT/db.1.85/hash/hash.c 2002-10-12 16:42:30.000000000 +0200
  72. @@ -505,7 +505,7 @@
  73. else
  74. if (wsize != sizeof(HASHHDR)) {
  75. errno = EFTYPE;
  76. - hashp->errno = errno;
  77. + hashp->errnum = errno;
  78. return (-1);
  79. }
  80. for (i = 0; i < NCACHED; i++)
  81. @@ -536,7 +536,7 @@
  82. hashp = (HTAB *)dbp->internal;
  83. if (flag) {
  84. - hashp->errno = errno = EINVAL;
  85. + hashp->errnum = errno = EINVAL;
  86. return (ERROR);
  87. }
  88. return (hash_access(hashp, HASH_GET, (DBT *)key, data));
  89. @@ -553,11 +553,11 @@
  90. hashp = (HTAB *)dbp->internal;
  91. if (flag && flag != R_NOOVERWRITE) {
  92. - hashp->errno = errno = EINVAL;
  93. + hashp->errnum = errno = EINVAL;
  94. return (ERROR);
  95. }
  96. if ((hashp->flags & O_ACCMODE) == O_RDONLY) {
  97. - hashp->errno = errno = EPERM;
  98. + hashp->errnum = errno = EPERM;
  99. return (ERROR);
  100. }
  101. return (hash_access(hashp, flag == R_NOOVERWRITE ?
  102. @@ -574,11 +574,11 @@
  103. hashp = (HTAB *)dbp->internal;
  104. if (flag && flag != R_CURSOR) {
  105. - hashp->errno = errno = EINVAL;
  106. + hashp->errnum = errno = EINVAL;
  107. return (ERROR);
  108. }
  109. if ((hashp->flags & O_ACCMODE) == O_RDONLY) {
  110. - hashp->errno = errno = EPERM;
  111. + hashp->errnum = errno = EPERM;
  112. return (ERROR);
  113. }
  114. return (hash_access(hashp, HASH_DELETE, (DBT *)key, NULL));
  115. @@ -729,7 +729,7 @@
  116. hashp = (HTAB *)dbp->internal;
  117. if (flag && flag != R_FIRST && flag != R_NEXT) {
  118. - hashp->errno = errno = EINVAL;
  119. + hashp->errnum = errno = EINVAL;
  120. return (ERROR);
  121. }
  122. #ifdef HASH_STATISTICS
  123. --- ./PORT/db.1.85/hash/ndbm.c.orig 2002-10-12 19:48:03.000000000 +0200
  124. +++ ./PORT/db.1.85/hash/ndbm.c 2002-10-12 19:48:23.000000000 +0200
  125. @@ -180,7 +180,7 @@
  126. HTAB *hp;
  127. hp = (HTAB *)db->internal;
  128. - return (hp->errno);
  129. + return (hp->errnum);
  130. }
  131. extern int
  132. @@ -190,7 +190,7 @@
  133. HTAB *hp;
  134. hp = (HTAB *)db->internal;
  135. - hp->errno = 0;
  136. + hp->errnum = 0;
  137. return (0);
  138. }