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.

147 lines
4.4 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 - 2005 Clifford Wolf
  10. #
  11. # This patch file is dual-licensed. It is available under the license the
  12. # patched project is licensed under, as long as it is an OpenSource license
  13. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  14. # of the GNU General Public License as published by the Free Software
  15. # Foundation; either version 2 of the License, or (at your option) any later
  16. # version.
  17. #
  18. # --- ROCK-COPYRIGHT-NOTE-END ---
  19. --- ./ex/tag.h.orig 1995-01-31 18:59:16.000000000 +0100
  20. +++ ./ex/tag.h 2002-10-12 16:45:16.000000000 +0200
  21. @@ -38,7 +38,7 @@
  22. struct _tagf { /* Tag file. */
  23. TAILQ_ENTRY(_tagf) q; /* Linked list of tag files. */
  24. char *name; /* Tag file name. */
  25. - int errno; /* Error. */
  26. + int errnum; /* Error. */
  27. #define TAGF_ERR 0x01 /* Error occurred. */
  28. #define TAGF_ERR_WARN 0x02 /* Error reported. */
  29. --- ./ex/ex_tag.c.orig 2002-10-12 16:46:54.000000000 +0200
  30. +++ ./ex/ex_tag.c 2002-10-12 16:47:21.000000000 +0200
  31. @@ -727,7 +727,7 @@
  32. if (F_ISSET(tfp, TAGF_ERR) &&
  33. !F_ISSET(tfp, TAGF_ERR_WARN)) {
  34. p = msg_print(sp, tfp->name, &nf1);
  35. - errno = tfp->errno;
  36. + errno = tfp->errnum;
  37. msgq(sp, M_SYSERR, "%s", p);
  38. if (nf1)
  39. FREE_SPACE(sp, p, 0);
  40. @@ -815,7 +815,7 @@
  41. char *endp, *back, *front, *map, *p;
  42. if ((fd = open(tfp->name, O_RDONLY, 0)) < 0) {
  43. - tfp->errno = errno;
  44. + tfp->errnum = errno;
  45. return (1);
  46. }
  47. @@ -830,7 +830,7 @@
  48. */
  49. if (fstat(fd, &sb) || (map = mmap(NULL, (size_t)sb.st_size,
  50. PROT_READ, MAP_PRIVATE, fd, (off_t)0)) == (caddr_t)-1) {
  51. - tfp->errno = errno;
  52. + tfp->errnum = errno;
  53. (void)close(fd);
  54. return (1);
  55. }
  56. --- ./PORT/db.1.85/hash/hash.h.orig 1994-06-24 17:12:29.000000000 +0200
  57. +++ ./PORT/db.1.85/hash/hash.h 2002-10-12 16:41:21.000000000 +0200
  58. @@ -103,7 +103,7 @@
  59. BUFHEAD *cpage; /* Current page */
  60. int cbucket; /* Current bucket */
  61. int cndx; /* Index of next item on cpage */
  62. - int errno; /* Error Number -- for DBM
  63. + int errnum; /* Error Number -- for DBM
  64. * compatability */
  65. int new_file; /* Indicates if fd is backing store
  66. * or no */
  67. --- ./PORT/db.1.85/hash/hash.c.orig 2002-10-12 16:27:14.000000000 +0200
  68. +++ ./PORT/db.1.85/hash/hash.c 2002-10-12 16:42:30.000000000 +0200
  69. @@ -505,7 +505,7 @@
  70. else
  71. if (wsize != sizeof(HASHHDR)) {
  72. errno = EFTYPE;
  73. - hashp->errno = errno;
  74. + hashp->errnum = errno;
  75. return (-1);
  76. }
  77. for (i = 0; i < NCACHED; i++)
  78. @@ -536,7 +536,7 @@
  79. hashp = (HTAB *)dbp->internal;
  80. if (flag) {
  81. - hashp->errno = errno = EINVAL;
  82. + hashp->errnum = errno = EINVAL;
  83. return (ERROR);
  84. }
  85. return (hash_access(hashp, HASH_GET, (DBT *)key, data));
  86. @@ -553,11 +553,11 @@
  87. hashp = (HTAB *)dbp->internal;
  88. if (flag && flag != R_NOOVERWRITE) {
  89. - hashp->errno = errno = EINVAL;
  90. + hashp->errnum = errno = EINVAL;
  91. return (ERROR);
  92. }
  93. if ((hashp->flags & O_ACCMODE) == O_RDONLY) {
  94. - hashp->errno = errno = EPERM;
  95. + hashp->errnum = errno = EPERM;
  96. return (ERROR);
  97. }
  98. return (hash_access(hashp, flag == R_NOOVERWRITE ?
  99. @@ -574,11 +574,11 @@
  100. hashp = (HTAB *)dbp->internal;
  101. if (flag && flag != R_CURSOR) {
  102. - hashp->errno = errno = EINVAL;
  103. + hashp->errnum = errno = EINVAL;
  104. return (ERROR);
  105. }
  106. if ((hashp->flags & O_ACCMODE) == O_RDONLY) {
  107. - hashp->errno = errno = EPERM;
  108. + hashp->errnum = errno = EPERM;
  109. return (ERROR);
  110. }
  111. return (hash_access(hashp, HASH_DELETE, (DBT *)key, NULL));
  112. @@ -729,7 +729,7 @@
  113. hashp = (HTAB *)dbp->internal;
  114. if (flag && flag != R_FIRST && flag != R_NEXT) {
  115. - hashp->errno = errno = EINVAL;
  116. + hashp->errnum = errno = EINVAL;
  117. return (ERROR);
  118. }
  119. #ifdef HASH_STATISTICS
  120. --- ./PORT/db.1.85/hash/ndbm.c.orig 2002-10-12 19:48:03.000000000 +0200
  121. +++ ./PORT/db.1.85/hash/ndbm.c 2002-10-12 19:48:23.000000000 +0200
  122. @@ -180,7 +180,7 @@
  123. HTAB *hp;
  124. hp = (HTAB *)db->internal;
  125. - return (hp->errno);
  126. + return (hp->errnum);
  127. }
  128. extern int
  129. @@ -190,7 +190,7 @@
  130. HTAB *hp;
  131. hp = (HTAB *)db->internal;
  132. - hp->errno = 0;
  133. + hp->errnum = 0;
  134. return (0);
  135. }