xref: /netbsd-src/external/bsd/nvi/dist/vi/v_status.c (revision dd255ccea4286b0c44fa8fd48a9a19a768afe8e1)
1 /*	$NetBSD: v_status.c,v 1.2 2013/11/22 15:52:06 christos Exp $	*/
2 /*-
3  * Copyright (c) 1992, 1993, 1994
4  *	The Regents of the University of California.  All rights reserved.
5  * Copyright (c) 1992, 1993, 1994, 1995, 1996
6  *	Keith Bostic.  All rights reserved.
7  *
8  * See the LICENSE file for redistribution information.
9  */
10 
11 #include "config.h"
12 
13 #ifndef lint
14 static const char sccsid[] = "Id: v_status.c,v 10.10 2001/06/25 15:19:35 skimo Exp  (Berkeley) Date: 2001/06/25 15:19:35 ";
15 #endif /* not lint */
16 
17 #include <sys/types.h>
18 #include <sys/queue.h>
19 #include <sys/stat.h>
20 #include <sys/time.h>
21 
22 #include <bitstring.h>
23 #include <limits.h>
24 #include <stdio.h>
25 
26 #include "../common/common.h"
27 #include "vi.h"
28 
29 /*
30  * v_status -- ^G
31  *	Show the file status.
32  *
33  * PUBLIC: int v_status __P((SCR *, VICMD *));
34  */
35 int
36 v_status(SCR *sp, VICMD *vp)
37 {
38 	(void)msgq_status(sp, vp->m_start.lno, MSTAT_SHOWLAST);
39 	return (0);
40 }
41