1

Can I change argument number to macro in IDA pro Hex-rays?

 fd = open("a", 513, 0644);

Like this.

fd = open("a", O_WRONLY|O_CREAT, 0644);

Is this possible?

perror
  • 19,083
  • 29
  • 87
  • 150
  • Create a bitmap enum, and set arg2 to this bitfield type. – Guntram Blohm Feb 27 '15 at 11:55
  • Thanks for answer me. one number possible. like this. O_WRONLY. but O_WRONLY|O_CREAT this not possible – user3697885 Feb 27 '15 at 11:56
  • To change IDA's standard enum containing O_WRONLY etc. to the bitfield type you need to delete the harebrained O_RDONLY thing; otherwise IDA mumbles something like 'some constants hinder'. Then position the cursor on the enum name and hit Ctrl+N to bring up the "Edit enum type" dialogue and set a check mark next to "Bitfield". This is for plain IDA but things shouldn't be different with the Hex-Rays plugin loaded. – DarthGizka Feb 27 '15 at 17:56

0 Answers0