libi2ncommon
10 years agoFix pkgconfig library dependency on boost iostreams library (newer binutils needs -l)
Thomas Jarosch [Mon, 17 Jun 2013 13:34:01 +0000]
Fix pkgconfig library dependency on boost iostreams library (newer binutils needs -l)

11 years agomake code compile with newer gcc versions too
Gerd von Egidy [Thu, 24 Jan 2013 13:24:43 +0000]
make code compile with newer gcc versions too

12 years agoTest if write_file() creates empty files, too
Thomas Jarosch [Wed, 15 Feb 2012 09:01:27 +0000]
Test if write_file() creates empty files, too

12 years agoone more time_t fix, the other functions look good
Gerd von Egidy [Fri, 10 Feb 2012 12:28:03 +0000]
one more time_t fix, the other functions look good

12 years agofix unit test for pid_of in case of systemd
Gerd von Egidy [Fri, 10 Feb 2012 12:18:23 +0000]
fix unit test for pid_of in case of systemd

12 years agomake format_full_time work on 64 bit systems too: need to use time_t and no int
Gerd von Egidy [Fri, 10 Feb 2012 10:54:25 +0000]
make format_full_time work on 64 bit systems too: need to use time_t and no int

12 years agounit test for Tribool
Gerd von Egidy [Fri, 10 Feb 2012 10:38:36 +0000]
unit test for Tribool

12 years agoadd ostream handling to Tribool
Gerd von Egidy [Fri, 10 Feb 2012 10:38:01 +0000]
add ostream handling to Tribool

12 years agoAdd support for i18n_plural(): Translation of plural forms
Thomas Jarosch [Mon, 12 Dec 2011 16:55:16 +0000]
Add support for i18n_plural(): Translation of plural forms

To recognize our custom i18n_plural keyword in poedit, use this syntax:

i18n_plural:1,2

We also need to set a "plural form" in poedit. Example for German:

nplurals=2; plural=n != 1;

12 years agoRemove i18n_get_string() function signature where we pass the 'return value' as refer...
Thomas Jarosch [Mon, 12 Dec 2011 16:35:08 +0000]
Remove i18n_get_string() function signature where we pass the 'return value' as reference parameter

Grepped whole Intranator source tree, seems to be used nowhere and this simplifies the API.

12 years agoUnit test for i18n_get_string()
Thomas Jarosch [Mon, 12 Dec 2011 16:31:33 +0000]
Unit test for i18n_get_string()

12 years agoBump .so version and project version
Thomas Jarosch [Mon, 17 Oct 2011 12:30:37 +0000]
Bump .so version and project version

12 years agoAdd 'make dist' target
Thomas Jarosch [Mon, 17 Oct 2011 12:28:17 +0000]
Add 'make dist' target

12 years agoMake IP_RANGE::resolve_ip() thread safe
Thomas Jarosch [Mon, 17 Oct 2011 12:24:20 +0000]
Make IP_RANGE::resolve_ip() thread safe

12 years agoReplace readdir() by thread-safe readdir_r() function
Thomas Jarosch [Mon, 17 Oct 2011 09:53:37 +0000]
Replace readdir() by thread-safe readdir_r() function

12 years agoReplace localtime() with thread safe localtime_r()
Thomas Jarosch [Mon, 17 Oct 2011 09:40:18 +0000]
Replace localtime() with thread safe localtime_r()

12 years agoPass some const strings by reference
Thomas Jarosch [Mon, 17 Oct 2011 09:21:07 +0000]
Pass some const strings by reference

12 years agoConstification and minimal performance improvements
Thomas Jarosch [Mon, 17 Oct 2011 09:18:03 +0000]
Constification and minimal performance improvements

12 years agoReplace bzero() with memset(). bzero() is removed in POSIX-2008
Thomas Jarosch [Mon, 17 Oct 2011 09:15:22 +0000]
Replace bzero() with memset(). bzero() is removed in POSIX-2008

12 years agoAlways initialize variables
Thomas Jarosch [Mon, 17 Oct 2011 09:13:41 +0000]
Always initialize variables

12 years agoEnable all compile warnings
Thomas Jarosch [Mon, 17 Oct 2011 09:00:40 +0000]
Enable all compile warnings

