Deleted Added
full compact
bsd_kernel.h (266882) bsd_kernel.h (266887)
1/* $FreeBSD: head/sys/boot/usb/bsd_kernel.h 266882 2014-05-30 13:39:58Z hselasky $ */
1/* $FreeBSD: head/sys/boot/usb/bsd_kernel.h 266887 2014-05-30 14:30:52Z hselasky $ */
2/*-
3 * Copyright (c) 2011 Hans Petter Selasky. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.

--- 415 unchanged lines hidden (view full) ---

425void *memset(void *, int, size_t len);
426void *memcpy(void *, const void *, size_t len);
427int printf(const char *,...) __printflike(1, 2);
428int snprintf(char *restrict str, size_t size, const char *restrict format,...) __printflike(3, 4);
429size_t strlen(const char *s);
430
431/* MALLOC API */
432
2/*-
3 * Copyright (c) 2011 Hans Petter Selasky. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.

--- 415 unchanged lines hidden (view full) ---

425void *memset(void *, int, size_t len);
426void *memcpy(void *, const void *, size_t len);
427int printf(const char *,...) __printflike(1, 2);
428int snprintf(char *restrict str, size_t size, const char *restrict format,...) __printflike(3, 4);
429size_t strlen(const char *s);
430
431/* MALLOC API */
432
433#ifndef HAVE_MALLOC
434#undef malloc
435#define malloc(s,x,f) usb_malloc(s)
436void *usb_malloc(size_t);
437
438#undef free
439#define free(p,x) usb_free(p)
440void usb_free(void *);
433#undef malloc
434#define malloc(s,x,f) usb_malloc(s)
435void *usb_malloc(size_t);
436
437#undef free
438#define free(p,x) usb_free(p)
439void usb_free(void *);
441#else
442#undef malloc
443void *malloc(size_t);
444#define malloc(s,x,f) malloc(s)
445
440
446#undef free
447void free(void *);
448#define free(p,x) free(p)
449#endif
450
451#define strdup(p,x) usb_strdup(p)
452char *usb_strdup(const char *str);
453
454/* ENDIANNESS */
455
456#ifndef HAVE_ENDIAN_DEFS
457
458/* Assume little endian */

--- 46 unchanged lines hidden ---
441#define strdup(p,x) usb_strdup(p)
442char *usb_strdup(const char *str);
443
444/* ENDIANNESS */
445
446#ifndef HAVE_ENDIAN_DEFS
447
448/* Assume little endian */

--- 46 unchanged lines hidden ---