unofficial mirror of libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/7] More type safety for NSS modules
@ 2020-02-12 14:34 Florian Weimer
  2020-02-12 14:34 ` [PATCH 1/7] nss_compat: Do not use nss_* names for function pointers Florian Weimer
                   ` (8 more replies)
  0 siblings, 9 replies; 29+ messages in thread
From: Florian Weimer @ 2020-02-12 14:34 UTC (permalink / raw)
  To: libc-alpha

This series adds a macro NSS_DECLARE_MODULE_FUNCTIONS macro to <nss.h>.
Module authors can use this macro to declare all the possible functions
for a module, and define only the function they need.  This avoids type
mismatches in these interfaces.

As a side effect, we now have what is hopefully a complete list of all
such module functions.  This should help with re-architecting the
internal NSS functions for nsswitch.conf reloading.

Thanks,
Florian

Florian Weimer (7):
  nss_compat: Do not use nss_* names for function pointers
  nss: Add function types and NSS_DECLARE_MODULE_FUNCTIONS macro to
    <nss.h>
  nss_hesiod: Use NSS_DECLARE_MODULE_FUNCTIONS
  nss_compat: Use NSS_DECLARE_MODULE_FUNCTIONS
  nss_db: Use NSS_DECLARE_MODULE_FUNCTIONS
  nss_files: Use NSS_DECLARE_MODULE_FUNCTIONS
  nss_dns: Use NSS_DECLARE_MODULE_FUNCTIONS

 hesiod/nss_hesiod/hesiod-grp.c     |   2 +
 hesiod/nss_hesiod/hesiod-proto.c   |   2 +
 hesiod/nss_hesiod/hesiod-pwd.c     |   2 +
 hesiod/nss_hesiod/hesiod-service.c |   2 +
 nscd/aicache.c                     |  23 +---
 nss/nss.h                          | 203 ++++++++++++++++++++++++++++-
 nss/nss_compat/compat-grp.c        |  56 ++++----
 nss/nss_compat/compat-initgroups.c |  73 ++++++-----
 nss/nss_compat/compat-pwd.c        |  58 +++++----
 nss/nss_compat/compat-spwd.c       |  46 +++----
 nss/nss_db/db-init.c               |   2 +
 nss/nss_db/db-initgroups.c         |   1 -
 nss/nss_db/nss_db.h                |   1 +
 nss/nss_files/files-alias.c        |   2 +
 nss/nss_files/files-ethers.c       |   3 +
 nss/nss_files/files-grp.c          |   3 +
 nss/nss_files/files-hosts.c        |   2 +
 nss/nss_files/files-init.c         |   3 +
 nss/nss_files/files-initgroups.c   |   3 +
 nss/nss_files/files-key.c          |   2 +
 nss/nss_files/files-netgrp.c       |   2 +
 nss/nss_files/files-network.c      |   3 +
 nss/nss_files/files-proto.c        |   2 +
 nss/nss_files/files-pwd.c          |   3 +
 nss/nss_files/files-rpc.c          |   2 +
 nss/nss_files/files-service.c      |   2 +
 nss/nss_files/files-sgrp.c         |   3 +
 nss/nss_files/files-spwd.c         |   3 +
 resolv/nss_dns/dns-canon.c         |   2 +
 resolv/nss_dns/dns-host.c          |   2 +
 resolv/nss_dns/dns-network.c       |   2 +
 sysdeps/posix/getaddrinfo.c        |  18 +--
 32 files changed, 384 insertions(+), 149 deletions(-)

-- 
2.24.1


^ permalink raw reply	[flat|nested] 29+ messages in thread

end of thread, other threads:[~2020-02-25 16:44 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-12 14:34 [PATCH 0/7] More type safety for NSS modules Florian Weimer
2020-02-12 14:34 ` [PATCH 1/7] nss_compat: Do not use nss_* names for function pointers Florian Weimer
2020-02-12 22:36   ` DJ Delorie
2020-02-12 14:34 ` [PATCH 2/7] nss: Add function types and NSS_DECLARE_MODULE_FUNCTIONS macro to <nss.h> Florian Weimer
2020-02-13  1:10   ` DJ Delorie
2020-02-12 14:34 ` [PATCH 3/7] nss_hesiod: Use NSS_DECLARE_MODULE_FUNCTIONS Florian Weimer
2020-02-13  1:11   ` DJ Delorie
2020-02-12 14:34 ` [PATCH 4/7] nss_compat: " Florian Weimer
2020-02-13  1:14   ` DJ Delorie
2020-02-12 14:34 ` [PATCH 5/7] nss_db: " Florian Weimer
2020-02-13  1:18   ` DJ Delorie
2020-02-12 14:34 ` [PATCH 6/7] nss_files: " Florian Weimer
2020-02-13  1:26   ` DJ Delorie
2020-02-13  8:12     ` Florian Weimer
2020-02-12 14:34 ` [PATCH 7/7] nss_dns: " Florian Weimer
2020-02-13  1:19   ` DJ Delorie
2020-02-12 14:39 ` [PATCH 8/7] nss_nisplus: " Florian Weimer
2020-02-13  1:31   ` DJ Delorie
2020-02-13  8:11     ` Florian Weimer
2020-02-13  9:01 ` [PATCH 9/7] nss_nis: " Florian Weimer
2020-02-13  9:16   ` Andreas Schwab
2020-02-13  9:21   ` Andreas Schwab
2020-02-13  9:31     ` Florian Weimer
2020-02-13  9:38       ` Andreas Schwab
2020-02-25 14:50         ` Florian Weimer
2020-02-25 15:09           ` Andreas Schwab
2020-02-25 16:10             ` Florian Weimer
2020-02-25 16:41               ` Andreas Schwab
2020-02-25 16:44                 ` Florian Weimer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).