12 years agoFix wrong bracket placing (luckily the code is unreleased)
Thomas Jarosch [Mon, 17 Oct 2011 08:58:58 +0000]
Fix wrong bracket placing (luckily the code is unreleased)

12 years agoSilence compile warning about Undef not being handled in switch()
Thomas Jarosch [Mon, 17 Oct 2011 08:54:37 +0000]
Silence compile warning about Undef not being handled in switch()

12 years agoFix signed/unsigned comparison
Thomas Jarosch [Mon, 17 Oct 2011 08:50:11 +0000]
Fix signed/unsigned comparison

12 years agoFix signed/unsigned comparison warning
Thomas Jarosch [Mon, 17 Oct 2011 08:48:47 +0000]
Fix signed/unsigned comparison warning

12 years agoRemove unused variables
Thomas Jarosch [Mon, 17 Oct 2011 08:47:42 +0000]
Remove unused variables

12 years agoFix initialization order
Thomas Jarosch [Mon, 17 Oct 2011 08:46:30 +0000]
Fix initialization order

12 years agoFix initialization order
Thomas Jarosch [Mon, 17 Oct 2011 08:40:07 +0000]
Fix initialization order

12 years agoAlso update else/endif statement
Thomas Jarosch [Mon, 17 Oct 2011 08:37:05 +0000]
Also update else/endif statement

12 years agoBuild documentation optionally
Thomas Jarosch [Mon, 17 Oct 2011 08:36:19 +0000]
Build documentation optionally

12 years agoAdd required boost version
Guilherme Maciel Ferreira [Mon, 17 Oct 2011 08:31:49 +0000]
Add required boost version

12 years agoFix off-by-one buffer access
Thomas Jarosch [Fri, 23 Sep 2011 07:18:45 +0000]
Fix off-by-one buffer access

12 years agoIncrease version. Remove unused MAJOR_/MINOR_VERSION
Thomas Jarosch [Thu, 15 Sep 2011 14:22:55 +0000]
Increase version. Remove unused MAJOR_/MINOR_VERSION

12 years agoAdd initgroups() call to drop_root_privileges
Thomas Jarosch [Thu, 15 Sep 2011 14:22:32 +0000]
Add initgroups() call to drop_root_privileges

12 years agoIncrease 'libi2ncommon' version to 2.2
Thomas Jarosch [Wed, 7 Sep 2011 12:07:03 +0000]
Increase 'libi2ncommon' version to 2.2

