extern int commandv (char **stdoutput, char **stderror,
char * const* const argv);
extern int commandv (char **stdoutput, char **stderror,
char * const* const argv);
/* only call this if there is a FileOut parameter */
extern void reply (xdrproc_t xdrp, char *ret);
/* only call this if there is a FileOut parameter */
extern void reply (xdrproc_t xdrp, char *ret);
#define ABS_PATH(path,errcode) \
do { \
if ((path)[0] != '/') { \
#define ABS_PATH(path,errcode) \
do { \
if ((path)[0] != '/') { \
/* Helper for functions which need either an absolute path in the
* mounted filesystem, OR a /dev/ device which exists.
/* Helper for functions which need either an absolute path in the
* mounted filesystem, OR a /dev/ device which exists.
#define XXX_NOT_IMPL(errcode) \
do { \
reply_with_error ("%s: function not implemented", __func__); \
#define XXX_NOT_IMPL(errcode) \
do { \
reply_with_error ("%s: function not implemented", __func__); \