2 * Copyright (c) 1993, 1994
3 * The Regents of the University of California. All rights reserved.
4 * Copyright (c) 1992, 1993, 1994, 1995, 1996
5 * Keith Bostic. All rights reserved.
7 * See the LICENSE file for redistribution information.
13 static const char sccsid
[] = "@(#)ex_stop.c 10.10 (Berkeley) 3/6/96";
16 #include <sys/types.h>
17 #include <sys/queue.h>
19 #include <bitstring.h>
26 #include "../common/common.h"
33 * PUBLIC: int ex_stop __P((SCR *, EXCMD *));
42 /* For some strange reason, the force flag turns off autowrite. */
43 if (!FL_ISSET(cmdp
->iflags
, E_C_FORCE
) && file_aw(sp
, FS_ALL
))
46 if (sp
->gp
->scr_suspend(sp
, &allowed
))
49 ex_emsg(sp
, NULL
, EXM_NOSUSPEND
);