+ case "${usergroup_phase}" in
+ local run_cmd
+ run_cmd=run_su
+ shift
+ run_su /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/cfs-1.4.1nb7/work.log
+ su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/cfs-1.4.1nb7/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
WARNING: [license.mk] Every package should define a LICENSE.
===> Building for cfs-1.4.1nb7
rpcgen  -h -o nfsproto.h nfsproto.x
./unansi SunOS nfsproto.h
rpcgen  -h -o admproto.h admproto.x
./unansi SunOS admproto.h
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DPROTOTYPES=1 -DSOLARIS2X -DPORTMAP -DPTMX -Dnfsproc_null_2_svc=nfsproc_null_2             -Dnfsproc_getattr_2_svc=nfsproc_getattr_2               -Dnfsproc_setattr_2_svc=nfsproc_setattr_2               -Dnfsproc_root_2_svc=nfsproc_root_2             -Dnfsproc_lookup_2_svc=nfsproc_lookup_2         -Dnfsproc_readlink_2_svc=nfsproc_readlink_2             -Dnfsproc_read_2_svc=nfsproc_read_2             -Dnfsproc_writecache_2_svc=nfsproc_writecache_2         -Dnfsproc_write_2_svc=nfsproc_write_2           -Dnfsproc_create_2_svc=nfsproc_create_2         -Dnfsproc_remove_2_svc=nfsproc_remove_2         -Dnfsproc_rename_2_svc=nfsproc_rename_2         -Dnfsproc_link_2_svc=nfsproc_link_2             -Dnfsproc_symlink_2_svc=nfsproc_symlink_2               -Dnfsproc_mkdir_2_svc=nfsproc_mkdir_2           -Dnfsproc_rmdir_2_svc=nfsproc_rmdir_2           -Dnfsproc_readdir_2_svc=nfsproc_readdir_2               -Dnfsproc_statfs_2_svc=nfsproc_statfs_2         -Dadmproc_null_1_svc=admproc_null_1             -Dadmproc_attach_1_svc=admproc_attach_1         -Dadmproc_detach_1_svc=admproc_detach_1         -Dadmproc_ls_1_svc=admproc_ls_1                   -c cfs.c
cfs.c:68:1: warning: return type defaults to 'int' [-Wimplicit-int]
   68 | main(argc,argv)
      | ^~~~
cfs.c: In function 'initstuff':
cfs.c:242:9: warning: implicit declaration of function 'umask' [-Wimplicit-function-declaration]
  242 |         umask(0);
      |         ^~~~~
rpcgen  -c -o nfsproto_xdr.c nfsproto.x
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DPROTOTYPES=1 -DSOLARIS2X -DPORTMAP -DPTMX -Dnfsproc_null_2_svc=nfsproc_null_2             -Dnfsproc_getattr_2_svc=nfsproc_getattr_2               -Dnfsproc_setattr_2_svc=nfsproc_setattr_2               -Dnfsproc_root_2_svc=nfsproc_root_2             -Dnfsproc_lookup_2_svc=nfsproc_lookup_2         -Dnfsproc_readlink_2_svc=nfsproc_readlink_2             -Dnfsproc_read_2_svc=nfsproc_read_2             -Dnfsproc_writecache_2_svc=nfsproc_writecache_2         -Dnfsproc_write_2_svc=nfsproc_write_2           -Dnfsproc_create_2_svc=nfsproc_create_2         -Dnfsproc_remove_2_svc=nfsproc_remove_2         -Dnfsproc_rename_2_svc=nfsproc_rename_2         -Dnfsproc_link_2_svc=nfsproc_link_2             -Dnfsproc_symlink_2_svc=nfsproc_symlink_2               -Dnfsproc_mkdir_2_svc=nfsproc_mkdir_2           -Dnfsproc_rmdir_2_svc=nfsproc_rmdir_2           -Dnfsproc_readdir_2_svc=nfsproc_readdir_2               -Dnfsproc_statfs_2_svc=nfsproc_statfs_2         -Dadmproc_null_1_svc=admproc_null_1             -Dadmproc_attach_1_svc=admproc_attach_1         -Dadmproc_detach_1_svc=admproc_detach_1         -Dadmproc_ls_1_svc=admproc_ls_1                   -c nfsproto_xdr.c
rpcgen  -m -o nfsproto_svr.c nfsproto.x
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DPROTOTYPES=1 -DSOLARIS2X -DPORTMAP -DPTMX -Dnfsproc_null_2_svc=nfsproc_null_2             -Dnfsproc_getattr_2_svc=nfsproc_getattr_2               -Dnfsproc_setattr_2_svc=nfsproc_setattr_2               -Dnfsproc_root_2_svc=nfsproc_root_2             -Dnfsproc_lookup_2_svc=nfsproc_lookup_2         -Dnfsproc_readlink_2_svc=nfsproc_readlink_2             -Dnfsproc_read_2_svc=nfsproc_read_2             -Dnfsproc_writecache_2_svc=nfsproc_writecache_2         -Dnfsproc_write_2_svc=nfsproc_write_2           -Dnfsproc_create_2_svc=nfsproc_create_2         -Dnfsproc_remove_2_svc=nfsproc_remove_2         -Dnfsproc_rename_2_svc=nfsproc_rename_2         -Dnfsproc_link_2_svc=nfsproc_link_2             -Dnfsproc_symlink_2_svc=nfsproc_symlink_2               -Dnfsproc_mkdir_2_svc=nfsproc_mkdir_2           -Dnfsproc_rmdir_2_svc=nfsproc_rmdir_2           -Dnfsproc_readdir_2_svc=nfsproc_readdir_2               -Dnfsproc_statfs_2_svc=nfsproc_statfs_2         -Dadmproc_null_1_svc=admproc_null_1             -Dadmproc_attach_1_svc=admproc_attach_1         -Dadmproc_detach_1_svc=admproc_detach_1         -Dadmproc_ls_1_svc=admproc_ls_1                   -c nfsproto_svr.c
rpcgen  -c -o admproto_xdr.c admproto.x
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DPROTOTYPES=1 -DSOLARIS2X -DPORTMAP -DPTMX -Dnfsproc_null_2_svc=nfsproc_null_2             -Dnfsproc_getattr_2_svc=nfsproc_getattr_2               -Dnfsproc_setattr_2_svc=nfsproc_setattr_2               -Dnfsproc_root_2_svc=nfsproc_root_2             -Dnfsproc_lookup_2_svc=nfsproc_lookup_2         -Dnfsproc_readlink_2_svc=nfsproc_readlink_2             -Dnfsproc_read_2_svc=nfsproc_read_2             -Dnfsproc_writecache_2_svc=nfsproc_writecache_2         -Dnfsproc_write_2_svc=nfsproc_write_2           -Dnfsproc_create_2_svc=nfsproc_create_2         -Dnfsproc_remove_2_svc=nfsproc_remove_2         -Dnfsproc_rename_2_svc=nfsproc_rename_2         -Dnfsproc_link_2_svc=nfsproc_link_2             -Dnfsproc_symlink_2_svc=nfsproc_symlink_2               -Dnfsproc_mkdir_2_svc=nfsproc_mkdir_2           -Dnfsproc_rmdir_2_svc=nfsproc_rmdir_2           -Dnfsproc_readdir_2_svc=nfsproc_readdir_2               -Dnfsproc_statfs_2_svc=nfsproc_statfs_2         -Dadmproc_null_1_svc=admproc_null_1             -Dadmproc_attach_1_svc=admproc_attach_1         -Dadmproc_detach_1_svc=admproc_detach_1         -Dadmproc_ls_1_svc=admproc_ls_1                   -c admproto_xdr.c
rpcgen  -m -o admproto_svr.c admproto.x
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DPROTOTYPES=1 -DSOLARIS2X -DPORTMAP -DPTMX -Dnfsproc_null_2_svc=nfsproc_null_2             -Dnfsproc_getattr_2_svc=nfsproc_getattr_2               -Dnfsproc_setattr_2_svc=nfsproc_setattr_2               -Dnfsproc_root_2_svc=nfsproc_root_2             -Dnfsproc_lookup_2_svc=nfsproc_lookup_2         -Dnfsproc_readlink_2_svc=nfsproc_readlink_2             -Dnfsproc_read_2_svc=nfsproc_read_2             -Dnfsproc_writecache_2_svc=nfsproc_writecache_2         -Dnfsproc_write_2_svc=nfsproc_write_2           -Dnfsproc_create_2_svc=nfsproc_create_2         -Dnfsproc_remove_2_svc=nfsproc_remove_2         -Dnfsproc_rename_2_svc=nfsproc_rename_2         -Dnfsproc_link_2_svc=nfsproc_link_2             -Dnfsproc_symlink_2_svc=nfsproc_symlink_2               -Dnfsproc_mkdir_2_svc=nfsproc_mkdir_2           -Dnfsproc_rmdir_2_svc=nfsproc_rmdir_2           -Dnfsproc_readdir_2_svc=nfsproc_readdir_2               -Dnfsproc_statfs_2_svc=nfsproc_statfs_2         -Dadmproc_null_1_svc=admproc_null_1             -Dadmproc_attach_1_svc=admproc_attach_1         -Dadmproc_detach_1_svc=admproc_detach_1         -Dadmproc_ls_1_svc=admproc_ls_1                   -c admproto_svr.c
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DPROTOTYPES=1 -DSOLARIS2X -DPORTMAP -DPTMX -Dnfsproc_null_2_svc=nfsproc_null_2             -Dnfsproc_getattr_2_svc=nfsproc_getattr_2               -Dnfsproc_setattr_2_svc=nfsproc_setattr_2               -Dnfsproc_root_2_svc=nfsproc_root_2             -Dnfsproc_lookup_2_svc=nfsproc_lookup_2         -Dnfsproc_readlink_2_svc=nfsproc_readlink_2             -Dnfsproc_read_2_svc=nfsproc_read_2             -Dnfsproc_writecache_2_svc=nfsproc_writecache_2         -Dnfsproc_write_2_svc=nfsproc_write_2           -Dnfsproc_create_2_svc=nfsproc_create_2         -Dnfsproc_remove_2_svc=nfsproc_remove_2         -Dnfsproc_rename_2_svc=nfsproc_rename_2         -Dnfsproc_link_2_svc=nfsproc_link_2             -Dnfsproc_symlink_2_svc=nfsproc_symlink_2               -Dnfsproc_mkdir_2_svc=nfsproc_mkdir_2           -Dnfsproc_rmdir_2_svc=nfsproc_rmdir_2           -Dnfsproc_readdir_2_svc=nfsproc_readdir_2               -Dnfsproc_statfs_2_svc=nfsproc_statfs_2         -Dadmproc_null_1_svc=admproc_null_1             -Dadmproc_attach_1_svc=admproc_attach_1         -Dadmproc_detach_1_svc=admproc_detach_1         -Dadmproc_ls_1_svc=admproc_ls_1                   -c cfs_adm.c
cfs_adm.c:34:1: warning: return type defaults to 'int' [-Wimplicit-int]
   34 | cfs_adm()
      | ^~~~~~~
