Hello community,

here is the log from the commit of package libcsystem for openSUSE:Factory 
checked in at 2016-02-05 00:31:56
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libcsystem (Old)
 and      /work/SRC/openSUSE:Factory/.libcsystem.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libcsystem"

Changes:
--------
--- /work/SRC/openSUSE:Factory/libcsystem/libcsystem.changes    2015-01-30 
14:57:26.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.libcsystem.new/libcsystem.changes       
2016-02-05 00:31:57.000000000 +0100
@@ -1,0 +2,7 @@
+Fri Jan 29 04:23:47 UTC 2016 - [email protected]
+
+-  update to 20150629
+       * corrections in include header
+       * updated man page: libcsystem.3
+
+-------------------------------------------------------------------

Old:
----
  libcsystem-alpha-20150101.tar.gz

New:
----
  libcsystem-alpha-20150629.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ libcsystem.spec ++++++
--- /var/tmp/diff_new_pack.yZP2oe/_old  2016-02-05 00:31:58.000000000 +0100
+++ /var/tmp/diff_new_pack.yZP2oe/_new  2016-02-05 00:31:58.000000000 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package libcsystem
 #
-# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
 
 Name:           libcsystem
 %define lname  libcsystem1
-%define timestamp 20150101
+%define timestamp 20150629
 Version:        0~%timestamp
 Release:        0
 Summary:        Library for cross-platform C system functions 

++++++ libcsystem-alpha-20150101.tar.gz -> libcsystem-alpha-20150629.tar.gz 
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libcsystem-20150101/ChangeLog 
new/libcsystem-20150629/ChangeLog
--- old/libcsystem-20150101/ChangeLog   2015-01-01 15:22:12.000000000 +0100
+++ new/libcsystem-20150629/ChangeLog   2015-06-29 20:13:05.000000000 +0200
@@ -1,5 +1,9 @@
-TODO
-* update libcsystem.3 man page
+20150629
+* corrections in include header
+
+20150104
+* corrections in include header
+* updated man page: libcsystem.3
 
 20150101
 * 2015 update
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libcsystem-20150101/common/config.h 
new/libcsystem-20150629/common/config.h
--- old/libcsystem-20150101/common/config.h     2015-01-01 16:10:52.000000000 
+0100
+++ new/libcsystem-20150629/common/config.h     2015-06-29 20:13:32.000000000 
+0200
@@ -378,7 +378,7 @@
 #define PACKAGE_NAME "libcsystem"
 
 /* Define to the full name and version of this package. */
-#define PACKAGE_STRING "libcsystem 20150101"
+#define PACKAGE_STRING "libcsystem 20150629"
 
 /* Define to the one symbol short name of this package. */
 #define PACKAGE_TARNAME "libcsystem"
@@ -387,7 +387,7 @@
 #define PACKAGE_URL ""
 
 /* Define to the version of this package. */
-#define PACKAGE_VERSION "20150101"
+#define PACKAGE_VERSION "20150629"
 
 /* The size of `off_t', as computed by sizeof. */
 #define SIZEOF_OFF_T 8
@@ -405,7 +405,7 @@
 /* #undef STRERROR_R_CHAR_P */
 
 /* Version number of package */
-#define VERSION "20150101"
+#define VERSION "20150629"
 
 /* Enable large inode numbers on Mac OS X 10.5.  */
 #ifndef _DARWIN_USE_64_BIT_INODE
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libcsystem-20150101/configure 
new/libcsystem-20150629/configure
--- old/libcsystem-20150101/configure   2015-01-01 16:11:33.000000000 +0100
+++ new/libcsystem-20150629/configure   2015-07-03 20:45:49.000000000 +0200
@@ -1,6 +1,6 @@
 #! /bin/sh
 # Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.69 for libcsystem 20150101.
+# Generated by GNU Autoconf 2.69 for libcsystem 20150629.
 #
 # Report bugs to <[email protected]>.
 #
@@ -590,8 +590,8 @@
 # Identity of this package.
 PACKAGE_NAME='libcsystem'
 PACKAGE_TARNAME='libcsystem'
-PACKAGE_VERSION='20150101'
-PACKAGE_STRING='libcsystem 20150101'
+PACKAGE_VERSION='20150629'
+PACKAGE_STRING='libcsystem 20150629'
 PACKAGE_BUGREPORT='[email protected]'
 PACKAGE_URL=''
 
