Changeset dc28f16 in rtems


Ignore:
Timestamp:
Apr 20, 2004, 12:28:19 PM (17 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
48ea3df
Parents:
c2b59d5
Message:

Use -D_KERNEL instead of -DKERNEL for greater FreeBSD compliance.

Location:
cpukit/libnetworking
Files:
49 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libnetworking/net/if.h

    rc2b59d5 rdc28f16  
    269269}
    270270
    271 #ifdef KERNEL
     271#ifdef _KERNEL
    272272#define IF_ENQ_DROP(ifq, m)     if_enq_drop(ifq, m)
    273273
     
    296296
    297297#endif
    298 #endif /* KERNEL */
     298#endif /* _KERNEL */
    299299
    300300#define IFQ_MAXLEN      50
     
    423423#include <net/if_arp.h>
    424424
    425 #ifdef KERNEL
     425#ifdef _KERNEL
    426426#define IFAFREE(ifa) \
    427427        if ((ifa)->ifa_refcnt <= 0) \
     
    470470int     looutput __P((struct ifnet *,
    471471           struct mbuf *, struct sockaddr *, struct rtentry *));
    472 #endif /* KERNEL */
     472#endif /* _KERNEL */
    473473
    474474#endif /* !_NET_IF_H_ */
  • cpukit/libnetworking/net/if_dl.h

    rc2b59d5 rdc28f16  
    7373#define LLADDR(s) ((caddr_t)((s)->sdl_data + (s)->sdl_nlen))
    7474
    75 #ifndef KERNEL
     75#ifndef _KERNEL
    7676
    7777#include <sys/cdefs.h>
     
    8282__END_DECLS
    8383
    84 #endif /* !KERNEL */
     84#endif /* !_KERNEL */
    8585
    8686#endif
  • cpukit/libnetworking/net/if_ppp.h

    rc2b59d5 rdc28f16  
    128128#endif
    129129
    130 #if (defined(_KERNEL) || defined(KERNEL)) && !defined(NeXT)
     130#if (defined(_KERNEL) || defined(_KERNEL)) && !defined(NeXT)
    131131void pppattach __P((void));
    132132void pppintr __P((void));
  • cpukit/libnetworking/net/netisr.h

    rc2b59d5 rdc28f16  
    7171
    7272#ifndef LOCORE
    73 #ifdef KERNEL
     73#ifdef _KERNEL
    7474extern volatile unsigned int    netisr; /* scheduling bits for network */
    7575
  • cpukit/libnetworking/net/pppcompress.c

    rc2b59d5 rdc28f16  
    6666#define BCMP(p1, p2, n) bcmp((char *)(p1), (char *)(p2), (int)(n))
    6767#define BCOPY(p1, p2, n) bcopy((char *)(p1), (char *)(p2), (int)(n))
    68 #ifndef KERNEL
     68#ifndef _KERNEL
    6969#define ovbcopy bcopy
    7070#endif
  • cpukit/libnetworking/net/radix.c

    rc2b59d5 rdc28f16  
    4040#ifndef _RADIX_H_
    4141#include <sys/param.h>
    42 #ifdef  KERNEL
     42#ifdef  _KERNEL
    4343#include <sys/systm.h>
    4444#include <sys/malloc.h>
     
    10071007{
    10081008        char *cp, *cplim;
    1009 #ifdef KERNEL
     1009#ifdef _KERNEL
    10101010        struct domain *dom;
    10111011
  • cpukit/libnetworking/net/radix.h

    rc2b59d5 rdc28f16  
    137137};
    138138
    139 #ifndef KERNEL
     139#ifndef _KERNEL
    140140#define Bcmp(a, b, n) bcmp(((char *)(a)), ((char *)(b)), (n))
    141141#define Bcopy(a, b, n) bcopy(((char *)(a)), ((char *)(b)), (unsigned)(n))
     
    149149#define R_Malloc(p, t, n) (p = (t) malloc((unsigned long)(n), M_RTABLE, M_DONTWAIT))
    150150#define Free(p) free((caddr_t)p, M_RTABLE);
    151 #endif /*KERNEL*/
     151#endif /*_KERNEL*/
    152152
    153153extern struct radix_node_head *mask_rnhead;
  • cpukit/libnetworking/net/raw_cb.h

    rc2b59d5 rdc28f16  
    5959#define RAWRCVQ         8192
    6060
    61 #ifdef KERNEL
     61#ifdef _KERNEL
    6262extern struct rawcb rawcb;              /* head of list */
    6363
  • cpukit/libnetworking/net/route.h

    rc2b59d5 rdc28f16  
    252252};
    253253
    254 #ifdef KERNEL
     254#ifdef _KERNEL
    255255#define RTFREE(rt) \
    256256        do { \
  • cpukit/libnetworking/netinet/icmp_var.h

    rc2b59d5 rdc28f16  
    7272}
    7373
    74 #ifdef KERNEL
     74#ifdef _KERNEL
    7575SYSCTL_DECL(_net_inet_icmp);
    7676extern struct   icmpstat icmpstat;
  • cpukit/libnetworking/netinet/if_ether.h

    rc2b59d5 rdc28f16  
    5757#define ETHERMIN        (ETHER_MIN_LEN-ETHER_HDR_LEN-ETHER_CRC_LEN)
    5858
    59 #ifdef KERNEL
     59#ifdef _KERNEL
    6060/*
    6161 * Macro to map an IP multicast address to an Ethernet multicast address.
     
    128128#define RTF_ANNOUNCE    RTF_PROTO2      /* announce new arp entry */
    129129
    130 #ifdef  KERNEL
     130#ifdef  _KERNEL
    131131extern u_char   etherbroadcastaddr[ETHER_ADDR_LEN];
    132132extern u_char   ether_ipmulticast_min[ETHER_ADDR_LEN];
  • cpukit/libnetworking/netinet/igmp_var.h

    rc2b59d5 rdc28f16  
    6363};
    6464
    65 #ifdef KERNEL
     65#ifdef _KERNEL
    6666extern struct igmpstat igmpstat;
    6767
  • cpukit/libnetworking/netinet/in.h

    rc2b59d5 rdc28f16  
    253253#define INADDR_ANY              (u_long)0x00000000
    254254#define INADDR_BROADCAST        (u_long)0xffffffff      /* must be masked */
    255 #ifndef KERNEL
     255#ifndef _KERNEL
    256256#define INADDR_NONE             0xffffffff              /* -1 return */
    257257#endif
     
    415415
    416416
    417 #ifdef KERNEL
     417#ifdef _KERNEL
    418418struct ifnet; struct mbuf;      /* forward declarations for Standard C */
    419419
     
    439439#define IP_NAT_OUT      0x00000002
    440440
    441 #endif /* KERNEL */
     441#endif /* _KERNEL */
    442442
    443443#endif
  • cpukit/libnetworking/netinet/in_pcb.h

    rc2b59d5 rdc28f16  
    133133#define sotoinpcb(so)   ((struct inpcb *)(so)->so_pcb)
    134134
    135 #ifdef KERNEL
     135#ifdef _KERNEL
    136136void     in_losing __P((struct inpcb *));
    137137int      in_pcballoc __P((struct socket *, struct inpcbinfo *));
  • cpukit/libnetworking/netinet/in_systm.h

    rc2b59d5 rdc28f16  
    5656typedef u_long  n_time;                 /* ms since 00:00 GMT, byte rev */
    5757
    58 #ifdef KERNEL
     58#ifdef _KERNEL
    5959n_time   iptime __P((void));
    6060#endif
  • cpukit/libnetworking/netinet/in_var.h

    rc2b59d5 rdc28f16  
    8383
    8484
    85 #ifdef  KERNEL
     85#ifdef  _KERNEL
    8686extern  struct  in_ifaddr *in_ifaddr;
    8787extern  struct  ifqueue ipintrq;                /* ip packet input queue */
     
    161161};
    162162
    163 #ifdef KERNEL
     163#ifdef _KERNEL
    164164
    165165#ifdef SYSCTL_DECL
     
    237237void    ip_input __P((struct mbuf *));
    238238
    239 #endif /* KERNEL */
     239#endif /* _KERNEL */
    240240
    241241#endif /* _NETINET_IN_VAR_H_ */
  • cpukit/libnetworking/netinet/ip_fw.h

    rc2b59d5 rdc28f16  
    172172 * Main firewall chains definitions and global var's definitions.
    173173 */
    174 #ifdef KERNEL
     174#ifdef _KERNEL
    175175
    176176/*
     
    179179void ip_fw_init(void);
    180180
    181 #endif /* KERNEL */
     181#endif /* _KERNEL */
    182182
    183183#endif /* _IP_FW_H */
  • cpukit/libnetworking/netinet/ip_icmp.h

    rc2b59d5 rdc28f16  
    183183        (type) == ICMP_MASKREQ || (type) == ICMP_MASKREPLY)
    184184
    185 #ifdef KERNEL
     185#ifdef _KERNEL
    186186void    icmp_error __P((struct mbuf *, int, int, n_long, struct ifnet *));
    187187void    icmp_input __P((struct mbuf *, int));
  • cpukit/libnetworking/netinet/ip_mroute.h

    rc2b59d5 rdc28f16  
    247247};
    248248
    249 #ifdef KERNEL
     249#ifdef _KERNEL
    250250
    251251extern int      (*ip_mrouter_set) __P((int, struct socket *, struct mbuf *));
     
    258258#endif
    259259
    260 #endif /* KERNEL */
     260#endif /* _KERNEL */
    261261
    262262#endif /* _NETINET_IP_MROUTE_H_ */
  • cpukit/libnetworking/netinet/ip_var.h

    rc2b59d5 rdc28f16  
    151151};
    152152
    153 #ifdef KERNEL
     153#ifdef _KERNEL
    154154/* flags passed to ip_output as last parameter */
    155155#define IP_FORWARDING           0x1             /* most of ip header exists */
     
    208208#endif /* IPDIVERT */
    209209
    210 #endif /* KERNEL */
     210#endif /* _KERNEL */
    211211
    212212#endif /* _NETINET_IP_VAR_H_ */
  • cpukit/libnetworking/netinet/tcp_debug.h

    rc2b59d5 rdc28f16  
    6161#define TCP_NDEBUG 100
    6262
    63 #ifndef KERNEL
     63#ifndef _KERNEL
    6464/* XXX common variables for broken applications. */
    6565struct  tcp_debug tcp_debug[TCP_NDEBUG];
  • cpukit/libnetworking/netinet/tcp_seq.h

    rc2b59d5 rdc28f16  
    7979                                        /* timestamp wrap-around time */
    8080
    81 #ifdef KERNEL
     81#ifdef _KERNEL
    8282extern tcp_cc   tcp_ccgen;              /* global connection count */
    8383
     
    9999#else
    100100#define TCP_ISSINCR     (250*1024)      /* increment for tcp_iss each second */
    101 #endif /* KERNEL */
     101#endif /* _KERNEL */
    102102#endif /* _NETINET_TCP_SEQ_H_ */
  • cpukit/libnetworking/netinet/tcp_timer.h

    rc2b59d5 rdc28f16  
    127127}
    128128
    129 #ifdef KERNEL
     129#ifdef _KERNEL
    130130extern int tcp_keepinit;                /* time to establish connection */
    131131extern int tcp_keepidle;                /* time before keepalive probes begin */
  • cpukit/libnetworking/netinet/tcp_var.h

    rc2b59d5 rdc28f16  
    354354}
    355355
    356 #ifdef KERNEL
     356#ifdef _KERNEL
    357357#ifdef SYSCTL_DECL
    358358SYSCTL_DECL(_net_inet_tcp);
     
    401401extern  u_long tcp_recvspace;
    402402
    403 #endif /* KERNEL */
     403#endif /* _KERNEL */
    404404
    405405#endif /* _NETINET_TCP_VAR_H_ */
  • cpukit/libnetworking/netinet/udp_var.h

    rc2b59d5 rdc28f16  
    9090}
    9191
    92 #ifdef KERNEL
     92#ifdef _KERNEL
    9393SYSCTL_DECL(_net_inet_udp);
    9494
  • cpukit/libnetworking/nfs/nfs.h

    rc2b59d5 rdc28f16  
    270270 * by them and break.
    271271 */
    272 #if defined(KERNEL) || defined(_KERNEL)
     272#if defined(_KERNEL) || defined(_KERNEL)
    273273
    274274struct uio; struct buf; struct vattr; struct nameidata; /* XXX */
     
    616616#endif
    617617
    618 #endif  /* KERNEL */
    619 
    620 #endif
     618#endif  /* _KERNEL */
     619
     620#endif
  • cpukit/libnetworking/rtems/rtems_bsdnet.h

    rc2b59d5 rdc28f16  
    1616#if defined(__INSIDE_RTEMS_BSD_TCPIP_STACK__)
    1717#undef _COMPILING_BSD_KERNEL_
    18 #undef KERNEL
     18#undef _KERNEL
    1919#undef INET
    2020#undef NFS
     
    2323
    2424#define _COMPILING_BSD_KERNEL_
    25 #define KERNEL
     25#define _KERNEL
    2626#define INET
    2727#define NFS
  • cpukit/libnetworking/rtems/rtems_bsdnet_internal.h

    rc2b59d5 rdc28f16  
    8888};
    8989
    90 #ifdef KERNEL
     90#ifdef _KERNEL
    9191typedef int             boolean_t;
    9292typedef struct vm_page  *vm_page_t;
  • cpukit/libnetworking/sys/buf.h

    rc2b59d5 rdc28f16  
    187187#define B_SYNC          0x02    /* Do all allocations synchronously. */
    188188
    189 #ifdef KERNEL
     189#ifdef _KERNEL
    190190extern int      nbuf;                   /* The number of buffer headers */
    191191extern struct   buf *buf;               /* The buffer headers. */
     
    244244vm_offset_t     vm_bounce_kva_alloc __P((int));
    245245void    vm_bounce_kva_alloc_free __P((vm_offset_t, int));
    246 #endif /* KERNEL */
     246#endif /* _KERNEL */
    247247
    248248#endif /* !_SYS_BUF_H_ */
  • cpukit/libnetworking/sys/callout.h

    rc2b59d5 rdc28f16  
    5050};
    5151
    52 #ifdef KERNEL
     52#ifdef _KERNEL
    5353extern struct   callout *callfree, *callout, calltodo;
    5454extern int      ncallout;
  • cpukit/libnetworking/sys/conf.h

    rc2b59d5 rdc28f16  
    9595};
    9696
    97 #ifdef KERNEL
     97#ifdef _KERNEL
    9898extern struct bdevsw *bdevsw[];
    9999#endif
     
    119119};
    120120
    121 #ifdef KERNEL
     121#ifdef _KERNEL
    122122extern struct cdevsw *cdevsw[];
    123123#endif
     
    137137};
    138138
    139 #ifdef KERNEL
     139#ifdef _KERNEL
    140140extern struct linesw linesw[];
    141141extern int nlinesw;
     
    159159#define sw_freed        sw_flags        /* XXX compat */
    160160
    161 #ifdef KERNEL
     161#ifdef _KERNEL
    162162d_open_t        noopen;
    163163d_close_t       noclose;
     
    222222int     iszerodev __P((dev_t dev));
    223223void    setconf __P((void));
    224 #endif /* KERNEL */
     224#endif /* _KERNEL */
    225225
    226226#include <machine/conf.h>
  • cpukit/libnetworking/sys/domain.h

    rc2b59d5 rdc28f16  
    6464};
    6565
    66 #ifdef KERNEL
     66#ifdef _KERNEL
    6767extern struct   domain *domains;
    6868extern struct   domain localdomain;
  • cpukit/libnetworking/sys/malloc.h

    rc2b59d5 rdc28f16  
    259259};
    260260
    261 #ifdef KERNEL
     261#ifdef _KERNEL
    262262#define MINALLOCSIZE    (1 << MINBUCKET)
    263263#define BUCKETINDX(size) \
     
    351351void    free __P((void *addr, int type));
    352352void    *malloc __P((unsigned long size, int type, int flags));
    353 #endif /* KERNEL */
     353#endif /* _KERNEL */
    354354
    355355#endif /* !_SYS_MALLOC_H_ */
  • cpukit/libnetworking/sys/mbuf.h

    rc2b59d5 rdc28f16  
    377377};
    378378
    379 #ifdef  KERNEL
     379#ifdef  _KERNEL
    380380extern struct mbuf *mbutl;              /* virtual address of mclusters */
    381381extern char     *mclrefcnt;             /* cluster reference counts */
  • cpukit/libnetworking/sys/mount.h

    rc2b59d5 rdc28f16  
    3838#define _SYS_MOUNT_H_
    3939
    40 #ifndef KERNEL
     40#ifndef _KERNEL
    4141#include <sys/ucred.h>
    4242#endif
     
    234234 * Operations supported on mounted file system.
    235235 */
    236 #ifdef KERNEL
     236#ifdef _KERNEL
    237237
    238238extern  int     doforce;        /* Flag to permit forcible unmounting. */
     
    313313#endif /* VFS_LKM */
    314314
    315 #endif /* KERNEL */
     315#endif /* _KERNEL */
    316316
    317317/*
     
    332332typedef struct fhandle  fhandle_t;
    333333
    334 #ifdef KERNEL
     334#ifdef _KERNEL
    335335#include <net/radix.h>
    336336#include <sys/socket.h>         /* XXX for AF_MAX */
     
    352352        struct  radix_node_head *ne_rtable[AF_MAX+1]; /* Individual exports */
    353353};
    354 #endif /* KERNEL */
     354#endif /* _KERNEL */
    355355
    356356/*
     
    478478#endif /* NFS */
    479479
    480 #ifdef KERNEL
     480#ifdef _KERNEL
    481481extern  int (*mountroot) __P((void *));
    482482extern  struct vfsops   *mountrootvfsops;
     
    504504extern  struct vfsops *vfssw[];                 /* filesystem type table */
    505505
    506 #else /* KERNEL */
     506#else /* _KERNEL */
    507507
    508508#include <sys/cdefs.h>
     
    527527__END_DECLS
    528528
    529 #endif /* KERNEL */
     529#endif /* _KERNEL */
    530530
    531531#endif /* !_SYS_MOUNT_H_ */
  • cpukit/libnetworking/sys/protosw.h

    rc2b59d5 rdc28f16  
    167167#endif
    168168
    169 #ifdef  KERNEL                  /* users shouldn't see this decl */
     169#ifdef  _KERNEL                 /* users shouldn't see this decl */
    170170struct stat;
    171171struct ifnet;
     
    224224#endif /* PRU_OLDSTYLE */
    225225
    226 #endif /* KERNEL */
     226#endif /* _KERNEL */
    227227
    228228/*
     
    293293#endif
    294294
    295 #ifdef KERNEL
     295#ifdef _KERNEL
    296296struct protosw *pffindproto __P((int family, int protocol, int type));
    297297struct protosw *pffindtype __P((int family, int type));
  • cpukit/libnetworking/sys/queue.h

    rc2b59d5 rdc28f16  
    558558}
    559559
    560 #ifdef KERNEL
     560#ifdef _KERNEL
    561561
    562562/*
  • cpukit/libnetworking/sys/rtprio.h

    rc2b59d5 rdc28f16  
    6161#endif
    6262
    63 #ifndef KERNEL
     63#ifndef _KERNEL
    6464#include <sys/cdefs.h>
    6565
     
    6767int     rtprio __P((int, pid_t, struct rtprio *));
    6868__END_DECLS
    69 #endif  /* !KERNEL */
     69#endif  /* !_KERNEL */
    7070#endif  /* !_SYS_RTPRIO_H_ */
  • cpukit/libnetworking/sys/select.h

    rc2b59d5 rdc28f16  
    5252#define SI_COLL 0x0001          /* collision occurred */
    5353
    54 #ifdef KERNEL
     54#ifdef _KERNEL
    5555struct proc;
    5656
  • cpukit/libnetworking/sys/signalvar.h

    rc2b59d5 rdc28f16  
    148148#define sigcantmask     (sigmask(SIGKILL) | sigmask(SIGSTOP))
    149149
    150 #ifdef KERNEL
     150#ifdef _KERNEL
    151151/*
    152152 * Machine-independent functions:
     
    168168 */
    169169void    sendsig __P((sig_t action, int sig, int returnmask, u_long code));
    170 #endif  /* KERNEL */
     170#endif  /* _KERNEL */
    171171#endif  /* !_SYS_SIGNALVAR_H_ */
  • cpukit/libnetworking/sys/socket.h

    rc2b59d5 rdc28f16  
    343343};
    344344
    345 #ifndef KERNEL
     345#ifndef _KERNEL
    346346
    347347__BEGIN_DECLS
     
    366366__END_DECLS
    367367
    368 #else /* KERNEL */
     368#else /* _KERNEL */
    369369void    pfctlinput __P((int, struct sockaddr *));
    370 #endif /* !KERNEL */
     370#endif /* !_KERNEL */
    371371#endif /* !_SYS_SOCKET_H_ */
  • cpukit/libnetworking/sys/socketvar.h

    rc2b59d5 rdc28f16  
    201201#define sowwakeup(so)   sowakeup((so), &(so)->so_snd)
    202202
    203 #ifdef KERNEL
     203#ifdef _KERNEL
    204204extern u_long   sb_max;
    205205
     
    277277int     soshutdown __P((struct socket *so, int how));
    278278void    sowakeup __P((struct socket *so, struct sockbuf *sb));
    279 #endif /* KERNEL */
     279#endif /* _KERNEL */
    280280
    281281#endif /* !_SYS_SOCKETVAR_H_ */
  • cpukit/libnetworking/sys/sysctl.h

    rc2b59d5 rdc28f16  
    103103#define CTL_AUTO_START  0x100
    104104
    105 #ifdef KERNEL
     105#ifdef _KERNEL
    106106#define SYSCTL_HANDLER_ARGS struct sysctl_oid *oidp, void *arg1, int arg2, \
    107107        struct sysctl_req *req
     
    278278        ptr, arg, handler, fmt, descr)
    279279
    280 #endif /* KERNEL */
     280#endif /* _KERNEL */
    281281
    282282/*
     
    552552}
    553553
    554 #ifdef KERNEL
     554#ifdef _KERNEL
    555555
    556556/*
     
    603603void    sysctl_wire_old_buffer(struct sysctl_req *req, size_t len);
    604604
    605 #else   /* !KERNEL */
     605#else   /* !_KERNEL */
    606606#include <sys/cdefs.h>
    607607
     
    611611int     sysctlnametomib(const char *, int *, size_t *);
    612612__END_DECLS
    613 #endif  /* KERNEL */
     613#endif  /* _KERNEL */
    614614
    615615#endif  /* !_SYS_SYSCTL_H_ */
  • cpukit/libnetworking/sys/syslog.h

    rc2b59d5 rdc28f16  
    152152#endif
    153153
    154 #ifdef KERNEL
     154#ifdef _KERNEL
    155155#define LOG_PRINTF      -1      /* pseudo-priority to indicate use of printf */
    156156#endif
     
    176176
    177177/*
    178 #ifdef KERNEL
     178#ifdef _KERNEL
    179179
    180 #else not KERNEL */
     180#else not _KERNEL */
    181181
    182182#include <sys/cdefs.h>
     
    191191__END_DECLS
    192192
    193 /* #endif !KERNEL */
     193/* #endif !_KERNEL */
    194194
    195195#endif
  • cpukit/libnetworking/sys/ucred.h

    rc2b59d5 rdc28f16  
    5151#define FSCRED ((struct ucred *)-1)     /* filesystem credential */
    5252
    53 #ifdef KERNEL
     53#ifdef _KERNEL
    5454#define crhold(cr)      (cr)->cr_ref++
    5555
     
    6060int             suser __P((struct ucred *cred, u_short *acflag));
    6161int             groupmember __P((gid_t gid, struct ucred *cred));
    62 #endif /* KERNEL */
     62#endif /* _KERNEL */
    6363
    6464#endif /* !_SYS_UCRED_H_ */
  • cpukit/libnetworking/sys/uio.h

    rc2b59d5 rdc28f16  
    5757};
    5858
    59 #ifdef KERNEL
     59#ifdef _KERNEL
    6060struct uio {
    6161        struct  iovec *uio_iov;
     
    7373#define UIO_MAXIOV      1024            /* max 1K of iov's */
    7474#define UIO_SMALLIOV    8               /* 8 on stack, else malloc */
    75 #endif /* KERNEL */
     75#endif /* _KERNEL */
    7676
    77 #ifdef KERNEL
     77#ifdef _KERNEL
    7878
    7979int     uiomove __P((caddr_t, int, struct uio *));
    8080
    81 #else /* !KERNEL */
     81#else /* !_KERNEL */
    8282
    8383#include <sys/cdefs.h>
     
    8888__END_DECLS
    8989
    90 #endif /* KERNEL */
     90#endif /* _KERNEL */
    9191
    9292#endif /* !_SYS_UIO_H_ */
  • cpukit/libnetworking/vm/vm.h

    rc2b59d5 rdc28f16  
    5353typedef struct vm_object *vm_object_t;
    5454
    55 #ifndef KERNEL
     55#ifndef _KERNEL
    5656/*
    5757 * This is defined in <sys/types.h> for the kernel so that non-vm kernel
  • cpukit/libnetworking/vm/vm_extern.h

    rc2b59d5 rdc28f16  
    4545struct vnode;
    4646
    47 #ifdef KERNEL
     47#ifdef _KERNEL
    4848
    4949#ifdef TYPEDEF_FOR_UAP
     
    9999void vm_fault_quick __P((caddr_t v, int prot));
    100100
    101 #endif                          /* KERNEL */
     101#endif                          /* _KERNEL */
    102102
    103103#endif                          /* !_VM_EXTERN_H_ */
  • cpukit/libnetworking/vm/vm_param.h

    rc2b59d5 rdc28f16  
    9999#endif
    100100
    101 #ifdef KERNEL
     101#ifdef _KERNEL
    102102extern vm_size_t page_mask;
    103103extern int page_shift;
     
    154154 *      No rounding is used.
    155155 */
    156 #ifdef KERNEL
     156#ifdef _KERNEL
    157157#define num_pages(x) \
    158158        ((vm_offset_t)((((vm_offset_t)(x)) + PAGE_MASK) >> PAGE_SHIFT))
     
    161161extern vm_offset_t first_addr;  /* first physical page */
    162162extern vm_offset_t last_addr;   /* last physical page */
    163 #endif                          /* KERNEL */
     163#endif                          /* _KERNEL */
    164164#endif                          /* ASSEMBLER */
    165165#endif                          /* _VM_PARAM_ */
Note: See TracChangeset for help on using the changeset viewer.