Commit Graph

404 Commits

Author SHA1 Message Date
matt
547b3a3b01 Changes to existing files to enable building AARCH64 userland.
evbarm64-el
This is clang only.  While gcc4.8 supports aarch64, no netbsd support has
been written for aarch64 with gcc4.8.
2014-08-10 05:56:36 +00:00
christos
f75f663858 Don't try to listen on UDP sockets. 2014-05-29 12:35:45 +00:00
christos
721439951a CID 975117: check listen(2) return . 2014-05-28 14:49:28 +00:00
christos
bf67527d19 CID 97511{4,5}: Ignore bindresvport return. It only works for root. 2014-05-28 14:45:57 +00:00
christos
226875968c CID 975113: Ignore __rpc_setnodelay error, it is not fatal 2014-05-28 14:45:19 +00:00
christos
e05a011b8f CID 975112: Ignore bindresvport() return. This is can only succeed for root 2014-05-28 14:41:47 +00:00
christos
002a6c3217 Increment to the value, not the pointer. (Thorsten Brehm) 2014-01-21 17:39:24 +00:00
christos
a8aa636f1e don't lose the RPC error from CLNT_CALL. 2014-01-02 20:12:23 +00:00
christos
fc8781bab9 Avoid casting gymnastics that lead to pointer aliasing by introducing an
inline function.
2013-10-17 23:58:05 +00:00
christos
1eb9e03aa2 - add __clnt_sigfillset() that does not blindly block all signals but excludes
the tty generated ones (int, quit, tstp), plus term and hup. This makes
  command line clients behave on connect(2) where before they would need
  to be killed from a different tty. Much easier than making the file
  descriptor non-blocking for the duration of connect and then using
  pselect/pollts to detect when actual connection or timeout occured using
  a different sigmask.
- factor out some of the error paths.
2013-05-07 21:08:44 +00:00
christos
b3e96d6652 PR/47747: Thorsten Brehm: TCP-based RPC client calls no longer terminate when
connections break. Return proper error code.
XXX: pullup 6
2013-04-17 16:36:47 +00:00
dholland
b4acc95ea0 stdlib.h, not malloc.h 2013-04-05 03:17:38 +00:00
tron
47c0e0c312 Replace previous Sun Microsystems, Inc. license with a standard
BSD 3-clause license granted by Oracle America, Inc..
This license change was approved by Wim Coekaerts, Senior Vice President,
Linux and Virtualization at Oracle Corporation.

This fixes PR lib/45293 by Pedro Giffuni.
2013-03-11 20:19:28 +00:00
christos
2dec884d64 make this usable from RUMP 2013-03-05 19:55:22 +00:00
christos
4ce5b0bd1b PR/47617: Thorsten Brehm: Memory and socket leak in librpc 2013-03-04 17:29:03 +00:00
christos
e24729def6 fix error messages and warnings. 2013-03-04 17:17:56 +00:00
christos
7ecc2916f6 PR/13082: Thorsten Brehm: Fix wrong memcpy that caused possible memory
corruption. XXX: pullup to 6.
2013-02-26 16:33:57 +00:00
joerg
e16a720f89 Don't depend on HAVE_GCC being always defined. 2012-08-10 12:20:10 +00:00
abs
9e66e6d75e Update old-style definitions to ANSI, remove a couple of register
definitions along the way. Fixed gcc 4.1 build (thank you vax)
2012-06-25 22:32:43 +00:00
christos
3d365e7447 fix old style definitions; XXX: gcc should have picked them up but it did not. 2012-06-24 15:26:02 +00:00
wiz
2e352fbff8 Remove unneeded commas in table.
From Bug Hunting.
2012-05-13 15:47:38 +00:00
christos
1bb11e66cb vax-specific lint fixes. 2012-03-22 17:32:21 +00:00
matt
adb7422177 Use C89 definitions
Remove use of __P
2012-03-20 17:14:50 +00:00
christos
768a62209a parenthesize. 2012-03-18 16:43:34 +00:00
christos
c5e820cae4 PR/45989: Martin Husemann: lint invocation does include -w only on i386
- turn lint -w for all the platforms after fixing the lint warnings.
- add _DIAGASSERTS() for casts that would assign values to types that
  would not fit.
- change types, add casts
- change into ansii prototypes
- turn on _DIAGNOSTIC for libc (during current, to be eliminated for release
  builds)

approved by core@
2012-03-13 21:13:30 +00:00
dholland
b972515e63 Remove unnecessary cast to caddr_t. 2012-01-02 21:29:55 +00:00
dholland
677bc7fd8c stdlib.h, not malloc.h 2012-01-02 21:29:29 +00:00
christos
9292cfb210 close on exec fixes:
- open + fcntl -> open O_CLOEXEC
- configuration database file descriptors that can stay open are now opened
  fopen(db, "re")
2011-10-15 23:00:01 +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
wiz
d89020203c Bump date for xdr_sizeof. Remove trailing whitespace. 2011-07-08 19:28:22 +00:00
manu
8f6bd1b1eb Add documentation link xdr_sizeof(3) -> xdr(3) 2011-07-04 12:05:00 +00:00
mrg
ceb5b44c16 insert some (uintptr_t) between int and pointer casts. 2011-07-04 11:01:40 +00:00
manu
b4a55eb6f9 Document newly imported xdr_sizeof() 2011-07-04 08:19:51 +00:00
manu
319b6ef0ee Import xdr_sizeof() from FreeBSD 2011-07-04 07:54:38 +00:00
mrg
c111245a78 apply some -Wno-error and/or -fno-strict-aliasing.
all of this should be looked at closer, but some of them are not
very trivial.
2011-06-22 02:49:41 +00:00
mrg
493d341048 various build fixes for gcc 4.5. from chuq. XXX i'm not sure all of
these work properly wtf pointer aliasing, but there are no casts at
least...

the lib/libpuffs/puffs_priv.h is definately a real bug fix.

from chuq.
2011-06-20 09:11:16 +00:00
enami
bde048cc49 Use Pq or Po macro for better output rather than putting raw open paren
at the end of line.
2011-05-17 03:35:38 +00:00
christos
41ed061fdf PR/44514: Andrey Simonenko: Buffer underflow in RPC library for non-blocking
TCP sockets
2011-02-04 17:38:15 +00:00
christos
4a4722163b knf - no functional changes 2011-02-04 17:36:54 +00:00
joerg
6ab2cfd0b3 Use __isthreaded from reentrant.h and don't redeclare it. 2010-12-08 02:06:38 +00:00
christos
05f534f3c7 PR/44132: Wolfgang Stukenbrock: libc/rpc may overwrite not-allocated memory
Return XPRT_DIED when realloc fails for lack of a better error.
2010-11-23 14:02:01 +00:00
tron
98e3b3e4ec Explicitly cast argument of ffs(3) to fix lint error. 2010-07-08 20:12:37 +00:00
rmind
cb0faac14c svc_getreq[set]: use unsigned when assigning to fds_bits.
XXX: This code should not invade fd_set internals at all.
2010-07-08 14:45:08 +00:00
drochner
ebfe3c0a28 remove some stray __weak_aliases, where the target functions were
__RENAMEd due to the time_t/dev_t type changes, which caused bogus
references to compat functions
now a libc built with BUILDCOLD is usable
2010-03-23 20:28:58 +00:00
joerg
1c3412fa2f Use .In for header files instead of .Ar Pa and variations. 2010-03-22 19:30:53 +00:00
dholland
d5343f0177 indentation/whitespace 2010-03-07 23:49:14 +00:00
dholland
97e205be98 remove stray semicolon 2010-03-07 23:45:22 +00:00
joerg
6fc39b6fcb No .Pp inside .Rs/.Re. 2009-10-13 21:39:55 +00:00
christos
7966578116 remove stray comma, from anon ymous. 2009-05-23 18:57:25 +00:00
joerg
9a790c1d7e Add missing .Re. 2009-04-11 20:14:35 +00:00