yesno
yesno : NO { $$ = 0; }
%type <v.number> tos not yesno
| SET REQUIREORDER yesno {
goto yesno;
goto yesno;
goto yesno;
goto yesno;
goto yesno;
goto yesno;
goto yesno;
goto yesno;
goto yesno;
goto yesno;
goto yesno;
goto yesno;
goto yesno;
goto yesno;
goto yesno;
goto yesno;
goto yesno;
goto yesno;
goto yesno;
goto yesno;
goto yesno;
goto yesno;
goto yesno;
goto yesno;
goto yesno;
goto yesno;
goto yesno;
yesno: if (sysctl(mib, mib_len, &value, &len, NULL, 0) == -1)
goto yesno;
yn = yesno(argv[1]);
static int yesno(const char *);
if (yesno("Bootfile %s doesn't support the required "
if (!f_flag && !yesno("Update the bootcode from %s?", boot_path))
if (yesno("Do you really want to delete all the extended partitions?"))
yesno("The bootselect code is not installed, "
if (v_flag && !f_flag && yesno("Explicitly specify beg/end address?")) {
if (yesno("Do you want to change the active partition?")) {
} while (!yesno("Are you happy with this choice?"));
if (!yesno("Do you want to change our idea of what BIOS thinks?"))
} while (!yesno("Are you happy with this choice?"));
static int yesno(const char *, ...) __printflike(1, 2);
if (yesno("Should we write new partition table?")) {
SetSockOpt(int fd, int level, int option, int yesno)
return setsockopt(fd, level, option, (char *)&yesno, sizeof yesno);