[llvm-commits] CVS: llvm/test/Programs/MultiSource/Applications/siod/slibu.c

Brian Gaeke gaeke at cs.uiuc.edu
Tue Dec 16 17:15:02 PST 2003


Changes in directory llvm/test/Programs/MultiSource/Applications/siod:

slibu.c updated: 1.1 -> 1.2

---
Log message:

Take out reference to putpwent().
Provide a reasonable default definition for PATH_MAX.


---
Diffs of the changes:  (+5 -11)

Index: llvm/test/Programs/MultiSource/Applications/siod/slibu.c
diff -u llvm/test/Programs/MultiSource/Applications/siod/slibu.c:1.1 llvm/test/Programs/MultiSource/Applications/siod/slibu.c:1.2
--- llvm/test/Programs/MultiSource/Applications/siod/slibu.c:1.1	Fri Oct 17 13:48:45 2003
+++ llvm/test/Programs/MultiSource/Applications/siod/slibu.c	Tue Dec 16 17:14:10 2003
@@ -70,6 +70,10 @@
 #include <limits.h>
 #endif
 
+#ifndef PATH_MAX
+#define PATH_MAX 1024
+#endif
+
 #if defined(hpux)
 #define PATH_MAX MAXPATHLEN
 #endif
@@ -100,7 +104,7 @@
 
 static void init_slibu_version(void)
 {setvar(cintern("*slibu-version*"),
-	cintern("$Id: slibu.c,v 1.1 2003/10/17 18:48:45 gaeke Exp $"),
+	cintern("$Id: slibu.c,v 1.2 2003/12/16 23:14:10 gaeke Exp $"),
 	NIL);}
 
 
@@ -287,15 +291,6 @@
  return(NIL);}
 #endif
 
-LISP lputpwent(LISP alist,LISP file)
-{int iflag = no_interrupt(1);
- int status;
- struct passwd p;
- lencode_pwent(alist,&p);
- status = putpwent(&p,get_c_file(file,NULL));
- no_interrupt(iflag);
- return(NIL);}
-
 LISP laccess_problem(LISP lfname,LISP lacc)
 {char *fname = get_c_string(lfname);
  char *acc = get_c_string(lacc),*p;
@@ -2171,7 +2166,6 @@
 #if defined(__osf__)
  init_subr_1("setpwfile",lsetpwfile);
 #endif
- init_subr_2("putpwent",lputpwent);
  init_subr_2("access-problem?",laccess_problem);
  init_subr_3("utime",lutime);
  init_subr_2("fchmod",lfchmod);





More information about the llvm-commits mailing list