tools/llvm: Do not build with symbols
[minix3.git] / external / bsd / nvi / dist / ex / ex_open.c
blob384fc435d80dd5071f3a65e54c0fac94eceaaf3e
1 /* $NetBSD: ex_open.c,v 1.2 2013/11/22 15:52:05 christos Exp $ */
2 /*-
3 * Copyright (c) 1993, 1994
4 * The Regents of the University of California. All rights reserved.
5 * Copyright (c) 1993, 1994, 1995, 1996
6 * Keith Bostic. All rights reserved.
8 * See the LICENSE file for redistribution information.
9 */
11 #include "config.h"
13 #ifndef lint
14 static const char sccsid[] = "Id: ex_open.c,v 10.8 2001/06/25 15:19:17 skimo Exp (Berkeley) Date: 2001/06/25 15:19:17 ";
15 #endif /* not lint */
17 #include <sys/types.h>
18 #include <sys/queue.h>
20 #include <bitstring.h>
21 #include <limits.h>
22 #include <stdio.h>
24 #include "../common/common.h"
27 * ex_open -- :[line] o[pen] [/pattern/] [flags]
29 * Switch to single line "open" mode.
31 * PUBLIC: int ex_open __P((SCR *, EXCMD *));
33 int
34 ex_open(SCR *sp, EXCMD *cmdp)
36 /* If open option off, disallow open command. */
37 if (!O_ISSET(sp, O_OPEN)) {
38 msgq(sp, M_ERR,
39 "140|The open command requires that the open option be set");
40 return (1);
43 msgq(sp, M_ERR, "141|The open command is not yet implemented");
44 return (1);