thkukuk / libnss_nis Goto Github PK
View Code? Open in Web Editor NEWNSS module for glibc, to provide NIS support for glibc.
License: GNU Lesser General Public License v2.1
NSS module for glibc, to provide NIS support for glibc.
License: GNU Lesser General Public License v2.1
There are including head file rpcsvc/ypclnt.h in c. files, such as nis-ethers.c. But no rpcsvc folder under src.
Also no rpc, netinet, arpa, sys.
#include <rpc/types.h>
#include <rpcsvc/ypclnt.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/param.h>
Build errors with:
nis-hosts.c:39:10: fatal error: 'resolv/mapv4v6addr.h' file not found
#include <resolv/mapv4v6addr.h>
^~~~~~~~~~~~~~~~~~~~~~
This seems to be a private header, not installed by default in glibc.
I'm using a Linux embedded device with Yocto and I added mdns directly from Apple sources.
It contains a patch http://cgit.openembedded.org/meta-openembedded/tree/meta-networking/recipes-protocols/mdns/files/0001-nss_mdns-Do-not-include-nss.h-when-libc-glibc.patch?h=master to bypass nss.
Is this package required to use mdns (fully implemented in a standard way to pass certification procedures) or is it optional?
thank you.
Hello,
f152663 made __libc_once
to just set ONCE_CONTROL
. This is not only non-portable (pthread_once_t is not necessarily an integer), but it is also completely unsafe: there is no guarantee of INIT_FUNCTION
to be called only once if several threads call __libc_once
. To keep things safe without depending on libpthread, pthread_once_t should be replaced by a structure containing an integer and a mutex, so that the mutex can be taken around the whole if. (libcs ususally provides hooks for pthread_mutex_lock/unlock)
Samuel
| ../../git/src/nis-hosts.c:235:21: error: use of undeclared identifier 'RES_USE_INET6'
| ((_res.options & RES_USE_INET6) ? AF_INET6 : AF_INET),
| ^
| ../../git/src/nis-hosts.c:236:21: error: use of undeclared identifier 'RES_USE_INET6'
| ((_res.options & RES_USE_INET6) ? AI_V4MAPPED : 0 ));
| ^
| ../../git/src/nis-hosts.c:355:21: error: use of undeclared identifier 'RES_USE_INET6'
| ((_res.options & RES_USE_INET6) ? AI_V4MAPPED : 0));
| ^
| ../../git/src/nis-hosts.c:363:22: error: use of undeclared identifier 'RES_USE_INET6'
| if (_res.options & RES_USE_INET6)
| ^
| ../../git/src/nis-hosts.c:437:27: error: use of undeclared identifier 'RES_USE_INET6'
| ((_res.options & RES_USE_INET6)
| ^
| 5 errors generated.
| make[2]: *** [Makefile:682: nis-hosts.lo] Error 1
For replacing the nss_nis
module in glibc, we'd prefer if we could use a version number larger than 2.26, but we wouldn't want to override the upstream version. Would you be willing to make a new release, perhaps 2.99, or even 3.0?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.