[git] GPG-ERROR - branch, master, updated. libgpg-error-1.27-247-g863948a

by Werner Koch cvs at cvs.gnupg.org
Mon Mar 12 11:57:46 CET 2018


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Error codes used by GnuPG et al.".

The branch, master has been updated
       via  863948ab29d1016a271fd7e6d48af316dad4e939 (commit)
       via  0e503cae75cb1a6aa257228a65941b7630ff35d6 (commit)
      from  596c0d701edeb45e0069bb74b9343e3d5b708ef0 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 863948ab29d1016a271fd7e6d48af316dad4e939
Author: Werner Koch <wk at gnupg.org>
Date:   Mon Mar 12 11:50:51 2018 +0100

    core: Remove accidently committed time function API.
    
    --
    
    Fixes-commit: f9a33a7f7e44a644ff4e31f7e9f1c2c1ec1f8eee

diff --git a/src/gpg-error.h.in b/src/gpg-error.h.in
index dc6f637..e78a6f1 100644
--- a/src/gpg-error.h.in
+++ b/src/gpg-error.h.in
@@ -1078,37 +1078,6 @@ void gpgrt_release_process (pid_t pid);
 
 #endif /*0*/
 
-/*
- * Time functions
- */
-
-/* Our representation of time requires 8 byte.  The value guaranteed
- * to be a C string with no '\n' in it.  The time is always UTC.  */
-typedef unsigned char gpgrt_time_t[8];
-
-/* Check that ATIME is a valid time.  */
-gpg_err_code_t gpgrt_check_time (const gpgrt_time_t atime);
-
-/* Convert time into a Julian Date.  Returns 0 for invalid dates.  */
-unsigned int gpgrt_time2jd (const gpgrt_time_t atime, int *r_seconds);
-
-/* Convert the Julian Date (JD,SECS) into a time.  If SECS is -1 noon
- * is assumed.  */
-void gpgrt_jd2time (gpgrt_time_t atime, unsigned int jd, int secs);
-
-/* Convert a time into a Julian Date and return it as a float with
- * fractional seconds.  */
-static GPG_ERR_INLINE double
-gpgrt_time2jd_dbl (const gpgrt_time_t atime)
-{
-  unsigned int jd;
-  int secs;
-  jd = gpgrt_time2jd (atime, &secs);
-  return jd + (secs/86400.0);
-}
-
-
-
 #ifdef __cplusplus
 }
 #endif

commit 0e503cae75cb1a6aa257228a65941b7630ff35d6
Author: Werner Koch <wk at gnupg.org>
Date:   Mon Mar 12 11:01:27 2018 +0100

    core: Do not export the process API
    
    --
    
    We may need to change the API and thus we better wait before
    publishing this new interface.
    
    Signed-off-by: Werner Koch <wk at gnupg.org>

diff --git a/src/gpg-error.def.in b/src/gpg-error.def.in
index 3f26a89..eea6e4a 100644
--- a/src/gpg-error.def.in
+++ b/src/gpg-error.def.in
@@ -197,14 +197,15 @@ EXPORTS
  gpgrt_chdir                  @150
  gpgrt_getcwd                 @151
 
- gpgrt_make_pipe              @152
- gpgrt_spawn_process          @153
- gpgrt_spawn_process_fd       @154
- gpgrt_spawn_process_detached @155
- gpgrt_wait_process           @156
- gpgrt_wait_processes         @157
- gpgrt_kill_process           @158
- gpgrt_release_process        @159
+;; API not yet finished for:
+;; gpgrt_make_pipe              @152
+;; gpgrt_spawn_process          @153
+;; gpgrt_spawn_process_fd       @154
+;; gpgrt_spawn_process_detached @155
+;; gpgrt_wait_process           @156
+;; gpgrt_wait_processes         @157
+;; gpgrt_kill_process           @158
+;; gpgrt_release_process        @159
 
 
 ;; end of file with public symbols for Windows.
diff --git a/src/gpg-error.h.in b/src/gpg-error.h.in
index 46e8f53..dc6f637 100644
--- a/src/gpg-error.h.in
+++ b/src/gpg-error.h.in
@@ -1027,8 +1027,9 @@ void _gpgrt_log_assert (const char *expr, const char *file, int line,
 
 

 /*
- * Spawn functions
+ * Spawn functions  (Not yet available)
  */
+#if 0
 
 #define GPGRT_SPAWN_NONBLOCK   16 /* Set the streams to non-blocking.      */
 #define GPGRT_SPAWN_RUN_ASFW   64 /* Use AllowSetForegroundWindow on W32.  */
@@ -1075,6 +1076,8 @@ void gpgrt_kill_process (pid_t pid);
 /* Release process resources identified by PID.  */
 void gpgrt_release_process (pid_t pid);
 
+#endif /*0*/
+
 /*
  * Time functions
  */
diff --git a/src/gpg-error.vers b/src/gpg-error.vers
index a5f91aa..1105e80 100644
--- a/src/gpg-error.vers
+++ b/src/gpg-error.vers
@@ -169,14 +169,15 @@ GPG_ERROR_1.0 {
     gpgrt_chdir;
     gpgrt_getcwd;
 
-    gpgrt_make_pipe;
-    gpgrt_spawn_process;
-    gpgrt_spawn_process_fd;
-    gpgrt_spawn_process_detached;
-    gpgrt_wait_process;
-    gpgrt_wait_processes;
-    gpgrt_kill_process;
-    gpgrt_release_process;
+## API not yet finished for:
+#    gpgrt_make_pipe;
+#    gpgrt_spawn_process;
+#    gpgrt_spawn_process_fd;
+#    gpgrt_spawn_process_detached;
+#    gpgrt_wait_process;
+#    gpgrt_wait_processes;
+#    gpgrt_kill_process;
+#    gpgrt_release_process;
 
 
   local:
diff --git a/src/sysutils.c b/src/sysutils.c
index 1f2c293..c3aaf42 100644
--- a/src/sysutils.c
+++ b/src/sysutils.c
@@ -50,7 +50,7 @@ _gpgrt_fd_valid_p (int fd)
 
 
 /* Our variant of getenv.  The returned string must be freed.  If the
- * environment variable does not exists NULL is retruned and ERRNO set
+ * environment variable does not exists NULL is returned and ERRNO set
  * to 0.  */
 char *
 _gpgrt_getenv (const char *name)
diff --git a/src/visibility.c b/src/visibility.c
index 2039ef7..9358163 100644
--- a/src/visibility.c
+++ b/src/visibility.c
@@ -1009,6 +1009,7 @@ _gpgrt_log_assert (const char *expr, const char *file,
 }
 
 

+#if 0
 gpg_err_code_t
 gpgrt_make_pipe (int filedes[2], estream_t *r_fp, int direction, int nonblock)
 {
@@ -1063,7 +1064,7 @@ gpgrt_release_process (pid_t pid)
 {
   _gpgrt_release_process (pid);
 }
-
+#endif /*0*/
 
 

 /* For consistency reasons we use function wrappers also for Windows

-----------------------------------------------------------------------

Summary of changes:
 src/gpg-error.def.in | 17 +++++++++--------
 src/gpg-error.h.in   | 34 +++-------------------------------
 src/gpg-error.vers   | 17 +++++++++--------
 src/sysutils.c       |  2 +-
 src/visibility.c     |  3 ++-
 5 files changed, 24 insertions(+), 49 deletions(-)


hooks/post-receive
-- 
Error codes used by GnuPG et al.
http://git.gnupg.org




More information about the Gnupg-commits mailing list