Commit Graph

  • 3f7d89c401 util/nvmutil: consistent errors on close() Leah Rowe 2026-03-03 19:59:35 +00:00
  • fd515e4c28 util/nvmutil: print correct file name for urandom Leah Rowe 2026-03-03 19:53:09 +00:00
  • f4e477b549 util/nvmutil: don't bother with strncmp Leah Rowe 2026-03-03 19:51:25 +00:00
  • 687e64a359 util/nvmutil: get rid of arg_cmd Leah Rowe 2026-03-03 19:47:48 +00:00
  • 776eee721d util/nvmutil: use memcpy in word/set_word Leah Rowe 2026-03-03 19:41:21 +00:00
  • d88991f6bc util/nvmutil: use strncmp instead of strcmp Leah Rowe 2026-03-03 19:18:47 +00:00
  • bf081914a3 util/nvmutil: remove checkdir() Leah Rowe 2026-03-03 19:10:12 +00:00
  • 4325214d82 util/nvmutil: make rhex err_if consistent Leah Rowe 2026-03-03 19:03:58 +00:00
  • 668dec36e9 util/nvmutil rhex: check against sizeof(rnum) Leah Rowe 2026-03-03 19:00:14 +00:00
  • 4775bb2348 util/nvmutil err: filter errval when zero Leah Rowe 2026-03-03 18:54:58 +00:00
  • 634f4a685d util/nvmutil: always exit non-zero on err Leah Rowe 2026-03-03 18:47:14 +00:00
  • 3af94efc16 util/nvmutil: more consistent output in usage() Leah Rowe 2026-03-03 18:03:27 +00:00
  • 2faea7d890 util/nvmutil: use getnvmprogname in usage Leah Rowe 2026-03-03 18:00:19 +00:00
  • 9b18d11878 util/nvmutil: use own implementation of err Leah Rowe 2026-03-03 17:57:27 +00:00
  • 0a08045f92 util/nvmutil: close rfd on exit Leah Rowe 2026-03-03 17:30:55 +00:00
  • 7c0eb780a9 util/nvmutil: remove unnecessary include Leah Rowe 2026-03-03 17:13:03 +00:00
  • 8faa36eb64 util/nvmutil: tidy up write_gbe Leah Rowe 2026-03-03 17:09:33 +00:00
  • 86665c9d22 util/nvmutil: make the part check easier to read Leah Rowe 2026-03-03 16:51:29 +00:00
  • 531f0c9d38 util/nvmutil: fix style inconsistency Leah Rowe 2026-03-03 16:45:54 +00:00
  • b03a532c7d util/nvmutil: use braces on nested ifs Leah Rowe 2026-03-03 16:43:48 +00:00
  • 5bae73c319 util/nvmutil: remove unnecessary global assignment Leah Rowe 2026-03-03 16:39:19 +00:00
  • faf28691b8 util/nvmutil: make swap() easier to understand Leah Rowe 2026-03-03 16:37:10 +00:00
  • 624589fcb1 util/nvmutil: declare arg_cmd earlier Leah Rowe 2026-03-03 16:29:40 +00:00
  • 3983dc44f4 util/nvmutil: don't make op a typedef Leah Rowe 2026-03-03 16:25:54 +00:00
  • 49c2940421 util/nvmutil: fix arg_cmd initialisation Leah Rowe 2026-03-03 16:20:51 +00:00
  • 61fa94d0d2 util/nvmutil: remove COMMAND, MAC_ADDRESS, PARTN Leah Rowe 2026-03-03 16:15:33 +00:00
  • b3119c8b4d util/nvmutil: rename op_t to op Leah Rowe 2026-03-03 16:06:02 +00:00
  • f03570b674 util/nvmutil: make op a const Leah Rowe 2026-03-03 16:04:43 +00:00
  • d267cd36cc util/nvmutil: remove redundant comment Leah Rowe 2026-03-03 16:03:23 +00:00
  • 7fefeba076 util/nvmutil: use const char in usage Leah Rowe 2026-03-03 15:58:46 +00:00
  • f1ee2ff630 util/nvmutil: tidy up set_cmd Leah Rowe 2026-03-03 15:56:06 +00:00
  • 6d8cf8909f util/nvmutil: split up set_cmd Leah Rowe 2026-03-03 15:50:20 +00:00
  • 9f12aa3b91 util/nvmutil: tidy up final cmd check in set_cmd Leah Rowe 2026-03-03 15:47:01 +00:00
  • 572b7758cf util/nvmutil: tidy up rhex Leah Rowe 2026-03-03 15:43:11 +00:00
  • 403fd260b5 util/nvmutil: reduce the size of rnum to 12 Leah Rowe 2026-03-03 15:41:21 +00:00
  • d9d628e146 util/nvmutil: tidy up check_mac_separator Leah Rowe 2026-03-03 15:40:33 +00:00
  • 036ac6dc39 util/nvmutil: rename openFiles to open_files Leah Rowe 2026-03-03 15:31:31 +00:00
  • 48638e9a22 util/nvm: make variables and functions static Leah Rowe 2026-03-03 15:20:20 +00:00
  • dbfd77b388 util/nvmutil: don't use spaces on err_if Leah Rowe 2026-03-03 15:08:57 +00:00
  • bfb77077b3 util/nvmutil: use const for string literal in op Leah Rowe 2026-03-03 15:06:39 +00:00
  • a8a9ce32f1 util/nvmutil: no designated initialisers in op Leah Rowe 2026-03-03 15:04:39 +00:00
  • 5517cf923b util/nvmutil: declare one prototype per line Leah Rowe 2026-03-03 15:02:15 +00:00
  • e4e5022ab3 util/nvmutil: don't declare variables in for loops Leah Rowe 2026-03-03 14:50:33 +00:00
  • 198843c2e3 util/nvmutil: use size_t on op for loop Leah Rowe 2026-03-03 14:43:16 +00:00
  • 4edcc26849 util/nvmutil: make global variable names clearer Leah Rowe 2026-03-03 14:37:10 +00:00
  • 91879b7606 util/nvmutil: count the number of items in op Leah Rowe 2026-03-03 14:31:17 +00:00
  • d37726c353 util/nvmutil: set fname earlier Leah Rowe 2026-03-03 14:24:19 +00:00
  • 65a2f352ee util/nvmutil: obey the 79-character rule Leah Rowe 2026-03-03 14:15:36 +00:00
  • b8091c7bdc util/nvmutil: use spaces when calling err_if Leah Rowe 2026-03-03 14:14:06 +00:00
  • 23cdfdd00a util/nvmutil: consistent variable/function naming Leah Rowe 2026-03-03 14:07:27 +00:00
  • 8812a17683 util/nvmutil: use the invert in goodChecksum Leah Rowe 2026-03-03 13:38:39 +00:00
  • 3bdefad097 util/nvmutil: readGbe: use inverted part in swap Leah Rowe 2026-03-03 13:23:20 +00:00
  • 50942a7a15 util/nvmutil: clean up write_mac_part Leah Rowe 2026-03-03 13:19:22 +00:00
  • d4231e27fa util/nvmutil: clean up cmd_dump Leah Rowe 2026-03-03 13:17:21 +00:00
  • 9044b55c48 util/nvmutil: don't copy data in copy/swap Leah Rowe 2026-03-03 13:03:41 +00:00
  • 98bc523274 util/nvmutil: re-introduce do_read in readGbe Leah Rowe 2026-03-03 12:36:54 +00:00
  • 6770fa8ef2 util/nvmutil: use read, not pread, on /dev/urandom Leah Rowe 2026-03-03 12:31:53 +00:00
  • 188a3d012b util/nvmutil: clean up checkdir Leah Rowe 2026-03-03 04:17:25 +00:00
  • c64324467f util/nvmutil: use separate st variable for urandom Leah Rowe 2026-03-03 04:13:21 +00:00
  • 1c10eb524f util/nvmutil: cleaner directory checking Leah Rowe 2026-03-03 04:11:29 +00:00
  • b8e0513123 util/nvmutil: initialise fname to empty string Leah Rowe 2026-03-03 03:57:39 +00:00
  • de5087bbd5 util/nvmutil: fix code formatting on xopen Leah Rowe 2026-03-03 03:55:12 +00:00
  • efe2635c12 nvmutil: fix the swap function Leah Rowe 2026-03-03 03:50:22 +00:00
  • c721d6f4f4 util/nvmutil: use EXIT_FAILURE/SUCCESS for exits Leah Rowe 2026-03-03 03:43:06 +00:00
  • e4b8bb4875 util/nvmutil: make err_if a function, not a macro Leah Rowe 2026-03-03 03:38:45 +00:00
  • c98d5c743f util/nvmutil: properly cast void use of set_err Leah Rowe 2026-03-03 03:35:37 +00:00
  • 7213bba0c5 util/nvmutil: don't exit with errno as status Leah Rowe 2026-03-03 03:31:09 +00:00
  • 490f311d05 util/nvmutil: split up cmd_setmac Leah Rowe 2026-03-03 02:45:46 +00:00
  • 3cbaa7ead8 util/nvmutil: rename some functions for clarity Leah Rowe 2026-03-03 02:32:42 +00:00
  • 707fabab38 util/nvmutil: split up parseMacString Leah Rowe 2026-03-03 02:25:11 +00:00
  • d9c307d5a3 util/nvmutil: remove useless gbe variable Leah Rowe 2026-03-03 01:50:21 +00:00
  • a7cc8143a7 util/nvmutil: cmd copy/swap: use word/setWord Leah Rowe 2026-03-03 01:18:23 +00:00
  • 566ae72ca3 util/nvmutil: remove variable nvmPartChanged Leah Rowe 2026-03-03 00:51:10 +00:00
  • dfbb3c5d9e util/nvmutil: merge nvmalloc with readGbe Leah Rowe 2026-03-03 00:41:05 +00:00
  • 2b01e023ab util/nvmutil: remove do_read Leah Rowe 2026-03-03 00:40:07 +00:00
  • 1bfc89e3ad util/nvmutil: read in fixed 4KB blocks Leah Rowe 2026-03-03 00:30:10 +00:00
  • 1d078c9daf util/nvmutil: use fixed buffer Leah Rowe 2026-03-03 00:19:33 +00:00
  • 0ccb790fc0 util/nvmutil: remove pointless arg in openFiles Leah Rowe 2026-03-03 00:11:49 +00:00
  • 6dd91134bd util/nvmutil: don't use xor swap Leah Rowe 2026-03-02 23:29:00 +00:00
  • 53e386d2b5 util/nvmutil: don't use size_t as pointer Leah Rowe 2026-03-02 23:26:02 +00:00
  • 3248b8f651 util/nvmutil: don't capitalise set_err Leah Rowe 2026-03-02 23:04:03 +00:00
  • d3ca9946a9 util/nvmutil: make xopen a function, not a macro Leah Rowe 2026-03-02 23:02:53 +00:00
  • 761968e3c4 util/nvmutil: merge block_unveil back with main Leah Rowe 2026-03-02 22:29:11 +00:00
  • 589ac92781 util/nvmutil: fix bad bound check Leah Rowe 2026-03-02 17:47:58 +00:00
  • 51e4e43c94 util/nvmutil: tidy up the xopen macro Leah Rowe 2026-03-02 17:41:10 +00:00
  • a34e79f501 util/nvmutil: add boundary checks on word/setWord Leah Rowe 2026-03-02 17:35:00 +00:00
  • 4e7d48b5c5 util/nvmutil: make word/setWord a function Leah Rowe 2026-03-02 17:33:34 +00:00
  • 8707695184 util/nvmutil: rename openGbeFile to openFiles Leah Rowe 2026-03-02 17:05:39 +00:00
  • c4138752c3 util/nvmutil: remove redundant unveil call Leah Rowe 2026-03-02 17:03:00 +00:00
  • a4fe1bfa4d util/nvmutil: call block_unveil earlier Leah Rowe 2026-03-02 17:01:41 +00:00
  • ea1a9bc786 util/nvmutil: bring pledge in set_io_flag to main Leah Rowe 2026-03-02 16:57:50 +00:00
  • 46b6b1feb3 util/nvmutil: call set_cmd much earlier Leah Rowe 2026-03-02 16:43:12 +00:00
  • 0106c38217 util/nvmutil: unveil /dev/urandom much earlier Leah Rowe 2026-03-02 16:41:06 +00:00
  • 58cf5a1579 util/nvmutil: split xopen handling Leah Rowe 2026-03-02 16:38:09 +00:00
  • e5d7c3e3a2 util/nvmutil: split unveil handling Leah Rowe 2026-03-02 16:34:59 +00:00
  • 896f0ea1df util/nvmutil: split cmd init to new function Leah Rowe 2026-03-02 16:34:18 +00:00
  • 697eda800a util/nvmutil: split flags init to new function Leah Rowe 2026-03-02 12:54:47 +00:00
  • ab057e006c util/nvmutil: tidy up main() Leah Rowe 2026-03-02 12:50:18 +00:00
  • 6de3968f2b util/nvmutil: split unveil code to new function Leah Rowe 2026-03-02 12:16:30 +00:00
  • 9c23eac148 util/nvmutil: separate usage function Leah Rowe 2026-03-02 12:11:16 +00:00