Changeset 2591 for trunk/src/kmk/vmsfunctions.c
- Timestamp:
- Jun 17, 2012, 10:45:31 PM (13 years ago)
- Location:
- trunk/src/kmk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk
- Property svn:ignore
-
old new 13 13 stamp-* 14 14 makebook* 15 15 16 .*gdbinit 17 .gdb_history 18 16 19 *.dep 17 20 *.dvi … … 31 34 *.pg 32 35 *.pgs 36 33 37 README 34 38 README.DOS 35 39 README.W32 40 README.OS2 36 41 aclocal.m4 37 42 autom4te.cache … … 52 57 config.h.W32 53 58 config.h-vms 59 54 60 loadavg 55 61 loadavg.c 56 62 make 63 57 64 .deps 58 65 .dep_segment 66 ID 67 TAGS 68 59 69 _* 60 70 sun4 … … 72 82 sol2 73 83 i486-linux 84 74 85 customs 86 75 87 install-sh 76 88 mkinstalldirs 89 90 .directive.asc
-
- Property svn:ignore
-
trunk/src/kmk/vmsfunctions.c
r1993 r2591 1 1 /* VMS functions 2 2 Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 3 2007 Free Software Foundation, Inc.3 2007, 2008, 2009, 2010 Free Software Foundation, Inc. 4 4 This file is part of GNU Make. 5 5 … … 35 35 opendir (char *dspec) 36 36 { 37 struct DIR *dir = (struct DIR *)xmalloc (sizeof (struct DIR));38 struct NAM *dnam = (struct NAM *)xmalloc (sizeof (struct NAM));37 struct DIR *dir = xcalloc (sizeof (struct DIR)); 38 struct NAM *dnam = xmalloc (sizeof (struct NAM)); 39 39 struct FAB *dfab = &dir->fab; 40 40 char *searchspec = xmalloc (MAXNAMLEN + 1); 41 42 memset (dir, 0, sizeof *dir);43 41 44 42 *dfab = cc$rms_fab; … … 92 90 if (!((i = sys$search (dfab)) & 1)) 93 91 { 94 DB (DB_VERBOSE, (_("sys$search failed with %d\n"), i));92 DB (DB_VERBOSE, (_("sys$search() failed with %d\n"), i)); 95 93 return (NULL); 96 94 } … … 142 140 } 143 141 142 #if 0 143 /* 144 * Is this used? I don't see any reference, so I suggest to remove it. 145 */ 144 146 int 145 147 vms_stat (char *name, struct stat *buf) … … 238 240 return 0; 239 241 } 242 #endif 240 243 241 244 char *
Note:
See TracChangeset
for help on using the changeset viewer.