@@ -1428,7 +1428,7 @@
   # Omit some internal or obsolete options to make the list less imposing.
   # This message is too long to be a string in the A/UX 3.1 sh.
   cat <<_ACEOF
-\`configure' configures libcsystem 20150101 to adapt to many kinds of systems.
+\`configure' configures libcsystem 20150629 to adapt to many kinds of systems.
 
 Usage: $0 [OPTION]... [VAR=VALUE]...
 
@@ -1498,7 +1498,7 @@
 
 if test -n "$ac_init_help"; then
   case $ac_init_help in
-     short | recursive ) echo "Configuration of libcsystem 20150101:";;
+     short | recursive ) echo "Configuration of libcsystem 20150629:";;
    esac
   cat <<\_ACEOF
 
@@ -1654,7 +1654,7 @@
 test -n "$ac_init_help" && exit $ac_status
 if $ac_init_version; then
   cat <<\_ACEOF
-libcsystem configure 20150101
+libcsystem configure 20150629
 generated by GNU Autoconf 2.69
 
 Copyright (C) 2012 Free Software Foundation, Inc.
@@ -2306,7 +2306,7 @@
 This file contains any messages produced by compilers while
 running configure, to aid debugging if configure makes a mistake.
 
-It was created by libcsystem $as_me 20150101, which was
+It was created by libcsystem $as_me 20150629, which was
 generated by GNU Autoconf 2.69.  Invocation command line was
 
   $ $0 $@
@@ -3134,7 +3134,7 @@
 
 # Define the identity of the package.
  PACKAGE='libcsystem'
- VERSION='20150101'
+ VERSION='20150629'
 
 
 cat >>confdefs.h <<_ACEOF
@@ -24507,7 +24507,7 @@
 # report actual input values of CONFIG_FILES etc. instead of their
 # values after options handling.
 ac_log="
-This file was extended by libcsystem $as_me 20150101, which was
+This file was extended by libcsystem $as_me 20150629, which was
 generated by GNU Autoconf 2.69.  Invocation command line was
 
   CONFIG_FILES    = $CONFIG_FILES
@@ -24573,7 +24573,7 @@
 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; 
s/[\\""\`\$]/\\\\&/g'`"
 ac_cs_version="\\
