Commit Graph

95 Commits

Author SHA1 Message Date
hannken 6f60c4f99e Move the basic part of XDR to common/include/rpc and common/lib/libc/rpc.
No functional change intended.
2019-06-04 15:07:55 +00:00
hannken 25da6a6235 Implement xdrmem_control(), used as xdr_control(xdr, XDR_GET_BYTES_AVAIL ...
and bump libc minor number.

Final goal is to remove the unmaintained XDR implementation
at external/cddl/osnet/dist/uts/common/rpc.
2019-06-04 08:44:08 +00:00
christos 7b923e1c00 s/not sure why// and make these work :-) 2017-08-16 08:35:48 +00:00
dholland b030061971 Needs sys/select.h for fd_set; fails only when _POSIX_SOURCE is defined,
because then something else doesn't include it. (I guess.)
2016-01-23 02:36:57 +00:00
dholland 89050ca13e unsigned -> unsigned int in previous change to accomodate C++ boneheadedness. 2016-01-23 02:34:09 +00:00
dholland 29f79e71d2 u_int -> unsigned, u_long -> unsigned long, etc. 2016-01-23 01:05:30 +00:00
christos 58d11ee7bb provide a poll(2) based interface. 2015-11-07 23:10:37 +00:00
christos 670a38d899 Put back NULL tests for allocation failures. 2015-11-07 16:58:24 +00:00
christos cdf9ad9883 Switch to the size-unlimited fd_set. Some code will need to change to be
able to use this if the code allocates its own fd_set's.
2015-11-06 19:42:57 +00:00
christos fa13c0f43d - provide accessor functions for the fdset's used internally.
- add getreqset2 method that takes a setsize.
2015-11-06 19:35:40 +00:00
christos af46c9781f Always use the reentrant rpc_createerr. Otherwise every threaded program
that uses rpc needs to define _REENTRANT to work properly. We'll keep
compatibility but setting the old variable in the library, but we are not
advertising it anymore.
2014-06-06 14:31:24 +00:00
christos 4ce5b0bd1b PR/47617: Thorsten Brehm: Memory and socket leak in librpc 2013-03-04 17:29:03 +00:00
plunky 76be87e1ac provide a complete prototype for xdrproc_t
(I found no instances where three arguments were actually
used, as per the claim in the comment. If there are any
in third party code then they will need to use a cast)
2011-08-30 17:09:51 +00:00
plunky 87d4f6076b Apply casts to cases where xdrproc_t is expected but is not
strictly passed, for example because the second argument is
a different kind of pointer.
2011-08-30 17:06:20 +00:00
manu 319b6ef0ee Import xdr_sizeof() from FreeBSD 2011-07-04 07:54:38 +00:00
christos 50728e7823 merge christos-time_t 2009-01-11 02:57:17 +00:00
christos eadd73deca Centralize the TCP_NODELAY handling as discussed in tech-net. 2006-06-22 19:35:34 +00:00
wiz 1ad8067cb3 Fix typos, reported by Alexey Dobriyan ("Gathered from Linux"),
forwarded by jmc@openbsd.
2006-02-25 00:58:34 +00:00
yamt 354b4aa135 put back inline to __inline, as it's a user-visible header. 2005-12-28 15:26:06 +00:00
perry 5f65228b74 u_intN_t -> uintN_t 2005-12-26 19:01:47 +00:00
perry a2cd732268 Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete. 2005-12-24 19:12:23 +00:00
yamt 347f995cea - constify and remove __UNCONST from caller of clnt_call().
- use __UNCONST where approproate.
2005-12-03 15:16:19 +00:00
perry bbac53bdab Remove "register" from a comment. Kind of silly for it to have been
listed as a parameter for a function anyway...
2005-02-06 04:40:51 +00:00
perry 19b7469a00 de-__P -- the hack is long since useless. Discussed with christos,
matt, kleink, others. Approved by christos.
2005-02-03 04:39:32 +00:00
christos 0e1ce86abc cast 1 to size_t 2004-12-30 04:58:40 +00:00
ginsbach ebcc92c100 * add const qualifier making getrpcbyname() and getrpcbyname_r()
prototypes match those used in latest Sun RPC code (TI-RPC 2.3)
* modify function getrpcbyname() definition as appropriate
2004-08-16 02:47:54 +00:00
christos 290d5e3632 don't use TRUE or FALSE 2003-04-19 01:40:36 +00:00
christos edd9f0f170 x_handy is currently used only by xdr_mem and contains the number of bytes
left. make it unsigned.
2003-03-19 23:51:55 +00:00
wiz 7bd6fd354d unknown, not unkown. Noted by mjl. 2003-01-28 22:19:22 +00:00
tron 503456a35a Include "bsd.rpc.mk" before "bsd.prog.mk" to fix the "cleandir" target. 2003-01-11 13:28:43 +00:00
sommerfeld 8f6f405641 Use <bsd.rpc.mk> 2003-01-05 19:24:06 +00:00
fvdl 858b3fd46a Include rpc_com.h. 2002-11-08 00:10:58 +00:00
fvdl 0a46d2378d include rpc_com.h, and define SVC{GET,SET}_CONNMAXREC 2002-11-08 00:10:44 +00:00
fvdl c6e006104d Install rpc_com.h 2002-11-08 00:08:38 +00:00
fvdl 00503f61de Moved here from libc/rpc. Install this in /usr/include/rpc, just
like on Solaris. This wasn't done before, since it only contained
internal libc interfaces. These have been moved to rpc_internal.h,
and this file now contains some actual exported definitions.
2002-11-08 00:08:20 +00:00
simonb 698144f2f8 Make it obvious in comments that dispatch takes some arguments (from
Broadcom).
Fix some white space nits.
2002-02-25 22:44:56 +00:00
simonb 8afa23b8bb Put token after #endif in comments (from Broadcom).
Fix some small tyops in two comments.
2002-02-25 22:37:44 +00:00
tv 5e6444c144 Cope with RPCGEN now conta8ining multiple words. 2002-01-29 11:22:25 +00:00
tv b6499748ae Be smarter about finding rpcgen's absolute path; only do it if ${RPCGEN}
(when evaluated) does not start with a /.  Also don't go through a make(1)
recursion step; just use !=.
2001-11-01 15:03:07 +00:00
tv 01523890ba No need to do the tricky XRPCGEN dance. 2001-10-31 20:58:28 +00:00
mrg 140ad8e524 #ifdef __STDC__ -> #if __STDC__. 2001-08-04 07:08:55 +00:00
wiz 3f9984fc90 `existent', not `existant' 2001-06-19 13:42:07 +00:00
wiz f3f6c5b675 `accessible' only has one `a'. 2001-06-19 12:52:20 +00:00
mycroft fd917aa892 Use `rpcgen -C'. 2001-03-21 20:48:09 +00:00
cgd 8318d9d0b9 change 'char *' args of clnt_pcreateerror, clnt_spcreateerror,
clnt_perror, and clnt_sperror to 'const char *' to follow manual
pages (!!).
2001-02-13 01:00:21 +00:00
cgd c338834cd9 use expr to do subtraction. shell math isn't as portable. 2001-01-16 02:42:39 +00:00
enami c89a720a26 Sync with lib/librpcsvc/Makefile; Pass -B ${MAKEFLAGS} to submake. 2001-01-07 06:56:15 +00:00
erh 5303e70da5 Make targets which are generated with rpcgen depend on the rpcgen binary. 2000-09-10 23:21:49 +00:00
cgd 4bf5f7086b ${RPCGEN}, not hard-coded rpcgen 2000-07-25 06:29:44 +00:00
matt 428b8d7beb Add some missing ints 2000-07-17 05:00:45 +00:00