kkuznetsov
6b86285492
Rewiev semaphore on Solaris platform:
...
add some fixes and loop on EINTR
2006-04-12 09:25:56 +00:00
asfernandes
381d7abe02
Misc
2006-04-12 01:57:06 +00:00
dimitr
6e0263b0b7
Sync with BV branch. Committed on behalf of George Sergeev.
2006-04-11 06:46:57 +00:00
asfernandes
6df3f27648
Misc
2006-04-07 02:58:06 +00:00
robocop
c5f2284b15
Style.
2006-04-06 08:18:53 +00:00
kkuznetsov
6572fbf570
Add check for result of mmap() on Solaris platforms
2006-04-05 06:25:47 +00:00
alexpeshkoff
0f6c1dc50b
let's try to make gcc4 happy
2006-03-03 16:03:14 +00:00
robocop
48f94b4624
The whole indentation was screwed in those files.
2006-02-21 04:29:00 +00:00
kkuznetsov
f608342deb
misc
2006-02-20 08:00:52 +00:00
kkuznetsov
e90dca0f9e
misc
2006-02-20 07:59:20 +00:00
kkuznetsov
10b644875f
Support Sun C++ compiller in Bee+tree though conditional compilation.
2006-02-20 07:46:54 +00:00
robocop
14d73ccb8f
Use SUPERCLIENT for fbudf for avoiding exception-related code.
2006-02-04 04:39:00 +00:00
robocop
97122ee389
Replace jrd_time.h by our timestamp.h, but I left timestamp.h's #includes commented where it *seemed* not necessary.
2006-02-03 08:39:36 +00:00
robocop
0c28df8cf2
Declare independence day from client library for fbudf . For builds other than MSVC6, the following has to be done:
...
- add to fbudf project the files timestamp.cpp and timestamp.h
- for the same project, define FBUDF_EXPORTS as preprocessor macro
- for the firebird2 workspace/solution/make/etc get rid of the dependency of fbudf on fbclient. Build files that I indentified that need fixes are:
builds\posix\Makefile.in.client.fbudf
builds\posix\Makefile.in.embed.fbudf
builds\win32\msvc7\fbudf.vcproj
builds\win32\msvc7\Firebird2.sln
MacOs build files ignore fbudf completely.
This change eliminates the problem with the client library having different names depending on the build type (SS, CS, embedded).
2006-02-02 00:28:03 +00:00
alexpeshkoff
ca70704563
fixed gcc warning(s)
2006-01-16 15:39:55 +00:00
kkuznetsov
c4ca94823b
Fix compile error on Solaris - udefined va_list
2006-01-10 15:01:03 +00:00
alexpeshkoff
32ef4f5b67
fixed compilation after changes in exception
2006-01-07 16:58:23 +00:00
alexpeshkoff
2690209189
MetaName can now handle NULL in constructors and assignments
2006-01-03 15:07:47 +00:00
hvlad
bb880019d8
Avoid frequent (unneeded and inefficient) allocation\deallocation of stack entryes
2005-12-26 21:18:02 +00:00
robocop
0ff27c2af8
Don't crash the debug build if the allocations report file cannot be opened.
2005-12-24 07:28:31 +00:00
alexpeshkoff
ec0ea3e492
fixed problems with empty SPB
2005-12-23 08:24:01 +00:00
alexpeshkoff
addf657da0
use mutex instead of spin lock
2005-12-18 16:10:48 +00:00
dimitr
f73bf9d193
Undone my changes in clumplets to follow Alex's solution.
2005-12-10 10:15:10 +00:00
dimitr
d074f8bf8b
Fixed regressions with SAPI.
2005-12-10 10:05:35 +00:00
alexpeshkoff
cc70a63753
added test to trim characters >= 128
2005-12-04 12:08:06 +00:00
alexpeshkoff
26f8b389ee
fixed trim of characters >= 128
2005-12-04 12:06:55 +00:00
dimitr
eaef84342c
More missing stuff.
2005-12-03 10:22:22 +00:00
dimitr
07c7a232de
Fixed backup.
2005-12-03 09:48:35 +00:00
alexpeshkoff
f5871b1929
fixed problems, caused by my previous commit
2005-12-02 16:54:04 +00:00
robocop
5c8f816adc
Totally misc.
2005-12-01 03:00:23 +00:00
alexpeshkoff
d288dfeb88
Clumplet's improvements
2005-11-30 17:11:23 +00:00
alexpeshkoff
62a24d46e4
1. Moved data structures, written to database file, into ods.h.
...
2. Added new types of clumplets to ClumpletReader and ClupmletWriter.
3. Applied modified ClumpletReader and ClupmletWriter to /remote and partially /jrd.
4. Added active protection from remote brute-force attack to services API.
2005-11-27 20:53:09 +00:00
robocop
41e13ca1b1
Fix for Alex's removeRange & removeCount methods in Array class.
2005-11-18 05:31:25 +00:00
alexpeshkoff
35d800e0be
Retry when system call is interrupted
2005-10-28 15:25:15 +00:00
dimitr
b3033115de
Slightly change the round function.
2005-08-24 09:09:35 +00:00
kkuznetsov
b4b0b9d683
Comment correction thanks to Claudio
2005-08-19 06:04:10 +00:00
kkuznetsov
ef47186fab
Some comments added
2005-08-18 09:33:25 +00:00
robocop
4399b15b3d
const_iterator
...
The code in intlmanager originally confused me.
2005-06-11 00:13:30 +00:00
asfernandes
59213efe7e
Merge INTL branch into HEAD
2005-05-27 22:45:31 +00:00
alexpeshkoff
23aa3b9fef
misc
2005-05-18 11:06:15 +00:00
robocop
e2b16d669d
Get rid of redundant definition: already in constants.h.
2005-05-18 07:29:13 +00:00
alexpeshkoff
c03d2241c5
fixed issues, reported by Claudio
2005-05-17 18:20:07 +00:00
alexpeshkoff
a9c754f16f
fixed bug noticed by Vlad
2005-05-14 05:21:51 +00:00
alexpeshkoff
e0b828a3b1
Added class to handle metadata names
2005-05-12 18:26:13 +00:00
alexpeshkoff
c6fb984d13
make Firebird::vector const-friendly
2005-05-12 18:24:05 +00:00
robocop
f3d1c47f99
Misc.
2005-04-18 03:36:03 +00:00
robocop
b5ec6d966c
Be in sync with our header protection convention.
2005-04-18 03:26:45 +00:00
dimitr
dd1ef4e306
no message
2005-02-20 08:35:35 +00:00
dimitr
02f626c62c
Fixed bug with WEEKDAY.
2005-02-19 10:37:35 +00:00
kkuznetsov
f922e000b7
Comments cleanup
2005-02-17 12:42:49 +00:00
dimitr
c00ffe7ec0
Fixed the default memory management in fbclient.
...
Avoid crashing the server when fbclient is used in its address space.
2005-02-16 08:46:48 +00:00
alexpeshkoff
655e961b67
add constness
2005-02-13 18:03:40 +00:00
alexpeshkoff
63256e3ae0
misc
2005-02-02 11:22:06 +00:00
alexpeshkoff
a9ce92244e
license + misc
2005-01-30 11:44:59 +00:00
alexpeshkoff
19411789b3
fixed multi-threaded client and Win32 embedded problems
...
after introducing context memory pools
2005-01-14 09:56:38 +00:00
robocop
741a1d3d5a
Correct the year in Alex' changed licenses.
2005-01-12 04:34:16 +00:00
alexpeshkoff
e2dd2c56cd
applied correct license to files, added by me to the project
2005-01-10 18:06:14 +00:00
robocop
4012106884
Misc.
2004-12-25 09:44:03 +00:00
kkuznetsov
af0ab61ae2
Some things is moved from R1.5.1.
...
Starting separating of defines accoding
SOLARIS -- any threading modes
SOLARIS_MT - solaris with Sun threading model
current nothing - solaris with posix threading model
2004-12-24 09:35:48 +00:00
robocop
d65307b497
Style.
2004-12-24 08:52:39 +00:00
robocop
4d41decc4f
Misc.
2004-12-22 08:49:26 +00:00
alexpeshkoff
e7d4b79b12
use context pool in AutoStorage class
2004-12-17 11:13:24 +00:00
robocop
24742873ad
fb_string.h is moved to common/classes.
2004-12-17 05:41:47 +00:00
robocop
de3902e4b4
Misc.
2004-12-17 05:40:10 +00:00
alexpeshkoff
e5234b68a3
fixed bug, noticed by Adriano dos Santos Fernandes
2004-12-13 15:49:28 +00:00
alexpeshkoff
4c30c0a47d
test for Firebird::string
2004-12-13 12:05:29 +00:00
robocop
b59cf9c750
I can revert the constness if it becomes too restrictive in the future.
2004-12-12 06:50:10 +00:00
robocop
e5347aae55
Misc.
2004-12-12 01:55:21 +00:00
robocop
fddf92395e
Misc.
2004-12-10 22:54:16 +00:00
alexpeshkoff
387e678cca
applied Clumplet* classes to dpb where possible
2004-12-09 19:19:47 +00:00
robocop
3ca7f5afb7
Misc.
2004-12-03 06:24:18 +00:00
aafemt
62069daa7a
Shut up warning
2004-12-02 12:11:48 +00:00
robocop
af6a16107a
Misc.
2004-11-30 06:18:39 +00:00
alexpeshkoff
d0ebde70a8
make SortedObjectsArray easier to use in simple cases
2004-11-29 10:07:43 +00:00
robocop
9ee8334926
"elem" is size_t, assert on it.
2004-11-29 09:59:19 +00:00
skidder
1df8ec2f9e
Fix GCC build curing MSVC build at the same time
2004-11-29 01:08:38 +00:00
robocop
6af639b4e3
Corrections.
2004-11-27 08:13:39 +00:00
robocop
9293a840da
Extra assertion and acknowledge "elem" is size_t.
2004-11-27 03:31:39 +00:00
robocop
88d932d394
Formatting and a couple of assertions.
2004-11-27 03:30:42 +00:00
robocop
84f8c37dba
const.
2004-11-27 03:30:09 +00:00
alexpeshkoff
2841466d4d
make it compile with VC6
2004-11-25 16:10:38 +00:00
skidder
c4ed612128
Fix POSIX build
2004-11-25 02:28:17 +00:00
skidder
016fcdcce5
Implement Claudio suggestion regarding clean generic map class
2004-11-24 20:38:31 +00:00
alexpeshkoff
bdd3b32278
use ClumpletReader to parse dpb options
2004-11-24 18:26:24 +00:00
robocop
d6535351a2
Misc: style.
2004-11-24 09:22:07 +00:00
robocop
ab23729381
Misc.
2004-11-23 04:05:49 +00:00
skidder
51e43de012
Fix POSIX build warning
2004-11-22 22:31:31 +00:00
skidder
9507cf9714
Context variables support
2004-11-22 20:22:03 +00:00
robocop
eb99bbcccf
Poor man's version of the old gds_alloc_report.
2004-11-17 08:56:07 +00:00
robocop
290ec7f231
Misc.
2004-11-16 08:35:59 +00:00
robocop
a0fa398757
Misc: where did those phantom spaces come from?
2004-11-16 06:22:12 +00:00
robocop
642da74b93
Totally misc: comment.
2004-11-16 05:02:02 +00:00
alexpeshkoff
f7d554d960
1. const-correctness of Clumplet classes
...
2. changed datatype to store ClumpletWriter buffer to avoid a lot of casts
3. added methods to support PathName operations
2004-11-15 16:34:47 +00:00
skidder
2096e1029e
Minor correction of previous commit
2004-11-14 20:59:14 +00:00
skidder
8d71db462e
Add time routines to TimeStamp class
2004-11-14 20:49:47 +00:00
alexpeshkoff
ea9e900ab3
cleanup of methods, storing data in plain char*
2004-11-14 18:05:13 +00:00
robocop
8dd94e9d5b
Misc and mark suspicious place(s).
2004-11-08 02:57:23 +00:00
robocop
0c1c5428f0
Misc: extra semicolons do not help. :-)
2004-11-07 10:52:36 +00:00
robocop
77571e4c69
1.- Extra unneeded semicolons are being garbage collected.
...
2.- Style: sepate params by space, type for<space>(, etc.
2004-11-06 07:20:44 +00:00
skidder
d55bbe7c29
Fix posix build after my timestamp change
2004-11-04 19:38:24 +00:00
skidder
933063c7ce
Slightly adjust Dmitry's Firebird::TimeStamp class to make it more useful, change is coordiated with Dmitry. Use thread-safe localtime_r routine when it is available
2004-11-04 19:14:20 +00:00
robocop
d9c3c78abd
Be explicit.
2004-11-04 05:26:56 +00:00
dimitr
56a15c33dc
Improved TimeStamp slightly to suit non-engine needs.
2004-11-03 17:28:05 +00:00
skidder
54d28cbfb3
Bunch of fixes in clumplet readers and writers
2004-11-03 08:38:09 +00:00
skidder
57b1dbb5a5
Remove comment which is no longer pertinent
2004-11-03 08:36:14 +00:00
skidder
18538667a6
Fix warning
2004-11-02 06:43:56 +00:00
dimitr
5040f83365
Changed TimeStamp class a bit, as suggested by Claudio.
2004-11-01 08:29:16 +00:00
dimitr
75593c7de4
Removed unused code.
2004-10-31 05:40:38 +00:00
dimitr
6f3700fc6c
Replaced non-centralized datetime management with a new class.
2004-10-30 19:28:56 +00:00
robocop
9fb4a9136a
Misc.
2004-10-30 06:03:06 +00:00
skidder
0c1785e708
Kill a few redundant const qualifiers
2004-10-29 17:51:27 +00:00
skidder
d65eac7698
Go back to passing pointers to impure areas instead of direct bitmap pointers. The approach I tried doesn't work with nod_bit_in correctly and doesn't seem pretty to me anymore
2004-10-28 23:26:16 +00:00
aafemt
1155b1906d
Variable shadowing
2004-10-27 09:28:26 +00:00
skidder
b29f8356c5
Implement routines for convenient dumping of memory pools under debugger
2004-10-25 05:14:12 +00:00
skidder
b47700523d
Little corrections in clumplet handler classes
2004-10-23 01:21:11 +00:00
skidder
5fc3d1bc31
Classes for secure manipulations with clumplet structures
2004-10-22 06:24:40 +00:00
robocop
7e97c27e75
Some folks couldn't compile...
2004-10-15 05:50:32 +00:00
robocop
efefff581e
Change Pascal AND to C++ &&
...
Thanks to Marlena Miller that couldn't compile.
2004-10-11 10:00:37 +00:00
skidder
71c2c14bb9
Implement vprintf routine in Firebird::string class
2004-10-09 00:43:04 +00:00
skidder
632fd3c4b9
Correct Firebird::string::printf behavior for very long strings
2004-10-08 22:52:08 +00:00
robocop
ac4aa367b9
recalculate_length(),
...
copy_to(), safe copy to a char array,
constness,
style.
2004-10-07 08:35:25 +00:00
hvlad
4591207542
Correct on-stack constructor for SparseBitmap (discussed with Nickolay)
2004-10-05 07:03:26 +00:00
robocop
ed17cfafbf
Style:
...
if<space>(
for<space>(
switch<space>(
while<space>(
2004-10-04 08:15:00 +00:00
robocop
f67540a4a5
Member functions that don't change anything are marked const.
2004-10-02 09:33:06 +00:00
robocop
90dab6af2e
Prevent buffer overrun (equivalent to evl.cpp's concatenate).
2004-10-02 09:31:12 +00:00
hvlad
d281601365
Make new class SparseBitmap compile by MSVC6
2004-10-01 06:27:57 +00:00
arnobrinkman
d9c6c3ebab
fix bug with singular bitmaps, in consideration with Nickolay
2004-09-29 21:58:58 +00:00
skidder
85297ac45a
Fix MSVC7 builds
2004-09-28 21:50:10 +00:00
skidder
02a0915156
Teach engine to work with larger record numbers - 64-bit internally, 40-bit externally
2004-09-28 06:28:38 +00:00
alexpeshkoff
07cc528371
Fixed a number of errors in Firebird::string
2004-09-23 07:03:14 +00:00
robocop
9a34d7bb91
Misc: fix typo in a comment
2004-09-07 08:35:29 +00:00
skidder
a28561fcf5
Look up Valgrind header in more appropriate place
2004-09-01 09:36:44 +00:00
alexpeshkoff
c3db4aaa97
added (and used in sources) template to change and restore default pool
2004-08-30 18:11:08 +00:00
skidder
7a85d40428
Fix typo and small bug in memory manager test code
2004-08-28 23:14:46 +00:00
skidder
674e533b80
Update memory manager tests
2004-08-28 05:19:23 +00:00
skidder
6c9402b881
fix handling of zero-length allocations, fix rare memory management error, add quick pool verification logic
2004-08-28 05:18:42 +00:00
skidder
b8601cce19
quick pool verification logic
2004-08-28 05:15:02 +00:00
skidder
f13f54c966
Some Linux targets may miss support for fancy rwlock options
2004-08-28 02:51:11 +00:00
brodsom
46aa03e06e
Fix signed/unsigned comparisons
2004-08-26 18:28:12 +00:00
robocop
305b9088f4
misc
2004-08-26 11:04:14 +00:00
skidder
035ac89d7c
Clarify comment and update assertion check
2004-08-25 03:09:57 +00:00
brodsom
57528f8bc2
Avoid variable shadowing
2004-08-24 23:11:02 +00:00
robocop
24aab1bd43
Renamed ptr_block to ptrToBLock and block_ptr to blockToPtr for better self-documenting code as agreed privately. No functional change.
2004-08-24 05:16:01 +00:00
skidder
933488964a
Update memory manager tests
2004-08-22 21:31:19 +00:00
skidder
a1371e4ffa
Slightly streamline logic of allocation critical path. Correct 2 memory manager bugs added during last optimization attempt. We are now ~40faster than malloc from GLIBC 2.3
2004-08-22 21:28:19 +00:00
skidder
3b3bd79ddb
Use fine-tuned tree page sizes by default. This increases tree performance by ~7 We are now 1.5 times faster than GNU STL tree
2004-08-22 21:09:13 +00:00
robocop
6be277355f
Misc: formatting
2004-08-21 09:18:24 +00:00
skidder
706e941871
Old Valgrind stacktraces need to be cleaned up on pool destruction
2004-08-18 23:39:43 +00:00
alexpeshkoff
45e2d3556f
removed a lot of posix warnings after changing int to size_t in vector.h
2004-08-16 12:25:39 +00:00
skidder
158cc8b30b
Optimize memory manager a little bit
2004-08-10 04:10:47 +00:00