-libcsystem config.status 20150101
+libcsystem config.status 20150629
 configured by $0, generated by GNU Autoconf 2.69,
   with options \\"\$ac_cs_config\\"
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libcsystem-20150101/configure.ac 
new/libcsystem-20150629/configure.ac
--- old/libcsystem-20150101/configure.ac        2015-01-01 15:22:12.000000000 
+0100
+++ new/libcsystem-20150629/configure.ac        2015-06-29 20:12:52.000000000 
+0200
@@ -2,7 +2,7 @@
 
 AC_INIT(
  [libcsystem],
- [20150101],
+ [20150629],
  [[email protected]])
 
 AC_CONFIG_SRCDIR(
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libcsystem-20150101/dpkg/changelog 
new/libcsystem-20150629/dpkg/changelog
--- old/libcsystem-20150101/dpkg/changelog      2015-01-01 16:11:39.000000000 
+0100
+++ new/libcsystem-20150629/dpkg/changelog      2015-07-03 20:45:57.000000000 
+0200
@@ -1,5 +1,5 @@
-libcsystem (20150101-1) unstable; urgency=low
+libcsystem (20150629-1) unstable; urgency=low
 
   * Auto-generated
 
- -- Joachim Metz <[email protected]>  Thu, 01 Jan 2015 16:11:38 +0100
+ -- Joachim Metz <[email protected]>  Fri, 03 Jul 2015 20:45:56 +0200
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libcsystem-20150101/dpkg/copyright 
new/libcsystem-20150629/dpkg/copyright
--- old/libcsystem-20150101/dpkg/copyright      2015-01-01 16:11:39.000000000 
+0100
+++ new/libcsystem-20150629/dpkg/copyright      2015-07-03 20:45:57.000000000 
+0200
@@ -1,6 +1,6 @@
 This work was packaged for Debian by:
 
-    Joachim Metz <[email protected]> on Thu, 01 Jan 2015 16:11:38 +0100
+    Joachim Metz <[email protected]> on Fri, 03 Jul 2015 20:45:56 +0200
 
 It was downloaded from https://github.com/libyal/libcsystem
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libcsystem-20150101/include/libcsystem/definitions.h 
new/libcsystem-20150629/include/libcsystem/definitions.h
--- old/libcsystem-20150101/include/libcsystem/definitions.h    2015-01-01 
16:11:39.000000000 +0100
+++ new/libcsystem-20150629/include/libcsystem/definitions.h    2015-07-03 
20:45:57.000000000 +0200
@@ -24,11 +24,11 @@
 
 #include <libcsystem/types.h>
 
-#define LIBCSYSTEM_VERSION                             20150101
+#define LIBCSYSTEM_VERSION                             20150629
 
 /* The libcsystem version string
  */
-#define LIBCSYSTEM_VERSION_STRING                      "20150101"
+#define LIBCSYSTEM_VERSION_STRING                      "20150629"
 
 /* The file access flags
  * bit 1       set to 1 for read access
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libcsystem-20150101/include/libcsystem.h 
new/libcsystem-20150629/include/libcsystem.h
--- old/libcsystem-20150101/include/libcsystem.h        2015-01-01 
16:11:39.000000000 +0100
+++ new/libcsystem-20150629/include/libcsystem.h        2015-07-03 
20:45:57.000000000 +0200
@@ -29,6 +29,12 @@
 #include <libcsystem/features.h>
 #include <libcsystem/types.h>
 
+/* unistd.h is included here to export getopt, optarg, optind and optopt
+ */
+#if defined( HAVE_UNISTD_H )
+#include <unistd.h>
+#endif
+
 #if defined( __cplusplus )
 extern "C" {
 #endif
@@ -48,14 +54,14 @@
      const char *filename,
      libcsystem_error_t **error );
 
-#if defined( HAVE_WIDE_CHARACTER_TYPE )
+#if defined( LIBCSYSTEM_HAVE_WIDE_CHARACTER_TYPE )
 
 LIBCSYSTEM_EXTERN \
 int libcsystem_file_exists_wide(
      const wchar_t *filename,
      libcsystem_error_t **error );
 
-#endif /* defined( HAVE_WIDE_CHARACTER_TYPE ) */
+#endif /* defined( LIBCSYSTEM_HAVE_WIDE_CHARACTER_TYPE ) */
 
 /* -------------------------------------------------------------------------
  * Error functions
@@ -135,6 +141,7 @@
         getopt( argument_count, argument_values, options_string )
 
 #elif defined( LIBCSYSTEM_HAVE_WIDE_CHARACTER_TYPE )
+
 /* The current option argument
  */
 LIBCSYSTEM_EXTERN \
@@ -163,6 +170,7 @@
         const wchar_t *options_string );
 
 #else
+
 /* The current option argument
  */
 LIBCSYSTEM_EXTERN \
@@ -218,22 +226,40 @@
 /* Resolves filenames with wildcards (globs)
  * Returns 1 if successful or -1 on error
  */
+#if defined( WINAPI ) && ( defined( _UNICODE ) || defined( UNICODE ) )
 LIBCSYSTEM_EXTERN \
 int libcsystem_glob_resolve(
      libcsystem_glob_t *glob,
-     libcstring_system_character_t * const patterns[],
+     wchar_t * const patterns[],
      int number_of_patterns,
      libcsystem_error_t **error );
+#else
+LIBCSYSTEM_EXTERN \
+int libcsystem_glob_resolve(
+     libcsystem_glob_t *glob,
+     char * const patterns[],
+     int number_of_patterns,
+     libcsystem_error_t **error );
+#endif /* defined( WINAPI ) && ( defined( _UNICODE ) || defined( UNICODE ) ) */
 
 /* Retrieves the glob results
  * Returns 1 if successful or -1 on error
  */
+#if defined( WINAPI ) && ( defined( _UNICODE ) || defined( UNICODE ) )
+LIBCSYSTEM_EXTERN \
+int libcsystem_glob_get_results(
+     libcsystem_glob_t *glob,
+     int *number_of_results,
+     wchar_t ***results,
+     libcsystem_error_t **error );
+#else
 LIBCSYSTEM_EXTERN \
 int libcsystem_glob_get_results(
      libcsystem_glob_t *glob,
      int *number_of_results,
-     libcstring_system_character_t ***results,
+     char ***results,
      libcsystem_error_t **error );
+#endif /* defined( WINAPI ) && ( defined( _UNICODE ) || defined( UNICODE ) ) */
 
 #endif /* !defined( HAVE_GLOB_H ) */
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libcsystem-20150101/include/libcsystem.h.in 
new/libcsystem-20150629/include/libcsystem.h.in
--- old/libcsystem-20150101/include/libcsystem.h.in     2015-01-01 
15:22:11.000000000 +0100
+++ new/libcsystem-20150629/include/libcsystem.h.in     2015-06-29 
20:18:06.000000000 +0200
@@ -29,6 +29,12 @@
 #include <libcsystem/features.h>
 #include <libcsystem/types.h>
 
