Changeset 1931


Ignore:
Timestamp:
Apr 26, 2005, 5:29:06 AM (20 years ago)
Author:
bird
Message:

More hacking.

Location:
trunk/src/emx
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/include/sys/sysctl.h

    • Property cvs2svn:cvs-rev changed from 1.3 to 1.4
    r1930 r1931  
    3636/** @file
    3737 * FreeBSD 5.3
    38  * @changed bird: Hacked on the kernel stuff.
     38 * @changed bird: Hacked on the kernel stuff and started adding OS/2 tcpip4.1 extensions.
    3939 */
    4040
     
    326326#define CTL_MACHDEP     7               /* machine dependent */
    327327#define CTL_USER        8               /* user-level */
    328 #define CTL_P1003_1B    9               /* POSIX 1003.1B */
    329 #define CTL_MAXID       10              /* number of valid top-level ids */
     328#define CTL_OS2         9  /* tcpip v4.1 stuff, CTL_P1003_1B was moved because of this. */
     329#define CTL_P1003_1B    10              /* POSIX 1003.1B */
     330#define CTL_MAXID       11              /* number of valid top-level ids */
    330331
    331332#define CTL_NAMES { \
     
    339340        { "machdep", CTLTYPE_NODE }, \
    340341        { "user", CTLTYPE_NODE }, \
     342        { "os2", CTLTYPE_NODE }, \
    341343        { "p1003_1b", CTLTYPE_NODE }, \
    342344}
  • trunk/src/emx/src/lib/libc.def

    • Property cvs2svn:cvs-rev changed from 1.104 to 1.105
    r1930 r1931  
    15051505    "__std_sysctl" @1510
    15061506    "__std_sysctlbyname" @1511
     1507    "_sysctlnametomib" @1512
  • trunk/src/emx/src/lib/misc/sysctl_mib.c

    • Property cvs2svn:cvs-rev changed from 1.4 to 1.5
    r1930 r1931  
    5858/* start the set. */
    5959asm (".stabs  \"___libc_sysctl_set__\", 21, 0, 0, 0xffffffff\n");
     60/* hack to drag in sysctl_os2.c */
     61asm (".stabs \"___libc_sysctl__os2_children\",1,0,0,0\n"); /* (extrn) */
    6062
    6163SYSCTL_NODE(, 0,          sysctl, CTLFLAG_RW, 0,
  • trunk/src/emx/src/lib/misc/sysctl_os2.c

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r1930 r1931  
    4141#define _KERNEL
    4242#include <sys/sysctl.h>
     43
     44/* This is the only symbol we actually export, we exploit this in sysctl_mib to drag
     45 * this module into the link. (bad hack!) */
     46SYSCTL_NODE(, CTL_OS2, os2, CTLFLAG_RW, 0, "os2");
    4347
    4448
Note: See TracChangeset for help on using the changeset viewer.