Changeset 46a1aa9 in rtems


Ignore:
Timestamp:
Dec 3, 2004, 2:23:20 AM (16 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
751c513
Parents:
78219ad1
Message:

2004-12-02 Ralf Corsepius <ralf.corsepius@…>

  • libnetworking/kern/kern_sysctl.c, libnetworking/sys/sysctl.h: Add SYSCTL_CHILDREN_SET (Update from FreeBSD for GCC-4.0.0).
Location:
cpukit
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r78219ad1 r46a1aa9  
     12004-12-02      Ralf Corsepius <ralf.corsepius@rtems.org>
     2
     3        * libnetworking/kern/kern_sysctl.c,
     4        libnetworking/sys/sysctl.h: Add SYSCTL_CHILDREN_SET
     5        (Update from FreeBSD for GCC-4.0.0).
     6
    172004-12-02      Joel Sherrill <joel@OARcorp.com>
    28
  • cpukit/libnetworking/kern/kern_sysctl.c

    r78219ad1 r46a1aa9  
    393393        if ((kind & CTLTYPE) == CTLTYPE_NODE) {
    394394                /* Allocate space for children */
    395                 /* Later accessed by macro SYSCTL_CHILDREN(oidp) */
    396                 oidp->oid_arg1 = malloc(sizeof(struct sysctl_oid_list),
    397                     M_SYSCTLOID, M_WAITOK);
     395                SYSCTL_CHILDREN_SET(oidp, malloc(sizeof(struct sysctl_oid_list),
     396                    M_SYSCTLOID, M_WAITOK));
    398397                SLIST_INIT(SYSCTL_CHILDREN(oidp));
    399398        } else {
  • cpukit/libnetworking/sys/sysctl.h

    r78219ad1 r46a1aa9  
    181181#define SYSCTL_CHILDREN(oid_ptr) (struct sysctl_oid_list *) \
    182182        (oid_ptr)->oid_arg1
     183#define SYSCTL_CHILDREN_SET(oid_ptr, val) \
     184        (oid_ptr)->oid_arg1 = (val);
    183185#define SYSCTL_STATIC_CHILDREN(oid_name) \
    184186        (&sysctl_##oid_name##_children)
Note: See TracChangeset for help on using the changeset viewer.