1b8ba871bSPeter Wemm /*-
2b8ba871bSPeter Wemm * Copyright (c) 1993, 1994
3b8ba871bSPeter Wemm * The Regents of the University of California. All rights reserved.
4b8ba871bSPeter Wemm * Copyright (c) 1993, 1994, 1995, 1996
5b8ba871bSPeter Wemm * Keith Bostic. All rights reserved.
6b8ba871bSPeter Wemm *
7b8ba871bSPeter Wemm * See the LICENSE file for redistribution information.
8b8ba871bSPeter Wemm */
9b8ba871bSPeter Wemm
10b8ba871bSPeter Wemm #include "config.h"
11b8ba871bSPeter Wemm
12b8ba871bSPeter Wemm #include <sys/types.h>
13b8ba871bSPeter Wemm #include <sys/queue.h>
14f0957ccaSPeter Wemm #include <sys/time.h>
15b8ba871bSPeter Wemm
16b8ba871bSPeter Wemm #include <bitstring.h>
17b8ba871bSPeter Wemm #include <limits.h>
18b8ba871bSPeter Wemm #include <stdio.h>
19b8ba871bSPeter Wemm
20b8ba871bSPeter Wemm #include "../common/common.h"
21b8ba871bSPeter Wemm
22b8ba871bSPeter Wemm /*
23b8ba871bSPeter Wemm * ex_open -- :[line] o[pen] [/pattern/] [flags]
24b8ba871bSPeter Wemm *
25b8ba871bSPeter Wemm * Switch to single line "open" mode.
26b8ba871bSPeter Wemm *
27*c271fa92SBaptiste Daroussin * PUBLIC: int ex_open(SCR *, EXCMD *);
28b8ba871bSPeter Wemm */
29b8ba871bSPeter Wemm int
ex_open(SCR * sp,EXCMD * cmdp)30f0957ccaSPeter Wemm ex_open(SCR *sp, EXCMD *cmdp)
31b8ba871bSPeter Wemm {
32b8ba871bSPeter Wemm /* If open option off, disallow open command. */
33b8ba871bSPeter Wemm if (!O_ISSET(sp, O_OPEN)) {
34b8ba871bSPeter Wemm msgq(sp, M_ERR,
35b8ba871bSPeter Wemm "140|The open command requires that the open option be set");
36b8ba871bSPeter Wemm return (1);
37b8ba871bSPeter Wemm }
38b8ba871bSPeter Wemm
39b8ba871bSPeter Wemm msgq(sp, M_ERR, "141|The open command is not yet implemented");
40b8ba871bSPeter Wemm return (1);
41b8ba871bSPeter Wemm }
42