summaryrefslogtreecommitdiffstats
path: root/usr.sbin/amd (follow)
Commit message (Collapse)AuthorAgeFilesLines
* When system calls indicate an error they return -1, not some arbitraryderaadt2019-06-282-11/+11
| | | | | | 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.
* In manpages, don't escape apostrophes as \'; it's rarely what you want.bentley2019-06-021-4/+4
| | | | | Most of these are correct just as '. A few benefit from Ql or \(aq. But if in doubt, just use '.
* kill .Tnschwarze2017-08-222-38/+14
|
* default automount dir was changed from /a to /tmp_mnt in amd.c rev. 1.15;schwarze2017-08-221-19/+19
| | | | noticed by Alessandro DE LAURENZIS <just22 at atlantide dot t28 dot net>
* fix default automount dir below FILES, related to amd.c rev. 1.15;schwarze2017-08-221-4/+4
| | | | from Alessandro DE LAURENZIS <just22 at atlantide dot t28 dot net>
* plog format string should be literal.fcambus2017-07-281-3/+3
| | | | OK florian@, deraadt@
* Nuke whitespace foolish enough to expose itself during the greatkrw2017-01-211-4/+4
| | | | "warning:" rectification.
* Regenerate with -current rpcgen, eliminating "unused variable 'i'"krw2016-12-251-1/+12
| | | | | | warning. ok millert@
* Add 'default:' cases to switch statements that gcc whines about.krw2016-12-201-1/+6
| | | | ok jung@
* More "(<blah> *)0" -> NULL, avoiding any stdarg functions.krw2016-03-161-2/+2
| | | | Feedback millert@ kettenis@
* Remove the rest of the 20+ year-old memory debugging gunk. Discussedmmcc2015-12-122-36/+2
| | | | with deraadt@
* Remove debugging fluff from allocation functions. There's probably moremmcc2015-12-113-33/+5
| | | | | | of this stuff elsewhere in amd. "such clutter just makes people not care" deraadt@
* Remove a bunch of NULL-checks before free().mmcc2015-12-0510-44/+30
|
* More FNDELAY/FIONBIO --> SOCK_NONBLOCK conversionsguenther2015-09-131-16/+2
| | | | ok millert@
* Since immediate_abort is modified by a signal handler it must bemillert2015-09-112-4/+5
| | | | volatile sig_atomic_t.
* stdlib.h is in scope; do not cast malloc/calloc/realloc*deraadt2015-08-201-2/+2
|
* Add missing #include <stdint.h> for SIZE_MAX.millert2015-03-141-1/+2
|
* amd's nfs_prot.x file has some tweaks from the standard; automate them with ed.guenther2015-01-229-629/+1129
| | | | | | | | | Regenerate the amd's NFS RPC stubs with a current rpcgen, automating the post-generation tweaks to the svc stubs. However, do follow the modern naming style where the svc stubs have a _svc suffix. As a side benefit, this eliminates the need to #include <nfs/nfsproto.h> This is all a prelude to updating amd to talk NFSv3 with the kernel for its own "toplvl" mounts, to squash another y2038 issue.
* Pass times as int64_t and eliminate the (long disabled) mount request.guenther2015-01-211-2/+2
| | | | ABI change, so roll the RPC protocol version; how about 57 for OpenBSD 5.7?
* regenguenther2015-01-214-103/+75
|
* Pass times as int64_t and eliminate the (long disabled) mount request.guenther2015-01-213-133/+25
| | | | ABI change, so roll the RPC protocol version; how about 57 for OpenBSD 5.7?
* Pass times as int64_t and eliminate the (long disabled) mount request.guenther2015-01-211-11/+4
| | | | ABI change, so roll the RPC protocol version; how about 57 for OpenBSD 5.7?
* Remove all references to the amd -M option (it was disabled long ago) andguenther2015-01-212-38/+9
| | | | correct the texinfo validation errors, then re-enable validation
* Regenerate the amq RPC stubs with a -current rpcgen, with someguenther2015-01-218-361/+375
| | | | | | | | post-processing of the server stub to match previous local changes. This corrects the type handling of mt_mounttime, so "amq /mountpoint" doesn't segv trying to treat a time_t as a pointer. With the file (re)generation fixed, we can more easily update the protocol to support 64bit time_t...
* amq doesn't use anything from misc_rpc.cguenther2015-01-211-3/+3
|
* so old it becomes untruederaadt2014-11-161-1169/+0
|
* Remove a gazillion useless casts to void*guenther2014-10-2619-108/+105
| | | | | Eliminate a couple function pointer casts, fixing the function to match in one case
* Delete casts to void* of the argument to free(): only needed when lyingguenther2014-10-2612-50/+50
| | | | about constness and none of these were
* Update to the modern RPC style with different names for server and clientguenther2014-10-2619-186/+211
| | | | | | | | stubs (they have different prototypes, after all). Fill in missing prototypes. Use void* arguments on closure-style callbacks, with local variables of the expected type. Keep deleting unnecessary casts.
* clnt_sperrno() is declared nowadays in <rpc/clnt.h>guenther2014-10-261-2/+1
|
* Sort #includes; pull in <time.h> for ctime()guenther2014-10-261-7/+7
|
* When regcomp() fails, use regerror() to get a useful error messageguenther2014-10-261-6/+17
|
* timeout_mp() is static nowguenther2014-10-261-2/+1
|
* Declare a few functions staticguenther2014-10-261-4/+5
|
* Lint is deadguenther2014-10-2613-57/+13
|
* Delete information about porting to and running on other platforms.guenther2014-10-264-316/+0
| | | | prodded by deraadt@
* Delete inscrutable examples; the docs cover thisguenther2014-10-262-82/+0
|
* Use vsyslog() instead of manually expanding the string and calling syslog(%s)guenther2014-10-262-23/+16
| | | | | | | Now that newline stripping isn't needed, use vfprintf() instead of formatting and then writing it out. Delete bogus XXX comment that predated the switch to vsnprintf() Make the format string const char *
* Remove trailing newlines from a couple log messagesguenther2014-10-262-6/+6
|
* Consistently use the extra parens in 'if ((var = hasmntval(...)))' toguenther2014-10-261-5/+5
| | | | | | suppress compiler warnings. Noted with gcc -Wall, then prodded by brad@ and clang
* Replace xrealloc() with xreallocarray(). Break-out the 'log and die'guenther2014-10-268-57/+53
| | | | | | | function as xmallocfailure() and use that in the locations where reallocarray's checks alone aren't sufficient. ok doug@ deraadt@
* retire networks(5) support;schwarze2014-10-242-61/+11
| | | | OK deraadt@
* Change MTAB_TYPE_UFS from "ufs" to "ffs", fixing mount-restarting for them.guenther2014-10-2019-1117/+76
| | | | | | | | | | | | | Perform one level of expansion on the various "portability" macros from os-*.h Delete support for Hesiod and the pre-4.4 versions of the NFS API Delete the no-op unlock_mntlist() unifdef -UFASCIST_DF_COMMAND -UMOUNT_HELPER_SOURCE Move the struct mntent and MNTMAXSTR definitions into include/am.h Move the commented-out -DHAS_NDBM_MAPS into amd/Makefile Expand OS_REP to "bsd44". With config/* empty, delete them. "lot of stuff...but I know your process on this" deraadt@
* unifdef -DHAS_REGEXP -DHAS_PASSWD_MAPS -DHAS_FILE_MAPS \guenther2014-10-2023-533/+24
| | | | | | | | | | | | -DHAS_NIS_MAPS -DHAS_NIS_RELOAD -DRPC_4 -DHAS_UNION_MAPS \ -DHAS_TCP_NFS -DOS_HAS_NDBM -DNFS_PROTOCOL_VERSION=3 \ -DNFS_ARGS_NEEDS_PATH -DPRECISE_SYMLINKS -DHAS_EMPTY_AUTOMOUNTS \ -DNEED_MNTOPT_PARSER -DSHORT_MOUNT_NAME -DHAS_NFS_QUALIFIED_NAMES \ -UUPDATE_MTAB -UFIXUP_MNTENT -UMNTENT_HDR -UMNTINFO_DEV \ -UMNTOPT_COMPRESS -UMNTOPT_NQNFS -UINFORM_MOUNTD \ -USUNOS4_WORKAROUND -UULTRIX_HACK ok deraadt@
* Start removing portability goo: we have syslog(), strerror(), POSIX regexp,guenther2014-10-20129-11256/+95
| | | | | | | | BSD-style getmntinfo(), BSD signals, 4.4BSD unmount(), etc Delete configurations for other OSes Delete fsinfo and mk-amd-map, as we don't build them. ok deraadt@
* include unistd.h for getopt()jsg2014-01-211-1/+2
|
* Obvious .Xr fixes, found while testing mandocdb(8).schwarze2014-01-201-4/+4
|
* ctype cleanupsderaadt2013-12-035-16/+31
| | | | ok okan
* use .Mt for email addresses; from Jan Stary <hans at stare dot cz>; ok jmc@schwarze2013-07-162-6/+6
|
* Kill a pointless reference to <sys/dir.h>guenther2013-06-021-6/+1
|