xref: /openbsd/sbin/fdisk/cmd.h (revision ce7279d8)
1 /*	$OpenBSD: cmd.h,v 1.28 2024/05/21 05:00:47 jsg 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(const char *, struct mbr *);
26 int		Xmanual(const char *, struct mbr *);
27 int		Xedit(const char *, struct mbr *);
28 int		Xsetpid(const char *, struct mbr *);
29 int		Xselect(const char *, struct mbr *);
30 int		Xswap(const char *, struct mbr *);
31 int		Xprint(const char *, struct mbr *);
32 int		Xwrite(const char *, struct mbr *);
33 int		Xexit(const char *, struct mbr *);
34 int		Xquit(const char *, struct mbr *);
35 int		Xabort(const char *, struct mbr *);
36 int		Xhelp(const char *, struct mbr *);
37 int		Xflag(const char *, struct mbr *);
38 int		Xupdate(const char *, struct mbr *);
39