<feed xmlns='http://www.w3.org/2005/Atom'>
<title>libgpg-error/src/visibility.c, branch gpgrt-1.50</title>
<subtitle>Error codes used by GnuPG et al.</subtitle>
<id>http://git.bktus.com/gpgfrontend/libgpg-error/atom?h=gpgrt-1.50</id>
<link rel='self' href='http://git.bktus.com/gpgfrontend/libgpg-error/atom?h=gpgrt-1.50'/>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/libgpg-error/'/>
<updated>2024-06-06T07:30:26Z</updated>
<entry>
<title>spawn: Expose gpgrt_spawn_actions functions.</title>
<updated>2024-06-06T07:30:26Z</updated>
<author>
<name>NIIBE Yutaka</name>
<email>gniibe@fsij.org</email>
</author>
<published>2024-06-06T07:30:26Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/libgpg-error/commit/?id=e644311383350ce704611cce69f322a7d9dd548e'/>
<id>urn:sha1:e644311383350ce704611cce69f322a7d9dd548e</id>
<content type='text'>
* src/gpg-error.def.in: Update.
* src/gpg-error.h.in: Add declarations.
* src/gpg-error.vers: Update.
* src/visibility.c: Update.
* src/visibility.h: Update.

--

Signed-off-by: NIIBE Yutaka &lt;gniibe@fsij.org&gt;
</content>
</entry>
<entry>
<title>Fix return type of gpgrt_b64dec_*.</title>
<updated>2024-06-06T00:01:20Z</updated>
<author>
<name>NIIBE Yutaka</name>
<email>gniibe@fsij.org</email>
</author>
<published>2024-06-06T00:01:20Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/libgpg-error/commit/?id=7d132a1a72ad618640640db278056ce04d32fdde'/>
<id>urn:sha1:7d132a1a72ad618640640db278056ce04d32fdde</id>
<content type='text'>
* src/gpg-error.h.in (gpgrt_b64dec_proc): Return gpg_err_code_t.
(gpgrt_b64dec_finish): Ditto.
* src/visibility.c: Fix return type.

--

Signed-off-by: NIIBE Yutaka &lt;gniibe@fsij.org&gt;
</content>
</entry>
<entry>
<title>spawn: Expose spawn functions API.</title>
<updated>2024-06-05T06:16:26Z</updated>
<author>
<name>NIIBE Yutaka</name>
<email>gniibe@fsij.org</email>
</author>
<published>2024-06-05T06:07:01Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/libgpg-error/commit/?id=2caaef8f6b89d7fcbbe3d480d192fe1952576942'/>
<id>urn:sha1:2caaef8f6b89d7fcbbe3d480d192fe1952576942</id>
<content type='text'>
* src/gpg-error.def.in: Update.
* src/gpg-error.vers: Update.
* src/gpg-error.h.in: Add declarations.
* src/visibility.c: Add implementations.
* src/visibility.h: Expose them.

--

GnuPG-bug-id: 6249
Signed-off-by: NIIBE Yutaka &lt;gniibe@fsij.org&gt;
</content>
</entry>
<entry>
<title>logging: New function gpgrt_logv_domain.</title>
<updated>2024-04-25T08:12:35Z</updated>
<author>
<name>Werner Koch</name>
<email>wk@gnupg.org</email>
</author>
<published>2024-04-25T08:12:35Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/libgpg-error/commit/?id=2f9a0895a103f0baf1c2ea38662112c1359bdb90'/>
<id>urn:sha1:2f9a0895a103f0baf1c2ea38662112c1359bdb90</id>
<content type='text'>
* src/gpg-error.h.in (gpgrt_logv_domain): New.  Also add printf
attributes to the other logv functions.
* src/visibility.c (gpgrt_logv_domain): New.
--

