Lefteris Karapetsas
bd571d3b2c
Styling fixes in io, ethash and internal
10 years ago
Lefteris Karapetsas
473bff75fe
Windows fixes
- Moving required memmap stuff to the header
- proper header inclusion for fstat/stat
- #define snprintf
10 years ago
Lefteris Karapetsas
f6d4634c75
Move ethash_io_prepare to io.c
- Platform specific io.c files now contain only the minimum amount of
code they can.
10 years ago
Lefteris Karapetsas
0c4e19be7d
Adding memory mapped I/O to ethash_full_new
10 years ago
Lefteris Karapetsas
1a0e498afc
ethash_io changes for windows
10 years ago
Lefteris Karapetsas
7fd1dd36f5
Coding style "adjustment"
- Adjusting the coding style for consistency after the talk we had
10 years ago
Lefteris Karapetsas
b78853b2d8
Fix msvc compile warnings
- Fix some warning due to missing casts
- Add wrappers for some functions that msvc considers unsafe
10 years ago
Lefteris Karapetsas
3038852084
Renaming ethash_blockhash_t to ethash_h256_t
10 years ago
Lefteris Karapetsas
ab389898bd
ethash_io_prepare takes seedhash as an argument
- Also typedefing a blockhash (uint8_t[32]) as an ethash_blockhash_t
10 years ago
Lefteris Karapetsas
219e8e9825
Correct return value in memofile mismatch
10 years ago
Lefteris Karapetsas
383865e191
ethash_io_write and win32 specific code
- adding ethash_io_write() function
- only ethash_io_prepare() invoke system dependent functions so it's the
only one going in system specific source files.
10 years ago
Lefteris Karapetsas
43b7db8220
Adding io.h and io_posix.c
- DAG and memo file creation will now be taken care of in libethash
itself.
- To that end we crete a very minimal IO module for ethash.
- Depending on the target system io_posix or io_win32 will be used.
- Implemented ethash_io_prepare() for posix
10 years ago