Notice: We have migrated to GitLab launching 2024-05-01 see here: https://gitlab.rtems.org/

Ticket #1119: rtems-4.6.99.3_sysctl.diff

File rtems-4.6.99.3_sysctl.diff, 2.7 KB (added by thomas.doerfler, on 12/03/06 at 13:31:13)

rtems-4.6.99.3_sysctl.diff

  • cpukit/libcsupport/include/sys/cdefs.h

    diff -Nur -x configure -x Makefile.in -x autom4te.cache -x .svn -x '*.rej' -x '*.orig' -x '*~' ./rtems-4.6.99.3/cpukit/libcsupport/include/sys/cdefs.h ./rtems-4.6.99.3_patched/cpukit/libcsupport/include/sys/cdefs.h
    old new  
    116116#define __pure
    117117#define __pure2
    118118#define __unused
     119#define __used
    119120#define __attribute__(x)
    120121#endif
    121122#if __GNUC__ == 2 && __GNUC_MINOR__ < 5
     
    124125#define __pure          __const
    125126#define __pure2
    126127#define __unused
     128#define __used
    127129#endif
    128130#if __GNUC__ == 2 && __GNUC_MINOR__ >= 5 && __GNUC_MINOR__ < 7
    129131#define __dead
     
    131133#define __pure
    132134#define __pure2         __attribute__((__const__))
    133135#define __unused
     136#define __used
    134137#endif
    135138#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 || __GNUC__ >= 3
    136139#define __dead
     
    138141#define __pure
    139142#define __pure2         __attribute__((__const__))
    140143#define __unused        __attribute__((__unused__))
     144#define __used          __attribute__((__used__))
    141145#endif
    142146
    143147#ifdef __GNUC__
  • cpukit/libnetworking/netinet/tcp_var.h

    diff -Nur -x configure -x Makefile.in -x autom4te.cache -x .svn -x '*.rej' -x '*.orig' -x '*~' ./rtems-4.6.99.3/cpukit/libnetworking/netinet/tcp_var.h ./rtems-4.6.99.3_patched/cpukit/libnetworking/netinet/tcp_var.h
    old new  
    4343 * Kernel variables for tcp.
    4444 */
    4545
     46#ifdef __BSD_VISIBLE
    4647/*
    4748 * Tcp control block, one per tcp; fields:
    4849 */
     
    196197#define intotcpcb(ip)   ((struct tcpcb *)(ip)->inp_ppcb)
    197198#define intotw(ip)      ((struct tcptw *)(ip)->inp_ppcb)
    198199#define sototcpcb(so)   (intotcpcb(sotoinpcb(so)))
     200#endif /* __BSD_VISIBLE */
    199201
    200202/*
    201203 * The smoothed round-trip time and estimated variance
  • cpukit/libnetworking/sys/linker_set.h

    diff -Nur -x configure -x Makefile.in -x autom4te.cache -x .svn -x '*.rej' -x '*.orig' -x '*~' ./rtems-4.6.99.3/cpukit/libnetworking/sys/linker_set.h ./rtems-4.6.99.3_patched/cpukit/libnetworking/sys/linker_set.h
    old new  
    4242#ifdef __GNUC__
    4343#define __MAKE_SET(set, sym)                                            \
    4444        static void const * const __set_##set##_sym_##sym               \
    45         __attribute((section("set_" #set))) __unused = &sym
     45        __attribute((section("set_" #set))) __used = &sym
    4646#else /* !__GNUC__ */
    4747#ifndef lint
    4848#error "This file needs to be compiled by GCC or lint"