NetworkManager/shared/nm-glib-aux
Thomas Haller 39b52d0fd0
shared: add nm_utils_uid_to_name()/nm_utils_name_to_uid() helpers
These are inspired by systemd.

We should replace our calls to getpwuid() and getpwnam() with
their thread safe variants.

We run possibly multiple threads (e.g. helper threads from GDBus and
GResolver). It's hard to be sure that they don't also access the
functions.
2020-09-25 21:03:27 +02:00
..
tests shared: extend nm_utils_hexstr2bin_full() to require hexdigits in pairs 2020-09-22 17:40:41 +02:00
nm-c-list.h shared: add nm_c_list_for_each_entry_prev() helper macro 2019-10-18 22:09:18 +02:00
nm-dbus-aux.c shared: allow nm_dbus_connection_call_finish_variant_cb() with D-Bus methods that have no return value 2020-03-23 09:32:04 +01:00
nm-dbus-aux.h shared: add nm_dbus_connection_call_set() util 2020-02-10 19:11:50 +01:00
nm-dedup-multi.c shared: use designated initializer in nm_dedup_multi_idx_type_init() 2020-07-31 08:53:03 +02:00
nm-dedup-multi.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nm-enum-utils.c shared: use NMStrBuf in _nm_utils_enum_to_str_full() 2020-04-03 11:31:12 +02:00
nm-enum-utils.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nm-errno.c all: fix minor typos 2020-07-07 11:33:46 +02:00
nm-errno.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nm-glib.h glib: always re-implement g_steal_pointer() 2020-06-15 15:56:30 +02:00
nm-hash-utils.c shared: add nm_gbytes_hash() and nm_gbytes_equal() 2020-04-28 18:35:59 +02:00
nm-hash-utils.h shared: add nm_puint32_hash/nm_puint32_equals helpers 2020-08-06 18:12:01 +02:00
nm-io-utils.c all: fix typo in man pages 2020-07-03 10:48:04 +02:00
nm-io-utils.h all: fix minor typos 2020-07-07 11:33:46 +02:00
nm-jansson.h all: add trailing semicolon to NM_AUTO_DEFINE_FCN_*() uses 2020-07-19 12:01:56 +02:00
nm-json-aux.c shared: cleanup dlopening libjansson depending on configure options 2020-07-09 12:57:15 +02:00
nm-json-aux.h shared,libnm: rename nm_json_aux_gstr_*() API to nm_json_gstr_*() 2020-07-09 11:47:06 +02:00
nm-keyfile-aux.c all/style: remove duplicate semicolon (";;") in sources 2020-09-23 12:43:47 +02:00
nm-keyfile-aux.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nm-logging-base.c shared: move log level info from core to "nm-logging-base.h" 2019-11-28 19:20:33 +01:00
nm-logging-base.h shared: move log level info from core to "nm-logging-base.h" 2019-11-28 19:20:33 +01:00
nm-logging-fwd.h shared: add LOGD_DHCP_from_addr_family() helper 2020-02-17 14:45:09 +01:00
nm-macros-internal.h shared: add NM_PRINT_FMT_QUOTED2() helper macro 2020-09-24 09:43:53 +02:00
nm-obj.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nm-random-utils.c all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nm-random-utils.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nm-ref-string.c all: fix minor typos 2020-07-07 11:33:46 +02:00
nm-ref-string.h all: add trailing semicolon to NM_AUTO_DEFINE_FCN_*() uses 2020-07-19 12:01:56 +02:00
nm-secret-utils.c shared: use G_UNLIKELY() macro for unlikely branch in nm_explicit_bzero() 2020-04-03 11:31:12 +02:00
nm-secret-utils.h all: add trailing semicolon to NM_AUTO_DEFINE_FCN_*() uses 2020-07-19 12:01:56 +02:00
nm-shared-utils.c shared: add nm_utils_uid_to_name()/nm_utils_name_to_uid() helpers 2020-09-25 21:03:27 +02:00
nm-shared-utils.h shared: add nm_utils_uid_to_name()/nm_utils_name_to_uid() helpers 2020-09-25 21:03:27 +02:00
nm-str-buf.h all: fix minor typos 2020-07-07 11:33:46 +02:00
nm-time-utils.c shared/trivial: rename time related functions to use "nsec"/"msec" abbreviation instead of "ns"/"ms" 2020-02-10 19:11:50 +01:00
nm-time-utils.h shared: add nm_utils_get_monotonic_timestamp_msec_cached() helper 2020-02-10 19:11:50 +01:00
nm-value-type.h all/style: remove duplicate semicolon (";;") in sources 2020-09-23 12:43:47 +02:00