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