Changeset View
Changeset View
Standalone View
Standalone View
blocks.c
Show All 12 Lines | |||||
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||||
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||||
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||||
*/ | */ | ||||
#include <sys/queue.h> | #include <sys/queue.h> | ||||
#include <sys/stat.h> | #include <sys/stat.h> | ||||
#include <assert.h> | #include <assert.h> | ||||
#include <endian.h> | #include <sys/endian.h> | ||||
cem: This change is wrong on e.g., Linux.
It would probably make things easier if we just shipped a… | |||||
emasteUnsubmitted Not Done Inline ActionsYes, I intentionally asked Bora to not worry about compatibility with other systems initially, just to understand the scope of the changes. Is our sys/endian.h (mostly) equivalent to linux's endian.h? emaste: Yes, I intentionally asked Bora to not worry about compatibility with other systems initially… | |||||
cemUnsubmitted Not Done Inline ActionsYep, mostly included for the same macros/functions (be32toh, etc). Linux's endian.h lacks our *dec() and *enc() routines. cem: Yep, mostly included for the same macros/functions (be32toh, etc). Linux's endian.h lacks our… | |||||
#include <errno.h> | #include <errno.h> | ||||
#include <inttypes.h> | #include <inttypes.h> | ||||
#include <stdio.h> | #include <stdio.h> | ||||
#include <stdlib.h> | #include <stdlib.h> | ||||
#include <string.h> | #include <string.h> | ||||
#include <unistd.h> | #include <unistd.h> | ||||
#include "md4.h" | #include "md4.h" | ||||
▲ Show 20 Lines • Show All 404 Lines • Show Last 20 Lines |
This change is wrong on e.g., Linux.
It would probably make things easier if we just shipped a compatibility <endian.h> in FreeBSD that included sys/endian.h.