search for: check_opt

Displaying 9 results from an estimated 9 matches for "check_opt".

Did you mean: check_dpt
2014 Jun 23
4
[PATCH] utils/isohybrid.c: 007 (2nd try) Enable promised options -u, -m, -b
...r --uefi, --mac, --mbr was faulty. Here is the second try. This change enables the options -u, -m, -b as promised by the help text. --- isohybrid.c.006_opt_mbr_standalone 2014-06-22 20:10:49.000000000 +0200 +++ isohybrid.c.007_short_opts_umb 2014-06-23 19:52:59.000000000 +0200 @@ -262,7 +262,7 @@ check_option(int argc, char *argv[]) char *err = NULL; int n = 0, ind = 0; - const char optstr[] = ":h:s:e:o:t:i:fcp?vV"; + const char optstr[] = ":h:s:e:o:t:i:b:umfcp?vV"; struct option lopt[] = \ { { "entry", required_argument, NULL, 'e...
2012 Feb 15
2
[PATCH] isohybrid: Generate MBR even when in EFI mode
...ion number: 1 <= entry <= 4 */ uint8_t offset = 0; /* partition offset: 0 <= offset <= 64 */ uint16_t type = 0x17; /* partition type: 0 <= type <= 255 */ uint32_t id = 0; /* MBR: 0 <= id <= 0xFFFFFFFF(4294967296) */ @@ -300,6 +300,8 @@ check_option(int argc, char *argv[]) entry = strtoul(optarg, &err, 0); if (entry < 1 || entry > 4) errx(1, "invalid entry: `%s', 1 <= entry <= 4", optarg); + if (mode & MAC || mode & EFI) + errx(1, "setting an entry is...
2011 Jun 11
1
isohybrid.c patch: to support hex parameters
...sitory and below is the patch(also attached) to fix this issue. Could you please have a look at it and sign off this change? === diff --git a/utils/isohybrid.c b/utils/isohybrid.c index 7ee9a7f..8a60531 100644 --- a/utils/isohybrid.c +++ b/utils/isohybrid.c @@ -108,6 +108,7 @@ printh(void) ?int ?check_option(int argc, char *argv[]) ?{ +??? char *err = NULL; ???? int n = 0, ind = 0; ? ???? const char optstr[] = ":h:s:e:o:t:i:fcp?vV"; @@ -135,32 +136,38 @@ check_option(int argc, char *argv[]) ???????? switch (n) ???????? { ???????? case 'h': -??????????? if (!sscanf(optarg, "%hu...
2011 Aug 05
3
isolinux: Generate GPT and Mac bootable images
...printf(FMT, " -u --uefi", "Build EFI bootable image"); + printf(FMT, " -m --mac", "Add AFP table support"); printf("\n"); printf(FMT, " --forcehd0", "Assume we are loaded as disk ID 0"); @@ -122,6 +269,8 @@ check_option(int argc, char *argv[]) { "forcehd0", no_argument, NULL, 'f' }, { "ctrlhd0", no_argument, NULL, 'c' }, { "partok", no_argument, NULL, 'p'}, + { "uefi", no_argument, NULL, 'u'}, + { "mac",...
2014 Jun 22
16
Announcing a patch series for isohybrid.c
Hi, following will be 6 patch proposals for isohybrid.c 1: Encode GPT partition names as UTF-16LE 2: Correct blocking factor in APM partition block counts 3: Correct end block address of first GPT partition 4: Write GPT backup to the very end of the image 5: Change all fseek(3) to fseeko(3) 6: Introduce option --mbr and make isohybrid.c compilable standalone If the form needs adjustments,
2014 Jun 22
0
[PATCH] utils/isohybrid.c: 007 Enable promised options -u, -m, -b
...copied the options handling from suboptimal example code. This change enables the options -u, -m, -b as promised by the help text. --- isohybrid.c.006_opt_mbr_standalone 2014-06-22 20:10:49.000000000 +0200 +++ isohybrid.c.007_short_opts_umb 2014-06-22 22:14:03.000000000 +0200 @@ -262,7 +262,7 @@ check_option(int argc, char *argv[]) char *err = NULL; int n = 0, ind = 0; - const char optstr[] = ":h:s:e:o:t:i:fcp?vV"; + const char optstr[] = ":h:s:e:o:t:i:u:m:b:fcp?vV"; struct option lopt[] = \ { { "entry", required_argument, NULL, '...
2014 Jun 24
0
[PATCH] utils/isohybrid.c: 007 (3rd try) Enable promised options -u, -m, -b
...duce a digestible patch. Now with names like in Geert's reformatted git patches. This change enables the options -u, -m, -b as promised by the help text. --- a/utils/isohybrid.c 2014-06-22 20:10:49.000000000 +0200 +++ b/utils/isohybrid.c 2014-06-23 19:52:59.000000000 +0200 @@ -262,7 +262,7 @@ check_option(int argc, char *argv[]) char *err = NULL; int n = 0, ind = 0; - const char optstr[] = ":h:s:e:o:t:i:fcp?vV"; + const char optstr[] = ":h:s:e:o:t:i:b:umfcp?vV"; struct option lopt[] = \ { { "entry", required_argument, NULL, 'e...
2012 Nov 29
2
[LLVMdev] problem trying to write an LLVM register-allocation pass
I have a new problem: Register RBP is used in a function foo. (I am not allocating RBP to any virtual register, the instances of RBP in function foo are in the machine code when my register allocator starts.) Function foo calls function bar. Register RBP is not saved across the call, though it is live after the call. Function bar includes a virtual register. The code that I'm using to
2012 Dec 01
0
[LLVMdev] problem trying to write an LLVM register-allocation pass
...te (char*); extern void gen_next_match (void); extern void gen_next_state (int); extern void gen_NUL_trans (void); extern void gen_start_state (void); extern void gentabs (void); extern void indent_put2s (char[], char[]); extern void indent_puts (char[]); extern void make_tables (void); extern void check_options (void); extern void flexend (int); extern void usage (void); extern void action_define ( char *defname, int value ); extern void add_action ( char *new_text ); extern int all_lower (register char *); extern int all_upper (register char *); extern void bubble (int [], int); extern void check_cha...