Build of tree with android toolchain

The build took 00h 01m 08s and was NOT successful.

The program in this build is written in the following languages, according to sloccount:

SLOCLanguage
2,874 ansic
30 makefile
2,904 total

The process tree of the build process is here.

Several sub-process invocations were improper; see the process tree for details. Summary:

List of Errors

Log

To avoid scrolling, you may jump to the last line of the invocation of makepkg that was used to build this package.

Removed vanilla repositories from pacman.conf and added:
# [tuscan]
# Server = file:///var/cache/pacman/pkg/

CMD: pacman -Syy --noconfirm
# :: Synchronizing package databases...
# downloading tuscan.db...

Copied permanent toolchain into container-local sysroot
# /toolchain_root/arm-linux-androideabi --> /sysroot/arm-linux-androideabi
# /toolchain_root/COPYING3.LIB --> /sysroot/COPYING3.LIB
# /toolchain_root/sysroot --> /sysroot/sysroot
# /toolchain_root/COPYING.RUNTIME --> /sysroot/COPYING.RUNTIME
# /toolchain_root/lib --> /sysroot/lib
# /toolchain_root/SOURCES --> /sysroot/SOURCES
# /toolchain_root/lib64 --> /sysroot/lib64
# /toolchain_root/share --> /sysroot/share
# /toolchain_root/bin --> /sysroot/bin
# /toolchain_root/COPYING --> /sysroot/COPYING
# /toolchain_root/COPYING3 --> /sysroot/COPYING3
# /toolchain_root/COPYING.LIB --> /sysroot/COPYING.LIB
# /toolchain_root/include --> /sysroot/include
# /toolchain_root/libexec --> /sysroot/libexec