cfs_adm.c: In function 'admproc_attach_2':
cfs_adm.c:64:13: warning: implicit declaration of function 'already'; did you mean 'read'? [-Wimplicit-function-declaration]
   64 |         if (already(ap->name)) {
      |             ^~~~~~~
      |             read
In file included from cfs_adm.c:28:
cfs.h:209:29: warning: implicit declaration of function 'rgid' [-Wimplicit-function-declaration]
  209 |                    (setegid(rgid(x)) || seteuid(ruid(x))))
      |                             ^~~~
cfs_adm.c:68:9: note: in expansion of macro 'become'
   68 |         become(rp);
      |         ^~~~~~
cfs.h:209:49: warning: implicit declaration of function 'ruid' [-Wimplicit-function-declaration]
  209 |                    (setegid(rgid(x)) || seteuid(ruid(x))))
      |                                                 ^~~~
cfs_adm.c:68:9: note: in expansion of macro 'become'
   68 |         become(rp);
      |         ^~~~~~
cfs_adm.c:69:9: warning: implicit declaration of function 'copykey' [-Wimplicit-function-declaration]
   69 |         copykey(&ap->key,&tk);
      |         ^~~~~~~
cfs_adm.c:70:18: warning: implicit declaration of function 'verify' [-Wimplicit-function-declaration]
   70 |         if ((ret=verify(ap->dirname,&tk)) != CFS_OK) {
      |                  ^~~~~~
cfs_adm.c:110:9: warning: implicit declaration of function 'genmasks' [-Wimplicit-function-declaration]
  110 |         genmasks(&ins->key);
      |         ^~~~~~~~
cfs_adm.c:123:9: warning: implicit declaration of function 'cipher' [-Wimplicit-function-declaration]
  123 |         cipher(&ins->key,ins->check,0);
      |         ^~~~~~
cfs_adm.c: At top level:
cfs_adm.c:128:1: warning: return type defaults to 'int' [-Wimplicit-int]
  128 | already(s)
      | ^~~~~~~
cfs_adm.c:139:1: warning: return type defaults to 'int' [-Wimplicit-int]
  139 | genmasks(k)
      | ^~~~~~~~
cfs_adm.c:211:1: warning: return type defaults to 'int' [-Wimplicit-int]
  211 | verify(path,k)
      | ^~~~~~
cfs_adm.c: In function 'verify':
cfs_adm.c:228:21: warning: passing argument 1 of 'mask_cipher' from incompatible pointer type [-Wincompatible-pointer-types]
  228 |         mask_cipher(k,buf,0);
      |                     ^
      |                     |
      |                     cfs_admkey *
cfs.h:189:26: note: expected 'cfskey *' but argument is of type 'cfs_admkey *'
  189 | void mask_cipher(cfskey *k, unsigned char *s, int d);
      |                  ~~~~~~~~^
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DPROTOTYPES=1 -DSOLARIS2X -DPORTMAP -DPTMX -Dnfsproc_null_2_svc=nfsproc_null_2             -Dnfsproc_getattr_2_svc=nfsproc_getattr_2               -Dnfsproc_setattr_2_svc=nfsproc_setattr_2               -Dnfsproc_root_2_svc=nfsproc_root_2             -Dnfsproc_lookup_2_svc=nfsproc_lookup_2         -Dnfsproc_readlink_2_svc=nfsproc_readlink_2             -Dnfsproc_read_2_svc=nfsproc_read_2             -Dnfsproc_writecache_2_svc=nfsproc_writecache_2         -Dnfsproc_write_2_svc=nfsproc_write_2           -Dnfsproc_create_2_svc=nfsproc_create_2         -Dnfsproc_remove_2_svc=nfsproc_remove_2         -Dnfsproc_rename_2_svc=nfsproc_rename_2         -Dnfsproc_link_2_svc=nfsproc_link_2             -Dnfsproc_symlink_2_svc=nfsproc_symlink_2               -Dnfsproc_mkdir_2_svc=nfsproc_mkdir_2           -Dnfsproc_rmdir_2_svc=nfsproc_rmdir_2           -Dnfsproc_readdir_2_svc=nfsproc_readdir_2               -Dnfsproc_statfs_2_svc=nfsproc_statfs_2         -Dadmproc_null_1_svc=admproc_null_1             -Dadmproc_attach_1_svc=admproc_attach_1         -Dadmproc_detach_1_svc=admproc_detach_1         -Dadmproc_ls_1_svc=admproc_ls_1                   -c cfs_nfs.c
cfs_nfs.c: In function 'nfsproc_getattr_2':
cfs_nfs.c:87:17: warning: implicit declaration of function 'htype'; did you mean 'bltype'? [-Wimplicit-function-declaration]
   87 |         if ((ht=htype(h=geth(ap)))!=H_REG) {
      |                 ^~~~~
      |                 bltype
cfs_nfs.c:92:25: warning: implicit declaration of function 'rootgetattr' [-Wimplicit-function-declaration]
   92 |                         rootgetattr(&ret.as_attr);
      |                         ^~~~~~~~~~~
cfs_nfs.c:98:13: warning: implicit declaration of function 'ruid' [-Wimplicit-function-declaration]
   98 |         uid=ruid(rp);
      |             ^~~~
cfs_nfs.c:99:14: warning: implicit declaration of function 'fhuid' [-Wimplicit-function-declaration]
   99 |         if (!fhuid(h,uid)) {
      |              ^~~~~
In file included from cfs_nfs.c:38:
cfs.h:209:29: warning: implicit declaration of function 'rgid' [-Wimplicit-function-declaration]
  209 |                    (setegid(rgid(x)) || seteuid(ruid(x))))
      |                             ^~~~
cfs_nfs.c:103:9: note: in expansion of macro 'become'
  103 |         become(rp);     /* become the user */
      |         ^~~~~~
cfs_nfs.c:104:17: warning: implicit declaration of function 'fhstat'; did you mean 'fstat'? [-Wimplicit-function-declaration]
  104 |         switch (fhstat(h,&ret.as_attr)) {
      |                 ^~~~~~
      |                 fstat
cfs_nfs.c:109:28: warning: implicit declaration of function 'cfsno' [-Wimplicit-function-declaration]
  109 |                 ret.status=cfsno(errno);
      |                            ^~~~~
cfs_nfs.c:115:9: warning: implicit declaration of function 'closeout'; did you mean 'close'? [-Wimplicit-function-declaration]
  115 |         closeout(h);    /* if it was open, close it */
      |         ^~~~~~~~
      |         close
cfs_nfs.c: In function 'nfsproc_setattr_2':
cfs_nfs.c:143:17: warning: implicit declaration of function 'fhsetattr' [-Wimplicit-function-declaration]
  143 |         switch (fhsetattr(h,&ap->attributes)) {
      |                 ^~~~~~~~~
cfs_nfs.c: In function 'nfsproc_lookup_2':
cfs_nfs.c:203:14: warning: implicit declaration of function 'goodsrc' [-Wimplicit-function-declaration]
  203 |         if (!goodsrc(rp)) {
      |              ^~~~~~~
cfs_nfs.c:230:22: warning: implicit declaration of function 'fhlook'; did you mean 't_look'? [-Wimplicit-function-declaration]
  230 |         else switch (fhlook(h,s,handle)) {
      |                      ^~~~~~
      |                      t_look
cfs_nfs.c: In function 'nfsproc_readlink_2':
cfs_nfs.c:284:19: warning: implicit declaration of function 'fhlinkval' [-Wimplicit-function-declaration]
  284 |         switch (l=fhlinkval(h,buf)) {
      |                   ^~~~~~~~~
cfs_nfs.c: In function 'nfsproc_read_2':
cfs_nfs.c:338:20: warning: implicit declaration of function 'fhtofd' [-Wimplicit-function-declaration]
  338 |         switch (fd=fhtofd(h,CFS_READ)) {
      |                    ^~~~~~
cfs_nfs.c:352:26: warning: implicit declaration of function 'readblock'; did you mean 'readlink'? [-Wimplicit-function-declaration]
  352 |                 if ((len=readblock(buffer,fd,ap->offset,ap->count,
      |                          ^~~~~~~~~
      |                          readlink
cfs_nfs.c: In function 'nfsproc_write_2':
cfs_nfs.c:428:21: warning: implicit declaration of function 'writeblock' [-Wimplicit-function-declaration]
  428 |                 if (writeblock(buf,fd,offset,len,key,vectof(h)) < 0) {
      |                     ^~~~~~~~~~
cfs_nfs.c: In function 'nfsproc_create_2':
cfs_nfs.c:480:17: warning: implicit declaration of function 'fhmkfileent' [-Wimplicit-function-declaration]
  480 |         switch (fhmkfileent(h,s,&handle)) {
      |                 ^~~~~~~~~~~
cfs_nfs.c:509:25: warning: implicit declaration of function 'fhsetattrprime' [-Wimplicit-function-declaration]
  509 |                 switch (fhsetattrprime(h2=geth(&handle),&ap->attributes)) {
      |                         ^~~~~~~~~~~~~~
cfs_nfs.c: In function 'nfsproc_remove_2':
cfs_nfs.c:574:24: warning: implicit declaration of function 'fhdelete' [-Wimplicit-function-declaration]
  574 |         } else switch (fhdelete(h,s)) {
      |                        ^~~~~~~~
cfs_nfs.c: In function 'nfsproc_rename_2':
cfs_nfs.c:612:13: warning: implicit declaration of function 'iid' [-Wimplicit-function-declaration]
  612 |         if (iid(fromh) != iid(toh=geth(&ap->to.dir))) {
      |             ^~~
cfs_nfs.c:628:22: warning: implicit declaration of function 'fhrename'; did you mean 'rename'? [-Wimplicit-function-declaration]
  628 |         else switch (fhrename(fromh,s1,
      |                      ^~~~~~~~
      |                      rename
cfs_nfs.c: In function 'nfsproc_link_2':
cfs_nfs.c:680:22: warning: implicit declaration of function 'fhdohardlink' [-Wimplicit-function-declaration]
  680 |         else switch (fhdohardlink(fromh,toh,s)) {
      |                      ^~~~~~~~~~~~
cfs_nfs.c: In function 'nfsproc_symlink_2':
cfs_nfs.c:729:25: warning: implicit declaration of function 'fhdosymlink'; did you mean 'symlink'? [-Wimplicit-function-declaration]
  729 |                 switch (fhdosymlink(h,s1,s2)) {
      |                         ^~~~~~~~~~~
      |                         symlink
cfs_nfs.c: In function 'nfsproc_mkdir_2':
cfs_nfs.c:779:17: warning: implicit declaration of function 'fhmkdirent'; did you mean 'mkdirat'? [-Wimplicit-function-declaration]
  779 |         switch (fhmkdirent(h,s,&handle)) {
      |                 ^~~~~~~~~~
      |                 mkdirat
cfs_nfs.c: In function 'nfsproc_rmdir_2':
cfs_nfs.c:846:24: warning: implicit declaration of function 'fhdeletedir' [-Wimplicit-function-declaration]
  846 |         } else switch (fhdeletedir(h,s)) {
      |                        ^~~~~~~~~~~
cfs_nfs.c: In function 'nfsproc_readdir_2':
cfs_nfs.c:917:25: warning: implicit declaration of function 'cfsclosedir'; did you mean 'closedir'? [-Wimplicit-function-declaration]
  917 |                         cfsclosedir(dp);
      |                         ^~~~~~~~~~~
      |                         closedir
cfs_nfs.c:943:45: warning: implicit declaration of function 'fhid' [-Wimplicit-function-declaration]
  943 |                         entrytab[ne].fileid=fhid(h);
      |                                             ^~~~
cfs_nfs.c:945:45: warning: implicit declaration of function 'fhpid' [-Wimplicit-function-declaration]
  945 |                         entrytab[ne].fileid=fhpid(h);
      |                                             ^~~~~
cfs_nfs.c: At top level:
cfs_nfs.c:987:1: warning: return type defaults to 'int' [-Wimplicit-int]
  987 | cfsclosedir(dp)
      | ^~~~~~~~~~~
cfs_nfs.c: In function 'cfsclosedir':
cfs_nfs.c:990:9: warning: implicit declaration of function 'fhclosedir'; did you mean 'cfsclosedir'? [-Wimplicit-function-declaration]
  990 |         fhclosedir(dp);
      |         ^~~~~~~~~~
      |         cfsclosedir
cfs_nfs.c: In function 'nfsproc_statfs_2':
cfs_nfs.c:1003:9: warning: implicit declaration of function 'setstatfsokres'; did you mean 'xdr_statfsokres'? [-Wimplicit-function-declaration]
 1003 |         setstatfsokres(&ret.statfsres_u.reply);
      |         ^~~~~~~~~~~~~~
      |         xdr_statfsokres
cfs_nfs.c: At top level:
cfs_nfs.c:1008:1: warning: return type defaults to 'int' [-Wimplicit-int]
 1008 | rootgetattr(f)
      | ^~~~~~~~~~~
cfs_nfs.c:1028:1: warning: return type defaults to 'int' [-Wimplicit-int]
 1028 | setstatfsokres(s)
      | ^~~~~~~~~~~~~~
cfs_nfs.c: In function 'fhstat':
cfs_nfs.c:1054:16: warning: implicit declaration of function 'fhgetstat'; did you mean 'fhstat'? [-Wimplicit-function-declaration]
 1054 |         if ((r=fhgetstat(fh,&sb)) != 0)
      |                ^~~~~~~~~
      |                fhstat
cfs_nfs.c:1056:20: warning: implicit declaration of function 'getftype'; did you mean 'setbltype'? [-Wimplicit-function-declaration]
 1056 |         fa->type = getftype(sb.st_mode);
      |                    ^~~~~~~~
      |                    setbltype
cfs_nfs.c:1057:20: warning: implicit declaration of function 'fhmode'; did you mean 'chmod'? [-Wimplicit-function-declaration]
 1057 |         fa->mode = fhmode(fh,sb.st_mode);
      |                    ^~~~~~
      |                    chmod
cfs_nfs.c:1059:19: warning: implicit declaration of function 'fhowner' [-Wimplicit-function-declaration]
 1059 |         fa->uid = fhowner(fh,sb.st_uid);
      |                   ^~~~~~~
cfs_nfs.c: In function 'rootlookup':
cfs_nfs.c:1114:17: warning: implicit declaration of function 'fhrootlook' [-Wimplicit-function-declaration]
 1114 |         switch (fhrootlook(s,handle)) {
      |                 ^~~~~~~~~~
cfs_nfs.c: At top level:
cfs_nfs.c:1196:1: warning: return type defaults to 'int' [-Wimplicit-int]
 1196 | goodsrc(rp)
      | ^~~~~~~
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DPROTOTYPES=1 -DSOLARIS2X -DPORTMAP -DPTMX -Dnfsproc_null_2_svc=nfsproc_null_2             -Dnfsproc_getattr_2_svc=nfsproc_getattr_2               -Dnfsproc_setattr_2_svc=nfsproc_setattr_2               -Dnfsproc_root_2_svc=nfsproc_root_2             -Dnfsproc_lookup_2_svc=nfsproc_lookup_2         -Dnfsproc_readlink_2_svc=nfsproc_readlink_2             -Dnfsproc_read_2_svc=nfsproc_read_2             -Dnfsproc_writecache_2_svc=nfsproc_writecache_2         -Dnfsproc_write_2_svc=nfsproc_write_2           -Dnfsproc_create_2_svc=nfsproc_create_2         -Dnfsproc_remove_2_svc=nfsproc_remove_2         -Dnfsproc_rename_2_svc=nfsproc_rename_2         -Dnfsproc_link_2_svc=nfsproc_link_2             -Dnfsproc_symlink_2_svc=nfsproc_symlink_2               -Dnfsproc_mkdir_2_svc=nfsproc_mkdir_2           -Dnfsproc_rmdir_2_svc=nfsproc_rmdir_2           -Dnfsproc_readdir_2_svc=nfsproc_readdir_2               -Dnfsproc_statfs_2_svc=nfsproc_statfs_2         -Dadmproc_null_1_svc=admproc_null_1             -Dadmproc_attach_1_svc=admproc_attach_1         -Dadmproc_detach_1_svc=admproc_detach_1         -Dadmproc_ls_1_svc=admproc_ls_1                   -c cfs_fh.c
cfs_fh.c: In function 'readblock':
cfs_fh.c:97:16: warning: implicit declaration of function 'vtod' [-Wimplicit-function-declaration]
   97 |         totlen=vtod(datalen);
      |                ^~~~
cfs_fh.c:111:19: warning: implicit declaration of function 'dtov' [-Wimplicit-function-declaration]
  111 |         userbytes=dtov(iolen)-fronterr;
      |                   ^~~~
cfs_fh.c:114:9: warning: implicit declaration of function 'dodecrypt' [-Wimplicit-function-declaration]
  114 |         dodecrypt(key,buf,iolen,begin,vect);
      |         ^~~~~~~~~
cfs_fh.c: In function 'writeblock':
cfs_fh.c:161:23: warning: implicit declaration of function 'isbndry' [-Wimplicit-function-declaration]
  161 |                 iolen=isbndry(totlen)?totlen:(totlen+CFSBLOCK);
      |                       ^~~~~~~
cfs_fh.c:169:9: warning: implicit declaration of function 'doencrypt'; did you mean 'BF_encrypt'? [-Wimplicit-function-declaration]
  169 |         doencrypt(key,buf,totlen,begin,vect);
      |         ^~~~~~~~~
      |         BF_encrypt
cfs_fh.c: In function 'encryptname':
cfs_fh.c:210:9: warning: implicit declaration of function 'chksum' [-Wimplicit-function-declaration]
  210 |         chksum(cryptstring,l);
      |         ^~~~~~
cfs_fh.c: At top level:
cfs_fh.c:223:1: warning: return type defaults to 'int' [-Wimplicit-int]
  223 | chksum(s,l)
      | ^~~~~~
cfs_fh.c:288:1: warning: return type defaults to 'int' [-Wimplicit-int]
  288 | doencrypt(k,s,l,salt,vect)
      | ^~~~~~~~~
cfs_fh.c: In function 'doencrypt':
cfs_fh.c:304:17: warning: implicit declaration of function 'cipher' [-Wimplicit-function-declaration]
  304 |                 cipher(k,&s[i],0);
      |                 ^~~~~~
cfs_fh.c: At top level:
cfs_fh.c:310:1: warning: return type defaults to 'int' [-Wimplicit-int]
  310 | dodecrypt(k,s,l,salt,vect)
      | ^~~~~~~~~
cfs_fh.c:335:1: warning: return type defaults to 'int' [-Wimplicit-int]
  335 | vtod(d)
      | ^~~~
cfs_fh.c:345:1: warning: return type defaults to 'int' [-Wimplicit-int]
  345 | dtov(d)
      | ^~~~
cfs_fh.c:354:1: warning: return type defaults to 'int' [-Wimplicit-int]
  354 | isbndry(d)
      | ^~~~~~~
cfs_fh.c:435:1: warning: return type defaults to 'int' [-Wimplicit-int]
  435 | htype(f)
      | ^~~~~
cfs_fh.c:446:1: warning: return type defaults to 'int' [-Wimplicit-int]
  446 | iid(f)
      | ^~~
cfs_fh.c:457:1: warning: return type defaults to 'int' [-Wimplicit-int]
  457 | fhowner(f,uid)
      | ^~~~~~~
cfs_fh.c:466:1: warning: return type defaults to 'int' [-Wimplicit-int]
  466 | fhmode(f,mode)
      | ^~~~~~
cfs_fh.c:476:1: warning: return type defaults to 'int' [-Wimplicit-int]
  476 | fhid(f)
      | ^~~~
cfs_fh.c:487:1: warning: return type defaults to 'int' [-Wimplicit-int]
  487 | fhpid(f)
      | ^~~~~
cfs_fh.c:501:1: warning: return type defaults to 'int' [-Wimplicit-int]
  501 | fhuid(f,u)
      | ^~~~~
cfs_fh.c:514:1: warning: return type defaults to 'int' [-Wimplicit-int]
  514 | cfsno(err)
      | ^~~~~
cfs_fh.c: In function 'fhtofd':
cfs_fh.c:564:31: warning: implicit declaration of function 'modeof' [-Wimplicit-function-declaration]
  564 |                         omode=modeof(f->name);
      |                               ^~~~~~
cfs_fh.c: At top level:
cfs_fh.c:612:1: warning: return type defaults to 'int' [-Wimplicit-int]
  612 | closeout(f)
      | ^~~~~~~~
cfs_fh.c:633:1: warning: return type defaults to 'int' [-Wimplicit-int]
  633 | fhsetattr(f,a)
      | ^~~~~~~~~
cfs_fh.c:730:1: warning: return type defaults to 'int' [-Wimplicit-int]
  730 | fhmkdirent(p,comp,h)
      | ^~~~~~~~~~
cfs_fh.c: In function 'fhmkdirent':
cfs_fh.c:747:17: warning: implicit declaration of function 'mkhandle' [-Wimplicit-function-declaration]
  747 |         return (mkhandle(p,path,comp,sb.st_ino,h,zerovect,"/NOWHERE/null"
      |                 ^~~~~~~~
cfs_fh.c: In function 'fhmkfileent':
cfs_fh.c:799:17: warning: implicit declaration of function 'q_block_cipher' [-Wimplicit-function-declaration]
  799 |                 q_block_cipher("fixedkey",&buf,1);
      |                 ^~~~~~~~~~~~~~
cfs_fh.c: In function 'fhlook':
cfs_fh.c:851:32: warning: implicit declaration of function 'fhrootlook'; did you mean 'fhlook'? [-Wimplicit-function-declaration]
  851 |                         return fhrootlook(p->ins->name,h);
      |                                ^~~~~~~~~~
      |                                fhlook
cfs_fh.c: In function 'mkhandle':
cfs_fh.c:929:17: warning: implicit declaration of function 'inserth' [-Wimplicit-function-declaration]
  929 |                 inserth(f);
      |                 ^~~~~~~
cfs_fh.c:943:17: warning: implicit declaration of function 'fillinh' [-Wimplicit-function-declaration]
  943 |                 fillinh(h,p->ins->id,ino,p->ins->check);
      |                 ^~~~~~~
cfs_fh.c: At top level:
cfs_fh.c:953:1: warning: return type defaults to 'int' [-Wimplicit-int]
  953 | inserth(f)
      | ^~~~~~~
cfs_fh.c:963:1: warning: return type defaults to 'int' [-Wimplicit-int]
  963 | fillinh(h,iid,ino,check)
      | ^~~~~~~
cfs_fh.c:1030:1: warning: return type defaults to 'int' [-Wimplicit-int]
 1030 | fhclosedir(dp)
      | ^~~~~~~~~~
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DPROTOTYPES=1 -DSOLARIS2X -DPORTMAP -DPTMX -Dnfsproc_null_2_svc=nfsproc_null_2             -Dnfsproc_getattr_2_svc=nfsproc_getattr_2               -Dnfsproc_setattr_2_svc=nfsproc_setattr_2               -Dnfsproc_root_2_svc=nfsproc_root_2             -Dnfsproc_lookup_2_svc=nfsproc_lookup_2         -Dnfsproc_readlink_2_svc=nfsproc_readlink_2             -Dnfsproc_read_2_svc=nfsproc_read_2             -Dnfsproc_writecache_2_svc=nfsproc_writecache_2         -Dnfsproc_write_2_svc=nfsproc_write_2           -Dnfsproc_create_2_svc=nfsproc_create_2         -Dnfsproc_remove_2_svc=nfsproc_remove_2         -Dnfsproc_rename_2_svc=nfsproc_rename_2         -Dnfsproc_link_2_svc=nfsproc_link_2             -Dnfsproc_symlink_2_svc=nfsproc_symlink_2               -Dnfsproc_mkdir_2_svc=nfsproc_mkdir_2           -Dnfsproc_rmdir_2_svc=nfsproc_rmdir_2           -Dnfsproc_readdir_2_svc=nfsproc_readdir_2               -Dnfsproc_statfs_2_svc=nfsproc_statfs_2         -Dadmproc_null_1_svc=admproc_null_1             -Dadmproc_attach_1_svc=admproc_attach_1         -Dadmproc_detach_1_svc=admproc_detach_1         -Dadmproc_ls_1_svc=admproc_ls_1                   -c cfs_des.c
cfs_des.c:131:1: warning: return type defaults to 'int' [-Wimplicit-int]
  131 | q_block_cipher(short_key, text, decrypting)
      | ^~~~~~~~~~~~~~
cfs_des.c: In function 'q_block_cipher':
cfs_des.c:139:18: warning: type defaults to 'int' in declaration of 'i' [-Wimplicit-int]
  139 |         register i;
      |                  ^
cfs_des.c:140:18: warning: type defaults to 'int' in declaration of 'key_offset' [-Wimplicit-int]
  140 |         register key_offset;
      |                  ^~~~~~~~~~
cfs_des.c:27:34: warning: implicit declaration of function 'memcmp' [-Wimplicit-function-declaration]
   27 | #define bcmp(s, d, l)           (memcmp(s, d, l)? 1 : 0)
      |                                  ^~~~~~
cfs_des.c:149:21: note: in expansion of macro 'bcmp'
  149 |                 if (bcmp(short_key,lastkey[j],8)==0) {
      |                     ^~~~
cfs_des.c:1:1: note: include '<string.h>' or provide a declaration of 'memcmp'
  +++ |+#include <string.h>
    1 | /*
cfs_des.c:149:47: warning: 'memcmp' argument 3 type is 'int' where 'long unsigned int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch]
  149 |                 if (bcmp(short_key,lastkey[j],8)==0) {
      |                                               ^
cfs_des.c:27:47: note: in definition of macro 'bcmp'
   27 | #define bcmp(s, d, l)           (memcmp(s, d, l)? 1 : 0)
      |                                               ^
<built-in>: note: built-in 'memcmp' declared here
cfs_des.c:26:33: warning: implicit declaration of function 'memcpy' [-Wimplicit-function-declaration]
   26 | #define bcopy(s, d, l)          memcpy(d, s, l)
      |                                 ^~~~~~
cfs_des.c:156:17: note: in expansion of macro 'bcopy'
  156 |                 bcopy(short_key,lastkey[k],8);
      |                 ^~~~~
cfs_des.c:26:33: note: include '<string.h>' or provide a declaration of 'memcpy'
   26 | #define bcopy(s, d, l)          memcpy(d, s, l)
      |                                 ^~~~~~
cfs_des.c:156:17: note: in expansion of macro 'bcopy'
  156 |                 bcopy(short_key,lastkey[k],8);
      |                 ^~~~~
cfs_des.c:26:33: warning: incompatible implicit declaration of built-in function 'memcpy' [-Wbuiltin-declaration-mismatch]
   26 | #define bcopy(s, d, l)          memcpy(d, s, l)
      |                                 ^~~~~~
cfs_des.c:156:17: note: in expansion of macro 'bcopy'
  156 |                 bcopy(short_key,lastkey[k],8);
      |                 ^~~~~
cfs_des.c:26:33: note: include '<string.h>' or provide a declaration of 'memcpy'
   26 | #define bcopy(s, d, l)          memcpy(d, s, l)
      |                                 ^~~~~~
cfs_des.c:156:17: note: in expansion of macro 'bcopy'
  156 |                 bcopy(short_key,lastkey[k],8);
      |                 ^~~~~
cfs_des.c: At top level:
cfs_des.c:196:1: warning: return type defaults to 'int' [-Wimplicit-int]
  196 | des_block_cipher(expanded_key, text, decrypting)
      | ^~~~~~~~~~~~~~~~
cfs_des.c: In function 'des_block_cipher':
cfs_des.c:204:18: warning: type defaults to 'int' in declaration of 'i' [-Wimplicit-int]
  204 |         register i;
      |                  ^
cfs_des.c:205:18: warning: type defaults to 'int' in declaration of 'key_offset' [-Wimplicit-int]
  205 |         register key_offset;
      |                  ^~~~~~~~~~
cfs_des.c: In function 'des_key_setup':
cfs_des.c:549:18: warning: type defaults to 'int' in declaration of 'octet' [-Wimplicit-int]
  549 |         register octet;
      |                  ^~~~~
cfs_des.c: In function 'key_crunch':
cfs_des.c:26:33: warning: incompatible implicit declaration of built-in function 'memcpy' [-Wbuiltin-declaration-mismatch]
   26 | #define bcopy(s, d, l)          memcpy(d, s, l)
      |                                 ^~~~~~
cfs_des.c:967:5: note: in expansion of macro 'bcopy'
  967 |     bcopy("encrypt!",s.key,8);
      |     ^~~~~
cfs_des.c:26:33: note: include '<string.h>' or provide a declaration of 'memcpy'
   26 | #define bcopy(s, d, l)          memcpy(d, s, l)
      |                                 ^~~~~~
cfs_des.c:967:5: note: in expansion of macro 'bcopy'
  967 |     bcopy("encrypt!",s.key,8);
      |     ^~~~~
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DPROTOTYPES=1 -DSOLARIS2X -DPORTMAP -DPTMX -Dnfsproc_null_2_svc=nfsproc_null_2             -Dnfsproc_getattr_2_svc=nfsproc_getattr_2               -Dnfsproc_setattr_2_svc=nfsproc_setattr_2               -Dnfsproc_root_2_svc=nfsproc_root_2             -Dnfsproc_lookup_2_svc=nfsproc_lookup_2         -Dnfsproc_readlink_2_svc=nfsproc_readlink_2             -Dnfsproc_read_2_svc=nfsproc_read_2             -Dnfsproc_writecache_2_svc=nfsproc_writecache_2         -Dnfsproc_write_2_svc=nfsproc_write_2           -Dnfsproc_create_2_svc=nfsproc_create_2         -Dnfsproc_remove_2_svc=nfsproc_remove_2         -Dnfsproc_rename_2_svc=nfsproc_rename_2         -Dnfsproc_link_2_svc=nfsproc_link_2             -Dnfsproc_symlink_2_svc=nfsproc_symlink_2               -Dnfsproc_mkdir_2_svc=nfsproc_mkdir_2           -Dnfsproc_rmdir_2_svc=nfsproc_rmdir_2           -Dnfsproc_readdir_2_svc=nfsproc_readdir_2               -Dnfsproc_statfs_2_svc=nfsproc_statfs_2         -Dadmproc_null_1_svc=admproc_null_1             -Dadmproc_attach_1_svc=admproc_attach_1         -Dadmproc_detach_1_svc=admproc_detach_1         -Dadmproc_ls_1_svc=admproc_ls_1                   -c cfs_cipher.c
cfs_cipher.c:25:1: warning: return type defaults to 'int' [-Wimplicit-int]
   25 | cipher(k,s,d)
      | ^~~~~~
cfs_cipher.c: In function 'cipher':
cfs_cipher.c:33:17: warning: implicit declaration of function 'des_block_cipher' [-Wimplicit-function-declaration]
   33 |                 des_block_cipher(k->var.des.primary,s,d);
      |                 ^~~~~~~~~~~~~~~~
cfs_cipher.c:53:25: warning: implicit declaration of function 'mcg_block_decrypt' [-Wimplicit-function-declaration]
   53 |                         mcg_block_decrypt(s,&k->var.mcg.primary);
      |                         ^~~~~~~~~~~~~~~~~
cfs_cipher.c:55:25: warning: implicit declaration of function 'mcg_block_encrypt' [-Wimplicit-function-declaration]
   55 |                         mcg_block_encrypt(s,&k->var.mcg.primary);
      |                         ^~~~~~~~~~~~~~~~~
cfs_cipher.c: At top level:
cfs_cipher.c:120:1: warning: return type defaults to 'int' [-Wimplicit-int]
  120 | copykey(key,k)
      | ^~~~~~~
cfs_cipher.c: In function 'copykey':
cfs_cipher.c:127:17: warning: implicit declaration of function 'des_key_setup' [-Wimplicit-function-declaration]
  127 |                 des_key_setup(key->cfs_admkey_u.deskey.primary,
      |                 ^~~~~~~~~~~~~
cfs_cipher.c:160:17: warning: implicit declaration of function 'mcg_keyset' [-Wimplicit-function-declaration]
  160 |                 mcg_keyset(key->cfs_admkey_u.mcgkey.primary,
      |                 ^~~~~~~~~~
cfs_cipher.c: In function 'cipher':
cfs_cipher.c:65:25: warning: 'Safer_Decrypt_Block' accessing 217 bytes in a region of size 128 [-Wstringop-overflow=]
   65 |                         Safer_Decrypt_Block(s,k->var.safer.primary,s);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cfs_cipher.c:65:25: note: referencing argument 2 of type 'unsigned char[217]'
cfs_cipher.c:65:25: note: referencing argument 3 of type 'unsigned char[8]'
In file included from cfs.h:23,
                 from cfs_cipher.c:23:
safer.h:104:17: note: in a call to function 'Safer_Decrypt_Block'
  104 |     extern void Safer_Decrypt_Block (safer_block_t block_in, safer_key_t key,
      |                 ^~~~~~~~~~~~~~~~~~~
cfs_cipher.c:67:25: warning: 'Safer_Encrypt_Block' accessing 217 bytes in a region of size 128 [-Wstringop-overflow=]
   67 |                         Safer_Encrypt_Block(s,k->var.safer.primary,s);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cfs_cipher.c:67:25: note: referencing argument 2 of type 'unsigned char[217]'
cfs_cipher.c:67:25: note: referencing argument 3 of type 'unsigned char[8]'
safer.h:102:17: note: in a call to function 'Safer_Encrypt_Block'
  102 |     extern void Safer_Encrypt_Block (safer_block_t block_in, safer_key_t key,
      |                 ^~~~~~~~~~~~~~~~~~~
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DPROTOTYPES=1 -DSOLARIS2X -DPORTMAP -DPTMX -Dnfsproc_null_2_svc=nfsproc_null_2             -Dnfsproc_getattr_2_svc=nfsproc_getattr_2               -Dnfsproc_setattr_2_svc=nfsproc_setattr_2               -Dnfsproc_root_2_svc=nfsproc_root_2             -Dnfsproc_lookup_2_svc=nfsproc_lookup_2         -Dnfsproc_readlink_2_svc=nfsproc_readlink_2             -Dnfsproc_read_2_svc=nfsproc_read_2             -Dnfsproc_writecache_2_svc=nfsproc_writecache_2         -Dnfsproc_write_2_svc=nfsproc_write_2           -Dnfsproc_create_2_svc=nfsproc_create_2         -Dnfsproc_remove_2_svc=nfsproc_remove_2         -Dnfsproc_rename_2_svc=nfsproc_rename_2         -Dnfsproc_link_2_svc=nfsproc_link_2             -Dnfsproc_symlink_2_svc=nfsproc_symlink_2               -Dnfsproc_mkdir_2_svc=nfsproc_mkdir_2           -Dnfsproc_rmdir_2_svc=nfsproc_rmdir_2           -Dnfsproc_readdir_2_svc=nfsproc_readdir_2               -Dnfsproc_statfs_2_svc=nfsproc_statfs_2         -Dadmproc_null_1_svc=admproc_null_1             -Dadmproc_attach_1_svc=admproc_attach_1         -Dadmproc_detach_1_svc=admproc_detach_1         -Dadmproc_ls_1_svc=admproc_ls_1                   -c adm.c
echo "static char version[]=" > ver.c
echo "  \"CFS `cat VERSION` (`cat LEVELS`)\";" >> ver.c
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DPROTOTYPES=1 -DSOLARIS2X -DPORTMAP -DPTMX -Dnfsproc_null_2_svc=nfsproc_null_2             -Dnfsproc_getattr_2_svc=nfsproc_getattr_2               -Dnfsproc_setattr_2_svc=nfsproc_setattr_2               -Dnfsproc_root_2_svc=nfsproc_root_2             -Dnfsproc_lookup_2_svc=nfsproc_lookup_2         -Dnfsproc_readlink_2_svc=nfsproc_readlink_2             -Dnfsproc_read_2_svc=nfsproc_read_2             -Dnfsproc_writecache_2_svc=nfsproc_writecache_2         -Dnfsproc_write_2_svc=nfsproc_write_2           -Dnfsproc_create_2_svc=nfsproc_create_2         -Dnfsproc_remove_2_svc=nfsproc_remove_2         -Dnfsproc_rename_2_svc=nfsproc_rename_2         -Dnfsproc_link_2_svc=nfsproc_link_2             -Dnfsproc_symlink_2_svc=nfsproc_symlink_2               -Dnfsproc_mkdir_2_svc=nfsproc_mkdir_2           -Dnfsproc_rmdir_2_svc=nfsproc_rmdir_2           -Dnfsproc_readdir_2_svc=nfsproc_readdir_2               -Dnfsproc_statfs_2_svc=nfsproc_statfs_2         -Dadmproc_null_1_svc=admproc_null_1             -Dadmproc_attach_1_svc=admproc_attach_1         -Dadmproc_detach_1_svc=admproc_detach_1         -Dadmproc_ls_1_svc=admproc_ls_1                   -c ver.c
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DPROTOTYPES=1 -DSOLARIS2X -DPORTMAP -DPTMX -Dnfsproc_null_2_svc=nfsproc_null_2             -Dnfsproc_getattr_2_svc=nfsproc_getattr_2               -Dnfsproc_setattr_2_svc=nfsproc_setattr_2               -Dnfsproc_root_2_svc=nfsproc_root_2             -Dnfsproc_lookup_2_svc=nfsproc_lookup_2         -Dnfsproc_readlink_2_svc=nfsproc_readlink_2             -Dnfsproc_read_2_svc=nfsproc_read_2             -Dnfsproc_writecache_2_svc=nfsproc_writecache_2         -Dnfsproc_write_2_svc=nfsproc_write_2           -Dnfsproc_create_2_svc=nfsproc_create_2         -Dnfsproc_remove_2_svc=nfsproc_remove_2         -Dnfsproc_rename_2_svc=nfsproc_rename_2         -Dnfsproc_link_2_svc=nfsproc_link_2             -Dnfsproc_symlink_2_svc=nfsproc_symlink_2               -Dnfsproc_mkdir_2_svc=nfsproc_mkdir_2           -Dnfsproc_rmdir_2_svc=nfsproc_rmdir_2           -Dnfsproc_readdir_2_svc=nfsproc_readdir_2               -Dnfsproc_statfs_2_svc=nfsproc_statfs_2         -Dadmproc_null_1_svc=admproc_null_1             -Dadmproc_attach_1_svc=admproc_attach_1         -Dadmproc_detach_1_svc=admproc_detach_1         -Dadmproc_ls_1_svc=admproc_ls_1                   -c mcgsbox.c
mcgsbox.c:152:1: warning: return type defaults to 'int' [-Wimplicit-int]
  152 | mcg_init()
      | ^~~~~~~~
mcgsbox.c:195:1: warning: return type defaults to 'int' [-Wimplicit-int]
  195 | mcg_keyset(key,ek)
      | ^~~~~~~~~~
mcgsbox.c: In function 'mcg_keyset':
mcgsbox.c:192:22: warning: implicit declaration of function 'memcpy' [-Wimplicit-function-declaration]
  192 | #define bcopy(s,d,l) memcpy(d,s,l)
      |                      ^~~~~~
mcgsbox.c:203:9: note: in expansion of macro 'bcopy'
  203 |         bcopy(&key[0],k[0],8);
      |         ^~~~~
mcgsbox.c:26:1: note: include '<string.h>' or provide a declaration of 'memcpy'
   25 | #include "mcg.h"
  +++ |+#include <string.h>
   26 | 
mcgsbox.c:192:22: warning: incompatible implicit declaration of built-in function 'memcpy' [-Wbuiltin-declaration-mismatch]
  192 | #define bcopy(s,d,l) memcpy(d,s,l)
      |                      ^~~~~~
mcgsbox.c:203:9: note: in expansion of macro 'bcopy'
  203 |         bcopy(&key[0],k[0],8);
      |         ^~~~~
mcgsbox.c:192:22: note: include '<string.h>' or provide a declaration of 'memcpy'
  192 | #define bcopy(s,d,l) memcpy(d,s,l)
      |                      ^~~~~~
mcgsbox.c:203:9: note: in expansion of macro 'bcopy'
  203 |         bcopy(&key[0],k[0],8);
      |         ^~~~~
mcgsbox.c:209:25: warning: implicit declaration of function 'mcg_block_encrypt' [-Wimplicit-function-declaration]
  209 |                         mcg_block_encrypt(k[i],ek);
      |                         ^~~~~~~~~~~~~~~~~
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DPROTOTYPES=1 -DSOLARIS2X -DPORTMAP -DPTMX -Dnfsproc_null_2_svc=nfsproc_null_2             -Dnfsproc_getattr_2_svc=nfsproc_getattr_2               -Dnfsproc_setattr_2_svc=nfsproc_setattr_2               -Dnfsproc_root_2_svc=nfsproc_root_2             -Dnfsproc_lookup_2_svc=nfsproc_lookup_2         -Dnfsproc_readlink_2_svc=nfsproc_readlink_2             -Dnfsproc_read_2_svc=nfsproc_read_2             -Dnfsproc_writecache_2_svc=nfsproc_writecache_2         -Dnfsproc_write_2_svc=nfsproc_write_2           -Dnfsproc_create_2_svc=nfsproc_create_2         -Dnfsproc_remove_2_svc=nfsproc_remove_2         -Dnfsproc_rename_2_svc=nfsproc_rename_2         -Dnfsproc_link_2_svc=nfsproc_link_2             -Dnfsproc_symlink_2_svc=nfsproc_symlink_2               -Dnfsproc_mkdir_2_svc=nfsproc_mkdir_2           -Dnfsproc_rmdir_2_svc=nfsproc_rmdir_2           -Dnfsproc_readdir_2_svc=nfsproc_readdir_2               -Dnfsproc_statfs_2_svc=nfsproc_statfs_2         -Dadmproc_null_1_svc=admproc_null_1             -Dadmproc_attach_1_svc=admproc_attach_1         -Dadmproc_detach_1_svc=admproc_detach_1         -Dadmproc_ls_1_svc=admproc_ls_1                   -c cfs_bfenc.c
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DPROTOTYPES=1 -DSOLARIS2X -DPORTMAP -DPTMX -Dnfsproc_null_2_svc=nfsproc_null_2             -Dnfsproc_getattr_2_svc=nfsproc_getattr_2               -Dnfsproc_setattr_2_svc=nfsproc_setattr_2               -Dnfsproc_root_2_svc=nfsproc_root_2             -Dnfsproc_lookup_2_svc=nfsproc_lookup_2         -Dnfsproc_readlink_2_svc=nfsproc_readlink_2             -Dnfsproc_read_2_svc=nfsproc_read_2             -Dnfsproc_writecache_2_svc=nfsproc_writecache_2         -Dnfsproc_write_2_svc=nfsproc_write_2           -Dnfsproc_create_2_svc=nfsproc_create_2         -Dnfsproc_remove_2_svc=nfsproc_remove_2         -Dnfsproc_rename_2_svc=nfsproc_rename_2         -Dnfsproc_link_2_svc=nfsproc_link_2             -Dnfsproc_symlink_2_svc=nfsproc_symlink_2               -Dnfsproc_mkdir_2_svc=nfsproc_mkdir_2           -Dnfsproc_rmdir_2_svc=nfsproc_rmdir_2           -Dnfsproc_readdir_2_svc=nfsproc_readdir_2               -Dnfsproc_statfs_2_svc=nfsproc_statfs_2         -Dadmproc_null_1_svc=admproc_null_1             -Dadmproc_attach_1_svc=admproc_attach_1         -Dadmproc_detach_1_svc=admproc_detach_1         -Dadmproc_ls_1_svc=admproc_ls_1                   -c cfs_bfsk.c
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DPROTOTYPES=1 -DSOLARIS2X -DPORTMAP -DPTMX -Dnfsproc_null_2_svc=nfsproc_null_2             -Dnfsproc_getattr_2_svc=nfsproc_getattr_2               -Dnfsproc_setattr_2_svc=nfsproc_setattr_2               -Dnfsproc_root_2_svc=nfsproc_root_2             -Dnfsproc_lookup_2_svc=nfsproc_lookup_2         -Dnfsproc_readlink_2_svc=nfsproc_readlink_2             -Dnfsproc_read_2_svc=nfsproc_read_2             -Dnfsproc_writecache_2_svc=nfsproc_writecache_2         -Dnfsproc_write_2_svc=nfsproc_write_2           -Dnfsproc_create_2_svc=nfsproc_create_2         -Dnfsproc_remove_2_svc=nfsproc_remove_2         -Dnfsproc_rename_2_svc=nfsproc_rename_2         -Dnfsproc_link_2_svc=nfsproc_link_2             -Dnfsproc_symlink_2_svc=nfsproc_symlink_2               -Dnfsproc_mkdir_2_svc=nfsproc_mkdir_2           -Dnfsproc_rmdir_2_svc=nfsproc_rmdir_2           -Dnfsproc_readdir_2_svc=nfsproc_readdir_2               -Dnfsproc_statfs_2_svc=nfsproc_statfs_2         -Dadmproc_null_1_svc=admproc_null_1             -Dadmproc_attach_1_svc=admproc_attach_1         -Dadmproc_detach_1_svc=admproc_detach_1         -Dadmproc_ls_1_svc=admproc_ls_1                   -c mcg.c
mcg.c:34:1: warning: return type defaults to 'int' [-Wimplicit-int]
   34 | mcg_block_encrypt(blk,key)
      | ^~~~~~~~~~~~~~~~~
mcg.c:127:1: warning: return type defaults to 'int' [-Wimplicit-int]
  127 | mcg_block_decrypt(blk,key)
      | ^~~~~~~~~~~~~~~~~
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DPROTOTYPES=1 -DSOLARIS2X -DPORTMAP -DPTMX -Dnfsproc_null_2_svc=nfsproc_null_2             -Dnfsproc_getattr_2_svc=nfsproc_getattr_2               -Dnfsproc_setattr_2_svc=nfsproc_setattr_2               -Dnfsproc_root_2_svc=nfsproc_root_2             -Dnfsproc_lookup_2_svc=nfsproc_lookup_2         -Dnfsproc_readlink_2_svc=nfsproc_readlink_2             -Dnfsproc_read_2_svc=nfsproc_read_2             -Dnfsproc_writecache_2_svc=nfsproc_writecache_2         -Dnfsproc_write_2_svc=nfsproc_write_2           -Dnfsproc_create_2_svc=nfsproc_create_2         -Dnfsproc_remove_2_svc=nfsproc_remove_2         -Dnfsproc_rename_2_svc=nfsproc_rename_2         -Dnfsproc_link_2_svc=nfsproc_link_2             -Dnfsproc_symlink_2_svc=nfsproc_symlink_2               -Dnfsproc_mkdir_2_svc=nfsproc_mkdir_2           -Dnfsproc_rmdir_2_svc=nfsproc_rmdir_2           -Dnfsproc_readdir_2_svc=nfsproc_readdir_2               -Dnfsproc_statfs_2_svc=nfsproc_statfs_2         -Dadmproc_null_1_svc=admproc_null_1             -Dadmproc_attach_1_svc=admproc_attach_1         -Dadmproc_detach_1_svc=admproc_detach_1         -Dadmproc_ls_1_svc=admproc_ls_1                   -c safer.c
gcc cfs.o nfsproto_xdr.o nfsproto_svr.o admproto_xdr.o admproto_svr.o  cfs_adm.o cfs_nfs.o cfs_fh.o cfs_des.o cfs_cipher.o adm.o ver.o mcgsbox.o  cfs_bfenc.o cfs_bfsk.o mcg.o safer.o -lsocket -lnsl -o cfsd
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DPROTOTYPES=1 -DSOLARIS2X -DPORTMAP -DPTMX -Dnfsproc_null_2_svc=nfsproc_null_2             -Dnfsproc_getattr_2_svc=nfsproc_getattr_2               -Dnfsproc_setattr_2_svc=nfsproc_setattr_2               -Dnfsproc_root_2_svc=nfsproc_root_2             -Dnfsproc_lookup_2_svc=nfsproc_lookup_2         -Dnfsproc_readlink_2_svc=nfsproc_readlink_2             -Dnfsproc_read_2_svc=nfsproc_read_2             -Dnfsproc_writecache_2_svc=nfsproc_writecache_2         -Dnfsproc_write_2_svc=nfsproc_write_2           -Dnfsproc_create_2_svc=nfsproc_create_2         -Dnfsproc_remove_2_svc=nfsproc_remove_2         -Dnfsproc_rename_2_svc=nfsproc_rename_2         -Dnfsproc_link_2_svc=nfsproc_link_2             -Dnfsproc_symlink_2_svc=nfsproc_symlink_2               -Dnfsproc_mkdir_2_svc=nfsproc_mkdir_2           -Dnfsproc_rmdir_2_svc=nfsproc_rmdir_2           -Dnfsproc_readdir_2_svc=nfsproc_readdir_2               -Dnfsproc_statfs_2_svc=nfsproc_statfs_2         -Dadmproc_null_1_svc=admproc_null_1             -Dadmproc_attach_1_svc=admproc_attach_1         -Dadmproc_detach_1_svc=admproc_detach_1         -Dadmproc_ls_1_svc=admproc_ls_1                   -c cfs_attach.c
cfs_attach.c:67:1: warning: return type defaults to 'int' [-Wimplicit-int]
   67 | main(argc,argv)
      | ^~~~
cfs_attach.c: In function 'main':
cfs_attach.c:117:33: warning: implicit declaration of function 'enq' [-Wimplicit-function-declaration]
  117 |                                 enq(*flg);
      |                                 ^~~
cfs_attach.c:127:25: warning: implicit declaration of function 'deq' [-Wimplicit-function-declaration]
  127 |                 switch (deq()) {
      |                         ^~~
cfs_attach.c:247:21: warning: implicit declaration of function 'new_pwcrunch' [-Wimplicit-function-declaration]
  247 |                 if (new_pwcrunch(pw,&ap.key)!=0) {
      |                     ^~~~~~~~~~~~
cfs_attach.c:251:17: warning: implicit declaration of function 'decrypt_key' [-Wimplicit-function-declaration]
  251 |                 decrypt_key(&ap.key,ekey);
      |                 ^~~~~~~~~~~
cfs_attach.c:254:21: warning: implicit declaration of function 'old_pwcrunch' [-Wimplicit-function-declaration]
  254 |                 if (old_pwcrunch(pw,&ap.key)!=0) {
      |                     ^~~~~~~~~~~~
In file included from /usr/include/rpc/rpc.h:60,
                 from cfs_attach.c:24:
cfs_attach.c:267:71: warning: passing argument 4 of 'cln->cl_ops->cl_call' from incompatible pointer type [-Wincompatible-pointer-types]
  267 |         if ((status = clnt_call(cln,ADMPROC_ATTACH,xdr_cfs_attachargs,&ap,
      |                                                                       ^~~
      |                                                                       |
      |                                                                       cfs_attachargs *
cfs_attach.c:267:71: note: expected 'caddr_t' {aka 'char *'} but argument is of type 'cfs_attachargs *'
cfs_attach.c:268:45: warning: passing argument 6 of 'cln->cl_ops->cl_call' from incompatible pointer type [-Wincompatible-pointer-types]
  268 |                                 xdr_cfsstat,&ret,tout)) != RPC_SUCCESS) {
      |                                             ^~~~
      |                                             |
      |                                             cfsstat *
cfs_attach.c:268:45: note: expected 'caddr_t' {aka 'char *'} but argument is of type 'cfsstat *'
cfs_attach.c: At top level:
cfs_attach.c:284:1: warning: return type defaults to 'int' [-Wimplicit-int]
  284 | enq(f)
      | ^~~
cfs_attach.c:296:1: warning: return type defaults to 'int' [-Wimplicit-int]
  296 | deq()
      | ^~~
rpcgen  -l -o admproto_clnt.c admproto.x
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DPROTOTYPES=1 -DSOLARIS2X -DPORTMAP -DPTMX -Dnfsproc_null_2_svc=nfsproc_null_2             -Dnfsproc_getattr_2_svc=nfsproc_getattr_2               -Dnfsproc_setattr_2_svc=nfsproc_setattr_2               -Dnfsproc_root_2_svc=nfsproc_root_2             -Dnfsproc_lookup_2_svc=nfsproc_lookup_2         -Dnfsproc_readlink_2_svc=nfsproc_readlink_2             -Dnfsproc_read_2_svc=nfsproc_read_2             -Dnfsproc_writecache_2_svc=nfsproc_writecache_2         -Dnfsproc_write_2_svc=nfsproc_write_2           -Dnfsproc_create_2_svc=nfsproc_create_2         -Dnfsproc_remove_2_svc=nfsproc_remove_2         -Dnfsproc_rename_2_svc=nfsproc_rename_2         -Dnfsproc_link_2_svc=nfsproc_link_2             -Dnfsproc_symlink_2_svc=nfsproc_symlink_2               -Dnfsproc_mkdir_2_svc=nfsproc_mkdir_2           -Dnfsproc_rmdir_2_svc=nfsproc_rmdir_2           -Dnfsproc_readdir_2_svc=nfsproc_readdir_2               -Dnfsproc_statfs_2_svc=nfsproc_statfs_2         -Dadmproc_null_1_svc=admproc_null_1             -Dadmproc_attach_1_svc=admproc_attach_1         -Dadmproc_detach_1_svc=admproc_detach_1         -Dadmproc_ls_1_svc=admproc_ls_1                   -c admproto_clnt.c
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DPROTOTYPES=1 -DSOLARIS2X -DPORTMAP -DPTMX -Dnfsproc_null_2_svc=nfsproc_null_2             -Dnfsproc_getattr_2_svc=nfsproc_getattr_2               -Dnfsproc_setattr_2_svc=nfsproc_setattr_2               -Dnfsproc_root_2_svc=nfsproc_root_2             -Dnfsproc_lookup_2_svc=nfsproc_lookup_2         -Dnfsproc_readlink_2_svc=nfsproc_readlink_2             -Dnfsproc_read_2_svc=nfsproc_read_2             -Dnfsproc_writecache_2_svc=nfsproc_writecache_2         -Dnfsproc_write_2_svc=nfsproc_write_2           -Dnfsproc_create_2_svc=nfsproc_create_2         -Dnfsproc_remove_2_svc=nfsproc_remove_2         -Dnfsproc_rename_2_svc=nfsproc_rename_2         -Dnfsproc_link_2_svc=nfsproc_link_2             -Dnfsproc_symlink_2_svc=nfsproc_symlink_2               -Dnfsproc_mkdir_2_svc=nfsproc_mkdir_2           -Dnfsproc_rmdir_2_svc=nfsproc_rmdir_2           -Dnfsproc_readdir_2_svc=nfsproc_readdir_2               -Dnfsproc_statfs_2_svc=nfsproc_statfs_2         -Dadmproc_null_1_svc=admproc_null_1             -Dadmproc_attach_1_svc=admproc_attach_1         -Dadmproc_detach_1_svc=admproc_detach_1         -Dadmproc_ls_1_svc=admproc_ls_1                   -c getpass.c
getpass.c: In function 'getpassword':
getpass.c:66:18: warning: type defaults to 'int' in declaration of 'c' [-Wimplicit-int]
   66 |         register c;
      |                  ^
getpass.c:81:9: warning: implicit declaration of function 'gtty' [-Wimplicit-function-declaration]
   81 |         gtty(fileno(fi), &ttyb);
      |         ^~~~
getpass.c:84:9: warning: implicit declaration of function 'stty'; did you mean 'isatty'? [-Wimplicit-function-declaration]
   84 |         stty(fileno(fi), &ttyb);
      |         ^~~~
      |         isatty
getpass.c: At top level:
getpass.c:101:1: warning: return type defaults to 'int' [-Wimplicit-int]
  101 | old_pwcrunch(b,k)
      | ^~~~~~~~~~~~
getpass.c: In function 'old_pwcrunch':
getpass.c:116:9: warning: implicit declaration of function 'key_crunch' [-Wimplicit-function-declaration]
  116 |         key_crunch(&b[l/2],l-l/2,k1);
      |         ^~~~~~~~~~
getpass.c: At top level:
getpass.c:159:1: warning: return type defaults to 'int' [-Wimplicit-int]
  159 | new_pwcrunch(b,k)
      | ^~~~~~~~~~~~
getpass.c:218:1: warning: return type defaults to 'int' [-Wimplicit-int]
  218 | decrypt_key(k,ek)
      | ^~~~~~~~~~~
getpass.c: In function 'decrypt_key':
getpass.c:228:17: warning: implicit declaration of function 'q_block_cipher' [-Wimplicit-function-declaration]
  228 |                 q_block_cipher(k->cfs_admkey_u.deskey.primary,&(ek[0]),1);
      |                 ^~~~~~~~~~~~~~
getpass.c:267:17: warning: implicit declaration of function 'mcg_keyset' [-Wimplicit-function-declaration]
  267 |                 mcg_keyset(k->cfs_admkey_u.mcgkey.primary,&mk);
      |                 ^~~~~~~~~~
getpass.c:268:17: warning: implicit declaration of function 'mcg_block_decrypt' [-Wimplicit-function-declaration]
  268 |                 mcg_block_decrypt(&mk,&(ek[0]));
      |                 ^~~~~~~~~~~~~~~~~
getpass.c: At top level:
getpass.c:296:1: warning: return type defaults to 'int' [-Wimplicit-int]
  296 | encrypt_key(k,ek)
      | ^~~~~~~~~~~
getpass.c: In function 'encrypt_key':
getpass.c:339:17: warning: implicit declaration of function 'mcg_block_encrypt' [-Wimplicit-function-declaration]
  339 |                 mcg_block_encrypt(&mk,&(ek[0]));
      |                 ^~~~~~~~~~~~~~~~~
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DPROTOTYPES=1 -DSOLARIS2X -DPORTMAP -DPTMX -Dnfsproc_null_2_svc=nfsproc_null_2             -Dnfsproc_getattr_2_svc=nfsproc_getattr_2               -Dnfsproc_setattr_2_svc=nfsproc_setattr_2               -Dnfsproc_root_2_svc=nfsproc_root_2             -Dnfsproc_lookup_2_svc=nfsproc_lookup_2         -Dnfsproc_readlink_2_svc=nfsproc_readlink_2             -Dnfsproc_read_2_svc=nfsproc_read_2             -Dnfsproc_writecache_2_svc=nfsproc_writecache_2         -Dnfsproc_write_2_svc=nfsproc_write_2           -Dnfsproc_create_2_svc=nfsproc_create_2         -Dnfsproc_remove_2_svc=nfsproc_remove_2         -Dnfsproc_rename_2_svc=nfsproc_rename_2         -Dnfsproc_link_2_svc=nfsproc_link_2             -Dnfsproc_symlink_2_svc=nfsproc_symlink_2               -Dnfsproc_mkdir_2_svc=nfsproc_mkdir_2           -Dnfsproc_rmdir_2_svc=nfsproc_rmdir_2           -Dnfsproc_readdir_2_svc=nfsproc_readdir_2               -Dnfsproc_statfs_2_svc=nfsproc_statfs_2         -Dadmproc_null_1_svc=admproc_null_1             -Dadmproc_attach_1_svc=admproc_attach_1         -Dadmproc_detach_1_svc=admproc_detach_1         -Dadmproc_ls_1_svc=admproc_ls_1                   -c shs.c
In file included from shs.c:51:
shs.c: In function 'fShsDigest':
shs.h:9:33: warning: implicit declaration of function 'memset' [-Wimplicit-function-declaration]
    9 | #define bzero(b, l)             memset(b, 0, l)
      |                                 ^~~~~~
shs.c:307:9: note: in expansion of macro 'bzero'
  307 |         bzero(buffer, 1024);
      |         ^~~~~
shs.c:52:1: note: include '<string.h>' or provide a declaration of 'memset'
   51 | #include "shs.h"
  +++ |+#include <string.h>
   52 | 
shs.h:9:33: warning: incompatible implicit declaration of built-in function 'memset' [-Wbuiltin-declaration-mismatch]
    9 | #define bzero(b, l)             memset(b, 0, l)
      |                                 ^~~~~~
shs.c:307:9: note: in expansion of macro 'bzero'
  307 |         bzero(buffer, 1024);
      |         ^~~~~
shs.h:9:33: note: include '<string.h>' or provide a declaration of 'memset'
    9 | #define bzero(b, l)             memset(b, 0, l)
      |                                 ^~~~~~
shs.c:307:9: note: in expansion of macro 'bzero'
  307 |         bzero(buffer, 1024);
      |         ^~~~~
shs.c:317:16: warning: function returns address of local variable [-Wreturn-local-addr]
  317 |         return mdContext->h;
      |                ^~~~~~~~~
shs.c:301:17: note: declared here
  301 |         SHS_CTX mdC;
      |                 ^~~
gcc cfs_attach.o admproto_clnt.o admproto_xdr.o cfs_des.o  cfs_bfenc.o cfs_bfsk.o cfs_cipher.o getpass.o adm.o ver.o mcg.o  mcgsbox.o shs.o safer.o  -lsocket -lnsl -o cfs_attach
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DPROTOTYPES=1 -DSOLARIS2X -DPORTMAP -DPTMX -Dnfsproc_null_2_svc=nfsproc_null_2             -Dnfsproc_getattr_2_svc=nfsproc_getattr_2               -Dnfsproc_setattr_2_svc=nfsproc_setattr_2               -Dnfsproc_root_2_svc=nfsproc_root_2             -Dnfsproc_lookup_2_svc=nfsproc_lookup_2         -Dnfsproc_readlink_2_svc=nfsproc_readlink_2             -Dnfsproc_read_2_svc=nfsproc_read_2             -Dnfsproc_writecache_2_svc=nfsproc_writecache_2         -Dnfsproc_write_2_svc=nfsproc_write_2           -Dnfsproc_create_2_svc=nfsproc_create_2         -Dnfsproc_remove_2_svc=nfsproc_remove_2         -Dnfsproc_rename_2_svc=nfsproc_rename_2         -Dnfsproc_link_2_svc=nfsproc_link_2             -Dnfsproc_symlink_2_svc=nfsproc_symlink_2               -Dnfsproc_mkdir_2_svc=nfsproc_mkdir_2           -Dnfsproc_rmdir_2_svc=nfsproc_rmdir_2           -Dnfsproc_readdir_2_svc=nfsproc_readdir_2               -Dnfsproc_statfs_2_svc=nfsproc_statfs_2         -Dadmproc_null_1_svc=admproc_null_1             -Dadmproc_attach_1_svc=admproc_attach_1         -Dadmproc_detach_1_svc=admproc_detach_1         -Dadmproc_ls_1_svc=admproc_ls_1                   -c cfs_mkdir.c
cfs_mkdir.c:29:1: warning: return type defaults to 'int' [-Wimplicit-int]
   29 | main(argc,argv)
      | ^~~~
cfs_mkdir.c: In function 'main':
cfs_mkdir.c:135:21: warning: implicit declaration of function 'old_pwcrunch' [-Wimplicit-function-declaration]
  135 |                 if (old_pwcrunch(pw,&k)!=0) {
      |                     ^~~~~~~~~~~~
cfs_mkdir.c:141:21: warning: implicit declaration of function 'new_pwcrunch' [-Wimplicit-function-declaration]
  141 |                 if (new_pwcrunch(pw,&k)!=0) {
      |                     ^~~~~~~~~~~~
cfs_mkdir.c:148:36: warning: implicit declaration of function 'randbyte' [-Wimplicit-function-declaration]
  148 |                         ekey[i] ^= randbyte();
      |                                    ^~~~~~~~
cfs_mkdir.c:150:17: warning: implicit declaration of function 'encrypt_key' [-Wimplicit-function-declaration]
  150 |                 encrypt_key(&k,ekey);
      |                 ^~~~~~~~~~~
cfs_mkdir.c:152:17: warning: implicit declaration of function 'decrypt_key' [-Wimplicit-function-declaration]
  152 |                 decrypt_key(&k,ek1);
      |                 ^~~~~~~~~~~
cfs_mkdir.c:155:13: warning: implicit declaration of function 'mkdir' [-Wimplicit-function-declaration]
  155 |         if (mkdir(argv[0],0777)<0) {
      |             ^~~~~
cfs_mkdir.c:162:13: warning: implicit declaration of function 'trand32' [-Wimplicit-function-declaration]
  162 |         r = trand32();
      |             ^~~~~~~
cfs_mkdir.c:165:9: warning: implicit declaration of function 'copykey' [-Wimplicit-function-declaration]
  165 |         copykey(&k,&kt);
      |         ^~~~~~~
cfs_mkdir.c:166:9: warning: implicit declaration of function 'cipher' [-Wimplicit-function-declaration]
  166 |         cipher(&kt,str,0);
      |         ^~~~~~
gcc -c truerand.c
gcc cfs_mkdir.o cfs_des.o cfs_cipher.o getpass.o adm.o ver.o mcg.o  cfs_bfenc.o cfs_bfsk.o mcgsbox.o safer.o shs.o truerand.o   -o cfs_mkdir
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DPROTOTYPES=1 -DSOLARIS2X -DPORTMAP -DPTMX -Dnfsproc_null_2_svc=nfsproc_null_2             -Dnfsproc_getattr_2_svc=nfsproc_getattr_2               -Dnfsproc_setattr_2_svc=nfsproc_setattr_2               -Dnfsproc_root_2_svc=nfsproc_root_2             -Dnfsproc_lookup_2_svc=nfsproc_lookup_2         -Dnfsproc_readlink_2_svc=nfsproc_readlink_2             -Dnfsproc_read_2_svc=nfsproc_read_2             -Dnfsproc_writecache_2_svc=nfsproc_writecache_2         -Dnfsproc_write_2_svc=nfsproc_write_2           -Dnfsproc_create_2_svc=nfsproc_create_2         -Dnfsproc_remove_2_svc=nfsproc_remove_2         -Dnfsproc_rename_2_svc=nfsproc_rename_2         -Dnfsproc_link_2_svc=nfsproc_link_2             -Dnfsproc_symlink_2_svc=nfsproc_symlink_2               -Dnfsproc_mkdir_2_svc=nfsproc_mkdir_2           -Dnfsproc_rmdir_2_svc=nfsproc_rmdir_2           -Dnfsproc_readdir_2_svc=nfsproc_readdir_2               -Dnfsproc_statfs_2_svc=nfsproc_statfs_2         -Dadmproc_null_1_svc=admproc_null_1             -Dadmproc_attach_1_svc=admproc_attach_1         -Dadmproc_detach_1_svc=admproc_detach_1         -Dadmproc_ls_1_svc=admproc_ls_1                   -c cfs_detach.c
cfs_detach.c:27:1: warning: return type defaults to 'int' [-Wimplicit-int]
   27 | main(argc,argv)
      | ^~~~
cfs_detach.c: In function 'main':
cfs_detach.c:43:63: warning: passing argument 6 of 'callrpc' from incompatible pointer type [-Wincompatible-pointer-types]
   43 |                             ADMPROC_DETACH,xdr_cfs_detachargs,&ap,
      |                                                               ^~~
      |                                                               |
      |                                                               cfs_detachargs *
In file included from /usr/include/rpc/clnt.h:1107,
                 from /usr/include/rpc/rpc.h:60,
                 from cfs_detach.c:22:
/usr/include/rpc/clnt_soc.h:69:72: note: expected 'char *' but argument is of type 'cfs_detachargs *'
   69 | extern int callrpc(char *, rpcprog_t, rpcvers_t, rpcproc_t, xdrproc_t, char *,
      |                                                                        ^~~~~~
cfs_detach.c:44:41: warning: passing argument 8 of 'callrpc' from incompatible pointer type [-Wincompatible-pointer-types]
   44 |                             xdr_cfsstat,&ret)) !=0) {
      |                                         ^~~~
      |                                         |
      |                                         cfsstat *
/usr/include/rpc/clnt_soc.h:70:16: note: expected 'char *' but argument is of type 'cfsstat *'
   70 |     xdrproc_t, char *);
      |                ^~~~~~
gcc cfs_detach.o adm.o admproto_clnt.o admproto_xdr.o  ver.o -lsocket -lnsl -o cfs_detach
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DPROTOTYPES=1 -DSOLARIS2X -DPORTMAP -DPTMX -Dnfsproc_null_2_svc=nfsproc_null_2             -Dnfsproc_getattr_2_svc=nfsproc_getattr_2               -Dnfsproc_setattr_2_svc=nfsproc_setattr_2               -Dnfsproc_root_2_svc=nfsproc_root_2             -Dnfsproc_lookup_2_svc=nfsproc_lookup_2         -Dnfsproc_readlink_2_svc=nfsproc_readlink_2             -Dnfsproc_read_2_svc=nfsproc_read_2             -Dnfsproc_writecache_2_svc=nfsproc_writecache_2         -Dnfsproc_write_2_svc=nfsproc_write_2           -Dnfsproc_create_2_svc=nfsproc_create_2         -Dnfsproc_remove_2_svc=nfsproc_remove_2         -Dnfsproc_rename_2_svc=nfsproc_rename_2         -Dnfsproc_link_2_svc=nfsproc_link_2             -Dnfsproc_symlink_2_svc=nfsproc_symlink_2               -Dnfsproc_mkdir_2_svc=nfsproc_mkdir_2           -Dnfsproc_rmdir_2_svc=nfsproc_rmdir_2           -Dnfsproc_readdir_2_svc=nfsproc_readdir_2               -Dnfsproc_statfs_2_svc=nfsproc_statfs_2         -Dadmproc_null_1_svc=admproc_null_1             -Dadmproc_attach_1_svc=admproc_attach_1         -Dadmproc_detach_1_svc=admproc_detach_1         -Dadmproc_ls_1_svc=admproc_ls_1                   -c cfs_name.c
cfs_name.c:36:1: warning: return type defaults to 'int' [-Wimplicit-int]
   36 | main(argc,argv)
      | ^~~~
cfs_name.c: In function 'main':
cfs_name.c:89:13: warning: implicit declaration of function 'old_pwcrunch' [-Wimplicit-function-declaration]
   89 |         if (old_pwcrunch(pw,&k)!=0) {
      |             ^~~~~~~~~~~~
cfs_name.c:93:9: warning: implicit declaration of function 'copykey' [-Wimplicit-function-declaration]
   93 |         copykey(&k,&kt);
      |         ^~~~~~~
cfs_name.c:100:9: warning: implicit declaration of function 'genmasks' [-Wimplicit-function-declaration]
  100 |         genmasks(&kt);
      |         ^~~~~~~~
cfs_name.c:107:37: warning: implicit declaration of function 'printable' [-Wimplicit-function-declaration]
  107 |                 if ((cstr!=NULL) && printable(cstr))
      |                                     ^~~~~~~~~
gcc cfs_name.o getpass.o cfs_des.o cfs_cipher.o cfs_adm.o cfs_fh.o  cfs_nfs.o ver.o mcg.o mcgsbox.o cfs_bfenc.o cfs_bfsk.o safer.o  shs.o -lsocket -lnsl  -o cfs_name
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DPROTOTYPES=1 -DSOLARIS2X -DPORTMAP -DPTMX -Dnfsproc_null_2_svc=nfsproc_null_2             -Dnfsproc_getattr_2_svc=nfsproc_getattr_2               -Dnfsproc_setattr_2_svc=nfsproc_setattr_2               -Dnfsproc_root_2_svc=nfsproc_root_2             -Dnfsproc_lookup_2_svc=nfsproc_lookup_2         -Dnfsproc_readlink_2_svc=nfsproc_readlink_2             -Dnfsproc_read_2_svc=nfsproc_read_2             -Dnfsproc_writecache_2_svc=nfsproc_writecache_2         -Dnfsproc_write_2_svc=nfsproc_write_2           -Dnfsproc_create_2_svc=nfsproc_create_2         -Dnfsproc_remove_2_svc=nfsproc_remove_2         -Dnfsproc_rename_2_svc=nfsproc_rename_2         -Dnfsproc_link_2_svc=nfsproc_link_2             -Dnfsproc_symlink_2_svc=nfsproc_symlink_2               -Dnfsproc_mkdir_2_svc=nfsproc_mkdir_2           -Dnfsproc_rmdir_2_svc=nfsproc_rmdir_2           -Dnfsproc_readdir_2_svc=nfsproc_readdir_2               -Dnfsproc_statfs_2_svc=nfsproc_statfs_2         -Dadmproc_null_1_svc=admproc_null_1             -Dadmproc_attach_1_svc=admproc_attach_1         -Dadmproc_detach_1_svc=admproc_detach_1         -Dadmproc_ls_1_svc=admproc_ls_1                   -c cfs_cat.c
cfs_cat.c:41:1: warning: return type defaults to 'int' [-Wimplicit-int]
   41 | main(argc,argv)
      | ^~~~
cfs_cat.c: In function 'main':
cfs_cat.c:97:13: warning: implicit declaration of function 'old_pwcrunch' [-Wimplicit-function-declaration]
   97 |         if (old_pwcrunch(pw,&k)!=0) {
      |             ^~~~~~~~~~~~
cfs_cat.c:101:9: warning: implicit declaration of function 'copykey' [-Wimplicit-function-declaration]
  101 |         copykey(&k,&kt);
      |         ^~~~~~~
cfs_cat.c:108:9: warning: implicit declaration of function 'genmasks' [-Wimplicit-function-declaration]
  108 |         genmasks(&kt);
      |         ^~~~~~~~
cfs_cat.c:125:21: warning: implicit declaration of function 'flen' [-Wimplicit-function-declaration]
  125 |                 len=flen(fd);
      |                     ^~~~
cfs_cat.c:131:29: warning: implicit declaration of function 'readblock'; did you mean 'readlink'? [-Wimplicit-function-declaration]
  131 |                         siz=readblock(buf,fd,offset,siz,&kt,iv);
      |                             ^~~~~~~~~
      |                             readlink
cfs_cat.c: At top level:
cfs_cat.c:138:1: warning: return type defaults to 'int' [-Wimplicit-int]
  138 | flen(fd)
      | ^~~~
cfs_cat.c: In function 'flen':
cfs_cat.c:145:16: warning: implicit declaration of function 'dtov' [-Wimplicit-function-declaration]
  145 |         return dtov(sb.st_size);
      |                ^~~~
gcc cfs_cat.o getpass.o cfs_des.o cfs_cipher.o cfs_adm.o cfs_fh.o  cfs_bfenc.o cfs_bfsk.o cfs_nfs.o ver.o mcg.o mcgsbox.o shs.o  safer.o -lsocket -lnsl  -o cfs_cat
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DPROTOTYPES=1 -DSOLARIS2X -DPORTMAP -DPTMX -Dnfsproc_null_2_svc=nfsproc_null_2             -Dnfsproc_getattr_2_svc=nfsproc_getattr_2               -Dnfsproc_setattr_2_svc=nfsproc_setattr_2               -Dnfsproc_root_2_svc=nfsproc_root_2             -Dnfsproc_lookup_2_svc=nfsproc_lookup_2         -Dnfsproc_readlink_2_svc=nfsproc_readlink_2             -Dnfsproc_read_2_svc=nfsproc_read_2             -Dnfsproc_writecache_2_svc=nfsproc_writecache_2         -Dnfsproc_write_2_svc=nfsproc_write_2           -Dnfsproc_create_2_svc=nfsproc_create_2         -Dnfsproc_remove_2_svc=nfsproc_remove_2         -Dnfsproc_rename_2_svc=nfsproc_rename_2         -Dnfsproc_link_2_svc=nfsproc_link_2             -Dnfsproc_symlink_2_svc=nfsproc_symlink_2               -Dnfsproc_mkdir_2_svc=nfsproc_mkdir_2           -Dnfsproc_rmdir_2_svc=nfsproc_rmdir_2           -Dnfsproc_readdir_2_svc=nfsproc_readdir_2               -Dnfsproc_statfs_2_svc=nfsproc_statfs_2         -Dadmproc_null_1_svc=admproc_null_1             -Dadmproc_attach_1_svc=admproc_attach_1         -Dadmproc_detach_1_svc=admproc_detach_1         -Dadmproc_ls_1_svc=admproc_ls_1                   -c cfs_passwd.c
cfs_passwd.c:29:1: warning: return type defaults to 'int' [-Wimplicit-int]
   29 | main(argc,argv)
      | ^~~~
cfs_passwd.c: In function 'main':
cfs_passwd.c:117:13: warning: implicit declaration of function 'new_pwcrunch' [-Wimplicit-function-declaration]
  117 |         if (new_pwcrunch(pw,&oldkey)!=0) {
      |             ^~~~~~~~~~~~
cfs_passwd.c:121:9: warning: implicit declaration of function 'decrypt_key' [-Wimplicit-function-declaration]
  121 |         decrypt_key(&oldkey,ekey);
      |         ^~~~~~~~~~~
cfs_passwd.c:122:14: warning: implicit declaration of function 'checkkey' [-Wimplicit-function-declaration]
  122 |         if (!checkkey(dir,&oldkey)) {
      |              ^~~~~~~~
cfs_passwd.c:152:9: warning: implicit declaration of function 'encrypt_key' [-Wimplicit-function-declaration]
  152 |         encrypt_key(&newkey,ekey);
      |         ^~~~~~~~~~~
cfs_passwd.c: At top level:
cfs_passwd.c:177:1: warning: return type defaults to 'int' [-Wimplicit-int]
  177 | checkkey(path,ak)
      | ^~~~~~~~
cfs_passwd.c: In function 'checkkey':
cfs_passwd.c:186:9: warning: implicit declaration of function 'copykey' [-Wimplicit-function-declaration]
  186 |         copykey(ak,&k);
      |         ^~~~~~~
cfs_passwd.c:195:9: warning: implicit declaration of function 'cipher' [-Wimplicit-function-declaration]
  195 |         cipher(&k,buf,1);        /* note order here */
      |         ^~~~~~
gcc cfs_passwd.o cfs_des.o cfs_cipher.o getpass.o ver.o mcg.o  mcgsbox.o cfs_bfenc.o cfs_bfsk.o safer.o shs.o  truerand.o   -o cfs_passwd