Rev 8155 | Rev 8849 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 8155 | Rev 8185 | ||
---|---|---|---|
Line 12... | Line 12... | ||
12 | * |
12 | * |
13 | * You should have received a copy of the GNU General Public License |
13 | * You should have received a copy of the GNU General Public License |
14 | * along with this program; if not, write to the Free Software |
14 | * along with this program; if not, write to the Free Software |
15 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
15 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
16 | */ |
16 | */ |
- | 17 | #include "wimslogd.h" |
|
17 | 18 | ||
18 | /* File manipulation */ |
19 | /* File manipulation */ |
19 | 20 | ||
20 | enum{is_file, is_dir, is_exec, is_fifo, is_socket, is_unknown}; |
- | |
21 | struct stat ftst; |
21 | struct stat ftst; |
22 | 22 | ||
23 | /* A simple front-end of stat(). */ |
23 | /* A simple front-end of stat(). */ |
24 | int ftest(char *fname) |
24 | int ftest(char *fname) |
25 | { |
25 | { |
Line 89... | Line 89... | ||
89 | if(n>0) pp+=strlen(tag_string); else pp=buf; |
89 | if(n>0) pp+=strlen(tag_string); else pp=buf; |
90 | p2=strstr(pp,tag_string); if(p2) *p2=0; |
90 | p2=strstr(pp,tag_string); if(p2) *p2=0; |
91 | mystrncpy(bf,pp,MAX_LINELEN); |
91 | mystrncpy(bf,pp,MAX_LINELEN); |
92 | end: return bf; |
92 | end: return bf; |
93 | } |
93 | } |
94 | - |