ex_open.c revision 281373
1/*- 2 * Copyright (c) 1993, 1994 3 * The Regents of the University of California. All rights reserved. 4 * Copyright (c) 1993, 1994, 1995, 1996 5 * Keith Bostic. All rights reserved. 6 * 7 * See the LICENSE file for redistribution information. 8 */ 9 10#include "config.h" 11 12#ifndef lint 13static const char sccsid[] = "$Id: ex_open.c,v 10.8 2001/06/25 15:19:17 skimo Exp $"; 14#endif /* not lint */ 15 16#include <sys/types.h> 17#include <sys/queue.h> 18#include <sys/time.h> 19 20#include <bitstring.h> 21#include <limits.h> 22#include <stdio.h> 23 24#include "../common/common.h" 25 26/* 27 * ex_open -- :[line] o[pen] [/pattern/] [flags] 28 * 29 * Switch to single line "open" mode. 30 * 31 * PUBLIC: int ex_open(SCR *, EXCMD *); 32 */ 33int 34ex_open(SCR *sp, EXCMD *cmdp) 35{ 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); 41 } 42 43 msgq(sp, M_ERR, "141|The open command is not yet implemented"); 44 return (1); 45} 46