Changeset 51cb676 in rtems


Ignore:
Timestamp:
May 1, 2005, 4:00:43 AM (15 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
864313b2
Parents:
0560bca
Message:

Update from FreeBSD

Location:
cpukit/libnetworking
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libnetworking/kern/kern_mib.c

    r0560bca r51cb676  
    1717 *    notice, this list of conditions and the following disclaimer in the
    1818 *    documentation and/or other materials provided with the distribution.
    19  * 3. All advertising materials mentioning features or use of this software
    20  *    must display the following acknowledgement:
    21  *      This product includes software developed by the University of
    22  *      California, Berkeley and its contributors.
    2319 * 4. Neither the name of the University nor the names of its contributors
    2420 *    may be used to endorse or promote products derived from this software
     
    3834 *
    3935 *      @(#)kern_sysctl.c       8.4 (Berkeley) 4/14/94
    40  * $FreeBSD: src/sys/kern/kern_mib.c,v 1.62 2002/11/07 23:57:17 tmm Exp $
     36 * $FreeBSD: src/sys/kern/kern_mib.c,v 1.74 2005/02/28 21:42:56 wes Exp $
     37 */
     38
     39/*
     40 * $Id$
    4141 */
    4242
     
    9898     "Regression test MIB");
    9999#endif
    100 #endif
     100
     101SYSCTL_STRING(_kern, OID_AUTO, ident, CTLFLAG_RD,
     102    kern_ident, 0, "Kernel identifier");
     103#endif /* __rtems__ */
    101104
    102105SYSCTL_STRING(_kern, KERN_OSRELEASE, osrelease, CTLFLAG_RD,
  • cpukit/libnetworking/sys/libkern.h

    r0560bca r51cb676  
    1111 *    notice, this list of conditions and the following disclaimer in the
    1212 *    documentation and/or other materials provided with the distribution.
    13  * 3. All advertising materials mentioning features or use of this software
    14  *    must display the following acknowledgement:
    15  *      This product includes software developed by the University of
    16  *      California, Berkeley and its contributors.
    1713 * 4. Neither the name of the University nor the names of its contributors
    1814 *    may be used to endorse or promote products derived from this software
     
    3228 *
    3329 *      @(#)libkern.h   8.1 (Berkeley) 6/10/93
     30 * $FreeBSD: src/sys/sys/libkern.h,v 1.48 2005/02/10 20:39:39 glebius Exp $
     31 */
     32
     33/*
    3434 * $Id$
    3535 */
    36 
     36 
    3737#ifndef _SYS_LIBKERN_H_
    3838#define _SYS_LIBKERN_H_
     
    6262
    6363/* Prototypes for non-quad routines. */
    64 int      bcmp __P((const void *, const void *, size_t));
     64int      bcmp(const void *, const void *, size_t);
    6565#ifndef HAVE_INLINE_FFS
    66 int      ffs __P((int));
     66int      ffs(int);
    6767#endif
    6868#ifndef HAVE_INLINE_FLS
    69 int      fls __P((int));
     69int      fls(int);
    7070#endif
    71 int      locc __P((int, char *, u_int));
    72 void     qsort __P((void *base, size_t nmemb, size_t size,
    73                     int (*compar)(const void *, const void *)));
    74 u_long   random __P((void));
    75 char    *index __P((const char *, int));
    76 char    *rindex __P((const char *, int));
    77 int      scanc __P((u_int, const u_char *, const u_char *, int));
    78 int      skpc __P((int, int, char *));
    79 void     srandom __P((u_long));
    80 char    *strcat __P((char *, const char *));
    81 int      strcmp __P((const char *, const char *));
    82 char    *strdup __P((const char *s));
    83 char    *strcpy __P((char *, const char *));
    84 size_t   strlen __P((const char *));
    85 int      strncmp __P((const char *, const char *, size_t));
    86 char    *strncpy __P((char *, const char *, size_t));
    87 char    *strerror __P((int errnum));
     71int      locc(int, char *, u_int);
     72void     qsort(void *base, size_t nmemb, size_t size,
     73                    int (*compar)(const void *, const void *));
     74#if defined(__rtems__)
     75u_long  rtems_bsdnet_random(void);
     76#define random()        rtems_bsdnet_random()
     77#else
     78u_long   random(void);
     79#endif
     80char    *index(const char *, int);
     81char    *rindex(const char *, int);
     82int      scanc(u_int, const u_char *, const u_char *, int);
     83int      skpc(int, int, char *);
     84void     srandom(u_long);
     85char    *strcat(char * __restrict, const char * __restrict);
     86int      strcmp(const char *, const char *);
     87char    *strdup(const char *s);
     88char    *strcpy(char * __restrict, const char * __restrict);
     89size_t   strlen(const char *);
     90int      strncmp(const char *, const char *, size_t);
     91char    *strncpy(char * __restrict, const char * __restrict, size_t);
     92char    *strerror(int errnum);
    8893
    8994#endif /* !_SYS_LIBKERN_H_ */
Note: See TracChangeset for help on using the changeset viewer.