CMD: sudo -u tuscan PATH=/sysroot/bin:/sysroot/libexec/gcc/arm-linux-androideabi/4.8:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin CC=arm-linux-androideabi-gcc CXX=arm-linux-androideabi-g++ red makepkg --noextract --syncdeps --skipinteg --skippgpcheck --skipchecksums --noconfirm --nocolor --log --noprogressbar --nocheck
# ==> Making package: tree 1.7.0-1 (Tue Apr 4 21:51:57 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# gcc -ggdb -Wall -DLINUX -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c -o tree.o tree.c
# gcc -ggdb -Wall -DLINUX -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c -o unix.o unix.c
# gcc -ggdb -Wall -DLINUX -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c -o html.o html.c
# gcc -ggdb -Wall -DLINUX -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c -o xml.o xml.c
# cc1: error: no include path in which to search for stdc-predef.h
# In file included from unix.c:19:0:
# tree.h:22:20: error: no include path in which to search for stdlib.h
# #include
# ^
# tree.h:23:19: error: no include path in which to search for stdio.h
# #include
# ^
# tree.h:24:18: error: no include path in which to search for time.h
# #include
# ^
# tree.h:25:20: error: no include path in which to search for string.h
# #include
# ^
# tree.h:26:21: error: no include path in which to search for strings.h
# #include
# ^
# tree.h:27:22: error: no include path in which to search for sys/time.h
# #include
# ^
# tree.h:28:23: error: no include path in which to search for sys/types.h
# #include
# ^
# tree.h:29:22: error: no include path in which to search for sys/stat.h
# #include
# ^
# tree.h:30:20: error: no include path in which to search for dirent.h
# #include
# ^
# tree.h:31:19: error: no include path in which to search for ctype.h
# #include
# ^
# tree.h:32:20: error: no include path in which to search for unistd.h
# #include
# ^
# tree.h:33:20: error: no include path in which to search for limits.h
# #include
# ^
# tree.h:34:17: error: no include path in which to search for pwd.h
# #include
# ^
# tree.h:35:17: error: no include path in which to search for grp.h
# #include
# ^
# tree.h:54:20: error: no include path in which to search for locale.h
# #include
# ^
# tree.h:55:22: error: no include path in which to search for langinfo.h
# #include
# ^
# tree.h:56:19: error: no include path in which to search for wchar.h
# #include
# ^
# tree.h:57:20: error: no include path in which to search for wctype.h
# #include
# ^
# tree.h:82:3: error: unknown type name 'mode_t'
# mode_t mode, lnkmode;
# ^
# tree.h:83:3: error: unknown type name 'uid_t'
# uid_t uid;
# ^
# tree.h:84:3: error: unknown type name 'gid_t'
# gid_t gid;
# ^
# tree.h:85:3: error: unknown type name 'off_t'
# off_t size;
# ^
# tree.h:86:3: error: unknown type name 'time_t'
# time_t atime, ctime, mtime;
# ^
# tree.h:87:3: error: unknown type name 'dev_t'
# dev_t dev;
# ^
# tree.h:88:3: error: unknown type name 'ino_t'
# ino_t inode;
# ^
# tree.h:102:3: error: unknown type name 'ino_t'
# ino_t inode;
# ^
# tree.h:103:3: error: unknown type name 'dev_t'
# dev_t device;
# ^
# tree.h:123:37: error: unknown type name 'u_long'
# struct _info **getfulltree(char *d, u_long lev, dev_t dev, off_t *size, char **err);
# ^
# tree.h:123:49: error: unknown type name 'dev_t'
# struct _info **getfulltree(char *d, u_long lev, dev_t dev, off_t *size, char **err);
# ^
# tree.h:123:60: error: unknown type name 'off_t'
# struct _info **getfulltree(char *d, u_long lev, dev_t dev, off_t *size, char **err);
# ^
# tree.h:131:13: error: unknown type name 'off_t'
# int sizecmp(off_t a, off_t b);
# ^
# tree.h:131:22: error: unknown type name 'off_t'
# int sizecmp(off_t a, off_t b);
# ^
# tree.h:134:1: warning: parameter names (without types) in function declaration [enabled by default]
# void *xmalloc(size_t), *xrealloc(void *, size_t);
# ^
# tree.h:134:42: error: unknown type name 'size_t'
# void *xmalloc(size_t), *xrealloc(void *, size_t);
# ^
# tree.h:142:1: warning: parameter names (without types) in function declaration [enabled by default]
# char *prot(mode_t);
# ^
# tree.h:144:1: warning: parameter names (without types) in function declaration [enabled by default]
# char *do_date(time_t);
# ^
# tree.h:146:22: error: unknown type name 'off_t'
# int psize(char *buf, off_t size);
# ^
# tree.h:147:12: error: unknown type name 'mode_t'
# char Ftype(mode_t mode);
# ^
# tree.h:151:1: error: unknown type name 'off_t'
# off_t unix_listdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:151:47: error: unknown type name 'u_long'
# off_t unix_listdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:151:59: error: unknown type name 'dev_t'
# off_t unix_listdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:152:1: error: unknown type name 'off_t'
# off_t unix_rlistdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:152:48: error: unknown type name 'u_long'
# off_t unix_rlistdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:152:60: error: unknown type name 'dev_t'
# off_t unix_rlistdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:153:63: error: unknown type name 'u_long'
# void r_listdir(struct _info **dir, char *d, int *dt, int *ft, u_long lev);
# ^
# tree.h:157:1: error: unknown type name 'off_t'
# off_t html_listdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:157:47: error: unknown type name 'u_long'
# off_t html_listdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:157:59: error: unknown type name 'dev_t'
# off_t html_listdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:158:1: error: unknown type name 'off_t'
# off_t html_rlistdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:158:48: error: unknown type name 'u_long'
# off_t html_rlistdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:158:60: error: unknown type name 'dev_t'
# off_t html_rlistdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:159:67: error: unknown type name 'u_long'
# void htmlr_listdir(struct _info **dir, char *d, int *dt, int *ft, u_long lev);
# ^
# tree.h:160:18: error: unknown type name 'FILE'
# void html_encode(FILE *fd, char *s);
# ^
# tree.h:163:1: error: unknown type name 'off_t'
# off_t xml_listdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:163:46: error: unknown type name 'u_long'
# off_t xml_listdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:163:58: error: unknown type name 'dev_t'
# off_t xml_listdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:164:1: error: unknown type name 'off_t'
# off_t xml_rlistdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:164:47: error: unknown type name 'u_long'
# off_t xml_rlistdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:164:59: error: unknown type name 'dev_t'
# off_t xml_rlistdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:165:66: error: unknown type name 'u_long'
# void xmlr_listdir(struct _info **dir, char *d, int *dt, int *ft, u_long lev);
# ^
# tree.h:170:1: error: unknown type name 'off_t'
# off_t json_listdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:170:47: error: unknown type name 'u_long'
# off_t json_listdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:170:59: error: unknown type name 'dev_t'
# off_t json_listdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:171:1: error: unknown type name 'off_t'
# off_t json_rlistdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:171:48: error: unknown type name 'u_long'
# off_t json_rlistdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:171:60: error: unknown type name 'dev_t'
# off_t json_rlistdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:172:67: error: unknown type name 'u_long'
# void jsonr_listdir(struct _info **dir, char *d, int *dt, int *ft, u_long lev);
# ^
# tree.h:178:11: error: unknown type name 'u_short'
# int color(u_short mode, char *name, bool orphan, bool islink);
# ^
# tree.h:183:17: error: unknown type name 'uid_t'
# char *uidtoname(uid_t uid);
# ^
# tree.h:184:17: error: unknown type name 'gid_t'
# char *gidtoname(gid_t gid);
# ^
# tree.h:185:1: warning: parameter names (without types) in function declaration [enabled by default]
# int findino(ino_t, dev_t);
# ^
# tree.h:186:1: warning: parameter names (without types) in function declaration [enabled by default]
# void saveino(ino_t, dev_t);
# ^
# unix.c:25:46: error: unknown type name 'u_long'
# extern void (*listdir)(char *, int *, int *, u_long, dev_t);
# ^
# unix.c:25:54: error: unknown type name 'dev_t'
# extern void (*listdir)(char *, int *, int *, u_long, dev_t);
# ^
# unix.c:27:1: error: unknown type name 'FILE'
# extern FILE *outfile;
# ^
# unix.c:33:1: error: unknown type name 'off_t'
# off_t unix_listdir(char *d, int *dt, int *ft, u_long lev, dev_t dev)
# ^
# unix.c:33:47: error: unknown type name 'u_long'
# off_t unix_listdir(char *d, int *dt, int *ft, u_long lev, dev_t dev)
# ^
# unix.c:33:59: error: unknown type name 'dev_t'
# off_t unix_listdir(char *d, int *dt, int *ft, u_long lev, dev_t dev)
# ^
# unix.c:160:1: error: unknown type name 'off_t'
# off_t unix_rlistdir(char *d, int *dt, int *ft, u_long lev, dev_t dev)
# ^
# unix.c:160:48: error: unknown type name 'u_long'
# off_t unix_rlistdir(char *d, int *dt, int *ft, u_long lev, dev_t dev)
# ^
# unix.c:160:60: error: unknown type name 'dev_t'
# off_t unix_rlistdir(char *d, int *dt, int *ft, u_long lev, dev_t dev)
# ^
# unix.c:175:63: error: unknown type name 'u_long'
# void r_listdir(struct _info **dir, char *d, int *dt, int *ft, u_long lev)
# ^
# cc1: error: no include path in which to search for stdc-predef.h
# In file included from xml.c:19:0:
# tree.h:22:20: error: no include path in which to search for stdlib.h
# #include
# ^
# tree.h:23:19: error: no include path in which to search for stdio.h
# #include
# ^
# tree.h:24:18: error: no include path in which to search for time.h
# #include
# ^
# tree.h:25:20: error: no include path in which to search for string.h
# #include
# ^
# tree.h:26:21: error: no include path in which to search for strings.h
# #include
# ^
# tree.h:27:22: error: no include path in which to search for sys/time.h
# #include
# ^
# tree.h:28:23: error: no include path in which to search for sys/types.h
# #include
# ^
# tree.h:29:22: error: no include path in which to search for sys/stat.h
# #include
# ^
# tree.h:30:20: error: no include path in which to search for dirent.h
# #include
# ^
# tree.h:31:19: error: no include path in which to search for ctype.h
# #include
# ^
# tree.h:32:20: error: no include path in which to search for unistd.h
# #include
# ^
# tree.h:33:20: error: no include path in which to search for limits.h
# #include
# ^
# tree.h:34:17: error: no include path in which to search for pwd.h
# #include
# ^
# tree.h:35:17: error: no include path in which to search for grp.h
# #include
# ^
# tree.h:54:20: error: no include path in which to search for locale.h
# #include
# ^
# tree.h:55:22: error: no include path in which to search for langinfo.h
# #include
# ^
# tree.h:56:19: error: no include path in which to search for wchar.h
# #include
# ^
# tree.h:57:20: error: no include path in which to search for wctype.h
# #include
# ^
# cc1: error: no include path in which to search for stdc-predef.h
# cc1: error: no include path in which to search for stdc-predef.h
# tree.h:82:3: error: unknown type name 'mode_t'
# mode_t mode, lnkmode;
# ^
# tree.h:83:3: error: unknown type name 'uid_t'
# uid_t uid;
# ^
# tree.h:84:3: error: unknown type name 'gid_t'
# gid_t gid;
# ^
# tree.h:85:3: error: unknown type name 'off_t'
# off_t size;
# ^
# tree.h:86:3: error: unknown type name 'time_t'
# time_t atime, ctime, mtime;
# ^
# tree.h:87:3: error: unknown type name 'dev_t'
# dev_t dev;
# ^
# In file included from tree.c:20:0:
# tree.h:22:20: error: no include path in which to search for stdlib.h
# #include
# ^
# In file included from html.c:19:0:
# tree.h:22:20: error: no include path in which to search for stdlib.h
# #include
# ^
# tree.h:88:3: error: unknown type name 'ino_t'
# ino_t inode;
# ^
# tree.h:23:19: error: no include path in which to search for stdio.h
# #include
# ^
# tree.h:23:19: error: no include path in which to search for stdio.h
# #include
# ^
# make: *** [Makefile:90: unix.o] Error 1
# tree.h:24:18: error: no include path in which to search for time.h
# #include
# ^
# tree.h:24:18: error: no include path in which to search for time.h
# #include
# ^
# make: *** Waiting for unfinished jobs....
# tree.h:25:20: error: no include path in which to search for string.h
# #include
# ^
# tree.h:25:20: error: no include path in which to search for string.h
# #include
# ^
# tree.h:26:21: error: no include path in which to search for strings.h
# #include
# ^
# tree.h:26:21: error: no include path in which to search for strings.h
# #include
# ^
# tree.h:102:3: error: unknown type name 'ino_t'
# ino_t inode;
# ^
# tree.h:27:22: error: no include path in which to search for sys/time.h
# #include
# ^
# tree.h:27:22: error: no include path in which to search for sys/time.h
# #include
# ^
# tree.h:103:3: error: unknown type name 'dev_t'
# dev_t device;
# ^
# tree.h:28:23: error: no include path in which to search for sys/types.h
# #include
# ^
# tree.h:28:23: error: no include path in which to search for sys/types.h
# #include
# ^
# tree.h:29:22: error: no include path in which to search for sys/stat.h
# #include
# ^
# tree.h:29:22: error: no include path in which to search for sys/stat.h
# #include
# ^
# tree.h:30:20: error: no include path in which to search for dirent.h
# #include
# ^
# tree.h:30:20: error: no include path in which to search for dirent.h
# #include
# ^
# tree.h:31:19: error: no include path in which to search for ctype.h
# #include
# ^
# tree.h:31:19: error: no include path in which to search for ctype.h
# #include
# ^
# tree.h:32:20: error: no include path in which to search for unistd.h
# #include
# ^
# tree.h:32:20: error: no include path in which to search for unistd.h
# #include
# ^
# tree.h:123:37: error: unknown type name 'u_long'
# struct _info **getfulltree(char *d, u_long lev, dev_t dev, off_t *size, char **err);
# ^
# tree.h:33:20: error: no include path in which to search for limits.h
# #include
# ^
# tree.h:33:20: error: no include path in which to search for limits.h
# #include
# ^
# tree.h:123:49: error: unknown type name 'dev_t'
# struct _info **getfulltree(char *d, u_long lev, dev_t dev, off_t *size, char **err);
# ^
# tree.h:34:17: error: no include path in which to search for pwd.h
# #include
# ^
# tree.h:34:17: error: no include path in which to search for pwd.h
# #include
# ^
# tree.h:123:60: error: unknown type name 'off_t'
# struct _info **getfulltree(char *d, u_long lev, dev_t dev, off_t *size, char **err);
# ^
# tree.h:35:17: error: no include path in which to search for grp.h
# #include
# ^
# tree.h:35:17: error: no include path in which to search for grp.h
# #include
# ^
# tree.h:54:20: error: no include path in which to search for locale.h
# #include
# ^
# tree.h:54:20: error: no include path in which to search for locale.h
# #include
# ^
# tree.h:55:22: error: no include path in which to search for langinfo.h
# #include
# ^
# tree.h:55:22: error: no include path in which to search for langinfo.h
# #include
# ^
# tree.h:131:13: error: unknown type name 'off_t'
# int sizecmp(off_t a, off_t b);
# ^
# tree.h:56:19: error: no include path in which to search for wchar.h
# #include
# ^
# tree.h:56:19: error: no include path in which to search for wchar.h
# #include
# ^
# tree.h:131:22: error: unknown type name 'off_t'
# int sizecmp(off_t a, off_t b);
# ^
# tree.h:57:20: error: no include path in which to search for wctype.h
# #include
# ^
# tree.h:57:20: error: no include path in which to search for wctype.h
# #include
# ^
# tree.h:134:1: warning: parameter names (without types) in function declaration [enabled by default]
# void *xmalloc(size_t), *xrealloc(void *, size_t);
# ^
# tree.h:134:42: error: unknown type name 'size_t'
# void *xmalloc(size_t), *xrealloc(void *, size_t);
# ^
# tree.h:142:1: warning: parameter names (without types) in function declaration [enabled by default]
# char *prot(mode_t);
# ^
# tree.h:82:3: error: unknown type name 'mode_t'
# mode_t mode, lnkmode;
# ^
# tree.h:82:3: error: unknown type name 'mode_t'
# mode_t mode, lnkmode;
# ^
# tree.h:83:3: error: unknown type name 'uid_t'
# uid_t uid;
# ^
# tree.h:83:3: error: unknown type name 'uid_t'
# uid_t uid;
# ^
# tree.h:144:1: warning: parameter names (without types) in function declaration [enabled by default]
# char *do_date(time_t);
# ^
# tree.h:84:3: error: unknown type name 'gid_t'
# gid_t gid;
# ^
# tree.h:84:3: error: unknown type name 'gid_t'
# gid_t gid;
# ^
# tree.h:146:22: error: unknown type name 'off_t'
# int psize(char *buf, off_t size);
# ^
# tree.h:85:3: error: unknown type name 'off_t'
# off_t size;
# ^
# tree.h:85:3: error: unknown type name 'off_t'
# off_t size;
# ^
# tree.h:147:12: error: unknown type name 'mode_t'
# char Ftype(mode_t mode);
# ^
# tree.h:86:3: error: unknown type name 'time_t'
# time_t atime, ctime, mtime;
# ^
# tree.h:86:3: error: unknown type name 'time_t'
# time_t atime, ctime, mtime;
# ^
# tree.h:151:1: error: unknown type name 'off_t'
# off_t unix_listdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:87:3: error: unknown type name 'dev_t'
# dev_t dev;
# ^
# tree.h:87:3: error: unknown type name 'dev_t'
# dev_t dev;
# ^
# tree.h:151:47: error: unknown type name 'u_long'
# off_t unix_listdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:88:3: error: unknown type name 'ino_t'
# ino_t inode;
# ^
# tree.h:88:3: error: unknown type name 'ino_t'
# ino_t inode;
# ^
# tree.h:151:59: error: unknown type name 'dev_t'
# off_t unix_listdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:152:1: error: unknown type name 'off_t'
# off_t unix_rlistdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:152:48: error: unknown type name 'u_long'
# off_t unix_rlistdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:152:60: error: unknown type name 'dev_t'
# off_t unix_rlistdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:102:3: error: unknown type name 'ino_t'
# ino_t inode;
# ^
# tree.h:102:3: error: unknown type name 'ino_t'
# ino_t inode;
# ^
# tree.h:153:63: error: unknown type name 'u_long'
# void r_listdir(struct _info **dir, char *d, int *dt, int *ft, u_long lev);
# ^
# tree.h:103:3: error: unknown type name 'dev_t'
# dev_t device;
# ^
# tree.h:103:3: error: unknown type name 'dev_t'
# dev_t device;
# ^
# tree.h:157:1: error: unknown type name 'off_t'
# off_t html_listdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:157:47: error: unknown type name 'u_long'
# off_t html_listdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:157:59: error: unknown type name 'dev_t'
# off_t html_listdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:158:1: error: unknown type name 'off_t'
# off_t html_rlistdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:158:48: error: unknown type name 'u_long'
# off_t html_rlistdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:123:37: error: unknown type name 'u_long'
# struct _info **getfulltree(char *d, u_long lev, dev_t dev, off_t *size, char **err);
# ^
# tree.h:123:37: error: unknown type name 'u_long'
# struct _info **getfulltree(char *d, u_long lev, dev_t dev, off_t *size, char **err);
# ^
# tree.h:158:60: error: unknown type name 'dev_t'
# off_t html_rlistdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:159:67: error: unknown type name 'u_long'
# void htmlr_listdir(struct _info **dir, char *d, int *dt, int *ft, u_long lev);
# ^
# tree.h:123:49: error: unknown type name 'dev_t'
# struct _info **getfulltree(char *d, u_long lev, dev_t dev, off_t *size, char **err);
# ^
# tree.h:123:49: error: unknown type name 'dev_t'
# struct _info **getfulltree(char *d, u_long lev, dev_t dev, off_t *size, char **err);
# ^
# tree.h:160:18: error: unknown type name 'FILE'
# void html_encode(FILE *fd, char *s);
# ^
# tree.h:123:60: error: unknown type name 'off_t'
# struct _info **getfulltree(char *d, u_long lev, dev_t dev, off_t *size, char **err);
# ^
# tree.h:123:60: error: unknown type name 'off_t'
# struct _info **getfulltree(char *d, u_long lev, dev_t dev, off_t *size, char **err);
# ^
# tree.h:163:1: error: unknown type name 'off_t'
# off_t xml_listdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:163:46: error: unknown type name 'u_long'
# off_t xml_listdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:163:58: error: unknown type name 'dev_t'
# off_t xml_listdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:131:13: error: unknown type name 'off_t'
# int sizecmp(off_t a, off_t b);
# ^
# tree.h:131:13: error: unknown type name 'off_t'
# int sizecmp(off_t a, off_t b);
# ^
# tree.h:164:1: error: unknown type name 'off_t'
# off_t xml_rlistdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:164:47: error: unknown type name 'u_long'
# off_t xml_rlistdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:131:22: error: unknown type name 'off_t'
# int sizecmp(off_t a, off_t b);
# ^
# tree.h:131:22: error: unknown type name 'off_t'
# int sizecmp(off_t a, off_t b);
# ^
# tree.h:164:59: error: unknown type name 'dev_t'
# off_t xml_rlistdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:165:66: error: unknown type name 'u_long'
# void xmlr_listdir(struct _info **dir, char *d, int *dt, int *ft, u_long lev);
# ^
# tree.h:134:1: warning: parameter names (without types) in function declaration [enabled by default]
# void *xmalloc(size_t), *xrealloc(void *, size_t);
# ^
# tree.h:134:1: warning: parameter names (without types) in function declaration [enabled by default]
# void *xmalloc(size_t), *xrealloc(void *, size_t);
# ^
# tree.h:170:1: error: unknown type name 'off_t'
# off_t json_listdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:134:42: error: unknown type name 'size_t'
# void *xmalloc(size_t), *xrealloc(void *, size_t);
# ^
# tree.h:134:42: error: unknown type name 'size_t'
# void *xmalloc(size_t), *xrealloc(void *, size_t);
# ^
# tree.h:170:47: error: unknown type name 'u_long'
# off_t json_listdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:170:59: error: unknown type name 'dev_t'
# off_t json_listdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:142:1: warning: parameter names (without types) in function declaration [enabled by default]
# char *prot(mode_t);
# ^
# tree.h:142:1: warning: parameter names (without types) in function declaration [enabled by default]
# char *prot(mode_t);
# ^
# tree.h:171:1: error: unknown type name 'off_t'
# off_t json_rlistdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:144:1: warning: parameter names (without types) in function declaration [enabled by default]
# char *do_date(time_t);
# ^
# tree.h:144:1: warning: parameter names (without types) in function declaration [enabled by default]
# char *do_date(time_t);
# ^
# tree.h:171:48: error: unknown type name 'u_long'
# off_t json_rlistdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:171:60: error: unknown type name 'dev_t'
# off_t json_rlistdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:146:22: error: unknown type name 'off_t'
# int psize(char *buf, off_t size);
# ^
# tree.h:146:22: error: unknown type name 'off_t'
# int psize(char *buf, off_t size);
# ^
# tree.h:172:67: error: unknown type name 'u_long'
# void jsonr_listdir(struct _info **dir, char *d, int *dt, int *ft, u_long lev);
# ^
# tree.h:147:12: error: unknown type name 'mode_t'
# char Ftype(mode_t mode);
# ^
# tree.h:147:12: error: unknown type name 'mode_t'
# char Ftype(mode_t mode);
# ^
# tree.h:178:11: error: unknown type name 'u_short'
# int color(u_short mode, char *name, bool orphan, bool islink);
# ^
# tree.h:151:1: error: unknown type name 'off_t'
# off_t unix_listdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:151:1: error: unknown type name 'off_t'
# off_t unix_listdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:183:17: error: unknown type name 'uid_t'
# char *uidtoname(uid_t uid);
# ^
# tree.h:184:17: error: unknown type name 'gid_t'
# char *gidtoname(gid_t gid);
# ^
# tree.h:151:47: error: unknown type name 'u_long'
# off_t unix_listdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:151:47: error: unknown type name 'u_long'
# off_t unix_listdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:185:1: warning: parameter names (without types) in function declaration [enabled by default]
# int findino(ino_t, dev_t);
# ^
# tree.h:151:59: error: unknown type name 'dev_t'
# off_t unix_listdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:151:59: error: unknown type name 'dev_t'
# off_t unix_listdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:186:1: warning: parameter names (without types) in function declaration [enabled by default]
# void saveino(ino_t, dev_t);
# ^
# tree.h:152:1: error: unknown type name 'off_t'
# off_t unix_rlistdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:152:1: error: unknown type name 'off_t'
# off_t unix_rlistdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:152:48: error: unknown type name 'u_long'
# off_t unix_rlistdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:152:48: error: unknown type name 'u_long'
# off_t unix_rlistdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:152:60: error: unknown type name 'dev_t'
# off_t unix_rlistdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:152:60: error: unknown type name 'dev_t'
# off_t unix_rlistdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# xml.c:28:46: error: unknown type name 'u_long'
# extern void (*listdir)(char *, int *, int *, u_long, dev_t);
# ^
# xml.c:28:54: error: unknown type name 'dev_t'
# extern void (*listdir)(char *, int *, int *, u_long, dev_t);
# ^
# xml.c:30:1: error: unknown type name 'FILE'
# extern FILE *outfile;
# ^
# tree.h:153:63: error: unknown type name 'u_long'
# void r_listdir(struct _info **dir, char *d, int *dt, int *ft, u_long lev);
# ^
# tree.h:153:63: error: unknown type name 'u_long'
# void r_listdir(struct _info **dir, char *d, int *dt, int *ft, u_long lev);
# ^
# xml.c:59:1: error: unknown type name 'off_t'
# off_t xml_listdir(char *d, int *dt, int *ft, u_long lev, dev_t dev)
# ^
# tree.h:157:1: error: unknown type name 'off_t'
# off_t html_listdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:157:1: error: unknown type name 'off_t'
# off_t html_listdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# xml.c:59:46: error: unknown type name 'u_long'
# off_t xml_listdir(char *d, int *dt, int *ft, u_long lev, dev_t dev)
# ^
# xml.c:59:58: error: unknown type name 'dev_t'
# off_t xml_listdir(char *d, int *dt, int *ft, u_long lev, dev_t dev)
# ^
# tree.h:157:47: error: unknown type name 'u_long'
# off_t html_listdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:157:47: error: unknown type name 'u_long'
# off_t html_listdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:157:59: error: unknown type name 'dev_t'
# off_t html_listdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:157:59: error: unknown type name 'dev_t'
# off_t html_listdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:158:1: error: unknown type name 'off_t'
# off_t html_rlistdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:158:1: error: unknown type name 'off_t'
# off_t html_rlistdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:158:48: error: unknown type name 'u_long'
# off_t html_rlistdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:158:48: error: unknown type name 'u_long'
# off_t html_rlistdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:158:60: error: unknown type name 'dev_t'
# off_t html_rlistdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:158:60: error: unknown type name 'dev_t'
# off_t html_rlistdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:159:67: error: unknown type name 'u_long'
# void htmlr_listdir(struct _info **dir, char *d, int *dt, int *ft, u_long lev);
# ^
# tree.h:159:67: error: unknown type name 'u_long'
# void htmlr_listdir(struct _info **dir, char *d, int *dt, int *ft, u_long lev);
# ^
# tree.h:160:18: error: unknown type name 'FILE'
# void html_encode(FILE *fd, char *s);
# ^
# tree.h:160:18: error: unknown type name 'FILE'
# void html_encode(FILE *fd, char *s);
# ^
# xml.c:179:1: error: unknown type name 'off_t'
# off_t xml_rlistdir(char *d, int *dt, int *ft, u_long lev, dev_t dev)
# ^
# tree.h:163:1: error: unknown type name 'off_t'
# off_t xml_listdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:163:1: error: unknown type name 'off_t'
# off_t xml_listdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# xml.c:179:47: error: unknown type name 'u_long'
# off_t xml_rlistdir(char *d, int *dt, int *ft, u_long lev, dev_t dev)
# ^
# tree.h:163:46: error: unknown type name 'u_long'
# off_t xml_listdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:163:46: error: unknown type name 'u_long'
# off_t xml_listdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# xml.c:179:59: error: unknown type name 'dev_t'
# off_t xml_rlistdir(char *d, int *dt, int *ft, u_long lev, dev_t dev)
# ^
# tree.h:163:58: error: unknown type name 'dev_t'
# off_t xml_listdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:163:58: error: unknown type name 'dev_t'
# off_t xml_listdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# xml.c:194:66: error: unknown type name 'u_long'
# void xmlr_listdir(struct _info **dir, char *d, int *dt, int *ft, u_long lev)
# ^
# tree.h:164:1: error: unknown type name 'off_t'
# off_t xml_rlistdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:164:1: error: unknown type name 'off_t'
# off_t xml_rlistdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:164:47: error: unknown type name 'u_long'
# off_t xml_rlistdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:164:47: error: unknown type name 'u_long'
# off_t xml_rlistdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:164:59: error: unknown type name 'dev_t'
# off_t xml_rlistdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:164:59: error: unknown type name 'dev_t'
# off_t xml_rlistdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:165:66: error: unknown type name 'u_long'
# void xmlr_listdir(struct _info **dir, char *d, int *dt, int *ft, u_long lev);
# ^
# tree.h:165:66: error: unknown type name 'u_long'
# void xmlr_listdir(struct _info **dir, char *d, int *dt, int *ft, u_long lev);
# ^
# tree.h:170:1: error: unknown type name 'off_t'
# off_t json_listdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:170:1: error: unknown type name 'off_t'
# off_t json_listdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# xml.c: In function 'xml_indent':
# tree.h:170:47: error: unknown type name 'u_long'
# off_t json_listdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:170:47: error: unknown type name 'u_long'
# off_t json_listdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# xml.c:281:3: warning: implicit declaration of function 'fprintf' [-Wimplicit-function-declaration]
# fprintf(outfile, " ");
# ^
# xml.c:281:3: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# tree.h:170:59: error: unknown type name 'dev_t'
# off_t json_listdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:170:59: error: unknown type name 'dev_t'
# off_t json_listdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:171:1: error: unknown type name 'off_t'
# off_t json_rlistdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:171:1: error: unknown type name 'off_t'
# off_t json_rlistdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:171:48: error: unknown type name 'u_long'
# off_t json_rlistdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:171:48: error: unknown type name 'u_long'
# off_t json_rlistdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:171:60: error: unknown type name 'dev_t'
# off_t json_rlistdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# tree.h:171:60: error: unknown type name 'dev_t'
# off_t json_rlistdir(char *d, int *dt, int *ft, u_long lev, dev_t dev);
# ^
# xml.c: In function 'xml_fillinfo':
# tree.h:172:67: error: unknown type name 'u_long'
# void jsonr_listdir(struct _info **dir, char *d, int *dt, int *ft, u_long lev);
# ^
# tree.h:172:67: error: unknown type name 'u_long'
# void jsonr_listdir(struct _info **dir, char *d, int *dt, int *ft, u_long lev);
# ^
# xml.c:291:18: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# if (inodeflag) fprintf(outfile," inode=\"%ld\"",(long int)ent->inode);
# ^
# tree.h:178:11: error: unknown type name 'u_short'
# int color(u_short mode, char *name, bool orphan, bool islink);
# ^
# tree.h:178:11: error: unknown type name 'u_short'
# int color(u_short mode, char *name, bool orphan, bool islink);
# ^
# tree.h:183:17: error: unknown type name 'uid_t'
# char *uidtoname(uid_t uid);
# ^
# tree.h:183:17: error: unknown type name 'uid_t'
# char *uidtoname(uid_t uid);
# ^
# tree.h:184:17: error: unknown type name 'gid_t'
# char *gidtoname(gid_t gid);
# ^
# tree.h:184:17: error: unknown type name 'gid_t'
# char *gidtoname(gid_t gid);
# ^
# xml.c:297:74: error: 'S_IRWXU' undeclared (first use in this function)
# if (pflag) fprintf(outfile, " mode=\"%04o\" prot=\"%s\"", ent->mode & (S_IRWXU|S_IRWXG|S_IRWXO|S_ISUID|S_ISGID|S_ISVTX), prot(ent->mode));
# ^
# xml.c:297:74: note: each undeclared identifier is reported only once for each function it appears in
# tree.h:185:1: warning: parameter names (without types) in function declaration [enabled by default]
# int findino(ino_t, dev_t);
# ^
# tree.h:185:1: warning: parameter names (without types) in function declaration [enabled by default]
# int findino(ino_t, dev_t);
# ^
# xml.c:297:82: error: 'S_IRWXG' undeclared (first use in this function)
# if (pflag) fprintf(outfile, " mode=\"%04o\" prot=\"%s\"", ent->mode & (S_IRWXU|S_IRWXG|S_IRWXO|S_ISUID|S_ISGID|S_ISVTX), prot(ent->mode));
# ^
# tree.h:186:1: warning: parameter names (without types) in function declaration [enabled by default]
# void saveino(ino_t, dev_t);
# ^
# tree.h:186:1: warning: parameter names (without types) in function declaration [enabled by default]
# void saveino(ino_t, dev_t);
# ^
# xml.c:297:90: error: 'S_IRWXO' undeclared (first use in this function)
# if (pflag) fprintf(outfile, " mode=\"%04o\" prot=\"%s\"", ent->mode & (S_IRWXU|S_IRWXG|S_IRWXO|S_ISUID|S_ISGID|S_ISVTX), prot(ent->mode));
# ^
# xml.c:297:98: error: 'S_ISUID' undeclared (first use in this function)
# if (pflag) fprintf(outfile, " mode=\"%04o\" prot=\"%s\"", ent->mode & (S_IRWXU|S_IRWXG|S_IRWXO|S_ISUID|S_ISGID|S_ISVTX), prot(ent->mode));
# ^
# xml.c:297:106: error: 'S_ISGID' undeclared (first use in this function)
# if (pflag) fprintf(outfile, " mode=\"%04o\" prot=\"%s\"", ent->mode & (S_IRWXU|S_IRWXG|S_IRWXO|S_ISUID|S_ISGID|S_ISVTX), prot(ent->mode));
# ^
# html.c:27:46: error: unknown type name 'u_long'
# extern void (*listdir)(char *, int *, int *, u_long, dev_t);
# ^
# html.c:27:54: error: unknown type name 'dev_t'
# extern void (*listdir)(char *, int *, int *, u_long, dev_t);
# ^
# xml.c:297:114: error: 'S_ISVTX' undeclared (first use in this function)
# if (pflag) fprintf(outfile, " mode=\"%04o\" prot=\"%s\"", ent->mode & (S_IRWXU|S_IRWXG|S_IRWXO|S_ISUID|S_ISGID|S_ISVTX), prot(ent->mode));
# ^
# html.c:29:1: error: unknown type name 'FILE'
# extern FILE *outfile;
# ^
# tree.c:35:17: error: 'NULL' undeclared here (not in a function)
# char *pattern = NULL, *ipattern = NULL, *host = NULL, *title = "Directory Tree", *sp = " ", *_nl = "\n";
# ^
# xml.c:299:3: warning: implicit declaration of function 'uidtoname' [-Wimplicit-function-declaration]
# if (uflag) fprintf(outfile, " user=\"%s\"", uidtoname(ent->uid));
# ^
# html.c:35:18: error: unknown type name 'FILE'
# void html_encode(FILE *, char *), url_encode(FILE *, char *);
# ^
# xml.c:299:3: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=]
# html.c:36:17: error: unknown type name 'FILE'
# void url_encode(FILE *fd, char *s);
# ^
# tree.c:39:8: error: expected declaration specifiers or '...' before '*' token
# off_t (*listdir)(char *, int *, int *, u_long, dev_t) = unix_listdir;
# ^
# html.c: In function 'emit_html_header':
# xml.c:300:3: warning: implicit declaration of function 'gidtoname' [-Wimplicit-function-declaration]
# if (gflag) fprintf(outfile, " group=\"%s\"", gidtoname(ent->gid));
# ^
# html.c:40:3: warning: implicit declaration of function 'fprintf' [-Wimplicit-function-declaration]
# fprintf(outfile,
# ^
# xml.c:300:3: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=]
# tree.c:43:1: error: unknown type name 'FILE'
# FILE *outfile;
# ^
# html.c:40:3: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# tree.c:56:3: error: unknown type name 'u_int'
# const u_int ifmt[] = {S_IFREG, S_IFDIR, S_IFLNK, S_IFCHR, S_IFBLK, S_IFSOCK, S_IFIFO, 0};
# ^
# tree.c:56:25: error: 'S_IFREG' undeclared here (not in a function)
# const u_int ifmt[] = {S_IFREG, S_IFDIR, S_IFLNK, S_IFCHR, S_IFBLK, S_IFSOCK, S_IFIFO, 0};
# ^
# html.c: At top level:
# tree.c:56:34: error: 'S_IFDIR' undeclared here (not in a function)
# const u_int ifmt[] = {S_IFREG, S_IFDIR, S_IFLNK, S_IFCHR, S_IFBLK, S_IFSOCK, S_IFIFO, 0};
# ^
# tree.c:56:43: error: 'S_IFLNK' undeclared here (not in a function)
# const u_int ifmt[] = {S_IFREG, S_IFDIR, S_IFLNK, S_IFCHR, S_IFBLK, S_IFSOCK, S_IFIFO, 0};
# ^
# html.c:71:1: error: unknown type name 'off_t'
# off_t html_listdir(char *d, int *dt, int *ft, u_long lev, dev_t dev)
# ^
# tree.c:56:52: error: 'S_IFCHR' undeclared here (not in a function)
# const u_int ifmt[] = {S_IFREG, S_IFDIR, S_IFLNK, S_IFCHR, S_IFBLK, S_IFSOCK, S_IFIFO, 0};
# ^
# html.c:71:47: error: unknown type name 'u_long'
# off_t html_listdir(char *d, int *dt, int *ft, u_long lev, dev_t dev)
# ^
# tree.c:56:61: error: 'S_IFBLK' undeclared here (not in a function)
# const u_int ifmt[] = {S_IFREG, S_IFDIR, S_IFLNK, S_IFCHR, S_IFBLK, S_IFSOCK, S_IFIFO, 0};
# ^
# html.c:71:59: error: unknown type name 'dev_t'
# off_t html_listdir(char *d, int *dt, int *ft, u_long lev, dev_t dev)
# ^
# tree.c:56:70: error: 'S_IFSOCK' undeclared here (not in a function)
# const u_int ifmt[] = {S_IFREG, S_IFDIR, S_IFLNK, S_IFCHR, S_IFBLK, S_IFSOCK, S_IFIFO, 0};
# ^
# tree.c:56:80: error: 'S_IFIFO' undeclared here (not in a function)
# const u_int ifmt[] = {S_IFREG, S_IFDIR, S_IFLNK, S_IFCHR, S_IFBLK, S_IFSOCK, S_IFIFO, 0};
# ^
# tree.c:58:3: error: initializer element is not constant
# const char *ftype[] = {"file", "directory", "link", "char", "block", "socket", "fifo", "unknown", NULL};
# ^
# tree.c:58:3: error: (near initialization for 'ftype[8]')
# tree.c:71:3: error: initializer element is not constant
# {NULL, NULL}
# ^
# tree.c:71:3: error: (near initialization for 'sorts[5].name')
# tree.c:71:3: error: initializer element is not constant
# tree.c:71:3: error: (near initialization for 'sorts[5].cmpfunc')
# tree.c: In function 'main':
# tree.c:86:20: warning: initialization from incompatible pointer type [enabled by default]
# char **dirname = NULL;
# ^
# html.c:252:1: error: unknown type name 'off_t'
# off_t html_rlistdir(char *d, int *dt, int *ft, u_long lev, dev_t dev)
# ^
# tree.c:88:15: error: storage size of 'st' isn't known
# struct stat st;
# ^
# html.c:252:48: error: unknown type name 'u_long'
# off_t html_rlistdir(char *d, int *dt, int *ft, u_long lev, dev_t dev)
# ^
# tree.c:90:3: error: unknown type name 'off_t'
# off_t size = 0;
# ^
# html.c:252:60: error: unknown type name 'dev_t'
# off_t html_rlistdir(char *d, int *dt, int *ft, u_long lev, dev_t dev)
# ^
# tree.c:91:3: error: unknown type name 'mode_t'
# mode_t mt;
# ^
# html.c:267:67: error: unknown type name 'u_long'
# void htmlr_listdir(struct _info **dir, char *d, int *dt, int *ft, u_long lev)
# ^
# tree.c:102:3: warning: implicit declaration of function 'memset' [-Wimplicit-function-declaration]
# memset(dirs, 0, sizeof(int) * maxdirs);
# ^
# tree.c:102:3: warning: incompatible implicit declaration of built-in function 'memset' [enabled by default]
# tree.c:106:3: warning: implicit declaration of function 'setlocale' [-Wimplicit-function-declaration]
# setlocale(LC_CTYPE, "");
# ^
# tree.c:106:13: error: 'LC_CTYPE' undeclared (first use in this function)
# setlocale(LC_CTYPE, "");
# ^
# tree.c:106:13: note: each undeclared identifier is reported only once for each function it appears in
# tree.c:107:13: error: 'LC_COLLATE' undeclared (first use in this function)
# setlocale(LC_COLLATE, "");
# ^
# tree.c:110:15: warning: comparison of distinct pointer types lacks a cast [enabled by default]
# if (charset == NULL && strcmp(nl_langinfo(CODESET), "UTF-8") == 0) {
# ^
# tree.c:110:3: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
# if (charset == NULL && strcmp(nl_langinfo(CODESET), "UTF-8") == 0) {
# ^
# tree.c:110:3: warning: implicit declaration of function 'nl_langinfo' [-Wimplicit-function-declaration]
# tree.c:110:45: error: 'CODESET' undeclared (first use in this function)
# if (charset == NULL && strcmp(nl_langinfo(CODESET), "UTF-8") == 0) {
# ^
# html.c:402:18: error: unknown type name 'FILE'
# void html_encode(FILE *fd, char *s)
# ^
# tree.c:116:21: error: 'MB_CUR_MAX' undeclared (first use in this function)
# mb_cur_max = (int)MB_CUR_MAX;
# ^
# html.c:426:17: error: unknown type name 'FILE'
# void url_encode(FILE *fd, char *s)
# ^
# tree.c:185:16: warning: comparison of distinct pointer types lacks a cast [enabled by default]
# if (argv[n] == NULL) {
# ^
# tree.c:186:6: warning: implicit declaration of function 'fprintf' [-Wimplicit-function-declaration]
# fprintf(stderr,"tree: missing argument to -P option.\n");
# ^
# tree.c:186:6: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# make: *** [Makefile:90: xml.o] Error 1
# tree.c:186:14: error: 'stderr' undeclared (first use in this function)
# fprintf(stderr,"tree: missing argument to -P option.\n");
# ^
# tree.c:187:6: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
# exit(1);
# ^
# tree.c:187:6: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# tree.c:192:16: warning: comparison of distinct pointer types lacks a cast [enabled by default]
# if (argv[n] == NULL) {
# ^
# tree.c:193:6: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr,"tree: missing argument to -I option.\n");
# ^
# tree.c:194:6: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(1);
# ^
# tree.c:221:12: warning: assignment from incompatible pointer type [enabled by default]
# cmpfunc = NULL;
# ^
# tree.c:233:16: warning: comparison of distinct pointer types lacks a cast [enabled by default]
# if (argv[n] == NULL) {
# ^
# tree.c:234:6: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr,"tree: missing argument to -H option.\n");
# ^
# tree.c:235:6: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(1);
# ^
# tree.c:241:16: warning: comparison of distinct pointer types lacks a cast [enabled by default]
# if (argv[n] == NULL) {
# ^
# tree.c:242:6: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr,"tree: missing argument to -T option.\n");
# ^
# tree.c:243:6: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(1);
# ^
# tree.c:251:29: warning: comparison of distinct pointer types lacks a cast [enabled by default]
# if ((sLevel = argv[n++]) == NULL) {
# ^
# tree.c:252:6: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr,"tree: Missing argument to -L option.\n");
# ^
# tree.c:253:6: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(1);
# ^
# tree.c:255:4: warning: implicit declaration of function 'strtoul' [-Wimplicit-function-declaration]
# Level = strtoul(sLevel,NULL,0)-1;
# ^
# make: *** [Makefile:90: html.o] Error 1
# tree.c:257:6: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr,"tree: Invalid level, must be greater than 0.\n");
# ^
# tree.c:258:6: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(1);
# ^
# tree.c:262:16: warning: comparison of distinct pointer types lacks a cast [enabled by default]
# if (argv[n] == NULL) {
# ^
# tree.c:263:6: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr,"tree: missing argument to -o option.\n");
# ^
# tree.c:264:6: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(1);
# ^
# tree.c:276:8: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(0);
# ^
# tree.c:280:8: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
# printf("%.*s\n",(int)strlen(v)-1,v);
# ^
# tree.c:280:8: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# tree.c:280:8: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
# tree.c:280:29: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# printf("%.*s\n",(int)strlen(v)-1,v);
# ^
# tree.c:281:8: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(0);
# ^
# tree.c:284:12: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# j = strlen(argv[i])-1;
# ^
# tree.c:289:12: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# j = strlen(argv[i])-1;
# ^
# tree.c:294:12: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# j = strlen(argv[i])-1;
# ^
# tree.c:299:12: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# j = strlen(argv[i])-1;
# ^
# tree.c:304:12: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# j = strlen(argv[i])-1;
# ^
# tree.c:308:6: warning: implicit declaration of function 'strncmp' [-Wimplicit-function-declaration]
# if (!strncmp("--filelimit",argv[i],11)) {
# ^
# tree.c:312:5: warning: implicit declaration of function 'atoi' [-Wimplicit-function-declaration]
# flimit=atoi(argv[i]+12);
# ^
# tree.c:313:9: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# j = strlen(argv[i])-1;
# ^
# tree.c:317:20: warning: comparison of distinct pointer types lacks a cast [enabled by default]
# if (argv[n] != NULL) {
# ^
# tree.c:319:7: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# j = strlen(argv[i])-1;
# ^
# tree.c:321:3: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr,"tree: missing argument to --filelimit\n");
# ^
# tree.c:322:3: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(1);
# ^
# tree.c:330:9: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# j = strlen(argv[i])-1;
# ^
# tree.c:334:20: warning: comparison of distinct pointer types lacks a cast [enabled by default]
# if (argv[n] != NULL) {
# ^
# tree.c:336:7: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# j = strlen(argv[i])-1;
# ^
# tree.c:339:3: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(1);
# ^
# tree.c:344:12: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# j = strlen(argv[i])-1;
# ^
# tree.c:351:12: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# j = strlen(argv[i])-1;
# ^
# tree.c:357:12: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# j = strlen(argv[i])-1;
# ^
# tree.c:365:5: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration]
# timefmt=scopy(argv[i]+j);
# ^
# In file included from tree.c:20:0:
# tree.h:64:18: warning: incompatible implicit declaration of built-in function 'strcpy' [enabled by default]
# #define scopy(x) strcpy(xmalloc(strlen(x)+1),(x))
# ^
# tree.c:365:13: note: in expansion of macro 'scopy'
# timefmt=scopy(argv[i]+j);
# ^
# tree.h:64:33: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# #define scopy(x) strcpy(xmalloc(strlen(x)+1),(x))
# ^
# tree.c:365:13: note: in expansion of macro 'scopy'
# timefmt=scopy(argv[i]+j);
# ^
# tree.c:369:27: warning: comparison of distinct pointer types lacks a cast [enabled by default]
# } else if (argv[n] != NULL) {
# ^
# In file included from tree.c:20:0:
# tree.h:64:18: warning: incompatible implicit declaration of built-in function 'strcpy' [enabled by default]
# #define scopy(x) strcpy(xmalloc(strlen(x)+1),(x))
# ^
# tree.c:370:13: note: in expansion of macro 'scopy'
# timefmt = scopy(argv[n]);
# ^
# tree.h:64:33: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# #define scopy(x) strcpy(xmalloc(strlen(x)+1),(x))
# ^
# tree.c:370:13: note: in expansion of macro 'scopy'
# timefmt = scopy(argv[n]);
# ^
# tree.c:374:3: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr,"tree: missing argument to --timefmt\n");
# ^
# tree.c:375:3: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(1);
# ^
# tree.c:381:12: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# j = strlen(argv[i])-1;
# ^
# tree.c:386:12: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# j = strlen(argv[i])-1;
# ^
# tree.c:395:9: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# j = strlen(argv[i])-1;
# ^
# tree.c:397:5: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr,"tree: missing argument to --sort=\n");
# ^
# tree.c:398:5: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(1);
# ^
# tree.c:400:27: warning: comparison of distinct pointer types lacks a cast [enabled by default]
# } else if (argv[n] != NULL) {
# ^
# tree.c:403:3: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr,"tree: missing argument to --sort\n");
# ^
# tree.c:404:3: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(1);
# ^
# tree.c:408:3: warning: implicit declaration of function 'strcasecmp' [-Wimplicit-function-declaration]
# if (strcasecmp(sorts[k].name,stmp) == 0) {
# ^
# tree.c:414:3: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr,"tree: sort type '%s' not valid, should be one of: ", stmp);
# ^
# tree.c:416:5: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf("%s%c", sorts[k].name, sorts[k+1].name? ',': '\n');
# ^
# tree.c:417:3: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(1);
# ^
# tree.c:423:4: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr,"tree: Invalid argument -`%c'.\n",argv[i][j]);
# ^
# tree.c:425:4: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(1);
# ^
# tree.c:431:7: warning: implicit declaration of function 'xrealloc' [-Wimplicit-function-declaration]
# else if (p == (q-2)) dirname = (char **)xrealloc(dirname,sizeof(char *) * (q+=MINC));
# ^
# In file included from tree.c:20:0:
# tree.h:64:18: warning: incompatible implicit declaration of built-in function 'strcpy' [enabled by default]
# #define scopy(x) strcpy(xmalloc(strlen(x)+1),(x))
# ^
# tree.c:432:22: note: in expansion of macro 'scopy'
# dirname[p++] = scopy(argv[i]);
# ^
# tree.h:64:33: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# #define scopy(x) strcpy(xmalloc(strlen(x)+1),(x))
# ^
# tree.c:432:22: note: in expansion of macro 'scopy'
# dirname[p++] = scopy(argv[i]);
# ^
# tree.c:435:21: warning: assignment from incompatible pointer type [enabled by default]
# if (p) dirname[p] = NULL;
# ^
# tree.c:437:19: warning: comparison of distinct pointer types lacks a cast [enabled by default]
# if (outfilename == NULL) {
# ^
# tree.c:441:15: error: 'stdout' undeclared (first use in this function)
# outfile = stdout;
# ^
# tree.c:441:13: warning: assignment from incompatible pointer type [enabled by default]
# outfile = stdout;
# ^
# tree.c:447:5: warning: implicit declaration of function 'fopen' [-Wimplicit-function-declaration]
# outfile = fopen(outfilename,"w");
# ^
# tree.c:447:13: warning: assignment makes pointer from integer without a cast [enabled by default]
# outfile = fopen(outfilename,"w");
# ^
# tree.c:449:17: warning: comparison of distinct pointer types lacks a cast [enabled by default]
# if (outfile == NULL) {
# ^
# tree.c:450:7: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr,"tree: invalid filename '%s'\n",outfilename);
# ^
# tree.c:451:7: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(1);
# ^
# tree.c:462:5: error: 'listdir' undeclared (first use in this function)
# listdir = needfulltree ? html_rlistdir : html_listdir;
# ^
# tree.c:462:30: error: 'html_rlistdir' undeclared (first use in this function)
# listdir = needfulltree ? html_rlistdir : html_listdir;
# ^
# tree.c:462:46: error: 'html_listdir' undeclared (first use in this function)
# listdir = needfulltree ? html_rlistdir : html_listdir;
# ^
# tree.c:462:5: warning: statement with no effect [-Wunused-value]
# listdir = needfulltree ? html_rlistdir : html_listdir;
# ^
# tree.c:465:30: error: 'xml_rlistdir' undeclared (first use in this function)
# listdir = needfulltree ? xml_rlistdir : xml_listdir;
# ^
# tree.c:465:45: error: 'xml_listdir' undeclared (first use in this function)
# listdir = needfulltree ? xml_rlistdir : xml_listdir;
# ^
# tree.c:465:5: warning: statement with no effect [-Wunused-value]
# listdir = needfulltree ? xml_rlistdir : xml_listdir;
# ^
# tree.c:469:30: error: 'json_rlistdir' undeclared (first use in this function)
# listdir = needfulltree ? json_rlistdir : json_listdir;
# ^
# tree.c:469:46: error: 'json_listdir' undeclared (first use in this function)
# listdir = needfulltree ? json_rlistdir : json_listdir;
# ^
# tree.c:469:5: warning: statement with no effect [-Wunused-value]
# listdir = needfulltree ? json_rlistdir : json_listdir;
# ^
# tree.c:473:30: error: 'unix_rlistdir' undeclared (first use in this function)
# listdir = needfulltree ? unix_rlistdir : unix_listdir;
# ^
# tree.c:473:46: error: 'unix_listdir' undeclared (first use in this function)
# listdir = needfulltree ? unix_rlistdir : unix_listdir;
# ^
# tree.c:473:5: warning: statement with no effect [-Wunused-value]
# listdir = needfulltree ? unix_rlistdir : unix_listdir;
# ^
# tree.c:486:24: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# if (force_color) fprintf(outfile, "%s",host);
# ^
# tree.c:489:24: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# if (force_color) fprintf(outfile,"%s",host,host);
# ^
# tree.c:494:5: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(outfile,"
# ^
# tree.c:498:5: warning: implicit declaration of function 'fputc' [-Wimplicit-function-declaration]
# fputc('[',outfile);
# ^
# tree.c:504:6: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# j=strlen(dirname[i]);
# ^
# tree.c:508:7: warning: implicit declaration of function 'lstat' [-Wimplicit-function-declaration]
# if ((n = lstat(dirname[i],&st)) >= 0) {
# ^
# tree.c:509:12: error: request for member 'st_ino' in something not a structure or union
# saveino(st.st_ino, st.st_dev);
# ^
# tree.c:509:23: error: request for member 'st_dev' in something not a structure or union
# saveino(st.st_ino, st.st_dev);
# ^
# tree.c:510:2: warning: implicit declaration of function 'color' [-Wimplicit-function-declaration]
# if (colorize) colored = color(st.st_mode,dirname[i],n<0,FALSE);
# ^
# tree.c:510:34: error: request for member 'st_mode' in something not a structure or union
# if (colorize) colored = color(st.st_mode,dirname[i],n<0,FALSE);
# ^
# tree.c:511:12: error: request for member 'st_size' in something not a structure or union
# size += st.st_size;
# ^
# tree.c:511:7: warning: assignment makes integer from pointer without a cast [enabled by default]
# size += st.st_size;
# ^
# tree.c:514:9: error: request for member 'st_mode' in something not a structure or union
# mt = st.st_mode & S_IFMT;
# ^
# tree.c:514:20: error: 'S_IFMT' undeclared (first use in this function)
# mt = st.st_mode & S_IFMT;
# ^
# tree.c:514:18: error: invalid operands to binary & (have 'struct sorts *' and 'struct sorts *')
# mt = st.st_mode & S_IFMT;
# ^
# tree.c:514:5: warning: assignment makes integer from pointer without a cast [enabled by default]
# mt = st.st_mode & S_IFMT;
# ^
# tree.c:518:4: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(outfile,"%s<%s name=\"%s\">", noindent?"":" ", ftype[j], dirname[i]);
# ^
# tree.c:524:20: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# if (colored) fprintf(outfile,"%s",endcode);
# ^
# tree.c:525:7: warning: implicit declaration of function 'listdir' [-Wimplicit-function-declaration]
# if (!Hflag) size += listdir(dirname[i],&dtotal,&ftotal,0,0);
# ^
# tree.c:527:2: warning: implicit declaration of function 'chdir' [-Wimplicit-function-declaration]
# if (chdir(dirname[i])) {
# ^
# tree.c:529:4: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(1);
# ^
# tree.c:540:17: error: request for member 'st_ino' in something not a structure or union
# saveino(st.st_ino, st.st_dev);
# ^
# tree.c:540:28: error: request for member 'st_dev' in something not a structure or union
# saveino(st.st_ino, st.st_dev);
# ^
# tree.c:541:39: error: request for member 'st_mode' in something not a structure or union
# if (colorize) colored = color(st.st_mode,".",n<0,FALSE);
# ^
# tree.c:542:16: error: request for member 'st_size' in something not a structure or union
# size = st.st_size;
# ^
# tree.c:542:12: warning: assignment makes integer from pointer without a cast [enabled by default]
# size = st.st_size;
# ^
# tree.c:544:16: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# if (Xflag) fprintf(outfile,"%s",noindent?"":" ");
# ^
# tree.c:554:5: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(outfile,"\t

