xref: /openbsd/sbin/fdisk/cmd.h (revision be691f3b)
1 /*	$OpenBSD: cmd.h,v 1.26 2021/10/25 13:51:25 krw Exp $	*/
2 
3 /*
4  * Copyright (c) 1997 Tobias Weingartner
5  *
6  * Permission to use, copy, modify, and distribute this software for any
7  * purpose with or without fee is hereby granted, provided that the above
8  * copyright notice and this permission notice appear in all copies.
9  *
10  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17  */
18 
19 #define CMD_EXIT	0x0000
20 #define CMD_QUIT	0x0001
21 #define CMD_CONT	0x0002
22 #define CMD_CLEAN	0x0003
23 #define CMD_DIRTY	0x0004
24 
25 int		Xreinit(char *, struct mbr *);
26 int		Xdisk(char *, struct mbr *);
27 int		Xmanual(char *, struct mbr *);
28 int		Xedit(char *, struct mbr *);
29 int		Xsetpid(char *, struct mbr *);
30 int		Xselect(char *, struct mbr *);
31 int		Xswap(char *, struct mbr *);
32 int		Xprint(char *, struct mbr *);
33 int		Xwrite(char *, struct mbr *);
34 int		Xexit(char *, struct mbr *);
35 int		Xquit(char *, struct mbr *);
36 int		Xabort(char *, struct mbr *);
37 int		Xhelp(char *, struct mbr *);
38 int		Xflag(char *, struct mbr *);
39 int		Xupdate(char *, struct mbr *);
40