-/* $OpenBSD: cmd.h,v 1.25 2021/09/09 15:21:39 krw Exp $ */
+/* $OpenBSD: cmd.h,v 1.26 2021/10/25 13:51:25 krw Exp $ */
/*
* Copyright (c) 1997 Tobias Weingartner
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#ifndef _CMD_H
-#define _CMD_H
-
#define CMD_EXIT 0x0000
#define CMD_QUIT 0x0001
#define CMD_CONT 0x0002
int Xhelp(char *, struct mbr *);
int Xflag(char *, struct mbr *);
int Xupdate(char *, struct mbr *);
-
-#endif /* _CMD_H */
-/* $OpenBSD: disk.h,v 1.31 2021/07/26 13:05:14 krw Exp $ */
+/* $OpenBSD: disk.h,v 1.32 2021/10/25 13:51:25 krw Exp $ */
/*
* Copyright (c) 1997 Tobias Weingartner
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#ifndef _DISK_H
-#define _DISK_H
-
struct disk {
struct prt dk_bootprt;
char *dk_name;
extern struct disk disk;
extern struct disklabel dl;
-
-#endif /* _DISK_H */
-/* $OpenBSD: mbr.h,v 1.41 2021/08/06 10:41:31 krw Exp $ */
+/* $OpenBSD: mbr.h,v 1.42 2021/10/25 13:51:25 krw Exp $ */
/*
* Copyright (c) 1997 Tobias Weingartner
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#ifndef _MBR_H
-#define _MBR_H
-
struct mbr {
uint64_t mbr_lba_firstembr;
uint64_t mbr_lba_self;
void MBR_init(struct mbr *);
int MBR_read(const uint64_t, const uint64_t, struct mbr *);
int MBR_write(const struct mbr *);
-
-#endif /* _MBR_H */
-/* $OpenBSD: misc.h,v 1.46 2021/09/13 15:07:51 krw Exp $ */
+/* $OpenBSD: misc.h,v 1.47 2021/10/25 13:51:25 krw Exp $ */
/*
* Copyright (c) 1997 Tobias Weingartner
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#ifndef _MISC_H
-#define _MISC_H
-
struct unit_type {
char *ut_abbr;
int64_t ut_conversion;
uint64_t getuint64(const char *, uint64_t, const uint64_t, const uint64_t);
char *utf16le_to_string(const uint16_t *);
uint16_t *string_to_utf16le(const char *);
-
-#endif /* _MISC_H */
-/* $OpenBSD: part.h,v 1.30 2021/09/02 18:07:45 krw Exp $ */
+/* $OpenBSD: part.h,v 1.31 2021/10/25 13:51:25 krw Exp $ */
/*
* Copyright (c) 1997 Tobias Weingartner
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#ifndef _PART_H
-#define _PART_H
-
struct prt {
uint64_t prt_bs;
uint64_t prt_ns;
/* This does bs/ns -> CHS */
void PRT_fix_CHS(struct prt *);
-
-#endif /* _PART_H */
-/* $OpenBSD: user.h,v 1.21 2021/08/24 12:55:06 krw Exp $ */
+/* $OpenBSD: user.h,v 1.22 2021/10/25 13:51:25 krw Exp $ */
/*
* Copyright (c) 1997 Tobias Weingartner
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#ifndef _USER_H
-#define _USER_H
-
void USER_edit(const uint64_t, const uint64_t);
void USER_print_disk(const int);
void USER_help(void);
-
-#endif /* _USER_H */