robocop
2443e89368
const madness.
2008-02-28 09:29:50 +00:00
dimitr
43cdea942f
Misc by Dmitry Kovalenko.
2008-02-27 05:56:47 +00:00
robocop
e9e1ead67a
Mostly style, constness, native memcpy and explicit constructors.
2008-02-02 17:04:06 +00:00
asfernandes
6e88cb9598
Misc
2008-02-01 17:33:14 +00:00
alexpeshkoff
a4aac986f8
Make syslog interface as light as possible
2008-01-31 12:05:08 +00:00
dimitr
132176a475
Major synchronization changes. Description of the commit will be posted to fb-devel.
2008-01-26 12:52:51 +00:00
alexpeshkoff
39896cb955
Fixed CORE-1671: atexit() calls in client libraries cause segfaults
...
and CORE-1079: Every attach of fbclient/fbembed library leaks 64KB of memory
To do it:
- created new template GlobalPtr, controlling access to destructors of global objects.
- applied it to global objects.
Also some related cleanup.
2008-01-23 15:52:40 +00:00
alexpeshkoff
c04971857d
make it compile
2008-01-16 10:37:12 +00:00
dimitr
d4d587d155
The merge continued.
2008-01-16 08:16:36 +00:00
paulbeach
c559e5f49c
Apply MacOS changes to HEAD
2007-12-20 12:40:51 +00:00
asfernandes
54b36766c0
Misc
2007-11-17 00:38:16 +00:00
paulbeach
7602a29b94
HPUX Port
2007-11-12 14:26:44 +00:00
alexpeshkoff
edc03201ca
Fixed CORE-1537: NBackup creates difference file in bad place
2007-10-26 13:21:16 +00:00
alexpeshkoff
49a9f8a5bd
frontported: cleaned old unused hpux's union fcntlun
2007-10-11 11:20:35 +00:00
asfernandes
61a614c878
Misc
2007-10-06 19:08:50 +00:00
alexpeshkoff
ba2777b26d
style
2007-10-02 12:13:46 +00:00
asfernandes
f7e8bd1ff0
Misc
2007-10-02 01:53:12 +00:00
dimitr
0e6c8c9abe
Moved the engine checkout/checkin logic from CCH to PIO. This allows to avoid hacks like usage of SCH_check_thread_enter().
2007-09-25 11:47:39 +00:00
alexpeshkoff
fd52a5793f
1. Fixed CORE-1476: On linux forced writes do not work.
...
2. Uncommented and tested PIO_init_data(), optimizing performance with force writes.
2007-09-24 12:38:04 +00:00
hvlad
e369c6cec6
Avoid pissible thread-safety problems. Thanks for tip to Adriano
2007-09-19 11:56:27 +00:00
asfernandes
96a6ad5863
Misc
2007-09-19 01:46:45 +00:00
hvlad
6f28a5ea71
Posix implementation of PIO_init_data (for CORE-1469). Commented until verification
2007-09-18 15:28:23 +00:00
alexpeshkoff
3a4da4dfe2
Fixed 64-bit I/O on Solaris
2007-08-30 15:14:56 +00:00
alexpeshkoff
9257344ebc
Take care about posix SS
2007-08-17 07:20:44 +00:00
robocop
bcbf35c64c
Misc.
2007-08-12 05:22:59 +00:00
alexpeshkoff
230cbdb4e1
Made classes SignalInhibit and AstInhibit async signal safe.
2007-08-10 13:55:41 +00:00
alexpeshkoff
f00081e560
Misc cleanup
2007-07-26 08:05:58 +00:00
asfernandes
6beb5e28bd
Misc
2007-07-26 01:23:18 +00:00
hvlad
6cd3900a9f
Implement CORE-1381 : Allow Firebird to not use filesystem cache for database files
...
Implementation in unix.cpp is experimental and commented out (calls of posix_fadvice) until testing
Cleanup in winnt.cpp : removed fil_force_write_desc
2007-07-25 18:44:54 +00:00
alexpeshkoff
ea8ba3370d
Cleaned up mutexes - removed MUTX_T and related macros
2007-06-06 12:37:24 +00:00
hvlad
42fedd1c0e
PIO_act_alloc and PIO_max_alloc moved into PageSpace static metods
2007-05-22 11:52:23 +00:00
dimitr
8dd6b78150
A better fix for the previous issue. This time it doesn't crash on DROP DATABASE :-)
2007-05-21 07:42:53 +00:00
alexpeshkoff
5f26dc1b0f
misc
2007-05-18 07:28:19 +00:00
dimitr
50d6cc88c6
Fixed CORE-1265.
2007-05-17 10:19:53 +00:00
dimitr
bc7c4d0054
Added remote process name to the monitoring data. Applications are allowed to override this value via DPB.
2007-05-16 07:54:33 +00:00
alexpeshkoff
e26228270f
1. avoid code duplication defining arg_string
...
2. fix posix build
2007-04-27 09:20:17 +00:00
hvlad
29ab1ca027
Implement CORE-1229 : Teach Firebird to allocate disk space by more than one page at a time
2007-04-25 21:08:57 +00:00
dimitr
d3ae3fef1c
Front-ported fix for CORE-1139.
2007-03-09 07:59:05 +00:00
alexpeshkoff
dfef55e991
Fix for CORE-968 - Assertion failure in posix/isc_ipc.cpp
2007-02-22 16:47:39 +00:00
alexpeshkoff
d66281291f
1. Make classic server close shutdown normally when killed by signals 2 & 15.
...
2. Don't leave running instances of fb_inet_server after database shutdown.
3. To make all this possible - reworked Y-Valve in general.
2007-01-20 14:45:45 +00:00
dimitr
4d4f2ade7a
Misc (64-bit related)
2006-10-29 14:16:29 +00:00
asfernandes
49bc38cc61
Misc
2006-10-10 03:39:22 +00:00
alexpeshkoff
3ed7326ec1
Fixed CORE-87
2006-10-09 12:36:39 +00:00
alexpeshkoff
f479684d8b
each file must have firebird.h included
2006-07-26 09:27:01 +00:00
robocop
a5df2e453d
I prefer a clearer and specific way to ensure our paths end on a valid directory separator.
2006-06-02 08:46:28 +00:00
dimitr
7cc12e8489
1) Reworked memory management in SORT. Now we're pools aware there.
...
2) Reworked error handling in SORT and its callers.
3) Replaced DLS+SortMem with the generic TempSpace class.
4) Replaced GDS temp file management with the TempFile class.
5) Various cleanup.
2006-05-31 08:53:00 +00:00
asfernandes
1dcdd0d3ca
Misc
2006-05-25 03:15:53 +00:00
robocop
e2fdae8f16
Use the same code as in the Windows version.
2006-05-24 09:25:47 +00:00
dimitr
211645e3dc
Getting rid of the old allocator routines.
2006-05-23 10:17:00 +00:00
alexpeshkoff
2098784f54
fix posix build after introducing PageManager
2006-05-22 11:42:16 +00:00
robocop
e77a46b011
Misc.
2006-05-20 03:55:54 +00:00
asfernandes
292ad66e96
Misc
2006-05-20 01:53:51 +00:00
alexpeshkoff
b056a118b5
1. Avoid use of STL
...
2. Reworked exceptions to make status_exception always hold correct status vector
3. Avoid use of RTTI
2006-05-19 15:17:02 +00:00
alexpeshkoff
e7d631bb3c
make syslog messages visible on terminal
2006-03-06 10:40:37 +00:00
robocop
10cb928ddc
More cleanup.
2006-02-23 06:52:25 +00:00
robocop
1f84bac700
Mark unused data members, discover more code associated to conditional compilation, clean some places, replace custom loops by memcpy and memset when possible, etc.
2006-02-23 05:08:26 +00:00
robocop
be217fd37a
Agreed with Dmitry: when we are reporting an error, we don't know how critical it is. No need to copy/clone the string and risk more failures, since we don't need to change it to send it to the operating system.
2005-12-25 04:38:51 +00:00
robocop
faeb758d79
Totally misc.
2005-10-30 02:29:11 +00:00
robocop
65f567f88e
Totally misc.
2005-10-29 03:46:23 +00:00
alexpeshkoff
058a0d23f3
Retry when system call is interrupted
2005-10-28 15:18:03 +00:00
robocop
c36feebdf8
Misc.
2005-09-22 06:14:36 +00:00
alexpeshkoff
ca6d4b1876
slightly better diagnostics
2005-09-15 16:42:34 +00:00
alexpeshkoff
32f7848c15
removed marker file related code
2005-09-12 11:14:59 +00:00
alexpeshkoff
e832cd2c68
fixed BOFs in PIO functions
2005-09-08 16:41:56 +00:00
dimitr
6430c7ac10
Moved the ODS checking routine from ods.h to a separate module.
2005-08-16 13:39:26 +00:00
alexpeshkoff
ccdb2e6ad2
fixed posix build after ODS parser changes
2005-06-27 12:26:36 +00:00
asfernandes
59213efe7e
Merge INTL branch into HEAD
2005-05-27 22:45:31 +00:00
robocop
8b573aa0da
Change the license with Mark's permission.
2005-01-12 04:22:32 +00:00
robocop
24742873ad
fb_string.h is moved to common/classes.
2004-12-17 05:41:47 +00:00
robocop
f550ca480f
Misc.
2004-12-09 02:53:19 +00:00
robocop
ecf2979c6e
Putting the license on John's files after asking him for permission.
2004-12-08 04:14:05 +00:00
robocop
014d90ff59
Misc.
2004-12-08 04:12:26 +00:00
robocop
4e3860e04a
Misc.
2004-12-06 10:17:00 +00:00
robocop
af6a16107a
Misc.
2004-11-30 06:18:39 +00:00
alexpeshkoff
daa112c705
replaced platform-dependent SHA1 with in-tree sha.cpp
2004-11-14 18:09:14 +00:00
alexpeshkoff
19b790777a
added related feature - platform-dependent random genearator
2004-11-14 18:03:11 +00:00
alexpeshkoff
3bd02ee852
security fix
...
1. Use SHA1 hash instead of ENC_crypt.
2. Disable any remote (non-embedded) access to security.fdb.
3. Use services in gsec and isc_*_user() fucntions.
In gsec switch -database replaced with -server.
4. Protect from attempts to brut-force accounts/passwords.
2004-11-07 14:50:53 +00:00
alexpeshkoff
73c3fc3e51
1.fixed problem with double-opened databases on LanMan mounted disk.
...
might cause database corruption.
2.more active use of Firebird::string in isc_file.cpp
2004-11-07 14:43:29 +00:00
robocop
25f115b66e
Closing several possible buffer overruns.
...
Alex is expected to overwrite my changes in isc_file.cpp.
2004-10-08 04:48:02 +00:00
skidder
e0ac81de4a
Introduce concept of ODS type to be able to distinguish between Interbase databases, Firebird databases, databases created by debugging builds of Firebird and private forks
2004-08-23 20:44:49 +00:00
robocop
72cf23fc94
Try to complete my undoing of the ods.h changes, aided by by Treeve Jelbert.
2004-07-10 09:26:28 +00:00
skidder
593fc58ccb
Change license for source files which I wrote
2004-06-30 01:45:18 +00:00
brodsom
1aa7b9452c
Looking for extra ; at namespace declaration end
2004-06-13 23:45:02 +00:00
alexpeshkoff
1591a54e5e
Thread cleanup:
...
1. Added macros to declare thread entrypoints
2. THD_mutex_* functions use Firebird::Mutex
3. Thread local storage use fb_tls.h
2004-06-08 13:41:08 +00:00
robocop
1332d98618
Literal strings should be treated as const char*
2004-06-05 09:37:18 +00:00
brodsom
9affafec6b
Finishing the api cleanup
2004-05-29 13:34:54 +00:00
brodsom
64c1dee04e
-Use C++ struct declaration style.
2004-05-24 17:31:47 +00:00
brodsom
f4ca41fa3d
-Replace *_thread_data macros with inline functions (jrd step 1)
2004-05-22 14:28:54 +00:00
brodsom
68cb86b274
- Remove *_THREAD_DATA definitions from thd.h, are unneeded and conflicts with definitions in providers/services main headers (which need to use undef).
...
- Use different names for each service/provider *_THREAD_DATA macros.
2004-05-19 18:14:29 +00:00
brodsom
725e073f1c
rename local macro to ease cleaning
2004-05-15 00:59:29 +00:00
brodsom
b485996fa8
Macro cleaning
2004-05-13 23:20:50 +00:00
brodsom
ef3f5f1911
Rollback until I found a better solution.
2004-05-07 07:19:48 +00:00
brodsom
ce7a5ced08
-Macro cleaning
2004-05-06 22:11:24 +00:00
skidder
43cb0d1ce4
Y-Valve handle translation layer
2004-05-02 23:06:37 +00:00
brodsom
d44cc660ab
Comment unused macros
2004-05-02 22:50:48 +00:00
brodsom
a549091c94
- Split sqlda.h to avoid duplicated definitions between ibase.h and sqlda.h
...
- Replace define for constants
- Remove contants.h where not used.
2004-04-30 22:47:16 +00:00
brodsom
0daa189563
Removing ib_stdio.h
2004-04-28 22:36:29 +00:00
skidder
8bb5ed0e96
Fix problem with 64-bit SS NPTL builds
2004-04-20 05:57:31 +00:00
robocop
1824343930
Cleanup.
...
Fixed a linking error with MSVC6, too.
2004-03-28 09:10:30 +00:00
skidder
919395b4b0
Fix warnings
2004-03-24 05:48:12 +00:00
alexpeshkoff
88dcae12db
fixed some problems with posix debig build
2004-03-22 15:13:05 +00:00
alexpeshkoff
94d2f698e2
1. introduced Jrd and Ods namespaces
...
2. cleanup of blk* request conversions
3. fixed memory allocation in Execute Statement
*** posix build fixes ***
2004-03-20 15:45:12 +00:00
robocop
f58c769c37
Cleanup. In geeky words:
...
PandoraBox* pbox = reinterpret_cast<PandoraBox*>(&can_of_worms);
pbox->open();
pbox->flush();
Nickolay may want to undo my ods.h changes if gcc insists
in its crusade against non-PODs and poodles.
2004-03-18 05:56:06 +00:00
alexpeshkoff
5e045f18fc
fixed posix build - it's buildable now
2004-03-16 17:35:03 +00:00
skidder
c64f31b712
Fix some warnings from GCC/Linux build. Some of them were subtle errors
2004-03-12 07:00:52 +00:00
robocop
2ab1f94dd2
Cleanup
...
Some minor corrections
Second step to rename
2004-03-11 05:04:26 +00:00
skidder
39d2445f1f
This should make NetBSD happy
2004-03-08 18:06:20 +00:00
skidder
731a49149d
Use lesser common denominator when handling signals
2004-03-08 02:06:30 +00:00
robocop
e6187cecd2
Cleanup
...
Some bug fixes
Style
2004-03-07 07:58:55 +00:00
skidder
dc7aab8f9c
Fix up exception handling. Handle (do not ignore) std::bad_alloc and generic exceptions, provide syscall and error information in system_call_failed
2004-03-01 03:35:23 +00:00
skidder
ad97d0409d
Fix POSIX build
2004-02-29 05:49:03 +00:00
skidder
2c4fe73bd4
Implement new shutdown modes (single-user and full shutdown). Tested on Linux/AMD64 CS and SS
2004-02-25 01:50:40 +00:00
robocop
5c3c8abd9a
Big cleanup.
...
God have pity on platform maintainers.
I only can compile/test Win32; sorry, folks.
2004-02-20 06:43:27 +00:00
skidder
f92b39e11c
Get posix build closer to buildable state after Alex' commits, but build is still broken. It was very bad idea to commit incomplete and broken stuff into CVS, in particular, fb_string still has some rough edges, doesn't work with memory pools correctly and fb_string.cpp is just missing.
2004-02-08 18:47:47 +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
robocop
16cbc204df
Cleanup
2003-12-31 05:36:12 +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
brodsom
c5253ae8a5
-Replace gds__ constants with isc_ contants
...
-Replace codes.h with iberror.h (or remove)
-Move gds__vax_integer and gds__event_block* to alt.cpp and isc_ to gds.cpp
-Use ISC_QUAD internally
-Use isc_vax_integer internally
2003-11-11 12:19:20 +00:00
brodsom
89e8f89f86
Extern "C" cleaning
2003-11-06 03:03:36 +00:00
brodsom
ff070a16a8
Replacing assert with fb_assert
2003-11-03 23:59:24 +00:00
robocop
9ead7a37b4
const correctness
...
placed some variables in context
fixed some function signatures
closed a few possible buffer overruns
sorry to the platform maintainers, I can't verify what I did for non-Win32 builds
2003-10-29 10:53:47 +00:00
robocop
8182b6cba2
const correctness and other tasks
2003-10-16 08:51:06 +00:00
eku
b6151b52c2
SINIX-Z: POSIX stylish sigaction.
2003-10-14 13:10:05 +00:00
brodsom
2aeb693d06
extern cleaning
...
removing underscores in macros
DLL_EXPORT cleaning
2003-10-03 01:53:34 +00:00
dimitr
1452e9d828
Fixed comment.
2003-09-26 11:46:03 +00:00
eku
2762b67754
Fix for databases on raw devices:
...
Detect a database continuation file by its header page.
2003-09-25 12:12:38 +00:00
brodsom
9d5721473a
Removing SHLIB_DEFS
2003-09-22 17:56:35 +00:00
skidder
a70a93adb9
Fix license of file that I created
2003-09-10 15:09:18 +00:00
skidder
77b17de987
NBACKUP-related changes and some clean-up
2003-09-08 20:23:46 +00:00
brodsom
7fb0cd648d
-Replace NULL_TDBB, NULL_DBB with NULL
2003-09-01 11:08:30 +00:00
brodsom
cc1c1e8dfb
-Fix cast warnings
2003-08-19 01:26:54 +00:00
brodsom
d98d358edf
-Fix signed/unsigned comparison warning
2003-08-10 00:39:51 +00:00
brodsom
22b0fcb266
-Fix unused warning
2003-08-09 22:52:35 +00:00
brodsom
50d555e032
-Fix not used warning
2003-08-09 22:35:11 +00:00
skidder
143f8d2443
Implementation of fast physical incremental backup
2003-08-06 16:30:49 +00:00
brodsom
49a86dde7d
Move physical io to os specific
2003-07-14 10:35:49 +00:00
skidder
54b952ece4
Add comment
2003-05-25 00:24:23 +00:00
skidder
c5a8078d63
Allow Kylix and other tools work with local Linux CS version installed
2003-05-25 00:12:34 +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
45ad6a1bda
External files access restriction cleanup
2003-03-23 16:50:54 +00:00
alexpeshkoff
70c9d082ba
Now external tables are checked against directories list
2003-03-15 20:20:41 +00:00
dimitr
a280bdfa84
Corrected config implementation.
2002-12-06 12:04:39 +00:00
eku
390db3a3b7
Synchronised POSIX build with recent changes in the configuration manager.
2002-12-02 13:06:06 +00:00
nmcc
0c852f15ab
Fix posix builds.
2002-11-10 16:27:56 +00:00
skywalker
a91efa1ae8
Added config_root.cpp file for posix.
2002-11-05 16:49:05 +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
eku
f359a95a52
Added / replaced ifdef's around unistd.h with the define HAVE_UNISTD_H
...
generated by autoconf.
2002-08-26 12:18:16 +00:00
paul_reeves
f9b8800970
Updated code to support building under Linux. Main changes are to support the platform manager and the move of kanji.* to /intl.
2002-06-23 19:51:37 +00:00
bellardo
3f64eb0d9d
A posix (dlopen et al) implementation of the dynamic module loader
...
abstraction.
2002-04-10 04:42:52 +00:00