+/* unistd.h is included here to export getopt, optarg, optind and optopt
+ */
+#if defined( HAVE_UNISTD_H )
+#include <unistd.h>
+#endif
+
 #if defined( __cplusplus )
 extern "C" {
 #endif
@@ -48,14 +54,14 @@
      const char *filename,
      libcsystem_error_t **error );
 
-#if defined( HAVE_WIDE_CHARACTER_TYPE )
+#if defined( LIBCSYSTEM_HAVE_WIDE_CHARACTER_TYPE )
 
 LIBCSYSTEM_EXTERN \
 int libcsystem_file_exists_wide(
      const wchar_t *filename,
      libcsystem_error_t **error );
 
-#endif /* defined( HAVE_WIDE_CHARACTER_TYPE ) */
+#endif /* defined( LIBCSYSTEM_HAVE_WIDE_CHARACTER_TYPE ) */
 
 /* -------------------------------------------------------------------------
  * Error functions
@@ -135,6 +141,7 @@
         getopt( argument_count, argument_values, options_string )
 
 #elif defined( LIBCSYSTEM_HAVE_WIDE_CHARACTER_TYPE )
+
 /* The current option argument
  */
 LIBCSYSTEM_EXTERN \
@@ -163,6 +170,7 @@
         const wchar_t *options_string );
 
 #else
+
 /* The current option argument
  */
 LIBCSYSTEM_EXTERN \
@@ -218,22 +226,40 @@
 /* Resolves filenames with wildcards (globs)
  * Returns 1 if successful or -1 on error
  */
+#if defined( WINAPI ) && ( defined( _UNICODE ) || defined( UNICODE ) )
 LIBCSYSTEM_EXTERN \
 int libcsystem_glob_resolve(
      libcsystem_glob_t *glob,
-     libcstring_system_character_t * const patterns[],
+     wchar_t * const patterns[],
      int number_of_patterns,
      libcsystem_error_t **error );
+#else
+LIBCSYSTEM_EXTERN \
+int libcsystem_glob_resolve(
+     libcsystem_glob_t *glob,
+     char * const patterns[],
+     int number_of_patterns,
+     libcsystem_error_t **error );
+#endif /* defined( WINAPI ) && ( defined( _UNICODE ) || defined( UNICODE ) ) */
 
 /* Retrieves the glob results
  * Returns 1 if successful or -1 on error
  */
+#if defined( WINAPI ) && ( defined( _UNICODE ) || defined( UNICODE ) )
+LIBCSYSTEM_EXTERN \
+int libcsystem_glob_get_results(
+     libcsystem_glob_t *glob,
+     int *number_of_results,
+     wchar_t ***results,
+     libcsystem_error_t **error );
+#else
 LIBCSYSTEM_EXTERN \
 int libcsystem_glob_get_results(
      libcsystem_glob_t *glob,
      int *number_of_results,
-     libcstring_system_character_t ***results,
+     char ***results,
      libcsystem_error_t **error );
+#endif /* defined( WINAPI ) && ( defined( _UNICODE ) || defined( UNICODE ) ) */
 
 #endif /* !defined( HAVE_GLOB_H ) */
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/libcsystem-20150101/libcerror/libcerror_definitions.h 
new/libcsystem-20150629/libcerror/libcerror_definitions.h
--- old/libcsystem-20150101/libcerror/libcerror_definitions.h   2015-01-01 
16:08:01.000000000 +0100
+++ new/libcsystem-20150629/libcerror/libcerror_definitions.h   2015-07-03 
20:43:27.000000000 +0200
@@ -35,11 +35,11 @@
  */
 #else
 
-#define LIBCERROR_VERSION                              20150101
+#define LIBCERROR_VERSION                              20150407
 
 /* The libcstring version string
  */
-#define LIBCERROR_VERSION_STRING                       "20150101"
+#define LIBCERROR_VERSION_STRING                       "20150407"
 
 /* The error domains
  */
@@ -238,6 +238,17 @@
        LIBCERROR_MEMORY_ERROR_SET_FAILED               = 3
 };
 
