Changeset 43158ce in rtems


Ignore:
Timestamp:
04/26/04 11:59:48 (19 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
a99bf0a
Parents:
d589e75
Message:

2004-04-26 Ralf Corsepius <ralf_corsepius@…>

  • libnetworking/kern/kern_sysctl.c: Partial updates from FreeBSD.
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    rd589e75 r43158ce  
     12004-04-26      Ralf Corsepius <ralf_corsepius@rtems.org>
     2
     3        * libnetworking/kern/kern_sysctl.c: Partial updates from FreeBSD.
     4
    152004-04-26      Ralf Corsepius <ralf_corsepius@rtems.org>
    26
  • cpukit/libnetworking/kern/kern_sysctl.c

    rd589e75 r43158ce  
    9696#define SYSCTL_LOCK()           sx_xlock(&sysctllock)
    9797#define SYSCTL_UNLOCK()         sx_xunlock(&sysctllock)
    98 #define SYSCTL_INIT()           sx_init(&sysctllock, "sysctl sysctllock")
     98#define SYSCTL_INIT()           sx_init(&sysctllock, "sysctl lock")
    9999#endif
    100100
     
    424424SET_DECLARE(sysctl_set, struct sysctl_oid);
    425425
    426 void
     426static void
    427427sysctl_register_all(void *arg)
    428428{
     
    588588                                len, level+1, oidpp))
    589589                                return 0;
    590                         goto next;
     590                        goto emptynode;
    591591                }
    592592
     
    617617        next:
    618618                namelen = 1;
     619        emptynode:
    619620                *len = level;
    620621        }
     
    10781079 * amount of memory can be unwired in the sysctl exit code.
    10791080 */
    1080 void
     1081int
    10811082sysctl_wire_old_buffer(struct sysctl_req *req, size_t len)
    10821083{
     
    10881089                req->lock = REQ_WIRED;
    10891090        }
     1091        return (0);
    10901092}
    10911093
Note: See TracChangeset for help on using the changeset viewer.