Commit: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 2 (+1082 -1361) |
2832 libsocket should go the way of libpthread
Review Request #649 — Created Aug. 14, 2017 and discarded
Information | |
---|---|
yuripv | |
illumos-gate | |
master | |
2832 | |
Reviewers | |
general | |
Make libsocket a filter library, moving its symbols to libc and libnsl.
I've checked the FreeBSD and Linux to see if they export these symbols in libc, and decided on that.
There's another problem here -- even if symbol should be in libc, it could be so tightly tied to libnsl interfaces that it's much easier (for the moment) to have it in libnsl and simply set a filter in libc.
This review only includes the lib/libc, lib/nsl, libsocket, and libxnet changes for easier reviewing -- there are a lot of other changes through the gate Makefiles to remove
-lsocket
, and, where it's not needed,-lnsl
.
- build
- boot
- compiling some of the external packages to see if they find all symbols they need in libc
-
-
usr/src/lib/libsocket/Makefile (Diff revision 2) Excerpt from CDDL 3.3 Required Notices: "You may not remove or alter any copyright, patent or trademark notices contained within the Covered Software, or any notices of licensing or any descriptive text giving attribution to any Contributor or the Initial Developer."
-
usr/src/lib/libsocket/i386/Makefile (Diff revision 2) Excerpt from CDDL 3.3 Required Notices: "You may not remove or alter any copyright, patent or trademark notices contained within the Covered Software, or any notices of licensing or any descriptive text giving attribution to any Contributor or the Initial Developer."
-
usr/src/lib/libsocket/sparc/Makefile (Diff revision 2) Excerpt from CDDL 3.3 Required Notices: "You may not remove or alter any copyright, patent or trademark notices contained within the Covered Software, or any notices of licensing or any descriptive text giving attribution to any Contributor or the Initial Developer."
-
usr/src/lib/libsocket/sparcv9/Makefile (Diff revision 2) Excerpt from CDDL 3.3 Required Notices: "You may not remove or alter any copyright, patent or trademark notices contained within the Covered Software, or any notices of licensing or any descriptive text giving attribution to any Contributor or the Initial Developer."
-
-
-
-
usr/src/lib/libnsl/nss/gethostent.c (Diff revision 2) I'm not certain removing this will do the right thing, but I have nothing concrete, just worries.
-
-
usr/src/lib/libc/port/inet/socketpair.c (Diff revision 2) Why remove the types, and the error checking they provide?