aboutsummaryrefslogtreecommitdiff
path: root/sunrpc
AgeCommit message (Collapse)AuthorFilesLines
2014-07-10Add comment about SIZE initialization in xdr.cSiddhesh Poyarekar1-0/+2
2014-07-09Fix -Wmaybe-uninitialized warning in xdr.cSiddhesh Poyarekar1-1/+1
While we're at fixing build warnings, here's one unnecessary warning that can be fixed fairly easily. The SIZE variable is never actually use uninitialized, but the compiler cannot make that out and thinks (correctly) that there is a potential for accessing SIZE without initializing it. Make this safe by initializing SIZE to 0. Tested on x86_64.
2014-02-28Fix fallout from Joseph's untested Makeconfig change.Roland McGrath1-3/+3
2014-02-26Consistently include Makeconfig after defining subdir.Joseph Myers1-4/+2
In <https://sourceware.org/ml/libc-alpha/2014-01/msg00196.html> I noted it was necessary to add includes of Makeconfig early in various subdirectory makefiles for the tests-special variable settings added by that patch to be conditional on configuration information. No-one commented on the general question there of whether Makeconfig should always be included immediately after the definition of subdir. This patch implements that early inclusion of Makeconfig in each directory (which is a lot easier than consistent placement of includes of Rules). Includes are added if needed, or moved up if already present. Subdirectory "all:" targets are removed, since Makeconfig provides one. There is potential for further cleanups I haven't done. Rules and Makerules have code such as ifneq "$(findstring env,$(origin headers))" "" headers := endif to override to empty any value of various variables that came from the environment. I think there is a case for Makeconfig setting all the subdirectory variables (other than subdir) to empty to ensure no outside value is going to take effect if a subdirectory fails to define a variable. (A list of such variables, possibly out of date and incomplete, is in manual/maint.texi.) Rules and Makerules would give errors if Makeconfig hadn't already been included, instead of including it themselves. The special code to override values coming from the environment would then be obsolete and could be removed. Tested x86_64, including that installed binaries are identical before and after the patch. * argp/Makefile: Include Makeconfig immediately after defining subdir. * assert/Makefile: Likewise. * benchtests/Makefile: Likewise. * catgets/Makefile: Likewise. * conform/Makefile: Likewise. * crypt/Makefile: Likewise. * csu/Makefile: Likewise. (all): Remove target. * ctype/Makefile: Include Makeconfig immediately after defining subdir. * debug/Makefile: Likewise. * dirent/Makefile: Likewise. * dlfcn/Makefile: Likewise. * gmon/Makefile: Likewise. * gnulib/Makefile: Likewise. * grp/Makefile: Likewise. * gshadow/Makefile: Likewise. * hesiod/Makefile: Likewise. * hurd/Makefile: Likewise. (all): Remove target. * iconvdata/Makefile: Include Makeconfig immediately after defining subdir. * inet/Makefile: Likewise. * intl/Makefile: Likewise. * io/Makefile: Likewise. * libio/Makefile: Likewise. (all): Remove target. * locale/Makefile: Include Makeconfig immediately after defining subdir. * login/Makefile: Likewise. * mach/Makefile: Likewise. (all): Remove target. * malloc/Makefile: Include Makeconfig immediately after defining subdir. (all): Remove target. * manual/Makefile: Include Makeconfig immediately after defining subdir. * math/Makefile: Likewise. * misc/Makefile: Likewise. * nis/Makefile: Likewise. * nss/Makefile: Likewise. * po/Makefile: Likewise. (all): Remove target. * posix/Makefile: Include Makeconfig immediately after defining subdir. * pwd/Makefile: Likewise. * resolv/Makefile: Likewise. * resource/Makefile: Likewise. * rt/Makefile: Likewise. * setjmp/Makefile: Likewise. * shadow/Makefile: Likewise. * signal/Makefile: Likewise. * socket/Makefile: Likewise. * soft-fp/Makefile: Likewise. * stdio-common/Makefile: Likewise. * stdlib/Makefile: Likewise. * streams/Makefile: Likewise. * string/Makefile: Likewise. * sunrpc/Makefile: Likewise. (all): Remove target. * sysvipc/Makefile: Include Makeconfig immediately after defining subdir. * termios/Makefile: Likewise. * time/Makefile: Likewise. * timezone/Makefile: Likewise. (all): Remove target. * wcsmbs/Makefile: Include Makeconfig immediately after defining subdir. * wctype/Makefile: Likewise. libidn/ChangeLog: * Makefile: Include Makeconfig immediately after defining subdir. localedata/ChangeLog: * Makefile: Include Makeconfig immediately after defining subdir. (all): Remove target. nptl/ChangeLog: * Makefile: Include Makeconfig immediately after defining subdir. nptl_db/ChangeLog: * Makefile: Include Makeconfig immediately after defining subdir.
2014-02-10Use glibc_likely instead __builtin_expect.Ondřej Bílka2-3/+3
2014-01-01Update copyright notices with scripts/update-copyrightsAllan McRae14-14/+14
2013-10-21Document rpcgen -5. Fixes bug 15825Ondřej Bílka1-0/+3
2013-09-11sunrpc/rpc/types.h: fix OS X and FreeBSD build problemsJia Liu1-0/+5
When I build arm-linux-gcc on OS X, I find glibc will get a build error in sunrpc/rpc/types.h, so I add __APPLE_CC__ to make OS X build OK. For FreeBSD, Add __FreeBSD__ to make it build OK, too. URL: http://sourceware.org/ml/libc-alpha/2013-09/msg00155.html URL: http://sourceware.org/ml/libc-alpha/2013-09/msg00217.html URL: http://sourceware.org/ml/libc-alpha/2013-09/msg00240.html Signed-off-by: Jia Liu <proljc@gmail.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2013-09-04Remove --disable-versioning.Joseph Myers1-1/+1
2013-08-30Fix typos.Ondřej Bílka1-1/+1
2013-08-29Fix typos.Ondřej Bílka3-6/+6
2013-08-21Fix typos.Ondřej Bílka1-1/+1
2013-06-08Use (void) in no-arguments function definitions.Joseph Myers2-2/+2
2013-06-06Fix leading whitespaces.Ondrej Bilka1-1/+1
2013-06-05Remove trailing whitespace.Joseph Myers1-1/+1
2013-05-16Add #include <stdint.h> for uint[32|64]_t usage (except installed headers).Ryan S. Arnold7-0/+7
2013-05-10Use *stat64 instead of *stat in installed programsFlorian Weimer1-5/+5
This ensures reliable operation on file systems with inode numbers which do not fit into 32 bits.
2013-05-10Localize rpcgenAndreas Jaeger1-0/+4
[BZ #15395] * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for localization. Include <locale.h>.
2013-01-02Update copyright notices with scripts/update-copyrights.Joseph Myers14-14/+14
2012-12-05 * sunrpc/etc.rpc (fedfs_admin): Add entry.Jeff Law1-0/+1
2012-11-30 * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...Siddhesh Poyarekar1-1/+0
* include/rpc/svc.h: ... here.
2012-11-28 [BZ #14889]Jeff Law5-2/+110
* sunrpc/rpc/svc.h (__svc_accept_failed): New prototype. * sunrpc/svc.c: Include time.h. (__svc_accept_failed): New function. * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for any reason other than EINTR, call __svc_accept_failed. * sunrpc/svc_udp.c (svcudp_recv): Similarly. * sunrpc/svc_unix.c (rendezvous_request): Similarly.
2012-11-19bindresvport() uses two static variables port and startport which are notPeng Haitao1-0/+11
protected. It is not safe when in multithread circumstance. bindresvport() select a port number from the range 512 to 1023, when in multithread circumstance, the port may be 1024. So the static variables will be protected. Signed-off-by: Peng Haitao <penght@cn.fujitsu.com> Reviewed-by: Carlos O'Donell <carlos@systemhalted.org>
2012-11-09Support --with-pkgversion and --with-bugurl.Joseph Myers3-9/+6
2012-11-09Fix sunrpc 64-bit (especially big-endian) issues (bug 14821).Joseph Myers3-56/+56
2012-08-07rpcgen - fall back to looking for cpp in system pathAllan McRae1-22/+18
Fall back to the system cpp when /lib/cpp is not present. Removes searching for /usr/ccs/lib/cpp which is not supported on any system that uses glibc.
2012-07-26Fix some -Wformat warnings in rpcgen.Roland McGrath3-3/+3
2012-07-06sunrpc: fix rpc bootstrap buildsMike Frysinger1-1/+1
If you build & install glibc w/rpc disabled, you no longer have headers in /usr/include/rpc/ (this is expected). But if you try to build glibc w/rpc enabled, this gets into a bad state due to the new rpc helpers that get cross-compiled: $ make ... x86_64-pc-linux-gnu-gcc -m32 -D_RPC_THREAD_SAFE_ -D_GNU_SOURCE -DIS_IN_build \ -include $objdir/config.h rpc_clntout.c -o $objdir/sunrpc/cross-rpc_clntout.o \ -MMD -MP -MF $objdir/sunrpc/cross-rpc_clntout.o.dt -MT $objdir/sunrpc/cross-rpc_clntout.o -c rpc_clntout.c:34:23: fatal error: rpc/types.h: No such file or directory compilation terminated. make: *** [$objdir/sunrpc/cross-rpc_clntout.o] Error 1 Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2012-05-24Remove use of INTDEF/INTUSE in libioAndreas Schwab2-6/+6
2012-05-21Fix sunrpc static libraryAndreas Jaeger2-2/+6
* include/shlib-compat.h (libc_sunrpc_symbol): New macro. * sunrpc/svc_simple.c: Use it for registerrpc. * sunrpc/xcrypt.c: Use it for passwd2des.
2012-05-16Fix dependency tracking on cross-rpcgen-objsAndreas Schwab1-5/+3
2012-05-10Make sunrpc code usable againAndreas Jaeger50-152/+158
New configure option --enable-obsolete-rpc makes the deprecated RPC headers and functions available at compile time as they were before version 2.14. This option will be removed at some time in the future after the TI-RPC library becomes fully sufficient for the needs of existing applications.
2012-05-10Build rpcgen-generated files when cross compiling.Maxim Kuvyrkov2-8/+40
2012-05-10Add dependency tracking for rpc-compat-routinesAndreas Schwab1-2/+6
2012-03-232012-03-23 Daniel Jacobowitz <dmj@google.com>Paul Pluzhnikov1-5/+0
Paul Pluzhnikov <ppluzhnikov@google.com> [BZ #6528] * grp/Makefile (otherlibs): Don't set it. * inet/Makefile (otherlibs): Likewise. * login/Makefile (otherlibs): Likewise. * nscd/Makefile (otherlibs): Likewise. * posix/Makefile (otherlibs): Likewise. * pwd/Makefile (otherlibs): Likewise. * rt/Makefile (otherlibs): Likewise. * sunrpc/Makefile (otherlibs): Likewise. * nss/Makefile (otherlibs): Likewise. Add libnss_files to routines and static-only-routines. ($(objpfx)getent): Remove rule. * resolv/Makefile: Add libnss_dns and libresolv to routines and static-only-routines.
2012-03-10Use standard build rule to build rpcgen.Joseph Myers2-4/+4
2012-03-09Remove __GNU_LIBRARY__ conditionals from rpcgen.Joseph Myers3-57/+1
2012-03-07Remove distribute variable from MakefilesUlrich Drepper1-7/+1
2012-02-09Replace FSF snail mail address with URLs.Paul Eggert10-30/+19
2012-01-07Remove pre-ISO C supportUlrich Drepper6-49/+49
No more __const.
2011-12-04Fix aliasing issues in RPC codeUlrich Drepper3-3/+31
2011-11-12Fix case value used in RPC codUlrich Drepper1-1/+1
2011-10-08Fix netname2hostAndreas Jaeger1-3/+2
2011-09-10Cleanup of configuration optionsUlrich Drepper15-64/+29
Make several tool features mandatory and simplify the code.
2011-06-10Quash some new warnings from GCC 4.6.Roland McGrath1-4/+5
2011-05-06Install rpc/netdb.h againAndreas Schwab1-3/+4
2011-04-22Fix "make xcheck" in sunrpc.H.J. Lu4-3/+16
2011-04-20Fix build problem in sunrpc.Ulrich Drepper1-2/+2
2011-04-17Add before-compile to dependencies for librpc_compat_pic objects.Ulrich Drepper1-1/+1
2011-04-16Obsolete RPC implementation in libc.Ulrich Drepper52-452/+730