Changeset 891a756 in rtems-libbsd


Ignore:
Timestamp:
Apr 7, 2016, 12:00:13 PM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
afaeccc05a556f6aa25ba044a7e49d6aa634a59e, freebsd-9.3, master
Children:
97c5024a
Parents:
42f085d
git-author:
Sebastian Huber <sebastian.huber@…> (04/07/16 12:00:13)
git-committer:
Sebastian Huber <sebastian.huber@…> (04/07/16 12:01:11)
Message:

libkern.h: Deal with latest <stdlib.h> of Newlib

File:
1 edited

Legend:

Unmodified
Added
Removed
  • freebsd/sys/sys/libkern.h

    r42f085d r891a756  
    114114void     qsort_r(void *base, size_t nmemb, size_t size, void *thunk,
    115115            int (*compar)(void *, const void *, const void *));
     116#ifndef __rtems__
    116117u_long   random(void);
     118#else /* __rtems__ */
     119#include <stdlib.h>
     120u_long   _bsd_random(void);
     121#define random() _bsd_random()
     122#endif /* __rtems__ */
    117123char    *index(const char *, int);
    118124char    *rindex(const char *, int);
    119125int      scanc(u_int, const u_char *, const u_char *, int);
    120126int      skpc(int, int, char *);
     127#ifndef __rtems__
    121128void     srandom(u_long);
     129#else /* __rtems__ */
     130void     _bsd_srandom(u_long);
     131#define srandom(_x) _bsd_srandom(_x)
     132#endif /* __rtems__ */
    122133int      strcasecmp(const char *, const char *);
    123134char    *strcat(char * __restrict, const char * __restrict);
Note: See TracChangeset for help on using the changeset viewer.