Fossil SCM

Add comment describing file_wd_isfile() function.

dmitry 2011-09-08 14:30 trunk
Commit f23334cbda2ee24202584a973e2ca823bbafc7e5
1 file changed +3
+3
--- src/file.c
+++ src/file.c
@@ -142,10 +142,13 @@
142142
*/
143143
int file_isfile(const char *zFilename){
144144
return getStat(zFilename, 0) ? 0 : S_ISREG(fileStat.st_mode);
145145
}
146146
147
+/*
148
+** Same as file_isfile(), but takes into account symlinks.
149
+*/
147150
int file_wd_isfile(const char *zFilename){
148151
return getStat(zFilename, 1) ? 0 : S_ISREG(fileStat.st_mode);
149152
}
150153
151154
/*
152155
--- src/file.c
+++ src/file.c
@@ -142,10 +142,13 @@
142 */
143 int file_isfile(const char *zFilename){
144 return getStat(zFilename, 0) ? 0 : S_ISREG(fileStat.st_mode);
145 }
146
 
 
 
147 int file_wd_isfile(const char *zFilename){
148 return getStat(zFilename, 1) ? 0 : S_ISREG(fileStat.st_mode);
149 }
150
151 /*
152
--- src/file.c
+++ src/file.c
@@ -142,10 +142,13 @@
142 */
143 int file_isfile(const char *zFilename){
144 return getStat(zFilename, 0) ? 0 : S_ISREG(fileStat.st_mode);
145 }
146
147 /*
148 ** Same as file_isfile(), but takes into account symlinks.
149 */
150 int file_wd_isfile(const char *zFilename){
151 return getStat(zFilename, 1) ? 0 : S_ISREG(fileStat.st_mode);
152 }
153
154 /*
155

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button