+/* The output error codes
+ */
+enum LIBCERROR_OUTPUT_ERROR
+{
+       LIBCERROR_OUTPUT_ERROR_GENERIC                  = 0,
+
+       /* There is insuficient space to write the output
+        */
+       LIBCERROR_OUTPUT_ERROR_INSUFFICIENT_SPACE       = 1
+};
+
 /* The runtime error codes
  * to signify errors regarding runtime processing
  */
@@ -306,17 +317,6 @@
        LIBCERROR_RUNTIME_ERROR_ABORT_REQUESTED         = 15
 };
 
-/* The output error codes
- */
-enum LIBCERROR_OUTPUT_ERROR
-{
-       LIBCERROR_OUTPUT_ERROR_GENERIC                  = 0,
-
-       /* There is insuficient space to write the output
-        */
-       LIBCERROR_OUTPUT_ERROR_INSUFFICIENT_SPACE       = 1
-};
-
 #endif /* !defined( HAVE_LOCAL_LIBCERROR ) */
 
 #endif
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libcsystem-20150101/libcerror/libcerror_error.c 
new/libcsystem-20150629/libcerror/libcerror_error.c
--- old/libcsystem-20150101/libcerror/libcerror_error.c 2015-01-01 
16:08:01.000000000 +0100
+++ new/libcsystem-20150629/libcerror/libcerror_error.c 2015-07-03 
20:43:27.000000000 +0200
@@ -410,12 +410,8 @@
      size_t size )
 {
        libcerror_internal_error_t *internal_error = NULL;
-       size_t string_index                        = 0;
-       int message_index                          = 0;
-
-#if defined( LIBCSTRING_HAVE_WIDE_SYSTEM_CHARACTER )
        size_t print_count                         = 0;
-#endif
+       int message_index                          = 0;
 
        if( error == NULL )
        {
@@ -447,8 +443,8 @@
 #if defined( _MSC_VER )
                if( wcstombs_s(
                     &print_count,
-                    &( string[ string_index ] ),
-                    size - string_index,
+                    string,
+                    size,
                     internal_error->messages[ message_index ],
                     _TRUNCATE ) != 0 )
                {
@@ -456,45 +452,45 @@
                }
 #else
                print_count = wcstombs(
-                              &( string[ string_index ] ),
+                              string,
                               internal_error->messages[ message_index ],
-                              size - string_index );
+                              size );
 
                if( print_count == (size_t) -1 )
                {
                        return( -1 );
                }
-#endif
-               string_index += print_count;
+#endif /* defined( _MSC_VER ) */
 
-               if( string_index >= size )
+               if( print_count >= size )
                {
                        return( -1 );
                }
 #else
-               if( ( string_index + internal_error->sizes[ message_index ] ) > 
size )
+               if( internal_error->sizes[ message_index ] > size )
                {
                        return( -1 );
                }
                if( libcstring_narrow_string_copy(
-                    &( string[ string_index ] ),
+                    string,
                     internal_error->messages[ message_index ],
                     internal_error->sizes[ message_index ] ) == NULL )
                {
-                       string[ string_index ] = 
(libcstring_system_character_t) 0;
+                       string[ 0 ] = (libcstring_system_character_t) 0;
 
                        return( -1 );
                }
-               string_index += internal_error->sizes[ message_index ];
+               print_count = internal_error->sizes[ message_index ];
+
+               string[ print_count ] = (libcstring_system_character_t) 0;
 
-               string[ string_index ] = (libcstring_system_character_t) 0;
 #endif /* defined( LIBCSTRING_HAVE_WIDE_SYSTEM_CHARACTER ) */
        }
-       if( string_index > (size_t) INT_MAX )
+       if( print_count > (size_t) INT_MAX )
        {
                return( -1 );
        }
-       return( (int) string_index );
+       return( (int) print_count );
 }
 
 /* Prints a backtrace of the error to the stream
@@ -645,6 +641,8 @@
 #endif /* defined( LIBCSTRING_HAVE_WIDE_SYSTEM_CHARACTER ) */
                }
        }
