1 /* $OpenBSD: ex_open.c,v 1.7 2016/01/06 22:28:52 millert 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(SCR *sp, EXCMD *cmdp) 32 { 33 /* If open option off, disallow open command. */ 34 if (!O_ISSET(sp, O_OPEN)) { 35 msgq(sp, M_ERR, 36 "The open command requires that the open option be set"); 37 return (1); 38 } 39 40 msgq(sp, M_ERR, "The open command is not yet implemented"); 41 return (1); 42 } 43