Branch: Tag:

1998-02-01

1998-02-01 02:08:25 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

Many patches for NT...

Rev: NT/tools/cp:1.3
Rev: NT/tools/install:1.3
Rev: NT/tools/lib:1.12
Rev: NT/tools/mkdir:1.3
Rev: NT/tools/rntcc:1.10
Rev: NT/tools/sprsh:1.2
Rev: NT/tools/sprshd:1.6
Rev: src/builtin_functions.c:1.66
Rev: src/error.c:1.12
Rev: src/error.h:1.12
Rev: src/fdlib.c:1.11
Rev: src/fdlib.h:1.8
Rev: src/interpret.c:1.65
Rev: src/modules/files/file.c:1.73
Rev: src/modules/files/socket.c:1.28
Rev: src/pike_memory.c:1.12
Rev: src/program.h:1.31
Rev: src/signal_handler.c:1.28

22:    }       object pi=Stdio.File(); + #if constant(Stdio.PROP_IPC) +  object p2=pi->pipe(Stdio.PROP_IPC); + #else    object p2=pi->pipe(); -  + #endif    string dir=cmd[0];    cmd=cmd[1..];   
44:    string to=combine_path(combine_path(getcwd(),dir),cmd[2]);       if(mixed stat=file_stat(to)) +  {    if(stat[1]==-2) -  to=combine_path(to,cmd[1]); +  { +  to=combine_path(to,basename(cmd[1])); +  } +  }    -  +  +  int ret=Stdio.cp(from,to); +  if(!ret) +  { +  string x=sprintf("Errno is %d\n" +  "CWD=%s\n" +  "from=%s\n" +  "to=%s\n" +  "dir=%s (%s)\n", +  errno(), +  getcwd(), +  from, +  to, +  dir, combine_path(getcwd(),dir)); +  io->write(sprintf("%4c%s",strlen(x),x)); +  }    io->write(sprintf("%4c",0)); -  io->write(sprintf("%4c",!Stdio.cp(from,to))); +  io->write(sprintf("%4c",!ret));    break;    }    case "getenv":
74:       if(!err)    { + #if !constant(Process.PROP_IPC)    thread_create(monitor,p2,p); -  + #endif    while(1)    {    string s=pi->read(1000,1);
94:    destruct(io);   }    -  +    int main(int argc, string *argv)   {    if(argc<2)