summaryrefslogtreecommitdiff
path: root/usr.bin/rpcgen
AgeCommit message (Collapse)Author
2023-06-03bsd.own.mk: rename GCC_NO_* to CC_WNO_*lukem
Rename compiler-warning-disable variables from GCC_NO_warning to CC_WNO_warning where warning is the full warning name as used by the compiler. GCC_NO_IMPLICIT_FALLTHRU is CC_WNO_IMPLICIT_FALLTHROUGH Using the convention CC_compilerflag, where compilerflag is based on the full compiler flag name.
2022-03-04fix few typos in comments for word "because".andvar
2022-01-11fix few typos in comments.andvar
2019-10-13introduce some common variables for use in GCC warning disables:mrg
GCC_NO_FORMAT_TRUNCATION -Wno-format-truncation (GCC 7/8) GCC_NO_STRINGOP_TRUNCATION -Wno-stringop-truncation (GCC 8) GCC_NO_STRINGOP_OVERFLOW -Wno-stringop-overflow (GCC 8) GCC_NO_CAST_FUNCTION_TYPE -Wno-cast-function-type (GCC 8) use these to turn off warnings for most GCC-8 complaints. many of these are false positives, most of the real bugs are already commited, or are yet to come. we plan to introduce versions of (some?) of these that use the "-Wno-error=" form, which still displays the warnings but does not make it an error, and all of the above will be re-considered as either being "fix me" (warning still displayed) or "warning is wrong."
2016-01-23u_int -> unsigned int, in some of the output.dholland
In the bulk of the output making this change would require reworking a bunch of the internals to allow spaces in type names, which at the moment doesn't seem worthwhile.
2015-11-08Delete extra declaration of svc_fdset... And some commented out code.christos
This badly needs some modernization.
2015-09-20Prefer error messages resolved from errno over handwritten ones.kamil
2015-09-20Correct #ifdef/#endif header file guards generator for files with nameskamil
other than alphanumerical. For example, for a file named config-subscriber.x we were generating a symbol '_CONFIG-SUBSCRIBER_H'. Since now all non alphanumerical characters will be converted to '_' and we will prevent from generating symbols starting with "__", what's reserved for the internal compiler code parsers and generators.
2015-09-20Correct newstyle code generationkamil
For newstyle we used to generate oldstyle code. This bug has been fixed in FreeBSD on 13 Dec 1995 by wpaul. https://github.com/freebsd/freebsd/commit/15a1e09c3d41cb01afc70a2ea4d20c5a0d09348a Reviewed by <christos>, <pgoyette>
2015-09-20Fix NULL pointer dereferencekamil
After the last function improvements there is invalid plist dereference at the beginning of the second for () external loop. Move the proper check inside the internal secound for () loop, after plist reinitialization.
2015-05-13Mark error as dead.joerg
2015-05-09Remove pointless casts.dholland
2015-05-09Make error() printflike instead of using sprintf before calling it.dholland
2015-05-09Use proper (enough) parentheses in macro expansion.dholland
2015-05-09Use errx when malloc fails, and also don't cast the return value ofdholland
malloc/realloc.
2015-05-09one crash -> errx Christos misseddholland
2015-05-09Polish the error messages.dholland
Don't use warn/err to print error messages about the input, as prepending the program name to those both isn't helpful and confuses programs that try to parse compile logs.
2015-05-09#if 0 code should still compile :-)dholland
2015-05-09modernize:christos
- make crash() called atexit - use err/errx - remove __P
2015-05-09Also check the other emitted getrlimit call for failure.dholland
2015-05-09CID 1225082: Check getrlimit() returnchristos
2013-12-15Sync usage and option descriptions with manpage.wiz
2013-12-15Standardize SYNOPSIS. Sort option descriptions and remove duplicates.wiz
2013-12-15Put back the extra prototype for main(); some programs #define main tochristos
something else, so we need the extra prototype.
2013-12-15- remove support for pre-ansi outputchristos
- add -B (BSD) support for c++ output macros - group functions to make output better looking
2013-08-12CID 1062241: simplify free for coveritychristos
2013-08-12Add more __dead.joerg
2013-08-11WARNS=5dholland
2013-06-05If /usr/bin/cpp is not executable and RPCGEN_CPP was not set, tryjoerg
/usr/bin/clang-cpp. This allows rpcgen to work in a clang-only release build. Document hack to be resolved when the final decision about /usr/bin/cpp and friends is made.
2011-08-31NULL does not need a castplunky
2009-05-06Add support for hyper and quad keywords. (See Sun ONC+ Developer's Guideginsbach
and RFC-4506 for additional details.) [From FreeBSD and OpenSolaris]
2009-04-14Enable WARNS=4 by default for usr.bin, except for:lukem
awk bdes checknr compile_et error gss hxtool kgetcred kinit klist ldd less lex locale login m4 man menuc mk_cmds mklocale msgc openssl rpcgen rpcinfo sdiff spell ssh string2key telnet tn3270 verify_krb5_conf xlint
2009-04-13fix -Wshadow issuelukem
2009-03-11Fix markupjoerg
2008-03-08indentation police.christos
2008-02-29From FreeBSD via Jukka Salmi: Don't coredump on stdin.christos
2008-01-19It's RPCGEN_CPP, not RPCGEN_RSHhubertf
Pointed out on tech-userlevel by Anthony Mallet <anthony.mallet@useless-ficus.net>
2008-01-15- Make the msdos and non-msdos cpp handling use the same variable $RPCGEN_CPPchristos
instead of one using $CPP and the other using $RPCGENCPP, following suit with RDIST_RSH, CVS_RSH, etc. and document it. - make the msdos environment variable take precedence over path search.
2008-01-12sizeof(char) is always 1. Conversely, however, CHAR_BIT is not always 8.dholland
reviewed: mrg
2006-05-11xdr sucks. sprinkle some (void *) casts into it's functions taking void **,mrg
and shut up GCC4.
2006-04-04Coverity CID 28: Fix resource leak.christos
2006-04-04Coverity CID 97: Remove dead code.christos
2006-03-20plug leak, coverity cid 98.elad
2006-03-20plug leak, coverity cid 94.elad
2006-03-20- plug leak in generate_guard()elad
- plug leak in h_output(), coverity cid 100
2004-11-01Add (unsigned char) cast to ctype functionsdsl
2004-07-06Fix function calls in the sample server to use the right function name.mycroft
From PR 4411.
2004-06-20Completely rework how tools/compat is done. Purge all uses/references tojmc
_NETBSD_SOURCE as this makes cross building from older/newer versions of NetBSD harder, not easier (and also makes the resulting tools 'different') Wrap all required code with the inclusion of nbtool_config.h, attempt to only use POSIX code in all places (or when reasonable test w. configure and provide definitions: ala u_int, etc). Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86 NetBSD current (x86 and amd64) and Solaris 9. Fixes PR's: PR#17762 PR#25944
2004-05-12Sort options; drop trailing space and a superfluous s.wiz
2004-05-12add a 'v' flag to display a version number so that our usage matches withchristos
everyone else's rpcgen.