summaryrefslogtreecommitdiff
path: root/usr.sbin/amd
AgeCommit message (Collapse)Author
2015-09-13More FNDELAY/FIONBIO --> SOCK_NONBLOCK conversionsPhilip Guenther
ok millert@
2015-09-11Since immediate_abort is modified by a signal handler it must beTodd C. Miller
volatile sig_atomic_t.
2015-08-20stdlib.h is in scope; do not cast malloc/calloc/realloc*Theo de Raadt
2015-03-14Add missing #include <stdint.h> for SIZE_MAX.Todd C. Miller
2015-01-22amd's nfs_prot.x file has some tweaks from the standard; automate them with ed.Philip Guenther
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.
2015-01-21Pass times as int64_t and eliminate the (long disabled) mount request.Philip Guenther
ABI change, so roll the RPC protocol version; how about 57 for OpenBSD 5.7?
2015-01-21regenPhilip Guenther
2015-01-21Remove all references to the amd -M option (it was disabled long ago) andPhilip Guenther
correct the texinfo validation errors, then re-enable validation
2015-01-21Regenerate the amq RPC stubs with a -current rpcgen, with somePhilip Guenther
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...
2015-01-21amq doesn't use anything from misc_rpc.cPhilip Guenther
2014-11-16so old it becomes untrueTheo de Raadt
2014-10-26Remove a gazillion useless casts to void*Philip Guenther
Eliminate a couple function pointer casts, fixing the function to match in one case
2014-10-26Delete casts to void* of the argument to free(): only needed when lyingPhilip Guenther
about constness and none of these were
2014-10-26Update to the modern RPC style with different names for server and clientPhilip Guenther
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.
2014-10-26clnt_sperrno() is declared nowadays in <rpc/clnt.h>Philip Guenther
2014-10-26Sort #includes; pull in <time.h> for ctime()Philip Guenther
2014-10-26When regcomp() fails, use regerror() to get a useful error messagePhilip Guenther
2014-10-26timeout_mp() is static nowPhilip Guenther
2014-10-26Declare a few functions staticPhilip Guenther
2014-10-26Lint is deadPhilip Guenther
2014-10-26Delete information about porting to and running on other platforms.Philip Guenther
prodded by deraadt@
2014-10-26Delete inscrutable examples; the docs cover thisPhilip Guenther
2014-10-26Use vsyslog() instead of manually expanding the string and calling syslog(%s)Philip Guenther
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 *
2014-10-26Remove trailing newlines from a couple log messagesPhilip Guenther
2014-10-26Consistently use the extra parens in 'if ((var = hasmntval(...)))' toPhilip Guenther
suppress compiler warnings. Noted with gcc -Wall, then prodded by brad@ and clang
2014-10-26Replace xrealloc() with xreallocarray(). Break-out the 'log and die'Philip Guenther
function as xmallocfailure() and use that in the locations where reallocarray's checks alone aren't sufficient. ok doug@ deraadt@
1995-10-18initial import of NetBSD treeTheo de Raadt
2014-10-24retire networks(5) support;Ingo Schwarze
OK deraadt@
2014-10-20Change MTAB_TYPE_UFS from "ufs" to "ffs", fixing mount-restarting for them.Philip Guenther
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@
1995-10-18initial import of NetBSD treeTheo de Raadt
2014-10-20unifdef -DHAS_REGEXP -DHAS_PASSWD_MAPS -DHAS_FILE_MAPS \Philip Guenther
-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@
2014-10-20Start removing portability goo: we have syslog(), strerror(), POSIX regexp,Philip Guenther
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@
1995-10-18initial import of NetBSD treeTheo de Raadt
2014-01-21include unistd.h for getopt()Jonathan Gray
2014-01-20Obvious .Xr fixes, found while testing mandocdb(8).Ingo Schwarze
2013-12-03ctype cleanupsTheo de Raadt
ok okan
2013-07-16use .Mt for email addresses; from Jan Stary <hans at stare dot cz>; ok jmc@Ingo Schwarze
2013-06-02Kill a pointless reference to <sys/dir.h>Philip Guenther
2013-04-17first few large time_t changes; more might be required -- still digging.Theo de Raadt
2012-05-24exlusive -> exclusiveMiod Vallat
2012-02-24Correct the spelling of "transferred" and "transferring"Philip Guenthe
from Tobias Ulmer (tobiasu at tmux.org); ok jmc@, krw@
2011-11-06union wait is dead, ancient history; stop using itPhilip Guenthe
ok deraadt@
2010-12-21parent_exit() signal handler must use _exit() not exit()Theo de Raadt
2010-11-03$OpenBSD$Jonathan Gray
2010-07-05convert last user of libcompat in base to modern regexes. ok deraadtTed Unangst
2010-03-30After snprintf(3) call `dir' is no longer used so free it also on normalzinovik
code path. ok deraadt@
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
2009-08-12change some defaults inside amd itself, so that the rc scripts no longerTheo de Raadt
have to pass those options. this makes amd much easier to restart by hand (though it still remains a nasty daemon do that with) ok millert
2007-11-27typos; ok jmc@Martynas Venckus
sys/dev/pci/pciide.c from naddy@
2007-11-26typos; ok jmc@Martynas Venckus
sys/netinet/in_pcb.c and sys/net/bridgestp.c ok henning@ sys/dev/pci/bktr/* ok jakemsr@