[BACK]Return to popen.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / lib / libc / gen

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/lib/libc/gen/popen.c between version 1.9.4.1 and 1.10

version 1.9.4.1, 1995/05/02 19:34:57 version 1.10, 1995/02/25 08:51:31
Line 1 
Line 1 
   /*      $NetBSD$        */
   
 /*  /*
  * Copyright (c) 1988, 1993   * Copyright (c) 1988, 1993
  *      The Regents of the University of California.  All rights reserved.   *      The Regents of the University of California.  All rights reserved.
Line 35 
Line 37 
  */   */
   
 #if defined(LIBC_SCCS) && !defined(lint)  #if defined(LIBC_SCCS) && !defined(lint)
 /* static char sccsid[] = "@(#)popen.c  8.1 (Berkeley) 6/4/93"; */  #if 0
 static char *rcsid = "$Id$";  static char sccsid[] = "@(#)popen.c     8.1 (Berkeley) 6/4/93";
   #else
   static char rcsid[] = "$NetBSD$";
   #endif
 #endif /* LIBC_SCCS and not lint */  #endif /* LIBC_SCCS and not lint */
   
 #include "namespace.h"  
 #include <sys/param.h>  #include <sys/param.h>
 #include <sys/wait.h>  #include <sys/wait.h>
   
Line 100  popen(program, type)
Line 104  popen(program, type)
                         }                          }
                         (void)close(pdes[1]);                          (void)close(pdes[1]);
                 }                  }
                 execl(_PATH_BSHELL, "sh", "-c", program, (char *) 0);                  execl(_PATH_BSHELL, "sh", "-c", program, NULL);
                 _exit(127);                  _exit(127);
                 /* NOTREACHED */                  /* NOTREACHED */
         }          }

Legend:
Removed from v.1.9.4.1  
changed lines
  Added in v.1.10

CVSweb <webmaster@jp.NetBSD.org>