Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 87597 Details for
Bug 134168
dev-db/postgresql: SQL injection
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
8.1.4 spinlock patch
postgresql-8.1.4-sh.patch (text/plain), 780 bytes, created by
John Jay
on 2006-05-26 15:29:55 UTC
(
hide
)
Description:
8.1.4 spinlock patch
Filename:
MIME Type:
Creator:
John Jay
Created:
2006-05-26 15:29:55 UTC
Size:
780 bytes
patch
obsolete
>--- postgresql-8.1.4/src/include/storage/s_lock.h 2005-10-11 13:41:32.000000000 -0700 >+++ postgresql-8.1.4.dev/src/include/storage/s_lock.h 2006-05-26 05:48:32.000000000 -0700 >@@ -299,6 +299,30 @@ tas(volatile slock_t *lock) > > #endif /* __s390__ || __s390x__ */ > >+#if defined(__sh__) >+#define HAS_TEST_AND_SET >+ >+typedef unsigned char slock_t; >+ >+#define TAS(lock) tas(lock) >+ >+static __inline__ int >+tas(volatile slock_t *lock) >+{ >+ register int _res = 1; >+ >+ __asm__ __volatile__( >+ "tas.b @%1\n\t" >+ "movt %0\n\t" >+ "xor #1,%0" >+: "=z"(_res) >+: "r"(lock) >+: "t","memory"); >+ return _res; >+} >+ >+#endif /* __sh__ */ >+ > > #if defined(__sparc__) > #define HAS_TEST_AND_SET
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 134168
:
87591
|
87594
|
87595
|
87596
| 87597 |
87598
|
87599
|
87600