\n\t

\n\t

\n");
# ^
# tree.c:571:2: warning: implicit declaration of function 'psize' [-Wimplicit-function-declaration]
# psize(sizebuf, size);
# ^
# tree.c:595:19: warning: comparison of distinct pointer types lacks a cast [enabled by default]
# if (outfilename != NULL) fclose(outfile);
# ^
# tree.c:595:3: warning: implicit declaration of function 'fclose' [-Wimplicit-function-declaration]
# if (outfilename != NULL) fclose(outfile);
# ^
# tree.c:88:15: warning: unused variable 'st' [-Wunused-variable]
# struct stat st;
# ^
# tree.c: In function 'usage':
# tree.c:604:3: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(n < 2? stderr: stdout,
# ^
# tree.c:604:18: error: 'stderr' undeclared (first use in this function)
# fprintf(n < 2? stderr: stdout,
# ^
# tree.c:604:26: error: 'stdout' undeclared (first use in this function)
# fprintf(n < 2? stderr: stdout,
# ^
# tree.c:667:3: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(0);
# ^
# tree.c: In function 'read_dir':
# tree.c:673:23: warning: initialization from incompatible pointer type [enabled by default]
# static char *path = NULL, *lbuf = NULL;
# ^
# tree.c:673:3: error: initializer element is not constant
# static char *path = NULL, *lbuf = NULL;
# ^
# tree.c:673:37: warning: initialization from incompatible pointer type [enabled by default]
# static char *path = NULL, *lbuf = NULL;
# ^
# tree.c:673:3: error: initializer element is not constant
# static char *path = NULL, *lbuf = NULL;
# ^
# tree.c:677:15: error: storage size of 'lst' isn't known
# struct stat lst,st;
# ^
# tree.c:677:19: error: storage size of 'st' isn't known
# struct stat lst,st;
# ^
# tree.c:678:3: error: unknown type name 'DIR'
# DIR *d;
# ^
# tree.c:681:12: warning: comparison of distinct pointer types lacks a cast [enabled by default]
# if (path == NULL) {
# ^
# tree.c:682:27: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# pathsize = lbufsize = strlen(dir)+4096;
# ^
# tree.c:688:3: warning: implicit declaration of function 'opendir' [-Wimplicit-function-declaration]
# if ((d=opendir(dir)) == NULL) return NULL;
# ^
# tree.c:688:9: warning: assignment makes pointer from integer without a cast [enabled by default]
# if ((d=opendir(dir)) == NULL) return NULL;
# ^
# tree.c:688:24: warning: comparison of distinct pointer types lacks a cast [enabled by default]
# if ((d=opendir(dir)) == NULL) return NULL;
# ^
# tree.c:688:33: warning: return from incompatible pointer type [enabled by default]
# if ((d=opendir(dir)) == NULL) return NULL;
# ^
# tree.c:692:24: warning: implicit declaration of function 'readdir' [-Wimplicit-function-declaration]
# while((ent = (struct dirent *)readdir(d))) {
# ^
# tree.c:693:25: error: dereferencing pointer to incomplete type
# if (!strcmp("..",ent->d_name) || !strcmp(".",ent->d_name)) continue;
# ^
# tree.c:693:25: error: request for member 'd_name' in something not a structure or union
# tree.c:693:53: error: dereferencing pointer to incomplete type
# if (!strcmp("..",ent->d_name) || !strcmp(".",ent->d_name)) continue;
# ^
# tree.c:693:53: error: request for member 'd_name' in something not a structure or union
# tree.c:694:29: error: dereferencing pointer to incomplete type
# if (Hflag && !strcmp(ent->d_name,"00Tree.html")) continue;
# ^
# tree.c:694:29: error: request for member 'd_name' in something not a structure or union
# tree.c:695:22: error: dereferencing pointer to incomplete type
# if (!aflag && ent->d_name[0] == '.') continue;
# ^
# tree.c:695:22: error: request for member 'd_name' in something not a structure or union
# tree.c:695:34: error: invalid operands to binary == (have 'struct sorts' and 'int')
# if (!aflag && ent->d_name[0] == '.') continue;
# ^
# tree.c:697:9: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# if (strlen(dir)+strlen(ent->d_name)+2 > pathsize) path = xrealloc(path,pathsize=(strlen(dir)+strlen(ent->d_name)+4096));
# ^
# tree.c:697:31: error: dereferencing pointer to incomplete type
# if (strlen(dir)+strlen(ent->d_name)+2 > pathsize) path = xrealloc(path,pathsize=(strlen(dir)+strlen(ent->d_name)+4096));
# ^
# tree.c:697:31: error: request for member 'd_name' in something not a structure or union
# tree.c:697:5: warning: passing argument 1 of 'strlen' from incompatible pointer type [enabled by default]
# if (strlen(dir)+strlen(ent->d_name)+2 > pathsize) path = xrealloc(path,pathsize=(strlen(dir)+strlen(ent->d_name)+4096));
# ^
# tree.c:697:5: note: expected 'const char *' but argument is of type 'struct sorts *'
# tree.c:697:108: error: dereferencing pointer to incomplete type
# if (strlen(dir)+strlen(ent->d_name)+2 > pathsize) path = xrealloc(path,pathsize=(strlen(dir)+strlen(ent->d_name)+4096));
# ^
# tree.c:697:108: error: request for member 'd_name' in something not a structure or union
# tree.c:697:5: warning: passing argument 1 of 'strlen' from incompatible pointer type [enabled by default]
# if (strlen(dir)+strlen(ent->d_name)+2 > pathsize) path = xrealloc(path,pathsize=(strlen(dir)+strlen(ent->d_name)+4096));
# ^
# tree.c:697:5: note: expected 'const char *' but argument is of type 'struct sorts *'
# tree.c:697:60: warning: assignment makes pointer from integer without a cast [enabled by default]
# if (strlen(dir)+strlen(ent->d_name)+2 > pathsize) path = xrealloc(path,pathsize=(strlen(dir)+strlen(ent->d_name)+4096));
# ^
# tree.c:698:5: warning: implicit declaration of function 'sprintf' [-Wimplicit-function-declaration]
# sprintf(path,"%s/%s",dir,ent->d_name);
# ^
# tree.c:698:5: warning: incompatible implicit declaration of built-in function 'sprintf' [enabled by default]
# tree.c:698:33: error: dereferencing pointer to incomplete type
# sprintf(path,"%s/%s",dir,ent->d_name);
# ^
# tree.c:698:33: error: request for member 'd_name' in something not a structure or union
# tree.c:698:5: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'struct sorts *' [-Wformat=]
# sprintf(path,"%s/%s",dir,ent->d_name);
# ^
# tree.c:700:13: error: request for member 'st_mode' in something not a structure or union
# if ((lst.st_mode & S_IFMT) == S_IFLNK) {
# ^
# tree.c:700:24: error: 'S_IFMT' undeclared (first use in this function)
# if ((lst.st_mode & S_IFMT) == S_IFLNK) {
# ^
# tree.c:700:22: error: invalid operands to binary & (have 'struct sorts *' and 'struct sorts *')
# if ((lst.st_mode & S_IFMT) == S_IFLNK) {
# ^
# tree.c:701:7: warning: implicit declaration of function 'stat' [-Wimplicit-function-declaration]
# if ((rs = stat(path,&st)) < 0) st.st_mode = 0;
# ^
# tree.c:701:40: error: request for member 'st_mode' in something not a structure or union
# if ((rs = stat(path,&st)) < 0) st.st_mode = 0;
# ^
# tree.c:701:38: warning: statement with no effect [-Wunused-value]
# if ((rs = stat(path,&st)) < 0) st.st_mode = 0;
# ^
# tree.c:704:9: error: request for member 'st_mode' in something not a structure or union
# st.st_mode = lst.st_mode;
# ^
# tree.c:704:23: error: request for member 'st_mode' in something not a structure or union
# st.st_mode = lst.st_mode;
# ^
# tree.c:704:7: warning: statement with no effect [-Wunused-value]
# st.st_mode = lst.st_mode;
# ^
# tree.c:705:9: error: request for member 'st_dev' in something not a structure or union
# st.st_dev = lst.st_dev;
# ^
# tree.c:705:22: error: request for member 'st_dev' in something not a structure or union
# st.st_dev = lst.st_dev;
# ^
# tree.c:705:7: warning: statement with no effect [-Wunused-value]
# st.st_dev = lst.st_dev;
# ^
# tree.c:706:9: error: request for member 'st_ino' in something not a structure or union
# st.st_ino = lst.st_ino;
# ^
# tree.c:706:22: error: request for member 'st_ino' in something not a structure or union
# st.st_ino = lst.st_ino;
# ^
# tree.c:706:7: warning: statement with no effect [-Wunused-value]
# st.st_ino = lst.st_ino;
# ^
# tree.c:710:13: error: request for member 'st_mode' in something not a structure or union
# if ((lst.st_mode & S_IFMT) != S_IFDIR && !(((lst.st_mode & S_IFMT) == S_IFLNK) && lflag)) {
# ^
# tree.c:710:22: error: invalid operands to binary & (have 'struct sorts *' and 'struct sorts *')
# if ((lst.st_mode & S_IFMT) != S_IFDIR && !(((lst.st_mode & S_IFMT) == S_IFLNK) && lflag)) {
# ^
# tree.c:710:53: error: request for member 'st_mode' in something not a structure or union
# if ((lst.st_mode & S_IFMT) != S_IFDIR && !(((lst.st_mode & S_IFMT) == S_IFLNK) && lflag)) {
# ^
# tree.c:710:62: error: invalid operands to binary & (have 'struct sorts *' and 'struct sorts *')
# if ((lst.st_mode & S_IFMT) != S_IFDIR && !(((lst.st_mode & S_IFMT) == S_IFLNK) && lflag)) {
# ^
# tree.c:711:34: error: dereferencing pointer to incomplete type
# if (pattern && patmatch(ent->d_name,pattern) != 1) continue;
# ^
# tree.c:711:34: error: request for member 'd_name' in something not a structure or union
# tree.c:711:7: warning: passing argument 1 of 'patmatch' from incompatible pointer type [enabled by default]
# if (pattern && patmatch(ent->d_name,pattern) != 1) continue;
# ^
# In file included from tree.c:20:0:
# tree.h:136:5: note: expected 'char *' but argument is of type 'struct sorts *'
# int patmatch(char *, char *);
# ^
# tree.c:713:33: error: dereferencing pointer to incomplete type
# if (ipattern && patmatch(ent->d_name,ipattern) == 1) continue;
# ^
# tree.c:713:33: error: request for member 'd_name' in something not a structure or union
# tree.c:713:5: warning: passing argument 1 of 'patmatch' from incompatible pointer type [enabled by default]
# if (ipattern && patmatch(ent->d_name,ipattern) == 1) continue;
# ^
# In file included from tree.c:20:0:
# tree.h:136:5: note: expected 'char *' but argument is of type 'struct sorts *'
# int patmatch(char *, char *);
# ^
# tree.c:716:22: error: request for member 'st_mode' in something not a structure or union
# if (dflag && ((st.st_mode & S_IFMT) != S_IFDIR)) continue;
# ^
# tree.c:716:31: error: invalid operands to binary & (have 'struct sorts *' and 'struct sorts *')
# if (dflag && ((st.st_mode & S_IFMT) != S_IFDIR)) continue;
# ^
# tree.c:718:25: error: request for member 'st_mode' in something not a structure or union
# if (pattern && ((lst.st_mode & S_IFMT) == S_IFLNK) && !lflag) continue;
# ^
# tree.c:718:34: error: invalid operands to binary & (have 'struct sorts *' and 'struct sorts *')
# if (pattern && ((lst.st_mode & S_IFMT) == S_IFLNK) && !lflag) continue;
# ^
# In file included from tree.c:20:0:
# tree.h:64:18: warning: incompatible implicit declaration of built-in function 'strcpy' [enabled by default]
# #define scopy(x) strcpy(xmalloc(strlen(x)+1),(x))
# ^
# tree.c:724:19: note: in expansion of macro 'scopy'
# dl[p]->name = scopy(ent->d_name);
# ^
# tree.c:724:28: error: dereferencing pointer to incomplete type
# dl[p]->name = scopy(ent->d_name);
# ^
# tree.h:64:40: note: in definition of macro 'scopy'
# #define scopy(x) strcpy(xmalloc(strlen(x)+1),(x))
# ^
# tree.c:724:28: error: request for member 'd_name' in something not a structure or union
# dl[p]->name = scopy(ent->d_name);
# ^
# tree.h:64:40: note: in definition of macro 'scopy'
# #define scopy(x) strcpy(xmalloc(strlen(x)+1),(x))
# ^
# tree.c:724:5: warning: passing argument 1 of 'strlen' from incompatible pointer type [enabled by default]
# dl[p]->name = scopy(ent->d_name);
# ^
# tree.c:724:5: note: expected 'const char *' but argument is of type 'struct sorts *'
# In file included from tree.c:20:0:
# tree.c:724:28: error: dereferencing pointer to incomplete type
# dl[p]->name = scopy(ent->d_name);
# ^
# tree.h:64:47: note: in definition of macro 'scopy'
# #define scopy(x) strcpy(xmalloc(strlen(x)+1),(x))
# ^
# tree.c:724:28: error: request for member 'd_name' in something not a structure or union
# dl[p]->name = scopy(ent->d_name);
# ^
# tree.h:64:47: note: in definition of macro 'scopy'
# #define scopy(x) strcpy(xmalloc(strlen(x)+1),(x))
# ^
# tree.c:724:5: warning: passing argument 2 of 'strcpy' from incompatible pointer type [enabled by default]
# dl[p]->name = scopy(ent->d_name);
# ^
# tree.c:724:5: note: expected 'const char *' but argument is of type 'struct sorts *'
# tree.c:728:22: error: request for member 'st_mode' in something not a structure or union
# dl[p]->mode = lst.st_mode;
# ^
# tree.c:728:17: warning: assignment makes integer from pointer without a cast [enabled by default]
# dl[p]->mode = lst.st_mode;
# ^
# tree.c:729:21: error: request for member 'st_uid' in something not a structure or union
# dl[p]->uid = lst.st_uid;
# ^
# tree.c:729:16: warning: assignment makes integer from pointer without a cast [enabled by default]
# dl[p]->uid = lst.st_uid;
# ^
# tree.c:730:21: error: request for member 'st_gid' in something not a structure or union
# dl[p]->gid = lst.st_gid;
# ^
# tree.c:730:16: warning: assignment makes integer from pointer without a cast [enabled by default]
# dl[p]->gid = lst.st_gid;
# ^
# tree.c:731:22: error: request for member 'st_size' in something not a structure or union
# dl[p]->size = lst.st_size;
# ^
# tree.c:731:17: warning: assignment makes integer from pointer without a cast [enabled by default]
# dl[p]->size = lst.st_size;
# ^
# tree.c:732:20: error: request for member 'st_dev' in something not a structure or union
# dl[p]->dev = st.st_dev;
# ^
# tree.c:732:16: warning: assignment makes integer from pointer without a cast [enabled by default]
# dl[p]->dev = st.st_dev;
# ^
# tree.c:733:22: error: request for member 'st_ino' in something not a structure or union
# dl[p]->inode = st.st_ino;
# ^
# tree.c:733:18: warning: assignment makes integer from pointer without a cast [enabled by default]
# dl[p]->inode = st.st_ino;
# ^
# tree.c:734:16: warning: assignment from incompatible pointer type [enabled by default]
# dl[p]->lnk = NULL;
# ^
# tree.c:736:16: warning: assignment from incompatible pointer type [enabled by default]
# dl[p]->err = NULL;
# ^
# tree.c:737:18: warning: assignment from incompatible pointer type [enabled by default]
# dl[p]->child = NULL;
# ^
# tree.c:739:23: error: request for member 'st_atime' in something not a structure or union
# dl[p]->atime = lst.st_atime;
# ^
# tree.c:739:18: warning: assignment makes integer from pointer without a cast [enabled by default]
# dl[p]->atime = lst.st_atime;
# ^
# tree.c:740:23: error: request for member 'st_ctime' in something not a structure or union
# dl[p]->ctime = lst.st_ctime;
# ^
# tree.c:740:18: warning: assignment makes integer from pointer without a cast [enabled by default]
# dl[p]->ctime = lst.st_ctime;
# ^
# tree.c:741:23: error: request for member 'st_mtime' in something not a structure or union
# dl[p]->mtime = lst.st_mtime;
# ^
# tree.c:741:18: warning: assignment makes integer from pointer without a cast [enabled by default]
# dl[p]->mtime = lst.st_mtime;
# ^
# tree.c:747:13: error: request for member 'st_mode' in something not a structure or union
# if ((lst.st_mode & S_IFMT) == S_IFLNK) {
# ^
# tree.c:747:22: error: invalid operands to binary & (have 'struct sorts *' and 'struct sorts *')
# if ((lst.st_mode & S_IFMT) == S_IFLNK) {
# ^
# tree.c:748:14: error: request for member 'st_size' in something not a structure or union
# if (lst.st_size+1 > lbufsize) lbuf = xrealloc(lbuf,lbufsize=(lst.st_size+8192));
# ^
# tree.c:748:25: warning: comparison between pointer and integer [enabled by default]
# if (lst.st_size+1 > lbufsize) lbuf = xrealloc(lbuf,lbufsize=(lst.st_size+8192));
# ^
# tree.c:748:71: error: request for member 'st_size' in something not a structure or union
# if (lst.st_size+1 > lbufsize) lbuf = xrealloc(lbuf,lbufsize=(lst.st_size+8192));
# ^
# tree.c:748:66: warning: assignment makes integer from pointer without a cast [enabled by default]
# if (lst.st_size+1 > lbufsize) lbuf = xrealloc(lbuf,lbufsize=(lst.st_size+8192));
# ^
# tree.c:748:42: warning: assignment makes pointer from integer without a cast [enabled by default]
# if (lst.st_size+1 > lbufsize) lbuf = xrealloc(lbuf,lbufsize=(lst.st_size+8192));
# ^
# tree.c:749:7: warning: implicit declaration of function 'readlink' [-Wimplicit-function-declaration]
# if ((len=readlink(path,lbuf,lbufsize-1)) < 0) {
# ^
# tree.c:752:23: error: request for member 'st_mode' in something not a structure or union
# dl[p++]->lnkmode = st.st_mode;
# ^
# tree.c:752:19: warning: assignment makes integer from pointer without a cast [enabled by default]
# dl[p++]->lnkmode = st.st_mode;
# ^
# tree.c:758:21: error: request for member 'st_mode' in something not a structure or union
# dl[p]->lnkmode = st.st_mode;
# ^
# tree.c:758:17: warning: assignment makes integer from pointer without a cast [enabled by default]
# dl[p]->lnkmode = st.st_mode;
# ^
# tree.c:764:24: error: request for member 'st_mode' in something not a structure or union
# dl[p]->isdir = ((st.st_mode & S_IFMT) == S_IFDIR);
# ^
# tree.c:764:33: error: invalid operands to binary & (have 'struct sorts *' and 'struct sorts *')
# dl[p]->isdir = ((st.st_mode & S_IFMT) == S_IFDIR);
# ^
# tree.c:765:24: error: request for member 'st_mode' in something not a structure or union
# dl[p]->issok = ((st.st_mode & S_IFMT) == S_IFSOCK);
# ^
# tree.c:765:33: error: invalid operands to binary & (have 'struct sorts *' and 'struct sorts *')
# dl[p]->issok = ((st.st_mode & S_IFMT) == S_IFSOCK);
# ^
# tree.c:766:25: error: request for member 'st_mode' in something not a structure or union
# dl[p]->isfifo = ((st.st_mode & S_IFMT) == S_IFIFO);
# ^
# tree.c:766:34: error: invalid operands to binary & (have 'struct sorts *' and 'struct sorts *')
# dl[p]->isfifo = ((st.st_mode & S_IFMT) == S_IFIFO);
# ^
# tree.c:767:25: error: request for member 'st_mode' in something not a structure or union
# dl[p++]->isexe = (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)) ? 1 : 0;
# ^
# tree.c:767:37: error: 'S_IXUSR' undeclared (first use in this function)
# dl[p++]->isexe = (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)) ? 1 : 0;
# ^
# tree.c:767:47: error: 'S_IXGRP' undeclared (first use in this function)
# dl[p++]->isexe = (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)) ? 1 : 0;
# ^
# tree.c:767:45: error: invalid operands to binary | (have 'struct sorts *' and 'struct sorts *')
# dl[p++]->isexe = (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)) ? 1 : 0;
# ^
# tree.c:767:57: error: 'S_IXOTH' undeclared (first use in this function)
# dl[p++]->isexe = (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)) ? 1 : 0;
# ^
# tree.c:767:55: error: invalid operands to binary | (have 'struct sorts *' and 'struct sorts *')
# dl[p++]->isexe = (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)) ? 1 : 0;
# ^
# tree.c:767:34: error: invalid operands to binary & (have 'struct sorts *' and 'struct sorts *')
# dl[p++]->isexe = (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)) ? 1 : 0;
# ^
# tree.c:769:3: warning: implicit declaration of function 'closedir' [-Wimplicit-function-declaration]
# closedir(d);
# ^
# tree.c:771:9: warning: assignment from incompatible pointer type [enabled by default]
# dl[p] = NULL;
# ^
# tree.c:677:19: warning: unused variable 'st' [-Wunused-variable]
# struct stat lst,st;
# ^
# tree.c:677:15: warning: unused variable 'lst' [-Wunused-variable]
# struct stat lst,st;
# ^
# tree.c: At top level:
# tree.c:779:37: error: unknown type name 'u_long'
# struct _info **getfulltree(char *d, u_long lev, dev_t dev, off_t *size, char **err)
# ^
# tree.c:779:49: error: unknown type name 'dev_t'
# struct _info **getfulltree(char *d, u_long lev, dev_t dev, off_t *size, char **err)
# ^
# tree.c:779:60: error: unknown type name 'off_t'
# struct _info **getfulltree(char *d, u_long lev, dev_t dev, off_t *size, char **err)
# ^
# tree.c: In function 'alnumsort':
# tree.c:897:3: warning: implicit declaration of function 'strcoll' [-Wimplicit-function-declaration]
# v = strcoll((*a)->name,(*b)->name);
# ^
# tree.c: In function 'versort':
# tree.c:908:3: warning: implicit declaration of function 'strverscmp' [-Wimplicit-function-declaration]
# v = strverscmp((*a)->name,(*b)->name);
# ^
# tree.c: At top level:
# tree.c:942:13: error: unknown type name 'off_t'
# int sizecmp(off_t a, off_t b)
# ^
# tree.c:942:22: error: unknown type name 'off_t'
# int sizecmp(off_t a, off_t b)
# ^
# tree.c: In function 'fsizesort':
# tree.c:954:3: warning: implicit declaration of function 'sizecmp' [-Wimplicit-function-declaration]
# v = sizecmp((*a)->size, (*b)->size);
# ^
# tree.c: At top level:
# tree.c:960:16: error: unknown type name 'size_t'
# void *xmalloc (size_t size)
# ^
# tree.c:970:28: error: unknown type name 'size_t'
# void *xrealloc (void *ptr, size_t size)
# ^
# tree.c: In function 'free_dir':
# tree.c:985:5: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration]
# free(d[i]->name);
# ^
# tree.c:985:5: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# tree.c:989:3: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free(d);
# ^
# tree.c: In function 'gnu_getcwd':
# tree.c:999:7: warning: implicit declaration of function 'getcwd' [-Wimplicit-function-declaration]
# char *value = getcwd (buffer, size);
# ^
# tree.c:999:21: warning: initialization makes pointer from integer without a cast [enabled by default]
# char *value = getcwd (buffer, size);
# ^
# tree.c:1003:7: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free (buffer);
# ^
# tree.c: In function 'cond_lower':
# tree.c:1010:3: warning: implicit declaration of function 'tolower' [-Wimplicit-function-declaration]
# return ignorecase ? tolower(c) : c;
# ^
# tree.c: In function 'patmatch':
# tree.c:1025:3: warning: implicit declaration of function 'strchr' [-Wimplicit-function-declaration]
# char *bar = strchr(pat, '|');
# ^
# tree.c:1025:15: warning: incompatible implicit declaration of built-in function 'strchr' [enabled by default]
# char *bar = strchr(pat, '|');
# ^
# tree.c: In function 'indent':
# tree.c:1106:18: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# if (dirs[0]) fprintf(outfile,"\033(0");
# ^
# tree.c:1110:7: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# else printf(" ");
# ^
# tree.c:1118:16: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# if (Hflag) fprintf(outfile,"\t");
# ^
# tree.c: At top level:
# tree.c:1131:12: error: unknown type name 'mode_t'
# char *prot(mode_t m)
# ^
# tree.c:1167:15: error: unknown type name 'time_t'
# char *do_date(time_t t)
# ^
# tree.c: In function 'printit':
# tree.c:1193:16: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# if (Qflag) fprintf(outfile, "\"%s\"",s);
# ^
# tree.c:1198:5: error: unknown type name 'wchar_t'
# wchar_t *ws, *tp;
# ^
# tree.c:1199:25: error: 'wchar_t' undeclared (first use in this function)
# ws = xmalloc(sizeof(wchar_t)* (c=(strlen(s)+1)));
# ^
# tree.c:1199:39: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# ws = xmalloc(sizeof(wchar_t)* (c=(strlen(s)+1)));
# ^
# tree.c:1199:33: error: invalid operands to binary * (have 'struct sorts *' and 'int')
# ws = xmalloc(sizeof(wchar_t)* (c=(strlen(s)+1)));
# ^
# tree.c:1200:5: warning: implicit declaration of function 'mbstowcs' [-Wimplicit-function-declaration]
# if (mbstowcs(ws,s,c) > 0) {
# ^
# tree.c:1201:7: warning: implicit declaration of function 'putc' [-Wimplicit-function-declaration]
# if (Qflag) putc('"',outfile);
# ^
# tree.c:1203:2: warning: implicit declaration of function 'iswprint' [-Wimplicit-function-declaration]
# if (iswprint(*tp)) fprintf(outfile,"%lc",(wint_t)*tp);
# ^
# tree.c:1203:21: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# if (iswprint(*tp)) fprintf(outfile,"%lc",(wint_t)*tp);
# ^
# tree.c:1203:44: error: 'wint_t' undeclared (first use in this function)
# if (iswprint(*tp)) fprintf(outfile,"%lc",(wint_t)*tp);
# ^
# tree.c:1203:51: error: invalid operands to binary * (have 'struct sorts *' and 'int *')
# if (iswprint(*tp)) fprintf(outfile,"%lc",(wint_t)*tp);
# ^
# tree.c:1203:2: warning: format '%lc' expects argument of type 'wint_t', but argument 3 has type 'struct sorts *' [-Wformat=]
# if (iswprint(*tp)) fprintf(outfile,"%lc",(wint_t)*tp);
# ^
# tree.c:1210:7: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free(ws);
# ^
# tree.c:1213:5: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free(ws);
# ^
# tree.c:1229:5: warning: implicit declaration of function 'isprint' [-Wimplicit-function-declaration]
# } else if (isprint(c)) putc(c,outfile);
# ^
# tree.c:1234:14: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# } else fprintf(outfile,"\\%03o",c);
# ^
# tree.c: At top level:
# tree.c:1240:22: error: unknown type name 'off_t'
# int psize(char *buf, off_t size)
# ^
# tree.c:1253:12: error: unknown type name 'mode_t'
# char Ftype(mode_t mode)
# ^
# tree.c: In function 'fillinfo':
# tree.c:1274:23: warning: incompatible implicit declaration of built-in function 'sprintf' [enabled by default]
# if (inodeflag) n += sprintf(buf," %7ld",(long int)ent->inode);
# ^
# tree.c:1282:3: warning: implicit declaration of function 'uidtoname' [-Wimplicit-function-declaration]
# if (uflag) n += sprintf(buf+n, " %-8.32s", uidtoname(ent->uid));
# ^
# tree.c:1282:3: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=]
# tree.c:1283:3: warning: implicit declaration of function 'gidtoname' [-Wimplicit-function-declaration]
# if (gflag) n += sprintf(buf+n, " %-8.32s", gidtoname(ent->gid));
# ^
# tree.c:1283:3: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=]
# tree.c: At top level:
# tree.c:1161:14: warning: 'month' defined but not used [-Wunused-variable]
# static char *month[] = {
# ^
# make: *** [Makefile:90: tree.o] Error 1
# ==> ERROR: A failure occurred in build().
# Aborting...