catopt
options = catopt(options, optarg);
options = catopt(options, "ro");
options = catopt(options, "noro");
optbuf = catopt(xstrdup(mntopts), options);
optbuf = catopt(optbuf, "force");
optbuf = catopt(optbuf, "ro");
optbuf = catopt(optbuf, "update");
expopt = catopt(expopt, fstab);
expopt = catopt(expopt, cur);
expopt = catopt(expopt, o);
static char *catopt(char *, const char *);
newopt = catopt(newopt, o);
res = catopt(res, (flags & MNT_RDONLY) ? "ro" : "rw");
if (flags & MNT_SYNCHRONOUS) res = catopt(res, "sync");
if (flags & MNT_NOEXEC) res = catopt(res, "noexec");
if (flags & MNT_NOSUID) res = catopt(res, "nosuid");
if (flags & MNT_NODEV) res = catopt(res, "nodev");
if (flags & MNT_ASYNC) res = catopt(res, "async");
if (flags & MNT_NOATIME) res = catopt(res, "noatime");
if (flags & MNT_NOCLUSTERR) res = catopt(res, "noclusterr");
if (flags & MNT_NOCLUSTERW) res = catopt(res, "noclusterw");
if (flags & MNT_NOSYMFOLLOW) res = catopt(res, "nosymfollow");
if (flags & MNT_SUIDDIR) res = catopt(res, "suiddir");
if (flags & MNT_IGNORE) res = catopt(res, "ignore");
options = catopt(options, optarg);
options = catopt(options, "ro");
options = catopt(options, "noro");
optbuf = catopt(xstrdup(mntopts), options);
optbuf = catopt(optbuf, "force");
optbuf = catopt(optbuf, "ro");
optbuf = catopt(optbuf, "update");
expopt = catopt(expopt, fstab);
expopt = catopt(expopt, cur);
expopt = catopt(expopt, o);
static char *catopt(char *, const char *);
newopt = catopt(newopt, o);
res = catopt(res, (flags & MNT_RDONLY) ? "ro" : "rw");
if (flags & MNT_SYNCHRONOUS) res = catopt(res, "sync");
if (flags & MNT_NOEXEC) res = catopt(res, "noexec");
if (flags & MNT_NOSUID) res = catopt(res, "nosuid");
if (flags & MNT_NODEV) res = catopt(res, "nodev");
if (flags & MNT_ASYNC) res = catopt(res, "async");
if (flags & MNT_NOATIME) res = catopt(res, "noatime");
if (flags & MNT_NOCLUSTERR) res = catopt(res, "noclusterr");
if (flags & MNT_NOCLUSTERW) res = catopt(res, "noclusterw");
if (flags & MNT_NOSYMFOLLOW) res = catopt(res, "nosymfollow");
if (flags & MNT_SUIDDIR) res = catopt(res, "suiddir");
if (flags & MNT_IGNORE) res = catopt(res, "ignore");