nrelease: Add root_rw_mount="NO" to rc.conf to fix ISO boot
[dragonfly.git] / contrib / nvi2 / ex / ex_set.c
blobe1a674edce78b0f7fe680280a13d544a37e840db
1 /*-
2 * Copyright (c) 1992, 1993, 1994
3 * The Regents of the University of California. All rights reserved.
4 * Copyright (c) 1992, 1993, 1994, 1995, 1996
5 * Keith Bostic. All rights reserved.
7 * See the LICENSE file for redistribution information.
8 */
10 #include "config.h"
12 #include <sys/types.h>
13 #include <sys/queue.h>
14 #include <sys/time.h>
16 #include <bitstring.h>
17 #include <limits.h>
18 #include <stdio.h>
20 #include "../common/common.h"
23 * ex_set -- :set
24 * Ex set option.
26 * PUBLIC: int ex_set(SCR *, EXCMD *);
28 int
29 ex_set(SCR *sp, EXCMD *cmdp)
31 switch(cmdp->argc) {
32 case 0:
33 opts_dump(sp, CHANGED_DISPLAY);
34 break;
35 default:
36 if (opts_set(sp, cmdp->argv, cmdp->cmd->usage))
37 return (1);
38 break;
40 return (0);