8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 07:23:03 +01:00
Commit Graph

352 Commits

Author SHA1 Message Date
epocman
62f7a69575 Win32 instreg / instsvc now returns FINI_ERROR instead of FINI_OK when usage() function is called. This helps external automated tools to detect mistakes in parameters. 2003-09-13 13:36:41 +00:00
brodsom
08ef0025ea -Remove GDS_VAL and GDS_REF 2003-09-12 16:49:38 +00:00
brodsom
7c7c2758dc BOOLEAN cleaning 2003-09-10 17:52:12 +00:00
epocman
8f13798cdf When run as a specific user, stopping engine service stops guardian, like with FB 1.0x LocalSystem. 2003-09-10 13:26:33 +00:00
skidder
aeea27cf1d Fix engine breakage on Win32 caused by my commits. 2003-09-09 16:47:26 +00:00
skidder
77b17de987 NBACKUP-related changes and some clean-up 2003-09-08 20:23:46 +00:00
brodsom
8db51e6eba Remove unneeded extern C 2003-09-08 01:51:41 +00:00
epocman
bd0e11a7e4 Win32 - 'instsvc install -guardian -login user' now also sets the
Guardian to run as 'user'.
This is achieved by giving appropriate security rights to 'user'
on the firebird service object (instsvc utility) and fixing some
wrong security flags in the Guardian code itself.
2003-09-07 19:11:59 +00:00
epocman
e1a4fa023f Never sets NT services as 'Interactive'. Fights 'Shatter'-kind attacks.
http://www.idefense.com/idpapers/Shatter_Redux.pdf
This blocks 'local' protocol from working, but is not an issue as new XNET will replace it for FB > 1.5.
2003-09-06 10:55:56 +00:00
brodsom
2ced467c50 Move stats.epp to utilities 2003-09-04 13:47:49 +00:00
dimitr
58e25b9e8f Fixed gstat crach reported by Phil Shrimpton. 2003-09-03 07:39:03 +00:00
brodsom
8624a7c209 -Use NULL instead 0 for null pointers
-Remove unneeded casts
2003-09-01 07:58:04 +00:00
epocman
61b470557d OEM/Ansi conversions, command-line password, other minor updates. 2003-08-30 13:54:56 +00:00
brodsom
e2a0b36dbf -Remove GDS_VAL and GDS_REF 2003-08-30 01:35:29 +00:00
epocman
c2e97bdd1c Merged recent FB 1.5 instsvc / instreg changes to head branch. 2003-08-29 17:25:36 +00:00
brodsom
70c6a819ee -Remove BOOLEAN, TRUE and FALSE 2003-08-29 00:37:25 +00:00
brodsom
3b3302735b Remove BOOLEAN, TRUE and FALSE macros 2003-08-26 18:46:31 +00:00
brodsom
f16bc0a6fc Replace EXIT macro with dba_exit inline function 2003-08-26 18:43:29 +00:00
brodsom
3e9589f22e Replace EXIT macro with dba_full_exit inline function 2003-08-26 18:43:02 +00:00
brodsom
28af2fc174 Replace EXIT macro with gsec_exit inline function 2003-08-26 18:40:13 +00:00
brodsom
c610785e97 Remove BOOLEAN, TRUE and FALSE macros 2003-08-26 10:42:46 +00:00
dimitr
699e00204f Added support for "-r" and "-t" GSTAT switches to the Services API. Thanks to Vlad Horsun. 2003-08-26 07:23:58 +00:00
brodsom
81a9f3cde6 Remove BOOLEAN, TRUE and FALSE macros 2003-08-26 06:56:42 +00:00
brodsom
fdd617d49f Remove BOOLEAN, TRUE and FALSE macros
Some code formatting
2003-08-26 06:52:05 +00:00
eku
73137f9d60 Since all supported platforms provide the function strerror(), get rid of
sys_errlist[]. It's not portable anyway.
2003-08-25 07:26:39 +00:00
brodsom
37b821fc45 Replace LINE__IS_INT with LINEFORMAT 2003-08-21 16:20:06 +00:00
brodsom
e4f47f23d5 Replace LINE__IS_INT with LINEFORMAT 2003-08-21 15:40:59 +00:00
brodsom
9dfe58e60e Replace __LINE__IS_INT with LINEFORMAT and remove a few ifdefs (thanks to Claudio's question) 2003-08-20 09:35:00 +00:00
eku
4ff4800a4a Use autoconf to do it right :-) 2003-08-12 10:06:14 +00:00
robocop
e08864ed8e kill warning 2003-08-12 10:01:21 +00:00
skidder
f3348c4502 Apply FreeBSD patches by Tomas Skoda 2003-08-11 11:21:21 +00:00
brodsom
597f2a396a -Fix signed/unsigned comparison 2003-08-10 00:48:49 +00:00
brodsom
0b8c8dc735 -Fix unused warning 2003-08-10 00:41:39 +00:00
brodsom
89480fdbda -Fix format warning
-Fix unused warning
2003-08-10 00:41:14 +00:00
brodsom
e4c67fce8e -Fix comparison is always false warning 2003-08-10 00:40:42 +00:00
brodsom
c01f4f221d -Fix not defined warning 2003-08-09 22:32:39 +00:00
brodsom
2c4e6d5ac6 Patch msvc6 after Nickolay changes.
INVALID_SET_FILE_POINTER is not defined in msvc6
2003-08-07 14:00:32 +00:00
skidder
4b36922e60 Make NBACKUP tool work on Windows. Seems to work. 2003-08-06 20:01:02 +00:00
skidder
143f8d2443 Implementation of fast physical incremental backup 2003-08-06 16:30:49 +00:00
brodsom
499337fda5 Split utilities dir 2003-07-15 02:43:36 +00:00
brodsom
bcbea94f99 Move security.fdb related scripts to misc 2003-07-08 15:07:48 +00:00
alexpeshkoff
423f5b451f reject -l switch in any mode besides "install" 2003-06-19 13:47:05 +00:00
alexpeshkoff
2cddcf4ba6 security fix - added -login switch to instsvc 2003-06-11 12:00:17 +00:00
aafemt
e5146fd644 Introduce of ISC_STATUS_ARRAY 2003-04-16 10:18:51 +00:00
dimitr
9125440512 Fixed problem with start/stop commands of instsvc + some cleanup. 2003-04-15 11:15:24 +00:00
dimitr
c3fe3e8c5e no message 2003-04-13 08:44:20 +00:00
aafemt
c6fa204463 STATUS -> ISC_STATUS 2003-04-10 10:42:56 +00:00
brodsom
9225ff0235 Patch for delete void* not defined (Claudio's patch) 2003-04-09 12:45:21 +00:00
brodsom
8e4aba74b7 Utilities warning fixes 2003-04-08 10:37:19 +00:00
brodsom
4d6e757d1e Ifdef function declaration 2003-04-03 09:19:22 +00:00
brodsom
927e886d81 Correct formats 2003-04-03 01:51:03 +00:00
brodsom
e9528848f9 Correct formats 2003-04-01 11:35:44 +00:00
eku
ceb9d33c9d Changed the default extensions for databases from .gdb to .fdb
The Windows and OS X builds have not been updated yet.
2003-03-17 12:06:48 +00:00
eku
9ec2be38f4 Always use gds__prefix to find database system files. 2003-03-10 07:02:20 +00:00
brodsom
bcc4ea8f20 Use C++ cast. 2003-03-06 15:16:18 +00:00
brodsom
9432717863 Patch minGW errors and some warnings 2003-03-05 14:38:48 +00:00
fsg
e0dcb77416 Fixed some really old typos.
Included ExecuteStatement in the LINUX-Build
2003-03-02 17:47:22 +00:00
brodsom
699d81f81b Use the same ifdef for function declarations and definitions. (found with gcc never defined warnings) 2003-03-01 17:44:34 +00:00
brodsom
17632bddca Remove warnings 2003-02-20 00:10:25 +00:00
eku
796a4e4e31 Fixed more issues with pwd.h. 2003-02-19 06:14:39 +00:00
brodsom
14ce7a705b Remove W4 warnings (remains from ODS 5 and 7) 2003-02-18 11:38:40 +00:00
brodsom
a2e1f7e865 patch format 2003-02-16 11:17:36 +00:00
brodsom
523b2d1165 Remove apollo and mpe/xl remains 2003-02-15 12:51:16 +00:00
brodsom
6446f00e2f Remove csv and pipe directory and defines 2003-02-15 00:55:10 +00:00
brodsom
f0b7d4bd13 Change jrd/time.h and jrd/pwd.h to jrd/jrd_time.h and jrd/jrd_pwd.h 2003-02-14 02:14:41 +00:00
bellardo
08a1d7447f Renamed two header files that conflicted with Darwin (and presumably other *nix ) system headers: pwd.h and math.h 2003-02-13 22:38:04 +00:00
dimitr
7293a633e0 Fixed exception handling. 2003-02-13 13:09:58 +00:00
dimitr
f833079b2f CONST -> const 2003-02-13 09:33:26 +00:00
brodsom
5e63f2cecc Remove GUI_TOOLS define 2003-02-11 20:17:56 +00:00
brodsom
56e1db4070 Remove V2 dump (not used) 2003-02-11 15:32:20 +00:00
brodsom
05f9e8bda4 Remove V3 lock/print 2003-02-11 15:29:29 +00:00
brodsom
8769432b9b Remove ODS_4, gds_version3 defines. (IB V2) 2003-02-11 14:42:24 +00:00
eku
a7f18b2e31 Removed "register" variables from the source code. It's up to the compiler
to hold variables in CPU registers.
2003-02-10 13:28:35 +00:00
dimitr
96e5adf086 Cleanup. 2003-02-10 12:25:00 +00:00
dimitr
32ef458dcf Damn, my own typo caused another one. The extension should be "fdb". 2003-02-10 11:48:25 +00:00
eku
1a9a258234 Renamed isc4.gdb to security.gdb (POSIX builds) 2003-02-10 11:01:23 +00:00
brodsom
bfe648cbdf Remove unclosed comment 2003-02-09 11:21:21 +00:00
brodsom
d81b3412e1 Remove unused var 2003-02-07 09:33:05 +00:00
brodsom
84c7a47345 Correct broken includes 2003-02-07 03:43:26 +00:00
dimitr
b4dbef9633 Renamed isc4.gdb to security.gdb 2003-02-05 15:46:15 +00:00
dimitr
e7289b02b2 1. Re-designed PWD interface.
2. Implemented cached isc4 connection.
3. Cleanup.
2003-02-03 13:34:16 +00:00
dimitr
22d2ed8879 Fixed wrong memory management that caused the server to crash. 2003-01-31 12:22:55 +00:00
dimitr
4cdced566f A bit changed installation of the services. 2003-01-28 16:03:32 +00:00
brodsom
5fba445434 Patch FINISH; 2003-01-23 03:34:49 +00:00
alexpeshkoff
b8610ddefe Finished y-valve C++ conversion cleanup 2003-01-22 16:37:59 +00:00
dimitr
51305ac1ad Sigh. Yet another porting bug fixed. 2003-01-20 12:50:07 +00:00
skidder
ba5e11b15c Integrate new memory manager into the engine 2003-01-16 17:47:10 +00:00
dimitr
8973b17097 Changed services names to identify us properly. 2003-01-15 12:20:54 +00:00
skidder
9b57d8b649 Several little changes to make engine compilable again on Linux 2002-12-16 21:19:51 +00:00
alexpeshkoff
e234f46913 Rename all links to why.cpp handle to struct why_hndl * (or FRBRD *) 2002-12-16 17:01:58 +00:00
dimitr
605716f916 More usage of the new config stuff. 2002-12-07 13:32:34 +00:00
eku
310d84cc1d Fixed compilation error. 2002-12-03 11:48:03 +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
hippoman
7387e6fb70 changed nod,tra,req,trg,rel,ctx,prc struct names to local module names 2002-11-20 23:18:16 +00:00
eku
a5e9087b7f Moved the definition of NOFILE to a common place. 2002-11-18 07:57:43 +00:00
hippoman
4a76e9e4fe change TRA,REQ,TRG,REL,CTX or PRC, to module local names. 2002-11-17 00:13:59 +00:00
dimitr
5f61e44ddc Global names change:
FBOK=>FB_SUCCESS
FAILURE=>FB_FAILURE
xxx_FBOK=>xxx_SUCCESS
2002-11-14 08:33:08 +00:00
kkuznetsov
6887f405ab Renaming all occurences of SUCCESS to FBOK 2002-11-13 15:01:21 +00:00
dimitr
8a376d766b Don't use the registry, use new config manager instead. 2002-11-10 14:06:16 +00:00
eku
507b9c86c8 Do not redefine MAXPATHLEN. Always use the value supplied by the operating
system (header files).
2002-11-06 07:08:49 +00:00
eku
9fcdb74685 More status vector cleanups (ISC_STATUS_LENGTH).
Autoconf checks for xdr_hyper.
2002-11-04 13:57:18 +00:00
eku
9342d36baa Arrays that hold filenames must be at least MAXPATHLEN long. 2002-11-04 11:19:21 +00:00
seanleyne
0b82f4aa07 Removed obsolete "Netware" port 2002-10-30 06:40:58 +00:00
tamlin
ca9e6776fa const correctness 2002-10-29 16:26:24 +00:00
dimitr
ee15cf05ca Win32 classic changes. 2002-10-28 10:16:59 +00:00
seanleyne
05a126730b Completed removal of obsolete "IMP" port 2002-10-28 03:52:09 +00:00
seanleyne
829d6d32d5 Completed removal of obsolete "DELTA" port 2002-10-28 03:47:47 +00:00
dimitr
6221600707 Cleanup. 2002-10-24 15:41:54 +00:00
eku
0c1b55dd08 Code cleanup:
Since we already have the define ISC_STATUS_LENGTH for the the length of
the status vector, we should use it! Replaced 'status[20]' with
'status[ISC_STATUS_LENGTH]'.

Replaced the different symbolic names for the maximum length of a path
(MAX_PATH, MAX_PATH_LENGTH, MAXPATHLEN) with one uniq symbol MAXPATHLEN.
2002-10-24 09:01:44 +00:00
dimitr
8857a9a961 Made the codebase ready for the win32 classic builds. 2002-10-12 11:16:54 +00:00
skywalker
f35570a03b A few makefile dependancies fixed.
Started work on upgrading rpm build scripts
Fix makefiles for super build
Exchange editline for readline in isql
2002-10-07 01:29:13 +00:00
dimitr
2b2fd55e8d Added missing guardian registry entry. 2002-10-06 08:59:51 +00:00
eku
969abbb1bd Fixed coredump caused by 'array out of bounds' writes. 2002-10-04 11:06:35 +00:00
eku
fc01ef17fa Fixed merge error FB1->FB2. 2002-10-04 09:38:15 +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
9cf71556b3 Fixed the naming of some files:
interbase.msg => firebird.msg
 interbase.log => firebird.log

SINIX-Z: don't distribute build programms
2002-09-20 10:23:15 +00:00
eku
ef2ff91438 Autoconf cleanup:
o use predefined macros to test for sys/wait.h, time.h and sys/time.h
 o search strcasecmp in libresolv only if strcasecmp and stricmp are not in libc
 o use predefined macro AC_SYS_LARGEFILE to determine 64Bit I/O
 o determine the alignment of long and double (ALIGNMENT,DOUBLE_ALIGN),
   still need to write a test for FB_ALIGN!
2002-09-18 12:50:13 +00:00
eku
4eaf8c0914 Autoconf cleanup:
o since the define 'VAX' was only used to tell that the byte order is
   LITTLE_ENDIAN (it have nothing else to do with the VAX computer family)
   it can safely replaced with '!WORDS_BIGENDIAN'.
 o check if pointers are 64 bit
 o replaced HAS_64BIT_POINTERS with 'SIZEOF_VOID_P == 8'
2002-09-17 05:58:40 +00:00
eku
da93f6697f Autoconf enhancements:
o autoconf v2.53 and later is now required to generate configure
   (sorry, but it makes many tasks easier)
 o improved tests for mmap, socklen_t and offt_64
 o added tests for atexit, on_exit, (v)fork, set(p)grp, setpgid and flock
 o added test for the keyword 'volatile'
 o fixed errors in configure.in
 o updated config.h.in and autoconfig_msvc.h (the latter may be incorrect)
 o replaced VOLATILE by volatile
 o removed SETPGRP and ATEXIT
 o replaced NO_FLOCK by HAVE_FLOCK
 o SIG_FPTR cleanup
 o vfork cleanup
2002-09-11 11:30:50 +00:00
dimitr
b5a420b850 Fixed wrong size of the local variable.
Thanks to Dmitry Kuzmenko.
2002-09-10 13:38:26 +00:00
dimitr
e0d36f375f fbserver instead of ibserver. 2002-09-08 07:56:54 +00:00
eku
9d76c78d4c Fixed a typo that was introduced with the strcasecmp/stricmp changes. 2002-09-04 13:34:17 +00:00
dimitr
bd2d2debc3 Make sure we're Firebird, both interbase.msg and interbase.log are renamed. 2002-09-04 09:12:46 +00:00
dimitr
9959a4bc0d Changed the default registry key to the native Firebird one. 2002-09-04 08:18:58 +00:00
dimitr
6fe24d7c89 Some changes to make gdef, instreg and instsvc compilable. 2002-08-28 15:48:49 +00:00
eku
661d16f298 Another autoconf cleanup:
o check for the existence of the function strcasecmp and stricmp
 o replaced STRICMP
2002-08-28 06:50:33 +00:00
eku
b7b737977c Fixed GCC 3.1 compile problem with missing cast operator. 2002-08-26 13:20:05 +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
eku
db21fce19d Another autoconf cleanup:
o check for the existence of the function mmap
 o replaced MMAP_SUPPORTED by HAVE_MMAP
2002-08-26 12:10:19 +00:00
dimitr
dcea8f0ce1 Keep in-sync with Mark's changes. 2002-07-29 17:35:33 +00:00
skywalker
d89b1a0842 Changes to make fb2 compile super version for linux 2002-07-29 15:37:59 +00:00
dimitr
5351ca12c8 Oops, I forgot to add this file during the FB1->FB2 porting. Sorry. 2002-07-12 13:32:50 +00:00
skywalker
89e06a1b43 Merge final changes from fb1 tree. 2002-07-06 05:32:02 +00:00
skywalker
350b251820 Changes to get compiling on linux (post fb1 changes). 2002-07-05 15:00:26 +00:00
eku
09f74146ee SINIX-Z: fixed semaphore handling (merged from fb1) 2002-07-04 05:53:34 +00:00
skywalker
a5e7d0f929 Change the ISCGUARD_SERVICE name here rather than in the iscguard.cpp file 2002-06-29 16:59:03 +00:00
dimitr
e759de0b11 Merging changes from fb1. 2002-06-29 08:49:39 +00:00
seanleyne
525f3aaaef Code cleanup of obsolete IMP port 2002-02-16 03:27:33 +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
80f7fb6dd4 New C++ memory pool 2001-12-24 02:51:06 +00:00
seanleyne
baa3d722bf Code Cleanup, removed "#ifdef READONLY_DATABASE" conditionals, second attempt 2001-08-08 02:01:26 +00:00
bellardo
360c7ce10c Added 'STATIC' option to DB declaration line to avoid sybmol conflicts when
security.o gets included in libgds.so.
2001-08-06 21:22:59 +00:00
skywalker
13d14ab8a5 Changed makefiles to only use .o files drop the .lo files
Change security.epp to use isc4.gdb rather than original isc.gdb
2001-08-06 15:08:18 +00:00
skywalker
73591b7d17 More changes to straighten out compile, fix up makefiles to build
into GEN_ROOT directory
2001-08-01 08:11:52 +00:00
skywalker
c880d26078 Changes to make compile with new script 2001-07-31 18:34:05 +00:00
skywalker
4c4bc9a95c Global changes for new Makefile and firebird2 compile on linux 2001-07-29 23:43:24 +00:00
bellardo
6681f4852e More changes to convert FB2 to c++. This time is files that have been renamed
and some conflict resolutions on files edited by more than one person at once.
2001-07-12 06:32:05 +00:00
bellardo
747d13c0d5 Changes to bring FB2 to c++ on *nix. 2001-07-12 05:46:06 +00:00
awharrison
baa3485651 read only databases are supported unconditionally in fb2 2001-07-10 17:35:13 +00:00
tamlin
9587c717b3 ongoing cleanup 2001-05-24 14:54:26 +00:00
tamlin
9a776a604e First steps towards a C++ conversion. 2001-05-23 13:26:42 +00:00