+       string_index += 1;
+
        if( string_index > (size_t) INT_MAX )
        {
                return( -1 );
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libcsystem-20150101/libcerror/libcerror_system.c 
new/libcsystem-20150629/libcerror/libcerror_system.c
--- old/libcsystem-20150101/libcerror/libcerror_system.c        2015-01-01 
16:08:01.000000000 +0100
+++ new/libcsystem-20150629/libcerror/libcerror_system.c        2015-07-03 
20:43:27.000000000 +0200
@@ -59,7 +59,7 @@
 #define SUBLANG_DEFAULT                1
 #endif
 
-#if defined( WINAPI ) && ( WINVER <= 0x0500 ) && !defined( USE_CRT_FUNCTIONS )
+#if defined( WINAPI ) && ( WINVER <= 0x0500 )
 
 /* Cross Windows safe version of FormatMessageA
  * Returns TRUE if successful or FALSE on error
@@ -169,7 +169,7 @@
 
 #endif
 
-#if defined( WINAPI ) && ( WINVER >= 0x0501 ) && !defined( USE_CRT_FUNCTIONS )
+#if defined( WINAPI ) && ( WINVER >= 0x0501 )
 
 /* Retrieves a descriptive string of the error number
  * This function uses the WINAPI functions for Windows XP or later
@@ -251,49 +251,6 @@
        return( (int) print_count );
 }
 
-#elif defined( WINAPI ) && defined( USE_CRT_FUNCTIONS ) && defined( _MSC_VER )
-
-/* Retrieves a descriptive string of the error number
- * This function uses the Visual Studio C runtime library functions
- * Returns the string_length if successful or -1 on error
- */
-int libcerror_system_copy_string_from_error_number(
-     libcstring_system_character_t *string,
-     size_t string_size,
-     uint32_t error_number )
-{
-       size_t string_length = 0;
-
-       if( string == NULL )
-       {
-               return( -1 );
-       }
-       if( string_size > (size_t) INT_MAX )
-       {
-               return( -1 );
-       }
-#if defined( LIBCSTRING_HAVE_WIDE_SYSTEM_CHARACTER )
-       if( _wcserror_s(
-            string,
-            string_size,
-            (int) error_number ) != 0 )
-#else
-       if( strerror_s(
-            string,
-            string_size,
-            (int) error_number ) != 0 )
-#endif
-       {
-               return( -1 );
-       }
-       string[ string_size - 1 ] = 0;
-
-       string_length = libcstring_system_string_length(
-                        string );
-
-       return( (int) string_length );
-}
-
 #elif defined( HAVE_STRERROR_R )
 
 /* Retrieves a descriptive string of the error number
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libcsystem-20150101/libcerror/libcerror_system.h 
new/libcsystem-20150629/libcerror/libcerror_system.h
--- old/libcsystem-20150101/libcerror/libcerror_system.h        2015-01-01 
16:08:01.000000000 +0100
+++ new/libcsystem-20150629/libcerror/libcerror_system.h        2015-07-03 
20:43:27.000000000 +0200
@@ -35,7 +35,7 @@
 extern "C" {
 #endif
 
-#if defined( WINAPI ) && ( WINVER <= 0x0500 ) && !defined( USE_CRT_FUNCTIONS )
+#if defined( WINAPI ) && ( WINVER <= 0x0500 )
 DWORD libcerror_FormatMessageA(
        DWORD flags,
        LPCVOID source,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libcsystem-20150101/libcnotify/libcnotify_print.c 
new/libcsystem-20150629/libcnotify/libcnotify_print.c
--- old/libcsystem-20150101/libcnotify/libcnotify_print.c       2015-01-01 
16:08:01.000000000 +0100
+++ new/libcsystem-20150629/libcnotify/libcnotify_print.c       2015-07-03 
20:43:27.000000000 +0200
@@ -134,8 +134,9 @@
        while( data_iterator < data_size )
        {
                if( ( ( print_data_flags & 
LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ) != 0 )
+                && ( data_size >= 32 )
                 && ( data_iterator >= 16 )
-                && ( ( data_iterator + 32 ) <= data_size ) )
+                && ( data_iterator <= ( data_size - 32 ) ) )
                {
                        if( ( memory_compare(
                               &( data[ data_iterator - 16 ] ),
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libcsystem-20150101/libcsystem/libcsystem.rc 
new/libcsystem-20150629/libcsystem/libcsystem.rc
--- old/libcsystem-20150101/libcsystem/libcsystem.rc    2015-01-01 
16:11:39.000000000 +0100
+++ new/libcsystem-20150629/libcsystem/libcsystem.rc    2015-07-03 
20:45:57.000000000 +0200
@@ -22,12 +22,12 @@
     BLOCK "040904E4"
     BEGIN
       VALUE "FileDescription",         "Library to support cross-platform C 
system functions\0"
-      VALUE "FileVersion",             "20150101" "\0"
+      VALUE "FileVersion",             "20150629" "\0"
       VALUE "InternalName",            "libcsystem.dll\0"
       VALUE "LegalCopyright",          "(C) 2008-2015, Joachim Metz 
<[email protected]>\0"
       VALUE "OriginalFilename",                "libcsystem.dll\0"
       VALUE "ProductName",             "libcsystem\0"
-      VALUE "ProductVersion",          "20150101" "\0"
+      VALUE "ProductVersion",          "20150629" "\0"
       VALUE "Comments",                        "For more information visit 
https://github.com/libyal/libcsystem/\0";
     END
   END
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/libcsystem-20150101/libcsystem/libcsystem_definitions.h 
new/libcsystem-20150629/libcsystem/libcsystem_definitions.h
--- old/libcsystem-20150101/libcsystem/libcsystem_definitions.h 2015-01-01 
16:11:39.000000000 +0100
+++ new/libcsystem-20150629/libcsystem/libcsystem_definitions.h 2015-07-03 
20:45:57.000000000 +0200
@@ -35,11 +35,11 @@
  */
 #else
 
-#define LIBCSYSTEM_VERSION                             20150101
+#define LIBCSYSTEM_VERSION                             20150629
 
 /* The libcstring version string
  */
-#define LIBCSYSTEM_VERSION_STRING                      "20150101"
+#define LIBCSYSTEM_VERSION_STRING                      "20150629"
 
 /* The file access flags
  * bit 1       set to 1 for read access
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libcsystem-20150101/libcsystem/libcsystem_string.c 
new/libcsystem-20150629/libcsystem/libcsystem_string.c
--- old/libcsystem-20150101/libcsystem/libcsystem_string.c      2015-01-01 
15:22:11.000000000 +0100
+++ new/libcsystem-20150629/libcsystem/libcsystem_string.c      2015-01-08 
19:53:22.000000000 +0100
@@ -124,7 +124,7 @@
        return( 1 );
 }
 
-/* Copies a string of a decimal value to a 16-bit value
+/* Copies a string of a decimal value to a 64-bit value
  * Returns 1 if successful or -1 on error
  */
 int libcsystem_string_decimal_copy_to_64_bit(
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libcsystem-20150101/libcsystem.spec 
new/libcsystem-20150629/libcsystem.spec
--- old/libcsystem-20150101/libcsystem.spec     2015-01-01 16:11:39.000000000 
+0100
+++ new/libcsystem-20150629/libcsystem.spec     2015-07-03 20:45:57.000000000 
+0200
@@ -1,5 +1,5 @@
 Name: libcsystem
-Version: 20150101
+Version: 20150629
 Release: 1
 Summary: Library to support cross-platform C system functions
 Group: System Environment/Libraries
@@ -55,6 +55,6 @@
 %{_mandir}/man3/*
 
 %changelog
-* Thu Jan  1 2015 Joachim Metz <[email protected]> 20150101-1
+* Fri Jul  3 2015 Joachim Metz <[email protected]> 20150629-1
 - Auto-generated
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libcsystem-20150101/libuna/libuna_inline.h 
new/libcsystem-20150629/libuna/libuna_inline.h
--- old/libcsystem-20150101/libuna/libuna_inline.h      2015-01-01 
16:08:01.000000000 +0100
+++ new/libcsystem-20150629/libuna/libuna_inline.h      2015-07-03 
20:43:27.000000000 +0200
@@ -27,7 +27,7 @@
 #if defined( _MSC_VER )
 #define LIBUNA_INLINE _inline
 
-#elif defined( __BORLANDC__ ) || defined( __clang__ )
+#elif defined( __BORLANDC__ ) || defined( __clang__ ) || ( defined( __GNUC__ ) 
&& __GNUC__ >= 5 )
 #define LIBUNA_INLINE /* inline */
 
 #else
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libcsystem-20150101/m4/common.m4 
new/libcsystem-20150629/m4/common.m4
--- old/libcsystem-20150101/m4/common.m4        2014-10-01 05:54:22.000000000 
+0200
+++ new/libcsystem-20150629/m4/common.m4        2015-01-02 20:01:03.000000000 
+0100
@@ -1,6 +1,6 @@
 dnl Functions for common
 dnl
-dnl Version: 20120524
+dnl Version: 20120406
 
 dnl Function to test if a certain feature was enabled
 AC_DEFUN([AX_COMMON_ARG_ENABLE],
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libcsystem-20150101/manuals/libcsystem.3 
new/libcsystem-20150629/manuals/libcsystem.3
--- old/libcsystem-20150101/manuals/libcsystem.3        2015-01-01 
16:08:37.000000000 +0100
+++ new/libcsystem-20150629/manuals/libcsystem.3        2015-01-04 
11:53:52.000000000 +0100
@@ -1,4 +1,4 @@
-.Dd October 1, 2014
+.Dd January  4, 2015
 .Dt libcsystem 3
 .Os libcsystem
 .Sh NAME
@@ -12,6 +12,12 @@
 Support functions
 .Ft const char *
 .Fn libcsystem_get_version "void"
+.Ft int
+.Fn libcsystem_file_exists "const char *filename, libcsystem_error_t **error"
+.Pp
+Available when compiled with wide character string support:
+.Ft int
+.Fn libcsystem_file_exists_wide "const wchar_t *filename, libcsystem_error_t 
**error"
 .Pp
 Error functions
 .Ft void
@@ -24,23 +30,71 @@
 .Fn libcsystem_error_backtrace_fprint "libcsystem_error_t *error, FILE *stream"
 .Ft int
 .Fn libcsystem_error_backtrace_sprint "libcsystem_error_t *error, char 
*string, size_t size"
+.Pp
+Support functions
+.Ft const char *
+.Fn libcsystem_get_version "void"
+.Ft int
+.Fn libcsystem_file_exists "const char *filename, libcsystem_error_t **error"
+.Pp
+Available when compiled with wide character string support:
+.Ft int
+.Fn libcsystem_file_exists_wide "const wchar_t *filename, libcsystem_error_t 
**error"
+.Pp
+File IO functions
+.Pp
+Getopt functions
+.Ft int
+.Fn libcsystem_getopt "int argument_count, char * const argument_values[], 
const char *options_string"
+.Pp
+Glob functions
+.Ft int
+.Fn libcsystem_glob_initialize "libcsystem_glob_t **glob, libcsystem_error_t 
**error"
+.Ft int
+.Fn libcsystem_glob_free "libcsystem_glob_t **glob, libcsystem_error_t **error"
+.Ft int
+.Fn libcsystem_glob_resolve "libcsystem_glob_t *glob, 
libcstring_system_character_t * const patterns[], int number_of_patterns, 
libcsystem_error_t **error"
+.Ft int
+.Fn libcsystem_glob_get_results "libcsystem_glob_t *glob, int 
*number_of_results, libcstring_system_character_t ***results, 
libcsystem_error_t **error"
+.Pp
+Internationalization (i18n) functions
+.Pp
+Signal functions
+.Ft int
+.Fn libcsystem_signal_attach "void (*signal_handler)( libcsystem_signal_t ), 
libcsystem_error_t **error"
+.Ft int
+.Fn libcsystem_signal_detach "libcsystem_error_t **error"
 .Sh DESCRIPTION
 The
 .Fn libcsystem_get_version
 function is used to retrieve the library version.
 .Sh RETURN VALUES
-Most of the functions return NULL or -1 on error, dependent on the return 
type. For the actual return values refer to libcsystem.h
+Most of the functions return NULL or \-1 on error, dependent on the return 
type.
+For the actual return values see "libcsystem.h".
 .Sh ENVIRONMENT
 None
 .Sh FILES
 None
+libcsystem allows to be compiled with wide character support (wchar_t).
+
+To compile libcsystem with wide character support use:
+.Ar ./configure --enable-wide-character-type=yes
+ or define:
+.Ar _UNICODE
+ or
+.Ar UNICODE
+ during compilation.
+
+.Ar LIBCSYSTEM_WIDE_CHARACTER_TYPE
+ in libcsystem/features.h can be used to determine if libcsystem was compiled 
with wide character support.
 .Sh BUGS
-Please report bugs of any kind to <[email protected]> or on the project 
website:
-https://github.com/libyal/libcsystem/
+Please report bugs of any kind on the project issue tracker: 
https://github.com/libyal/libcsystem/issues
 .Sh AUTHOR
-These man pages were written by Joachim Metz.
+These man pages are generated from "libcsystem.h".
 .Sh COPYRIGHT
 Copyright (C) 2008-2015, Joachim Metz <[email protected]>.
-This is free software; see the source for copying conditions. There is NO 
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+This is free software; see the source for copying conditions.
+There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR 
PURPOSE.
 .Sh SEE ALSO
 the libcsystem.h include file


Reply via email to