summaryrefslogtreecommitdiff
path: root/usr.bin/rpcgen
AgeCommit message (Collapse)Author
2024-07-22rpcgen(1): default to "STDIN" as input file when compiling to headers.Dave Voutila
FreeBSD, NetBSD, and GNU all use a variation of "STDIN" as the default input filename when compiling to header files (-h) to prevent a NULL-pointer deference. Adopt a similar approach. ok millert@
2023-03-08Delete obsolete /* ARGSUSED */ lint comments.Philip Guenther
ok miod@ millert@
2021-10-24What kind of Sun idiot called open() with flags of "2".Theo de Raadt
2019-06-28When system calls indicate an error they return -1, not some arbitraryTheo de Raadt
value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future.
2018-04-26Use <fcntl.h> instead of <sys/file.h> for open() and friends.Philip Guenther
Delete a bunch of unnecessary #includes and sort to match style(9) while doing the above cleanup. ok deraadt@ krw@
2017-01-21Nuke whitespace foolish enough to expose itself during the greatKenneth R Westerback
"warning:" rectification.
2016-12-22Avoid "unused variable 'i'" warnings in generated .c files by only emittingKenneth R Westerback
the "int i;" for non-opaque arrays. Opaque arrays use xdr_opaque() rather than iterating over the array. Eliminates another couple of dozen warnings from snap build output. ok deraadt@ millert@
2016-12-20Add 'default:' cases to switch statements that gcc whines about.Kenneth R Westerback
ok jung@
2016-12-20Tweak generated .c output so switch statements always have aKenneth R Westerback
'default:' case. Several hundred "not handled" warnings go away. ok deraadt@
2016-01-15Add support for parsing 'hyper' and 'quad' types, as per RFC4506.Jasper Lievisse Adriaanse
From FreeBSD ok millert@
2015-11-11exit() after perror() for pledge failure. Perhaps this got introducedTheo de Raadt
as a test idiom, either when pledge was young or during the transition to strings.... dunno
2015-10-10pledge "stdio rpath wpath cpath proc exec"; this spawns cpp.Theo de Raadt
ok doug
2015-09-11The -D option requires an argument, and the argument must followIngo Schwarze
without intervening whitespace. Documentation bug found because the SYNOPSIS markup was technically incomplete.
2015-08-20Do not cast result of malloc/calloc/realloc* if stdlib.h is in scopeTheo de Raadt
ok krw millert
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
2014-11-18Nuke more obvious #include duplications.Kenneth R Westerback
ok deraadt@ millert@ tedu@
2014-01-20Obvious .Xr fixes, found while testing mandocdb(8).Ingo Schwarze
2013-11-28unsigned char for ctypeTheo de Raadt
ok krw okan
2013-10-27If a constant string needs a name, use a static const array instead of aPhilip Guenther
pointer or non-const array, as that minimizes the symbols, maximizes the placement into read-only memory, and avoids warnings from gcc -Wformat=2 when they're used as format strings. ok deraadt@
2013-01-17remove uesless Pp;Jason McIntyre
2012-12-05Remove excessive sys/cdefs.h inclusionTheo de Raadt
ok guenther millert kettenis
2011-04-06Avoid using NULL in non-pointer contexts: use 0 for integer values and '\0'Miod Vallat
for chars.
2010-09-19more wacky macro fixing;Jason McIntyre
2010-09-01Oracle has re-licensed sunrpc under a three-clause BSD license.Todd C. Miller
Update our sources appropriately. OK deraadt@ jsg@
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
2007-11-17.IP -> .PpJason McIntyre
2007-10-03nullproc() is used in more than one file.Tobias Weingartner
millert@ ok
2007-10-03Nuke MSDOS portion. Add <unistd.h> for STDERR_FILENO in theTobias Weingartner
generated files. "Yes, with extreme prejudice." millert@
2007-10-03Some -Wall cleanup to help fix other bugs.Tobias Weingartner
ok krw@
2007-05-31convert to new .Dd format;Jason McIntyre
2006-03-22NetBSD - plug leak in generate_guard()David Hill
- plug leak in h_output(), coverity cid 100 NetBSD plug leak, coverity cid 98. NetBSD plug leak, coverity cid 94. ok ray@ jaredy@ moritz@
2005-10-20defintion -> definition;Jason McIntyre
2004-07-16Avoid generating an unused variable. From NetBSD. ok deraadt@Matthieu Herrb
2004-05-09delintTheo de Raadt
2003-12-01Format string fixes from art's amd64 tree.Alexander Yurchenko
ok rohee@ espie@
2003-08-16missing comma in non-ansi mode; spotted by pvalchevTheo de Raadt
2003-08-06Remove some double semicolons (hmm, do two semis equal a maxi?).Todd C. Miller
I've skipped the GNU stuff for now. From Patrick Latifi.
2003-07-10add missing includesDavid Krause
ok deraadt@ tedu@
2003-07-09protosTheo de Raadt
2003-07-06generate protos for functionsTheo de Raadt
2003-06-25protosTheo de Raadt
2003-06-25better output CTheo de Raadt
2003-06-19generate code that is much more ANSI and even KNF tooTheo de Raadt
2003-06-11de-registerTheo de Raadt
2003-06-10- section reorderJason McIntyre
- COMPATIBILITY merge - macro cleanup - kill whitespace at EOL - new sentence, new line ssh pages ok markus@
2003-06-01various format string cleanups; tedu okTheo de Raadt
2003-04-26get rid of incorrectly sized buffer by using strdup/asprintf,Peter Valchev
also simplifies things; ok millert
2003-04-14recommit, with the typo fixedTheo de Raadt
2003-04-14oopsTheo de Raadt
2003-04-14strlcpy, pretty easyTheo de Raadt