source: rtems/cpukit/libnetworking/rtems/rtems_malloc_mbuf.c @ 6b4e448

4.115
Last change on this file since 6b4e448 was 9b4422a2, checked in by Joel Sherrill <joel.sherrill@…>, on 05/03/12 at 15:09:24

Remove All CVS Id Strings Possible Using a Script

Script does what is expected and tries to do it as
smartly as possible.

+ remove occurrences of two blank comment lines

next to each other after Id string line removed.

+ remove entire comment blocks which only exited to

contain CVS Ids

+ If the processing left a blank line at the top of

a file, it was removed.

  • Property mode set to 100644
File size: 608 bytes
Line 
1#if HAVE_CONFIG_H
2#include "config.h"
3#endif
4
5#define RTEMS_FAST_MUTEX
6
7#ifdef RTEMS_FAST_MUTEX
8#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__ 1
9#endif
10
11#include <string.h>
12#include <stdarg.h>
13#include <stdio.h>
14#include <errno.h>
15
16#include <rtems.h>
17#include <rtems/rtems_bsdnet.h>
18
19/*
20 * We want to use the REAL system malloc.  Do not let the BSD malloc macro
21 * invade this file.
22 */
23extern void *malloc(size_t);
24
25/*
26 * Default allocator for mbuf data. Over-ride in user code to change
27 * the way mbuf's are allocated.
28 */
29
30void* rtems_bsdnet_malloc_mbuf(size_t size, int type)
31{
32   return malloc(size);
33}
34
35
Note: See TracBrowser for help on using the repository browser.