This function can be used instead of gpgrt_logv to provide a somain
string.  As of now this has no effect but we may later add an API to
allow selection of diagnostics depending on the domain.  There is also
a new (buffer,length) argument which will eventually be used to
provide a domain based gpgrt_log_printhex.
</content>
</entry>
<entry>
<title>core: New function gpgrt_add_post_log_func.</title>
<updated>2024-04-22T12:47:53Z</updated>
<author>
<name>Werner Koch</name>
<email>wk@gnupg.org</email>
</author>
<published>2024-04-22T12:47:53Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/libgpg-error/commit/?id=319a505623c197d06ca3e76f30691fe65a982d6f'/>
<id>urn:sha1:319a505623c197d06ca3e76f30691fe65a982d6f</id>
<content type='text'>
* src/gpg-error.h.in (gpgrt_add_post_log_func): New.
* src/gpg-error.vers: Add new function
* src/gpg-error.def.in: Ditto.
* src/visibility.c (gpgrt_add_post_log_func): New.
* src/logging.c (struct post_log_func_item_s): New.
(post_log_func_list): New.
(_gpgrt_add_post_log_func): new.
(run_post_log_funcs): New.
(_gpgrt_logv_internal): Call for fatal and bug log levels.
--

This is required in case an application or library needs to do do some
quick cleanups after a log_fatal.
</content>
</entry>
<entry>
<title>core: New function gpgrt_wipememory.</title>
<updated>2024-02-06T15:58:24Z</updated>
<author>
<name>Werner Koch</name>
<email>wk@gnupg.org</email>
</author>
<published>2024-02-06T15:58:24Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/libgpg-error/commit/?id=1fdd8749014cf390d6ea9dd4350146473362044e'/>
<id>urn:sha1:1fdd8749014cf390d6ea9dd4350146473362044e</id>
<content type='text'>
* src/init.c (_gpgrt_wipememory): New.
* src/visibility.c (gpgrt_wipememory): New.
* src/visibility.h: Add it.
* src/gpg-error.def.in: Ditto.
* src/gpg-error.vers: Ditto.
--

GnuPG-bug-id: 6954
</content>
</entry>
<entry>
<title>Revert "spawn: Expose spawn functions."</title>
<updated>2022-11-15T00:32:22Z</updated>
<author>
<name>NIIBE Yutaka</name>
<email>gniibe@fsij.org</email>
</author>
<published>2022-11-15T00:31:49Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/libgpg-error/commit/?id=c580094dbe97249caebdedbf0f584e604fd20240'/>
<id>urn:sha1:c580094dbe97249caebdedbf0f584e604fd20240</id>
<content type='text'>
This reverts commit 43c1e85fe29a52a9debc068d97c5860a4694b821.

--

It's a bit early to expose these functions.

GnuPG-bug-id: 6249
Signed-off-by: NIIBE Yutaka &lt;gniibe@fsij.org&gt;
</content>
</entry>
<entry>
<title>spawn: Introduce gpgrt_process_t and use it for spawn API.</title>
<updated>2022-11-04T05:41:28Z</updated>
<author>
<name>NIIBE Yutaka</name>
<email>gniibe@fsij.org</email>
</author>
<published>2022-11-04T05:41:28Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/libgpg-error/commit/?id=5d30adb5ad376a07576b258b9395adadf5576867'/>
<id>urn:sha1:5d30adb5ad376a07576b258b9395adadf5576867</id>
<content type='text'>
* configure.ac (AC_FUNC_FORK): No use.
* src/gpg-error.h.in (@define:gpgrt_process_t@): New.
(@define:pid_t@): Remove.
(gpgrt_spawn_process, gpgrt_spawn_process_fd): Use gpgrt_process_t.
(gpgrt_wait_process, gpgrt_wait_processes): Likewise.
(gpgrt_kill_process, gpgrt_release_process): Likewise.
* src/gpgrt-int.h (_gpgrt_spawn_process): Likewise.
(_gpgrt_spawn_process_fd): Likewise.
(_gpgrt_wait_process, _gpgrt_wait_processes): Likewise.
(_gpgrt_kill_process, _gpgrt_release_process): Likewise.
* src/mkheader.c (write_special): Handle @define:gpgrt_process_t@.
Remove handling of @define:pid_t@.
* src/spawn-posix.c (_gpgrt_spawn_process): Use gpgrt_process_t.
(_gpgrt_spawn_process_fd): Likewise.
(_gpgrt_wait_process, _gpgrt_wait_processes): Likewise.
(_gpgrt_kill_process, _gpgrt_release_process): Likewise.
* src/spawn-w32.c (_gpgrt_spawn_process): Use gpgrt_process_t.
(_gpgrt_spawn_process_fd): Likewise.
(_gpgrt_wait_process, _gpgrt_wait_processes): Likewise.
(_gpgrt_kill_process, _gpgrt_release_process): Likewise.

