Mercurial > hg > xemacs-beta
comparison lib-src/make-path.c @ 169:15872534500d r20-3b11
Import from CVS: tag r20-3b11
| author | cvs |
|---|---|
| date | Mon, 13 Aug 2007 09:46:53 +0200 |
| parents | 376386a54a3c |
| children | 2d532a89d707 |
comparison
equal
deleted
inserted
replaced
| 168:9851d5c6556e | 169:15872534500d |
|---|---|
| 37 | 37 |
| 38 extern int errno; | 38 extern int errno; |
| 39 | 39 |
| 40 char *prog_name; | 40 char *prog_name; |
| 41 | 41 |
| 42 static int touchy_mkdir (path) | 42 static int touchy_mkdir (char *path) |
| 43 char *path; | |
| 44 { | 43 { |
| 45 struct stat buf; | 44 struct stat buf; |
| 46 | 45 |
| 47 /* If PATH already exists and is a directory, return success. */ | 46 /* If PATH already exists and is a directory, return success. */ |
| 48 if (stat (path, &buf) >= 0 | 47 if (stat (path, &buf) >= 0 |
| 60 | 59 |
| 61 return 0; | 60 return 0; |
| 62 } | 61 } |
| 63 | 62 |
| 64 int | 63 int |
| 65 main (argc, argv) | 64 main (int argc, char *argv[]) |
| 66 int argc; | |
| 67 char **argv; | |
| 68 { | 65 { |
| 69 prog_name = *argv; | 66 prog_name = *argv; |
| 70 | 67 |
| 71 for (argc--, argv++; argc > 0; argc--, argv++) | 68 for (argc--, argv++; argc > 0; argc--, argv++) |
| 72 { | 69 { |
