Changeset bd2941b in rtems-libbsd


Ignore:
Timestamp:
Sep 6, 2012, 3:19:13 PM (9 years ago)
Author:
Jennifer Averett <jennifer.averett@…>
Branches:
4.11, 5, 5-freebsd-12, 6-freebsd-12, freebsd-9.3, master
Children:
9dd5921
Parents:
6d7f488
Message:

route: Added files for the route command.

Files:
5 added
3 edited

Legend:

Unmodified
Added
Removed
  • .gitignore

    r6d7f488 rbd2941b  
    2626rtemsbsd/v850/v850/in_cksum.c
    2727rtemsbsd/v850/include/freebsd/machine/in_cksum.h
     28freebsd-userspace/commands/sbin/route/keywords.h
    2829freebsd-userspace/include/rpc/rpcb_prot.h
    2930rtemsbsd/arm/include/freebsd/machine/legacyvar.h
  • freebsd-userspace/Makefile

    r6d7f488 rbd2941b  
    8787C_FILES += commands/sbin/ping6/ping6.c
    8888
     89# route command sources
     90C_FILES += commands/sbin/route/route.c
     91
    8992C_O_FILES = $(C_FILES:%.c=%.o)
    9093C_D_FILES = $(C_FILES:%.c=%.d)
     
    9295LIB = libbsdc.a
    9396GEN_FILES = include/rpc/rpcb_prot.h
    94 
     97GEN_FILES += commands/sbin/route/keywords.h
    9598all: $(LIB)
    9699
     
    101104        rm -f include/rpc/rpcb_prot.h
    102105        rpcgen -h -o include/rpc/rpcb_prot.h include/rpc/rpcb_prot.x
     106
     107commands/sbin/route/keywords.h: commands/sbin/route/keywords
     108        sed -e '/^#/d' -e '/^$$/d' commands/sbin/route//keywords > _keywords.tmp
     109        LC_ALL=C tr 'a-z' 'A-Z' < _keywords.tmp | paste _keywords.tmp - | \
     110            awk '{ \
     111                if (NF > 1) \
     112                        printf "#define\tK_%s\t%d\n\t{\"%s\", K_%s},\n", \
     113                            $$2, NR, $$1, $$2 }' \
     114            > commands/sbin/route/keywords.h
     115        rm -f _keywords.tmp
    103116
    104117install: $(LIB)
  • freebsd-userspace/from-freebsd.sh

    r6d7f488 rbd2941b  
    245245net/in.h
    246246net/route.h
     247netatalk/at.h
     248netinet/if_ether.h
    247249netinet/in.h
    248250netinet/icmp6.h
Note: See TracChangeset for help on using the changeset viewer.