VirtualBox

Changeset 630 in kBuild for trunk/src/ash


Ignore:
Timestamp:
Nov 26, 2006 12:24:22 PM (18 years ago)
Author:
bird
Message:

Made it build on linux.

Location:
trunk/src/ash
Files:
1 added
4 edited
2 copied

Legend:

Unmodified
Added
Removed
  • trunk/src/ash/Makefile.kmk

    r629 r630  
    1515kmk_ash_TEMPLATE = BIN
    1616kmk_ash_DEFS = lint SHELL SMALL
    17 kmk_ash_DEFS.win = PC_PATH_SEP PC_DRIVE_LETTERS PC_EXE_EXTS
    18 kmk_ash_DEFS.os2 = EXEC_HASH_BANG_SCRIPT PC_OS2_LIBPATHS PC_PATH_SEP PC_DRIVE_LETTERS PC_EXE_EXTS
     17kmk_ash_DEFS.linux = BSD
     18kmk_ash_DEFS.win = \
     19        PC_PATH_SEP PC_DRIVE_LETTERS PC_EXE_EXTS
     20kmk_ash_DEFS.os2 = \
     21        HAVE_SYS_SIGNAME HAVE_SYSCTL_H HAVE_SETPROGNAME \
     22        EXEC_HASH_BANG_SCRIPT PC_OS2_LIBPATHS PC_PATH_SEP PC_DRIVE_LETTERS PC_EXE_EXTS
    1923kmk_ash_INCS = $(PATH_TARGET) . # (the last is because of error.h)
    2024kmk_ash_SOURCES = \
     
    4953        $(PATH_TARGET)/init.c \
    5054        $(PATH_TARGET)/nodes.c
     55kmk_ash_SOURCES.linux = \
     56        sys_signame.c \
     57        strlcpy.c \
     58        setmode.c
    5159kmk_ash_DEPS = \
    5260        $(PATH_TARGET)/arith.h \
  • trunk/src/ash/bltin/kill.c

    r626 r630  
    5656#include <sys/ioctl.h>
    5757
     58#ifndef HAVE_SYS_SIGNAME
     59extern void init_sys_signame(void);
     60extern char sys_signame[NSIG][16];
     61#endif
     62
    5863#ifdef SHELL            /* sh (aka ash) builtin */
    5964#define main killcmd
     
    98103                        if (numsig <= 0 || numsig >= NSIG)
    99104                                nosig(*argv);
     105#ifndef HAVE_SYS_SIGNAME
     106                        init_sys_signame();
     107#endif
    100108                        printf("%s\n", sys_signame[numsig]);
    101109                        exit(0);
     
    179187{
    180188        int n;
    181 
     189#ifndef HAVE_SYS_SIGNAME
     190        init_sys_signame();
     191#endif
    182192        if (strncasecmp(sig, "sig", 3) == 0)
    183193                sig += 3;
     
    216226#warning TIOCGWINSZ is not present.
    217227#endif
     228#ifndef HAVE_SYS_SIGNAME
     229    init_sys_signame();
     230#endif
    218231
    219232        for (len = 0, sig = 1; sig < NSIG; sig++) {
  • trunk/src/ash/bltin/test.c

    r626 r630  
    190190        int res;
    191191
     192#ifdef HAVE_SETPROGNAME
    192193        setprogname(argv[0]);
     194#endif
    193195        if (strcmp(argv[0], "[") == 0) {
    194196                if (strcmp(argv[--argc], "]"))
  • trunk/src/ash/trap.c

    r626 r630  
    6161#include "var.h"
    6262
     63#ifndef HAVE_SYS_SIGNAME
     64extern void init_sys_signame(void);
     65extern char sys_signame[NSIG][16];
     66#endif
    6367
    6468/*
     
    101105                p += 3;
    102106
     107#ifndef HAVE_SYS_SIGNAME
     108        init_sys_signame();
     109#endif
    103110        for (i = 0; i < NSIG; ++i)
    104111                if (strcasecmp (p, sys_signame[i]) == 0)
     
    116123
    117124        out1str("EXIT ");
     125#ifndef HAVE_SYS_SIGNAME
     126        init_sys_signame();
     127#endif
    118128
    119129        for (n = 1; n < NSIG; n++) {
     
    136146        char **ap;
    137147        int signo;
     148#ifndef HAVE_SYS_SIGNAME
     149        init_sys_signame();
     150#endif
    138151
    139152        if (argc <= 1) {
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette