Skip to content
Snippets Groups Projects
  1. Oct 25, 2019
    • Joseph Richey's avatar
      Improve src/lib.rs cfgs (#119) · cf2d81bf
      Joseph Richey authored
      Right now for each of `util_libc` and `use_file` we have a list of
      `target_os` configs to determine if we build the module.
      
      This PR moves these mod declarations into the main `cfg_if` statement
      (the one that selects which implementation we use). This way, the mod
      statements are kept in-sync with the implementations that use them.
      
      Also, I merged together `target_os` cfgs that have the same
      implementation. The downside to this is that the targets are no longer
      in alphabetical order.
      
      Also, this is only being applied to `0.2` as the `0.1` cfgs still have
      to keep `std` around.
      cf2d81bf
  2. Oct 24, 2019
  3. Oct 23, 2019
  4. Oct 16, 2019
  5. Oct 01, 2019
  6. Sep 30, 2019
  7. Sep 23, 2019
  8. Sep 21, 2019
  9. Sep 19, 2019
  10. Sep 06, 2019
  11. Aug 31, 2019
  12. Aug 25, 2019
  13. Aug 24, 2019
  14. Aug 17, 2019
  15. Aug 15, 2019
  16. Aug 14, 2019
  17. Aug 13, 2019
  18. Aug 12, 2019
  19. Aug 08, 2019
  20. Aug 07, 2019
  21. Aug 06, 2019
  22. Aug 05, 2019
  23. Aug 04, 2019
    • Aaron Hill's avatar
      Explicitly specify types to arguments of 'libc::syscall' (#74) · 6716ad06
      Aaron Hill authored
      The 'libc::syscall' function uses varargs - as a result, its arguments
      are completely untyped. THe user must ensure that it is called with the
      proper types for the targeted syscall - otherwise, the calling
      convention might cause arguments to be put into the wrong registers.
      
      This commit explicitly casts the arguments to 'libc::syscall' to the
      proper type for the 'getrandom' syscall. This ensures that the correct
      types for the target platform will always be used, instead of relying on
      the types used happening to match those required by the target platform.
      6716ad06
  24. Aug 03, 2019
  25. Jul 29, 2019
  26. Jul 28, 2019
  27. Jul 27, 2019
Loading