]> git.pld-linux.org Git - packages/db3.git/commitdiff
f846c920598dd018a8af64d7edb04398 cvsmapfs-1.3.tar.gz
authorJan Rękorajski <baggins@pld-linux.org>
Tue, 18 Jul 2000 14:48:23 +0000 (14:48 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
8675c943f3000e0842a04dfff302d21a  cvsmapfs-config.patch
e13ca015d7b31e5e463c03c9d7b1deb5  db.1.85.patch
42cc6c1e1e25818bd3e3f91328edb0f1  db.1.85.tar.gz
81aff588a83bc3c19d738af12baa770d  db2-glibc-2.1.3.patch
21e1909b83aee13b307fb8bafba46f94  db2-libdb2.patch
6407da4ef00b3370be5eb7b467ebeb4a  db3-align.patch
ff9d510892630e36dd406a84236290df  db3-linux-threads.patch
cb642151ef8501a86d9cb9464b1d5c3e  db3-shmget.patch
8d92cd95d534503a32c15159f173107f  gcc-glibc-2.2.patch
4c61188e9698a8fd74648475c1408061  glibc-build-order.patch
bc65dbff8fbad89ce5b2ce35e949f31d  prcs-1.2.15.tar.gz
dd91429af76e7ee74d84dc88ecfaacf6  prcs-el.patch
4ea216f361c872e99c553d7e34970e12  prcs-man.patch
a6c7ce829be8a0a4dbae1f37f8a80109  prcs-rprcs-ssh.patch

Changed files:
    db3-align.patch -> 1.1
    db3-linux-threads.patch -> 1.1
    db3-shmget.patch -> 1.1

db3-align.patch [new file with mode: 0644]
db3-linux-threads.patch [new file with mode: 0644]
db3-shmget.patch [new file with mode: 0644]

diff --git a/db3-align.patch b/db3-align.patch
new file mode 100644 (file)
index 0000000..ea9aeee
--- /dev/null
@@ -0,0 +1,20 @@
+*** env/db_salloc.c.orig       Tue Oct 19 17:22:12 1999
+--- env/db_salloc.c    Wed Dec 31 19:00:00 1969
+***************
+*** 94,101 ****
+           */
+          ++len;
+  #endif
+!      align = align <= sizeof(size_t) ?
+!          sizeof(size_t) : ALIGN(align, sizeof(size_t));
+  
+       /* Walk the list, looking for a slot. */
+       for (elp = SH_LIST_FIRST((struct __head *)p, __data);
+--- 94,100 ----
+           */
+          ++len;
+  #endif
+!      align = 8;
+  
+       /* Walk the list, looking for a slot. */
+       for (elp = SH_LIST_FIRST((struct __head *)p, __data);
diff --git a/db3-linux-threads.patch b/db3-linux-threads.patch
new file mode 100644 (file)
index 0000000..e59c982
--- /dev/null
@@ -0,0 +1,25 @@
+--- db-3.0.55/mutex/mut_pthread.c.linux        Mon Apr 24 09:25:36 2000
++++ db-3.0.55/mutex/mut_pthread.c      Mon Apr 24 09:36:31 2000
+@@ -86,16 +86,22 @@
+       if (!F_ISSET(mutexp, MUTEX_THREAD)) {
+               ret = pthread_condattr_init(&condattr);
++/* XXX linux threads implementation has not attributes for conditions. */
++#if !defined(__linux__)
+               if (ret == 0)
+                       ret = pthread_condattr_setpshared(
+                           &condattr, PTHREAD_PROCESS_SHARED);
++#endif
+               condattrp = &condattr;
+               if (ret == 0)
+                       ret = pthread_mutexattr_init(&mutexattr);
++/* XXX linux threads implementation has not attributes for mutexes. */
++#if !defined(__linux__)
+               if (ret == 0)
+                       ret = pthread_mutexattr_setpshared(
+                           &mutexattr, PTHREAD_PROCESS_SHARED);
++#endif
+               mutexattrp = &mutexattr;
+       }
diff --git a/db3-shmget.patch b/db3-shmget.patch
new file mode 100644 (file)
index 0000000..20c27bf
--- /dev/null
@@ -0,0 +1,20 @@
+--- db-3.0.55/os/os_map.c.jbj  Sat Apr  1 16:13:49 2000
++++ db-3.0.55/os/os_map.c      Sat Apr  1 16:16:19 2000
+@@ -33,6 +33,8 @@
+ static int __os_map __P((DB_ENV *, char *, DB_FH *, size_t, int, int, void **));
+ #endif
++int __os_shmget_perms = 0600;
++
+ /*
+  * __os_r_sysattach --
+  *    Create/join a shared memory region.
+@@ -68,7 +70,7 @@
+ #endif
+ #if defined(HAVE_SHMGET)
+               if (F_ISSET(infop, REGION_CREATE) &&
+-                 (rp->segid = shmget(0, rp->size, IPC_PRIVATE | 0600)) == -1)
++                 (rp->segid = shmget(0, rp->size, IPC_PRIVATE | __os_shmget_perms)) == -1)
+                       return (__os_get_errno());
+               if ((infop->addr = shmat(rp->segid, NULL, 0)) == (void *)-1) {
This page took 0.077468 seconds and 4 git commands to generate.