robocop
663e3b16e7
Cleanup
2004-02-02 11:02:12 +00:00
robocop
2b295a9108
General cleanup. Sorry if I missed some occurrence.
2004-01-28 07:50:41 +00:00
skidder
08eee5ebaa
Further AMD64 fixes. Given this fixes you may start playing with databases using isql_static.
2004-01-21 07:18:30 +00:00
eku
4cbef7b979
Fixed compilation problems with size_t. It's primarily defined in sys/types.h
2004-01-13 13:40:20 +00:00
eku
14b3de174e
Port numbers are limited to 16 bit.
2004-01-13 13:38:36 +00:00
stryqx
f7d06df281
Fix build on FreeBSD.
2004-01-12 00:56:03 +00:00
brodsom
36acb09df9
Fix MINGW build
2004-01-07 00:32:02 +00:00
fsg
e3ba8c5f42
Some changes to get it compiled under linux.
...
Use const declarations for BLANK etc. in isql.h again.
FSG
2004-01-03 14:12:45 +00:00
robocop
efa538a4ca
adding obviously missing files, thanks Arno.
2003-12-31 10:33:02 +00:00
robocop
16cbc204df
Cleanup
2003-12-31 05:36:12 +00:00
robocop
ad0b5c4de3
General cleanup
2003-12-22 10:00:59 +00:00
dimitr
995417f11a
Minor cleanup
2003-12-14 18:26:25 +00:00
skidder
7558470e08
Fix another initializatoin race condition
2003-12-14 04:34:37 +00:00
dimitr
9859341694
Let's be compatible with the config files open in binary mode.
2003-12-13 10:59:59 +00:00
robocop
b02c629735
Cleanup
...
Some name changes
Try to fix SINIX-Z problems with send() prototype
2003-12-05 10:35:47 +00:00
dimitr
b15341b213
Small correction.
2003-12-01 19:44:29 +00:00
dimitr
b26b48c9bf
Oops, sorry.
2003-12-01 17:53:44 +00:00
dimitr
726f0f836e
Correction
2003-12-01 16:29:45 +00:00
dimitr
c8c2b04c49
1) Const correctness
...
2) A few extra vector-like methods
2003-11-30 21:01:35 +00:00
skidder
16ea16b085
Fix invariant tracking in recursive procedures and when invariants
...
depend on variables. This solves issues like SF#627057.
2003-11-23 20:17:30 +00:00
kkuznetsov
021a046ec1
Write solaris portion of RWlock
2003-11-21 19:42:06 +00:00
stryqx
99bb1302db
Fix the spinlocks case for FreeBSD 4.x
2003-11-11 23:58:49 +00:00
robocop
db77ffa605
const correctness, variables in scope, cleanup, etc.
2003-11-07 08:06:35 +00:00
brodsom
ff070a16a8
Replacing assert with fb_assert
2003-11-03 23:59:24 +00:00
skidder
7b99b8a57b
Basic INTL cleanup.
...
- Rework (mostly undo) John's changes
- Some function type safety
- Make INTL OO layer very thin (this should slightly improve performance)
2003-11-03 17:14:45 +00:00
brodsom
51893d72ad
- Make MinGW build again after Nickolay patch (There is a multiple definition of std::bad_alloc::~bad_alloc())
2003-11-03 02:05:14 +00:00
robocop
cda707bd36
const correctness and other related changes
2003-11-01 10:26:43 +00:00
brodsom
7acc0cf5bd
Write fatal error messages into firebird.log
2003-10-30 10:59:32 +00:00
skidder
e5397f4180
Ugly hack to make Firebird compatible with host applications using STL
2003-10-27 22:27:30 +00:00
robocop
26b9005e05
Style: make the code more readable, keep spaces around operators
2003-10-20 10:26:31 +00:00
skidder
d7e24011b7
Clean up optimizer
2003-10-17 20:29:52 +00:00
skidder
4e8605294e
Forward port Sparc fixes
2003-10-10 23:56:57 +00:00
dimitr
00f41da60e
Increased a default size of the lock table, after discussion with Nickolay.
2003-10-03 10:38:06 +00:00
skidder
235db035ce
Ok, i'm joining Firebird destruction team with my cleanup:
...
1. Bring trace DSQL, DYN and BLR trace logging up-to-date
2. Remove redundant CSB pointer dereferences in BLR parser and request compiler
3. Convert RIGHT JOIN to LEFT JOIN early during BLR parsing
4. Check BLR syntax for unititalized contexts usage
5. Some type-safety and const-correctness fixes
2003-09-28 21:36:05 +00:00
dimitr
6d6dae9295
Changed license of some files by Mark and myself.
2003-09-26 14:13:15 +00:00
skidder
bb1322a582
Correction
2003-09-16 21:45:47 +00:00
skidder
7873287ef3
Implement Firebird::Semaphore class for Windows and POSIX.
...
Those platforms which do not have POSIX semaphores (Solaris ?) may need to
implement this class using BSD or SYSV stuff.
2003-09-16 20:45:31 +00:00
brodsom
8fb3d96c84
Fix for MINGW build
2003-09-13 09:25:57 +00:00
brodsom
40fe35f036
Provisional quick fix for broken msvc 6 build with last Nickolay commit. To be reviewed by N.
2003-09-13 01:12:45 +00:00
skidder
349bbbd4f8
Mark volatile vars as such.
...
Add API to get current lock status for Win32 RWLock
2003-09-11 21:26:20 +00:00
skidder
77b17de987
NBACKUP-related changes and some clean-up
2003-09-08 20:23:46 +00:00
aafemt
7ba617f704
removing word 'struct' from variable declarations as obsolete
2003-08-26 10:58:06 +00:00
skidder
6f2c2095ae
Fix kernel memory leak
2003-08-21 22:30:20 +00:00
skidder
3bb31b8fa9
Change header comment
2003-08-13 11:01:40 +00:00
skidder
f3348c4502
Apply FreeBSD patches by Tomas Skoda
2003-08-11 11:21:21 +00:00
skidder
ce78ed1f1d
1) Make NBACKUP happy on Win32 CS too.
...
2) Fix tracking of OWN_hung in Win32 CS lock manager (lock-up debugging aid)
3) Fix possible unsynchronized access to memory manager in Win32 CS builds
and client library. Have shown itself as a very rare crash of Win32 CS manager
process during its startup.
4) Reduce warnings a little
Points 2 and 3 need to be backported to B1_5_Release
2003-08-10 15:43:23 +00:00
brodsom
408f1feb79
Fix cast warnings
2003-08-09 19:20:02 +00:00
brodsom
d417781e3e
Patch msvc6 after Nickolay changes
2003-08-08 00:38:25 +00:00
brodsom
b403a34bca
Error patch, void function should not return a value.
2003-08-07 23:20:25 +00:00
skidder
c6a8ffcc5f
New backup technology seems to work on Windows SuperServer now.
...
At least I can run 400MB AS3AP benchmark on it and lock/unlock/backup
database during this process.
2003-08-07 21:48:54 +00:00
skidder
84bfde306d
Win32 engine builds and seems to work
2003-08-06 18:06:22 +00:00
skidder
0fff6a0150
Correction
2003-08-06 17:21:10 +00:00
skidder
e17f9dea02
Make the inferior MSVC7 compiler happy
2003-08-06 16:55:17 +00:00
skidder
143f8d2443
Implementation of fast physical incremental backup
2003-08-06 16:30:49 +00:00
dimitr
9644f06f00
Removed warning for fbembed
2003-07-08 11:49:02 +00:00
dimitr
ffc209d9dc
Fixed typo.
2003-07-05 12:45:55 +00:00
dimitr
ef9fb69fa9
1) Cleanup
...
2) Some changes for the embedded server
2003-07-05 12:13:17 +00:00
dimitr
e6f62d4056
Fixed win32 build
2003-07-04 12:19:55 +00:00
dimitr
f765ec326c
Renamed environment variable. Fixed one temp-related crash.
2003-06-25 07:45:00 +00:00
dimitr
318d501392
Fixed manual TCP port assignment.
2003-06-25 07:39:04 +00:00
kkuznetsov
8ba963241a
Trying to make FB2 compiler independant add prefix for SUN C compiler and fix fist compilation error
2003-06-20 17:55:31 +00:00
dimitr
1bf11a67bd
Fixed the config option.
2003-06-19 18:13:26 +00:00
alexpeshkoff
db39682f9a
Added support for case-sensitivity in path's comaparison according to OS requirements.
...
Use it in config_file & dir_list
Now in win32 one may write: DatabaseAccess=ReStrIcT c:\HiSpAtH
2003-05-30 12:17:47 +00:00
alexpeshkoff
5c2341a427
Fixed problem with fbclient on 9x
2003-05-22 06:39:54 +00:00
alexpeshkoff
ae920fc330
For BootBuild don't give any diagnostic for missing firebird.conf.
...
For wrong firebird.conf - standard diagnostic.
2003-05-08 10:31:19 +00:00
skidder
142bd2b320
No more messages about forbidden usage of global operator new in DEV_BUILD. C++ library from RH8.0 does that routinely and this causes crashes because stderr messages go to TCP socket from fb_inet_server
2003-05-07 11:13:55 +00:00
dimitr
cdb3f8e2fd
Since CS doesn't lock processes while waiting for incoming aux connection,
...
it's potentially dangerous to use one definite port for event processing.
2003-05-07 07:51:27 +00:00
dimitr
6679e2575c
Corrected default value, as suggested by Nickolay.
2003-05-07 07:25:38 +00:00
dimitr
61195b72ae
Changed default value.
2003-05-06 15:04:57 +00:00
alexpeshkoff
2c3384885d
Enable spaces & tabs in directory list
2003-05-05 12:26:37 +00:00
skidder
90700fe81d
Fix compiler warnings
2003-05-05 11:55:34 +00:00
alexpeshkoff
b75b326fdf
Preprocessor cleanup
2003-05-05 10:45:10 +00:00
dimitr
cf54a1f284
Bugfix
2003-05-01 13:28:46 +00:00
dimitr
da728b793f
Temporary directory management
2003-05-01 12:20:40 +00:00
dimitr
0c60a69e3a
Temporary directory management
2003-05-01 11:35:15 +00:00
alexpeshkoff
2b9cbcdc7f
Don't execute any constructors / destructors for elements of class T
2003-04-26 10:08:11 +00:00
alexpeshkoff
94b3140b2a
Added dynamic arrays support
2003-04-25 14:47:10 +00:00
alexpeshkoff
2af60e8991
Exit on missing / wrong firebird.conf with error report in system log
2003-04-19 16:46:24 +00:00
alexpeshkoff
54acfce2fb
Restrict UDF access via UdfAccess entry in firebird.conf
2003-04-12 16:34:26 +00:00
alexpeshkoff
e27219f2e9
Directory access restrictions don't apply now to BOOT_BUILD
2003-04-12 10:24:39 +00:00
aafemt
b3436b5cd7
STATUS -> ISC_STATUS
2003-04-10 06:32:58 +00:00
alexpeshkoff
4425587591
Removed g++ warnings
2003-04-07 15:48:55 +00:00
alexpeshkoff
7b899d99f0
New style of files access configuration
2003-04-06 15:01:30 +00:00
alexpeshkoff
ec88146136
Code cleanup
2003-04-06 09:08:58 +00:00
alexpeshkoff
d982d224fe
Enabled up-dir access for fully opened filesystem
2003-04-03 13:32:28 +00:00
alexpeshkoff
ff5b7feba5
Fixed use of / and c:\ in directories list
2003-04-02 15:14:14 +00:00
brodsom
20da14459f
- Avoid signed-unsigned comparison
2003-04-02 11:14:29 +00:00
alexpeshkoff
33f5f01622
Added DatabasesDirs parameter to firebird.conf.
...
Databases may be accessed only in trees, listed there.
For compatibility reasons, default = /
2003-03-31 17:41:18 +00:00
alexpeshkoff
45ad6a1bda
External files access restriction cleanup
2003-03-23 16:50:54 +00:00
alexpeshkoff
dc5b1d5cb2
Added required comments
2003-03-17 18:01:17 +00:00
alexpeshkoff
40432510b4
Fixed names and default value for EXTERNAL_TABLES_DIRS config parameter
2003-03-17 17:57:58 +00:00
alexpeshkoff
858c958da6
Small posix fix
2003-03-15 20:20:42 +00:00
alexpeshkoff
70c9d082ba
Now external tables are checked against directories list
2003-03-15 20:20:41 +00:00
alexpeshkoff
90d86726c8
Add new config parameter
2003-03-15 20:02:39 +00:00
dimitr
b082df8ff7
New config options.
2003-03-11 14:57:08 +00:00
brodsom
4051c36d57
Restore inlines
2003-02-25 01:11:29 +00:00
brodsom
89702f3e88
Restore inlines
2003-02-25 00:05:06 +00:00
dimitr
bdb6d25a3b
Committed Mike's introduction of short-circuit boolean evaluation.
2003-02-21 09:17:03 +00:00
eku
b3eed24737
XPG defines that prototypes for malloc/free have to be defined in stdlib.h.
...
malloc.h is deprecated - removed.
2003-02-20 06:36:40 +00:00
brodsom
9d2e89e69f
Warning control from autoconfig_msvc.h
2003-02-17 13:28:17 +00:00
dimitr
2f8df3c1a5
New config values for win32.
2003-02-16 18:58:56 +00:00
dimitr
567e575ff4
Fixed config error.
2003-02-16 13:26:53 +00:00
brodsom
8bdf295e25
Change build system to move warning control to only one header for each compiler
2003-02-16 11:39:22 +00:00
brodsom
01681a01dc
Move function definition from header to cpp and remove inline.
2003-02-16 00:20:30 +00:00
bellardo
7594e8b7b3
Added some of the "inlines" back. If the functions are really not meant to be inlined they need to be moved from the header file to an appropiate source file, and their declarations placed in the header file. Otherwise we get an overabundance of multiply defined symbols.
2003-02-13 23:39:49 +00:00
bellardo
609150281d
add a configure check for malloc.h
2003-02-13 22:49:20 +00:00
brodsom
45efaaa7e0
Remove inline keyword.
2003-02-13 22:49:16 +00:00
dimitr
e9c9394670
Fixed exception handling.
2003-02-13 13:44:44 +00:00
brodsom
33a205d0c1
Remove warning 'static is not at beginning of declaration'
2003-02-13 02:21:10 +00:00
brodsom
6fb3e5ec4c
Remove warning 'declaration shadows a previous local'
2003-02-13 02:19:14 +00:00
tamlin
08d027e94d
Print warning messages to stderr instead of stdout
2003-02-12 19:36:27 +00:00
brodsom
6f0922e049
Add newline at the end
2003-02-09 11:22:10 +00:00
brodsom
e0a4ac9778
Make default parameters values for non forced writes mode depend on the platform
2003-02-07 12:58:30 +00:00
brodsom
d816e112ed
Change non FW mode time parameter value.
2003-02-05 23:28:44 +00:00
brodsom
9a9894094f
New config parameters to control non forced writes mode.
2003-02-05 14:32:21 +00:00
dimitr
0ce8652f60
Moved allocator functions back to GDS. MemoryPool is no longer exported.
2003-02-04 20:18:36 +00:00
dimitr
fb6a63fe58
Fixed bug in the memory manager. We shouldn't use the uninitialized pool. gpre_boot no longer crashes.
2003-02-04 11:18:17 +00:00
dimitr
37fa82834a
Fixed my latest commit.
2003-02-02 16:01:12 +00:00
dimitr
a80e3e0d84
1. Applied singleton-instance idiom to the config manager. It costs just a few CPU cycles, so doesn't affect the performance.
...
2. A bit changed two config entry names.
2003-02-02 15:20:02 +00:00
dimitr
81cbb8bb78
Reduced memory usage.
2003-02-02 13:09:55 +00:00
dimitr
df03c555ec
Fixed win32 CS build.
2003-01-31 07:44:03 +00:00
skidder
427ae39e57
Fixed a couple errors Mike Nordell pointed at
2003-01-30 18:05:34 +00:00
dimitr
81d3885bcc
Fixed the errors pointed out by Mike.
2003-01-30 13:26:16 +00:00
eku
9de51efd26
Dmitry Yemanov:
...
Right now locks.h is used by the memory manager only. In its internals you
can find that SS uses Spinlock class whilst CS uses SharedSpinlock (which is
just a dummy now). So I think everything except SharedSpinlock should be
#ifdef'ed with SUPERSERVER in locks.h. The only doubt I have is a SOLARIS
check there (is it related to SS or CS?).
2003-01-29 10:16:21 +00:00
dimitr
93246b6445
Fixed linkage issues on win32.
2003-01-27 11:47:04 +00:00
dimitr
733e45cf0d
Cleanup.
2003-01-21 12:19:32 +00:00
dimitr
4b3f6190c2
Cosmetics.
2003-01-21 11:08:59 +00:00
alexpeshkoff
a4b1cb5c34
Make Spinlock Win95 compatible
2003-01-20 18:38:34 +00:00
skidder
e12957d7bc
Fixed engine compilation problem on GCC3.2.1
2003-01-20 14:31:20 +00:00
dimitr
5dabda9323
Fixed dump of the memory usage stats.
2003-01-20 08:40:02 +00:00
kkuznetsov
348ac71b37
Dummy inplementation of Spin-Lock let me return to compiling on Solx86
2003-01-19 18:32:23 +00:00
skidder
884c38d6c4
Memory manager changes - added memory usage stats, empty extents are now deallocated
2003-01-18 21:45:24 +00:00
dimitr
8de1ee6484
Removed compiler warnings.
2003-01-18 18:43:52 +00:00
dimitr
65046f123a
Undone.
2003-01-18 18:02:12 +00:00
dimitr
6b8a306f79
Expose routines for allocation from system. Various temp buffers shouldn't go through the pool implementation.
2003-01-18 14:56:21 +00:00
dimitr
c9ed6efc7f
Fixed problems with the memory manager. Oddly enough, but the server seems to work ;-)
2003-01-17 09:59:59 +00:00
dimitr
30f685d014
Fixed a typo.
2003-01-17 06:41:40 +00:00
skidder
ba5e11b15c
Integrate new memory manager into the engine
2003-01-16 17:47:10 +00:00
dimitr
6bfbf2676b
New config values.
2003-01-15 14:10:07 +00:00
alexpeshkoff
4047237a50
Added config file parameters, controlling threads' priorities scheduler
2003-01-12 15:33:00 +00:00
skidder
4bdbf2a9c2
Little fixes in MemoryPool implementation
2003-01-10 21:37:18 +00:00
dimitr
1c1c5a8bc4
Fixed MemoryPool implementation.
2003-01-10 12:27:57 +00:00
skidder
32ecfff5b2
Prepare new memory manager for integration into the engine core
2003-01-09 19:47:46 +00:00
skidder
1a44760aed
Further class library development. Added memory pool locking and line number allocation information
2003-01-07 16:35:10 +00:00
alexpeshkoff
f138cb4f22
Make it compile with MSVC6
2003-01-06 17:35:21 +00:00
skidder
77761a16b9
Further class library development. MemoryPool works now
2003-01-03 16:03:30 +00:00
nmcc
bb53a90315
Use system system anon mmap on Solaris where supported ie: >= Solaris8
...
otherwise use orginal FB1 version.
2002-12-30 15:46:46 +00:00
dimitr
a104ed6217
Changed default values.
2002-12-23 15:50:59 +00:00
skidder
0ec1e9f4c4
Further class library development
2002-12-17 19:42:25 +00:00
skidder
268f131ad9
Further class library development
2002-12-16 18:33:54 +00:00
skidder
9872002a7d
First little pieces of new Firebird class library implementation
2002-12-14 21:43:18 +00:00
dimitr
e61f297681
More usage of the new config stuff.
2002-12-07 13:49:37 +00:00
dimitr
48919f19aa
More usage of the new config stuff.
2002-12-07 13:27:12 +00:00
dimitr
d6d6ec46c2
More usage of the new config stuff.
2002-12-06 21:12:59 +00:00
dimitr
153f31323c
More usage of the new config stuff.
2002-12-06 12:34:43 +00:00
dimitr
a280bdfa84
Corrected config implementation.
2002-12-06 12:04:39 +00:00
skidder
5187fa6c44
Added configuration parameter to enable older parameter ordering behavior
2002-12-03 13:37:06 +00:00
eku
39e296192c
Removed inconsistencies pointed out by Claudio Valderr.
...
Replaced 'defined(__osf__) && defined(__alpha)' with 'SIZEOF_LONG == 8'.
New macro FB_NELEM calculates the number of elements in an array.
2002-12-02 08:25:23 +00:00
skidder
db3692790b
New changes by Dmitry Emanov. Configuration manager and Windows build environment improvements
2002-11-30 15:08:09 +00:00
dimitr
1b403e830c
Avoid redundant "best fit" lookup after a pool has been extended.
2002-11-24 10:22:33 +00:00
dimitr
cdfa6e3d6a
All pool extends passed from the external world are in bytes, not in allocation units.
2002-11-23 18:26:09 +00:00
dimitr
b6ed8189d6
Applied patch for config_file.cpp. Thanks to Pirtea Calin Iancu.
2002-11-22 09:02:47 +00:00
dimitr
f4fa3edc7c
Fixed alignment bug in the memory manager.
2002-11-20 09:50:25 +00:00
dimitr
035aa9eca1
Fixed a couple of bugs in the memory manager. Now we're fast again.
2002-11-16 13:59:59 +00:00
dimitr
201666c3a0
Having duplicated names is not a good practice.
2002-11-16 10:56:49 +00:00
alexpeshkoff
81b3d5593e
Added 2 new exceptions
...
Cleanup
2002-11-11 18:06:01 +00:00
dimitr
8a5afa8bd0
Guardian option is added to the config manager.
2002-11-10 13:41:20 +00:00
dimitr
2184b8887f
Allowed root directory to be overriden in the config file.
2002-11-10 09:48:23 +00:00
dimitr
9a02a2271c
New configuration manager.
2002-11-03 16:26:12 +00:00
kkuznetsov
e8bf5420cf
And link mmap_anon hear
2002-10-30 14:47:32 +00:00
seanleyne
0b82f4aa07
Removed obsolete "Netware" port
2002-10-30 06:40:58 +00:00
stryqx
ee9fb4e427
Add FreeBSD support.
...
This allows me to compile CS on FreeBSD 4.7 using gcc 3.2.1.
2002-10-12 04:16:32 +00:00
skidder
6d64014e57
Changed engine to store source file name/line number information for EVERY allocation when DEBUG_GDS_ALLOC is defined. All allocation should be done using FB_NEW or FB_NEW_RPT macros instead of keyword new since now
2002-09-25 17:12:16 +00:00
kkuznetsov
081b9cb96b
fixed some compile errors
2002-09-25 11:12:48 +00:00
eku
6380cea068
Removed compiler warnings. Fixed more SIG_FPTR issues. Use GNU C to check
...
format strings against arguments.
2002-09-24 12:57:10 +00:00
skidder
4b3d0d5134
Added FB_NEW macro
2002-09-23 18:02:00 +00:00
skidder
a0baf24859
gds__alloc_debug stores line number information in the memory pool
2002-09-23 15:08:19 +00:00
skidder
4653efb133
Added file name/line number information to debug memory manager. Dumps memory state to memdebug.log on exit
2002-09-22 20:41:55 +00:00
skidder
9a22d2191a
resoled some linux build issues, warnings
2002-09-11 19:37:30 +00:00
skidder
c5f9e72d1a
Fix compiler warning
2002-09-10 18:24:20 +00:00
skywalker
d89b1a0842
Changes to make fb2 compile super version for linux
2002-07-29 15:37:59 +00:00
dimitr
435955e527
Some minor changes
2002-04-29 10:57:05 +00:00
bellardo
e323453f5e
File to hold our custom exception class implementation.
2002-04-04 05:33:01 +00:00
bellardo
79176130d7
Someone (who shall remain nameless) committed this file with red zones enabled.
...
As these tend to be a drag on performance I decided to disable them.
2002-04-03 23:35:29 +00:00
bellardo
0ad219a8f4
Updated delete operators to accept a null pointer to delete as required by c++.
2002-04-02 05:42:38 +00:00
dimitr
257c13284f
Fixed a compilation error in the release mode
2002-02-25 10:12:21 +00:00
skywalker
a887af3646
Changes to make it compile on linux.
...
and work through a few issues.
2002-01-04 11:34:22 +00:00
tamlin
5ae485f0b5
cleaning up
2001-12-29 11:41:29 +00:00
tamlin
e48b2468d7
MemoryPool work
2001-12-28 05:16:31 +00:00
tamlin
6b0113844e
New C++ memory pool
2001-12-24 03:02:42 +00:00