--

GnuPG-bug-id: 6249
Signed-off-by: NIIBE Yutaka &lt;gniibe@fsij.org&gt;
</content>
</entry>
<entry>
<title>spawn: Fix spawn_cb of gpgrt_spawn_process_fd.</title>
<updated>2022-10-31T02:07:57Z</updated>
<author>
<name>NIIBE Yutaka</name>
<email>gniibe@fsij.org</email>
</author>
<published>2022-10-31T02:07:57Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/libgpg-error/commit/?id=6c20e8393eba4a9f330143b2158e28ea594cbadd'/>
<id>urn:sha1:6c20e8393eba4a9f330143b2158e28ea594cbadd</id>
<content type='text'>
* src/gpg-error.def.in (gpgrt_close_all_fds): New.
* src/gpg-error.vers (gpgrt_close_all_fds): New.
* src/gpg-error.h.in (GPGRT_SPAWN_INHERIT_FILE): New.
(gpgrt_spawn_process_fd): SPAWN_CB having return value.
* src/gpgrt-int.h (_gpgrt_spawn_process_fd): SPAWN_CB change.
* src/spawn-posix.c (_gpgrt_close_all_fds): Rename from close_all_fds,
and export it.
(do_exec): Support the case not closing fds.
(_gpgrt_spawn_process_fd): Handle return value of SPAWN_CB to
determine closing all fds or not.
* src/spawn-w32.c (_gpgrt_spawn_process_fd): Run SPAWN_CB.
(_gpgrt_close_all_fds): New.
* src/visibility.c (gpgrt_close_all_fds): New.
* src/visibility.h (gpgrt_close_all_fds): New.

--

Now, we have the API of gpgrt_spawn_process_fd for POSIX and Windows.
Giving portable semantics for spawning a process is difficult, and it
is still difficult for users to writing a function for SPAWN_CB with
portability, but gpgrt_spawn_process_fd gives the feature of spawning
a process.

GnuPG-bug-id: 6249
Signed-off-by: NIIBE Yutaka &lt;gniibe@fsij.org&gt;
</content>
</entry>
<entry>
<title>spawn: Expose spawn functions.</title>
<updated>2022-10-27T01:53:06Z</updated>
<author>
<name>NIIBE Yutaka</name>
<email>gniibe@fsij.org</email>
</author>
<published>2022-10-27T01:53:06Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/libgpg-error/commit/?id=43c1e85fe29a52a9debc068d97c5860a4694b821'/>
<id>urn:sha1:43c1e85fe29a52a9debc068d97c5860a4694b821</id>
<content type='text'>
* src/gpg-error.def.in: Update.
* src/gpg-error.vers: Update.
* src/gpg-error.h.in: Add declarations.
* src/visibility.c: Add implementations.
* src/visibility.h: Expose them.

--

GnuPG-bug-id: 6249
Signed-off-by: NIIBE Yutaka &lt;gniibe@fsij.org&gt;
</content>
</entry>
</feed>
