alexpeshkoff
017a5b6759
HPUX port
2008-12-11 10:59:26 +00:00
robocop
9f52942ab0
Style.
2008-12-02 07:09:49 +00:00
alexpeshkoff
15800b90b9
Frontported fix for CORE-2221: Attach to any DB fails after modification of access rights of security2.fdb
2008-12-01 12:38:55 +00:00
alexpeshkoff
a95079b725
In case of System V semaphores mutex_fini() no-op too
2008-11-28 11:28:12 +00:00
alexpeshkoff
d8f817b2e8
fixed posix build
2008-11-28 11:01:00 +00:00
asfernandes
cbed660d28
Misc
2008-10-28 00:16:20 +00:00
dimitr
eba2fec16c
Misc.
2008-10-24 06:22:55 +00:00
robocop
d50c65a3d9
Close some of my favorite B.O.'s since FB1. To be reviewed by Vlad.
2008-10-21 06:17:03 +00:00
robocop
43ee87b07d
Misc.
2008-10-21 04:25:49 +00:00
asfernandes
ad716e38d9
Misc
2008-10-20 23:46:46 +00:00
dimitr
fa6eaff430
An attempt to fix non-HAVE_MMAP builds. To be refactored by Alex later.
2008-10-20 14:30:20 +00:00
robocop
96b399254e
Misc.
2008-10-16 08:52:33 +00:00
alexpeshkoff
526fd5efee
Added mutex for init-file open in MT world.
...
Fixed pid initialization in event.
2008-10-12 15:03:39 +00:00
asfernandes
843df670d7
Misc
2008-10-11 02:42:01 +00:00
alexpeshkoff
e79f55708d
1. Cleanup - use Firebird::Semaphore instead of local events, removed code
...
related with local events from isc_sync.cpp.
2. Cleanup - removed unused parameter 'number of events' from ISC_event_wait()
and two unused parameters from ISC_event_init().
3. Added SYSV-semaphore based implementation of IPC to isc_sync.cpp.
This should fix CORE-2102: Firebird 2.5 does not build on MacOS (Darwin).
4. Fixed use of posic CS without (x)inetd (i.e. fb_inet_server -s).
5. Fixed (to be reviewed by Dmitry) recovery after some process death in lock manager.
2008-10-10 15:58:05 +00:00
alexpeshkoff
13a15d4bfe
1. Final fix for CORE-1964 - finished vararg cleanup in jrd.
...
2. Generic cleanup of error reporting functions all around engine.
2008-08-27 12:20:47 +00:00
hvlad
47d76f4143
Allow CS processes to share MMF's again ;)
2008-07-18 12:21:11 +00:00
dimitr
17520b6531
Corrections for the new embedded implementation.
...
Removed some embedded specifics that shouldn't be necessary once the required changes are committed.
Please note that the lock table is still per-instance, so multi-process usage is still unsafe. To be fixed later.
2008-07-14 18:14:30 +00:00
robocop
80ba24a605
Fixing the Win32 build after Alex' changes.
2008-07-06 11:03:09 +00:00
alexpeshkoff
5ac5869661
CORE-1964 - stop vararg mess when reporting errors. Use special class for it. More (ERR_post cleanup) to come.
2008-07-03 12:02:54 +00:00
asfernandes
ce4bf91533
Misc
2008-07-01 01:12:02 +00:00
asfernandes
0d31f7c8b4
Fx Linux build
2008-06-29 15:52:46 +00:00
robocop
8a77b30645
Cleanup: get rid of useless third param in ISC_unmap_file
2008-06-26 11:23:40 +00:00
robocop
d786d35f83
Misc.
2008-06-26 10:43:57 +00:00
alexpeshkoff
a2e416210b
Fixed CORE-1964: Use of 0 instead of isc_arg_end to terminate list of ERR_post's (and cousines) arguments is invalid.
...
Also cleaned up use of gds__log() in a few places.
2008-06-26 09:47:59 +00:00
asfernandes
23e4059ce5
Changed attribute name NUMERIC to NUMERIC-SORT - sugested by Claudio
2008-06-25 01:46:50 +00:00
roman-simakov
5dd400c24a
Fixed server hanging while lock table is initializing by one attachment and one previous attachment is disconnecting. Thanks to Nikolay.
2008-06-22 17:31:12 +00:00
skidder
f3bd98b5d8
In firebird 2.1/2.5 fb_lock_print was corrupting (truncating) lock table if run against non-working engine or when -F option is used. This was a regression from Firebird 2.0 for Unix platforms
2008-06-20 03:52:59 +00:00
alexpeshkoff
b9be96d37f
Applied Damyan's patch eliminating some warnings in gcc 4.3
2008-05-28 13:22:26 +00:00
dimitr
5d7d7692a0
Cleanup.
2008-05-21 18:25:55 +00:00
robocop
1cdd4e4126
Clean the sources from VC6 hacks.
2008-05-14 05:17:53 +00:00
robocop
f32d1ac819
Style.
2008-04-21 14:02:47 +00:00
asfernandes
6e59d736df
1) Fix Linux build
...
2) Misc
2008-04-11 01:38:50 +00:00
dimitr
6203ec728f
1) Enabled proper error reporting for unexpected crashes in Classic.
...
2) Attempted to make the async error handling independent from the engine.
Alex, please verify the UNIX part of my changes.
2008-04-10 09:25:48 +00:00
dimitr
afb970dba1
1) Cleanup.
...
2) Catch exceptions in AST routines.
2008-03-12 16:53:57 +00:00
asfernandes
1305691003
Misc
2008-02-28 02:43:23 +00:00
dimitr
2e4d036eed
Get rid of the Win9x/ME specifics. We don't support them anymore.
2008-02-26 11:03:09 +00:00
robocop
10d74a7642
Style.
2008-02-13 12:57:04 +00:00
dimitr
34573c2eab
Allow mixed in-process/cross-process events on Windows (like they work in POSIX).
2008-02-11 17:34:58 +00:00
dimitr
14b4079d5c
Make the routine behavior consistent across platforms.
2008-02-04 15:00:26 +00:00
dimitr
43594ed53a
Major synchronization changes. Description of the commit will be posted to fb-devel.
2008-01-26 13:17:19 +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
db16316647
typo
2008-01-17 16:17:31 +00:00
dimitr
e08c5da397
The merge continued.
2008-01-16 09:07:24 +00:00
paulbeach
c823619e92
HPUX Port
2007-11-12 15:18:49 +00:00
dimitr
60711a239e
Let's always use the explicit security attributes.
2007-11-06 12:03:57 +00:00
hvlad
8a4c649ee1
Frontport fix for CORE-1207 : FB embedded requires extra OS privileges
2007-09-16 18:46:50 +00:00
asfernandes
f676883248
Misc
2007-04-21 03:27:36 +00:00
robocop
46df6dd844
Misc.
2007-04-18 11:02:41 +00:00
hvlad
38b20de751
Restored Yaffil's fast mutex code and made thread priority adjustment for classic server
2007-04-17 21:34:22 +00:00
robocop
628a66c360
Casting a spell over the code to allow VC6 compilation.
2007-04-15 11:27:15 +00:00
asfernandes
a4ba5377d8
Misc
2007-04-12 02:27:42 +00:00
hvlad
7213cfa90d
More simple (and stable i hope) implementation of fast mutex for NT platform
2007-04-11 13:24:55 +00:00
aafemt
7cbc856a03
Fix MinGW build
2007-03-13 05:33:02 +00:00
robocop
a9b21b503d
Hack, hack, haaack!
2007-03-01 10:35:11 +00:00
hvlad
60c1b8fa61
Ported implementation of a fast mutex for NT platform from Yaffil
2007-02-27 09:59:24 +00:00
hvlad
54fd5ce4b1
Moved ISC_prefix_object_name into fb_utils::prefix_kernel_object_name to avoid a need to add isc.cpp to all projects which can read config file
2007-02-20 15:39:01 +00:00
hvlad
c0989bce8b
Fixed CORE-1031 : fb_lock_print.exe fails on windows 2003 R2 / XP SP 2
...
and CORE-1133 : XNET (IPC) communication protocol does not work across sessions
2007-02-19 13:05:27 +00:00
robocop
3156083930
Did this IB->FB change separately in case it causes problems.
2007-02-11 09:09:46 +00:00
robocop
6f5dee2b76
Paranoid reminder.
2006-12-22 08:12:30 +00:00
alexpeshkoff
9b10244f53
make CS lock manager semaphores have correct access rights
2006-04-09 15:46:46 +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
hvlad
5c46272df6
Fixed unregistered bug: fb_lock_print fails with message:
...
The requested operation cannot be performed on a file with a user-mapped section open.
2006-02-07 17:21:40 +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
alexpeshkoff
e85ee26ade
fixed gcc warning(s)
2006-01-18 10:43:13 +00:00
dimitr
9731811af3
Cleanup.
2005-09-14 18:53:47 +00:00
robocop
479daede8f
Misc.
2004-11-10 04:35:58 +00:00
robocop
e5be73b048
Misc: extra semicolons do not help. :-)
2004-11-07 10:47:20 +00:00
robocop
a6ed2f39bd
Misc.
2004-10-17 03:35:42 +00:00
skidder
645074699e
Improve firebird reliability in failure cases on Windows
2004-10-15 23:07:59 +00:00
skidder
0a7ab26423
Vlad pointed at a problem with my change. Correct it
2004-10-14 22:11:43 +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
brodsom
f4ca41fa3d
-Replace *_thread_data macros with inline functions (jrd step 1)
2004-05-22 14:28:54 +00:00
brodsom
372c3de67d
-Replace & remove unneeded threading macro in jrd.h
...
-Move more threading selection to firebird.h
-Replace POSIX_THREADS with USE_POSIX_THREADS
2004-05-22 02:11:56 +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
b76a60e8b7
Move THREAD_ functions from thd.h to thread_proto.h (and fix unix build)
2004-05-17 22:30:09 +00:00
brodsom
ee34db7e20
Macro cleaning (THREAD_*)
2004-05-15 00:58:46 +00:00
brodsom
1ffe279896
-Avoid shadow warning
2004-05-12 19:39:17 +00:00
brodsom
62a4b10c22
-Replace define with const
...
-Remove ifdef cplusplus from internal code
-Remove unused macros
2004-05-06 18:09:24 +00:00
brodsom
80b424e346
-Replace define with const
...
-Move SYS_ERR, ERRNO, H_ERRNO and INET_ERRNO(ERRNO in inet.cpp) macros to common.h
-Remove unused macros
2004-05-05 21:55:13 +00:00
brodsom
d44cc660ab
Comment unused macros
2004-05-02 22:50:48 +00:00
brodsom
5cf9fdfc90
Removing ib_stdio.h
2004-04-28 22:43:34 +00:00
skidder
af366d4f5a
Add BugcheckAbort option to produce coredumps on BUGCHECKs and structured exceptions
2004-04-06 07:25:45 +00:00
robocop
1824343930
Cleanup.
...
Fixed a linking error with MSVC6, too.
2004-03-28 09:10:30 +00:00
alexpeshkoff
7007d6f2a4
1. introduced Jrd and Ods namespaces
...
2. cleanup of blk* request conversions
3. fixed memory allocation in Execute Statement
2004-03-20 14:57:40 +00:00
robocop
2ab1f94dd2
Cleanup
...
Some minor corrections
Second step to rename
2004-03-11 05:04:26 +00:00
skidder
b6e5ccd413
Clean up.
...
1. gds__alloc doesn't throw
2. Add NOMEM handlers to a couple places
3. kill HAVE_*SNPRINTF conditionals
2004-03-09 00:17:07 +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
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
robocop
fd93837ec3
Cleanup:
...
const correctness
BOOLEAN -> bool
Vars in scope
Formatting
JRD_REQ -> jrd_req*
JRD_TRA -> jrd_tra*
JRD_REL -> jrd_rel*
JRD_FLD -> jrd_fld*
event -> event_t, EVENT_T dropped, EVENT should go in the future
Frank's corrections
alice's STR -> alice_str*
remote's STR -> rem_str*
etc.
It creates entities and backups and restores for me. :-)
2004-01-03 10:59:52 +00:00
robocop
9fafc348bf
const correctness
...
vars in scope
minimal interface cleanup
small bug fixes
2003-11-28 06:48:34 +00:00
brodsom
abe35ef6fe
-Remove unneeded setjmp header
2003-11-18 12:39:12 +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
eku
bcee67e165
Typo.
2003-10-30 10:03:22 +00:00
eku
9c114cf8e0
Detect POSIX threads support with autoconf. Some code cleanup.
2003-10-30 09:49:40 +00:00
skidder
4e8605294e
Forward port Sparc fixes
2003-10-10 23:56:57 +00:00
brodsom
2aeb693d06
extern cleaning
...
removing underscores in macros
DLL_EXPORT cleaning
2003-10-03 01:53:34 +00:00