12 years agoUse std::vector instead of std::list for active ScopeTracker management (we just...
Thomas Jarosch [Fri, 15 Jul 2011 14:59:11 +0000]
Use std::vector instead of std::list for active ScopeTracker management (we just append/delete at the end of the list all the time)

12 years agoMake ScopeTracker thread safe via TLS (thread local storage)
Thomas Jarosch [Fri, 15 Jul 2011 14:55:35 +0000]
Make ScopeTracker thread safe via TLS (thread local storage)

Thanks to Gerd for the idea

12 years agoMake our log functions thread safe
Thomas Jarosch [Fri, 15 Jul 2011 13:42:24 +0000]
Make our log functions thread safe

12 years agoImplement umask()
Thomas Jarosch [Thu, 8 Jul 2010 14:25:25 +0000]
Implement umask()

12 years agoImplement mkdir(), rmdir(), getcwd() and chdir()
Thomas Jarosch [Thu, 8 Jul 2010 14:21:13 +0000]
Implement mkdir(), rmdir(), getcwd() and chdir()

12 years agoImplement mkdtemp()
Thomas Jarosch [Thu, 8 Jul 2010 12:37:57 +0000]
Implement mkdtemp()

12 years agoReplaced all occurences of 'include_directories(*${CMAKE_CURRENT_SOURCE_DIR}*)' by...
Kristóf Katus [Mon, 8 Aug 2011 10:56:20 +0000]
Replaced all occurences of 'include_directories(*${CMAKE_CURRENT_SOURCE_DIR}*)' by hand in CMakeLists.txt files to 'include_directories(*BEFORE ${CMAKE_CURRENT_SOURCE_DIR}*)'

12 years agoIncrease version of own packages
Thomas Jarosch [Wed, 20 Jul 2011 13:04:18 +0000]
Increase version of own packages

12 years agoMerge branch 'winmail-dat-fix'
Thomas Jarosch [Wed, 20 Jul 2011 12:23:12 +0000]
Merge branch 'winmail-dat-fix'

12 years agoMerge branch 'cyrus-duplicates'
Thomas Jarosch [Wed, 20 Jul 2011 12:22:33 +0000]
Merge branch 'cyrus-duplicates'

12 years agoMerge branch 'postfix-relay'
Gerd von Egidy [Fri, 8 Jul 2011 13:52:22 +0000]
Merge branch 'postfix-relay'

12 years agoMerge branch 'fsav-update'
Thomas Jarosch [Wed, 6 Jul 2011 08:54:32 +0000]
Merge branch 'fsav-update'

12 years agoImproved log file parser code from Guilherme. Fixes memleak on exception
Thomas Jarosch [Tue, 14 Jun 2011 14:19:02 +0000]
Improved log file parser code from Guilherme. Fixes memleak on exception

13 years agoMerge branch 'file-magic'
Gerd von Egidy [Thu, 26 May 2011 09:58:57 +0000]
Merge branch 'file-magic'

13 years agoIncrease .so version (=API version) of libi2ncommon
Thomas Jarosch [Wed, 25 May 2011 07:25:45 +0000]
Increase .so version (=API version) of libi2ncommon

13 years agoMerge branch 'raid-fix'
Gerd von Egidy [Mon, 23 May 2011 14:51:44 +0000]
Merge branch 'raid-fix'

13 years agoFix libi2ncommon pkgconfig file
Thomas Jarosch [Thu, 19 May 2011 13:00:36 +0000]
Fix libi2ncommon pkgconfig file

13 years agoDon't pass the full library path with -l
Thomas Jarosch [Fri, 13 May 2011 13:23:11 +0000]
Don't pass the full library path with -l

13 years agoFix installation and dependency generation of header files
Thomas Jarosch [Wed, 11 May 2011 13:12:19 +0000]
Fix installation and dependency generation of header files

13 years agoMake unit test for imap modified utf7 optional
Thomas Jarosch [Wed, 11 May 2011 12:56:04 +0000]
Make unit test for imap modified utf7 optional

13 years agoMake build of xml library part optional
Thomas Jarosch [Wed, 11 May 2011 12:47:35 +0000]
Make build of xml library part optional

13 years agoRemove old autoconf file
Thomas Jarosch [Wed, 11 May 2011 12:08:45 +0000]
Remove old autoconf file

13 years agoSwitch license from Intranator license to GPLv2 + linking exception (ACKed by Steffen)
Thomas Jarosch [Wed, 11 May 2011 12:00:37 +0000]
Switch license from Intranator license to GPLv2 + linking exception (ACKed by Steffen)

13 years agoFix iconv include directory
Thomas Jarosch [Wed, 11 May 2011 11:34:48 +0000]
Fix iconv include directory

13 years agoMigrate libi2ncommon to cmake
Thomas Jarosch [Wed, 11 May 2011 11:19:25 +0000]
Migrate libi2ncommon to cmake

13 years agoRemove autoconf base stuff
Thomas Jarosch [Wed, 11 May 2011 07:48:03 +0000]
Remove autoconf base stuff

13 years agoObsolete libgettext
Thomas Jarosch [Tue, 10 May 2011 13:35:32 +0000]
Obsolete libgettext

13 years agoDon't require libgettext in libi2ncommon's pkgconfig file
Thomas Jarosch [Tue, 10 May 2011 12:37:12 +0000]
Don't require libgettext in libi2ncommon's pkgconfig file

13 years agoMerge libgettext code into libi2ncommon
Thomas Jarosch [Tue, 10 May 2011 12:32:14 +0000]
Merge libgettext code into libi2ncommon

13 years agoMerge 'new-vacation-notice-UI'
Thomas Jarosch [Thu, 14 Apr 2011 13:04:56 +0000]
Merge 'new-vacation-notice-UI'

Conflicts:
intranator-language/usr/intranator/lang/de/LC_MESSAGES/ui-data.mo
intranator-language/usr/intranator/lang/de/LC_MESSAGES/ui-data.po

13 years agoMerge branch 'php-53-upgrade'
Thomas Jarosch [Mon, 21 Mar 2011 13:54:33 +0000]
Merge branch 'php-53-upgrade'

13 years agoMerge branch 'cyrus-setacl-bug'
Thomas Jarosch [Thu, 17 Mar 2011 09:37:34 +0000]
Merge branch 'cyrus-setacl-bug'

Conflicts:
packages/cyrus-imapd/cyrus-imapd-2.3.16-keep-owner-rights.patch

13 years agoOwn implementation of intuitive tristate logic
Thomas Jarosch [Fri, 11 Mar 2011 15:35:29 +0000]
Own implementation of intuitive tristate logic

13 years agoIncrease version
Thomas Jarosch [Tue, 8 Mar 2011 14:20:11 +0000]
Increase version

13 years agoMerge branch 'proxy-time-profiles'
Thomas Jarosch [Thu, 3 Mar 2011 09:36:52 +0000]
Merge branch 'proxy-time-profiles'

Conflicts:
generate/test/Makefile.am

13 years agoMerge branch 'dns-delegation'
Gerd von Egidy [Wed, 23 Feb 2011 14:03:25 +0000]
Merge branch 'dns-delegation'

13 years agoMerge branch 'fsecure-update'
Thomas Jarosch [Wed, 16 Feb 2011 14:55:43 +0000]
Merge branch 'fsecure-update'

13 years agoMerge remote branch 'origin/info_mqueue-long-long'
Thomas Jarosch [Fri, 4 Feb 2011 15:59:28 +0000]
Merge remote branch 'origin/info_mqueue-long-long'

13 years agoRemoved ShortUnitFormat and UnitBase1024 from nice_unit_format() calls, as they are...
Guilherme Maciel Ferreira [Fri, 4 Feb 2011 15:37:04 +0000]
Removed ShortUnitFormat and UnitBase1024 from nice_unit_format() calls, as they are now the routine default parameters

13 years agoChanged the default parameters value from nice_unit_format()
Guilherme Maciel Ferreira [Fri, 4 Feb 2011 15:26:08 +0000]
Changed the default parameters value from nice_unit_format()

13 years agoSwitched the order of the nice_unit_format() parameters, because format changes more...
Guilherme Maciel Ferreira [Fri, 4 Feb 2011 14:50:54 +0000]
Switched the order of the nice_unit_format() parameters, because format changes more often than the base.

13 years agoRemoved the exabytes, zettabytes and yottabytes representations from nice_unit_format()
Guilherme Maciel Ferreira [Fri, 4 Feb 2011 11:25:39 +0000]
Removed the exabytes, zettabytes and yottabytes representations from nice_unit_format()
- Makes no sense keep those representations once int64 cannot handle them
- Added a safe guard to rollback values that cannot be represented (ie 2000.00 PB instead of 2.00 EB)
- Added a unit test to check how is represented the max int64 number

13 years agoAdded i18n_noop around long unit format symbol strings to be parsed by poedit
Guilherme Maciel Ferreira [Thu, 3 Feb 2011 16:55:52 +0000]
Added i18n_noop around long unit format symbol strings to be parsed by poedit

13 years agoRenamed the constant to keep related with the arrays
Guilherme Maciel Ferreira [Thu, 3 Feb 2011 10:22:51 +0000]
Renamed the constant to keep related with the arrays

13 years agoGiven another name to the arrays to make reference with the UnitFormat enumeration
Guilherme Maciel Ferreira [Thu, 3 Feb 2011 09:48:06 +0000]
Given another name to the arrays to make reference with the UnitFormat enumeration

13 years agoMoved the rounding statement to its own function
Guilherme Maciel Ferreira [Thu, 3 Feb 2011 09:01:43 +0000]
Moved the rounding statement to its own function

13 years agoRename variables according with their enumeration type names
Guilherme Maciel Ferreira [Wed, 2 Feb 2011 11:08:19 +0000]
Rename variables according with their enumeration type names

13 years agoRenamed enumeration items to improve readability
Guilherme Maciel Ferreira [Tue, 1 Feb 2011 14:15:01 +0000]
Renamed enumeration items to improve readability

13 years agoReplaced all ocurrences of format_kb() by nice_unit_format()
Guilherme Maciel Ferreira [Tue, 1 Feb 2011 13:18:16 +0000]
Replaced all ocurrences of format_kb() by nice_unit_format()

13 years agoMerge remote branch 'origin/wi2nlog'
Thomas Jarosch [Tue, 1 Feb 2011 12:51:39 +0000]
Merge remote branch 'origin/wi2nlog'

13 years agoReplaced format_kb() by nice_unit_format() in the test cases
Guilherme Maciel Ferreira [Tue, 1 Feb 2011 10:21:59 +0000]
Replaced format_kb() by nice_unit_format() in the test cases
- 3rd step to merge nice_unit_format() and format_kb()

13 years agoAllow to select the length of the symbol, short or long
Guilherme Maciel Ferreira [Tue, 1 Feb 2011 10:18:36 +0000]
Allow to select the length of the symbol, short or long
- short symbols are B, KB, MB, etc.
- long symbols are Bytes, KBytes, MBytes, etc.

13 years agoCreated test cases for format_kb()
Guilherme Maciel Ferreira [Tue, 1 Feb 2011 09:02:29 +0000]
Created test cases for format_kb()
- 2nd step to merge nice_unit_format() and format_kb()

13 years agoMoved format_kb from arnielizer to libi2ncommon
Guilherme Maciel Ferreira [Tue, 1 Feb 2011 08:59:24 +0000]
Moved format_kb from arnielizer to libi2ncommon
- 1st step to merge nice_unit_format() and format_kb()

13 years agoAdded a prefix to the enumeration items to avoid possible conflicts
Guilherme Maciel Ferreira [Tue, 1 Feb 2011 08:11:16 +0000]
Added a prefix to the enumeration items to avoid possible conflicts

13 years agoChanged nice_unit_format() to allow selection between SI and IEC Systems of Units
Guilherme Maciel Ferreira [Mon, 31 Jan 2011 17:30:31 +0000]
Changed nice_unit_format() to allow selection between SI and IEC Systems of Units
- SI allows multiples of decimal 1000 (nice_unit_format default behavior)
- IEC allows multiples of binary 1024, 2^10 (format_kb default behavior)

13 years agoImproved method signature, constification of parameter and type
Guilherme Maciel Ferreira [Mon, 31 Jan 2011 15:37:44 +0000]
Improved method signature, constification of parameter and type

13 years agoAdded unit test for nice_unit_format()
Guilherme Maciel Ferreira [Mon, 31 Jan 2011 13:51:12 +0000]
Added unit test for nice_unit_format()

13 years agoChange nice_unit_format() to long long
Guilherme Maciel Ferreira [Fri, 28 Jan 2011 16:49:51 +0000]
Change nice_unit_format() to long long
- increased variable size to accommodate bigger byte amounts

13 years agoMerge branch 'rename-user'
Thomas Jarosch [Mon, 24 Jan 2011 08:56:41 +0000]
Merge branch 'rename-user'

13 years agoMerge branch 'kernel-update'
Thomas Jarosch [Fri, 21 Jan 2011 16:04:33 +0000]
Merge branch 'kernel-update'

Conflicts:
miscscripts/miscscripts.spec
packages/buildsys-build-rpmfusion/buildsys-build-rpmfusion-kerneldevpkgs-current

13 years agoMerge branch 'master'
Guilherme Maciel Ferreira [Fri, 7 Jan 2011 12:17:06 +0000]
Merge branch 'master'

13 years agoMerge branch 'fix-logcheck-overflow'
Thomas Jarosch [Wed, 22 Dec 2010 13:52:01 +0000]
Merge branch 'fix-logcheck-overflow'

13 years agoMerge branch 'fix-vpn-outgoing-inet-bad'
Thomas Jarosch [Tue, 21 Dec 2010 15:06:53 +0000]
Merge branch 'fix-vpn-outgoing-inet-bad'

13 years agoIncrease version
Thomas Jarosch [Mon, 13 Dec 2010 15:43:44 +0000]
Increase version