Lines Matching +defs:edit +defs:c
1 /* $NetBSD: main.c,v 1.59 2025/01/19 04:37:15 tsutsui Exp $ */
4 * Copyright (c) 2006 The NetBSD Foundation, Inc.
33 * Copyright (c) 1987, 1993
70 __COPYRIGHT("@(#) Copyright (c) 1987, 1993\
76 static char sccsid[] = "@(#)disklabel.c 8.4 (Berkeley) 5/4/95";
77 /* from static char sccsid[] = "@(#)disklabel.c 1.2 (Symmetric) 11/28/85"; */
79 __RCSID("$NetBSD: main.c,v 1.59 2025/01/19 04:37:15 tsutsui Exp $");
173 static int edit(int);
700 error = edit(f);
1476 char c = 'a' + i;
1478 (void) fprintf(f, "p%c#%" PRIu32 ":", c, pp->p_size);
1479 (void) fprintf(f, "o%c#%" PRIu32 ":", c, pp->p_offset);
1482 (void) fprintf(f, "t%c=%s:", c,
1486 "t%c=unknown%" PRIu8 ":",
1487 c, pp->p_fstype);
1499 (void) fprintf(f, "b%c#%" PRIu64 ":", c,
1501 (void) fprintf(f, "f%c#%" PRIu32 ":", c,
1514 edit(int f)
1548 (void) printf("re-edit the label? [y]: ");
1597 retval = execlp(_PATH_BSHELL, _PATH_BSHELL, "-c", buf, NULL);
2078 warnx("warning, partition %c increased "
2090 warnx("warning, partition %c: size 0, but "
2095 warnx("warning, partition %c:"
2102 warnx("partition %c: offset past end of unit", part);
2106 warnx("partition %c: partition extends"
2118 warnx("partitions %c and %c overlap",
2134 { "-e [-BCDFMIrv] disk", "(to edit label)" },