* m4/macros/header_templates.m4: template for sleep(3) extern.
* configure.in: check for extern for sleep(3), which is missing
from some old (and buggy) versions of gcc's fixinc'ed headers.
* conf/nfs_prot/nfs_prot_aix4_3.h: update definition of struct
nfs_args from actual system headers.
* conf/mount/mount_aix.c (mount_aix3): fix name of aix4 "bis"
structure.
+2005-06-23 Erez Zadok <ezk@cs.sunysb.edu>
+
+ * include/am_defs.h: define extern for sleep(3) if needed.
+
+ * m4/macros/header_templates.m4: template for sleep(3) extern.
+
+ * configure.in: check for extern for sleep(3), which is missing
+ from some old (and buggy) versions of gcc's fixinc'ed headers.
+
+ * conf/nfs_prot/nfs_prot_aix4_3.h: update definition of struct
+ nfs_args from actual system headers.
+
+ * conf/mount/mount_aix.c (mount_aix3): fix name of aix4 "bis"
+ structure.
+
2005-06-22 Erez Zadok <ezk@cs.sunysb.edu>
* BUGS: update Solaris information about use of f/lex and
*
* %W% (Berkeley) %G%
*
- * $Id: mount_aix.c,v 1.13 2005/01/03 20:56:45 ezk Exp $
+ * $Id: mount_aix.c,v 1.14 2005/06/23 20:02:40 ezk Exp $
*
*/
struct nfs_args v2args;
nfs_args_t *v3args = (nfs_args_t *) data;
#ifdef MOUNT_TYPE_NFS3_BIS
- struct aix42_nfs_args_bis v3args_bis;
+ struct aix4_nfs_args_bis v3args_bis;
#endif /* MOUNT_TYPE_NFS3_BIS */
#endif /* HAVE_FS_NFS3 */
* SUCH DAMAGE.
*
*
- * $Id: nfs_prot_aix4_3.h,v 1.13 2005/01/16 23:59:25 ezk Exp $
+ * $Id: nfs_prot_aix4_3.h,v 1.14 2005/06/23 20:02:40 ezk Exp $
*
*/
*/
#ifdef MNT_NFS3
+struct aix4_nfs_args {
+ struct sockaddr_in addr; /* file server address */
+ struct sockaddr_in *syncaddr; /* secure NFS time sync addr */
+ int proto; /* IPPROTO_TCP/IPPROTO_UDP ??? */
+ char *hostname; /* server's hostname */
+ char *netname; /* server's netname */
+ caddr_t fh; /* File handle to be mounted */
+ int flags; /* flags */
+ int wsize; /* write size in bytes */
+ int rsize; /* read size in bytes */
+ int timeo; /* initial timeout in .1 secs */
+ int retrans; /* times to retry send */
+ int acregmin; /* attr cache file min secs */
+ int acregmax; /* attr cache file max secs */
+ int acdirmin; /* attr cache dir min secs */
+ int acdirmax; /* attr cache dir max secs */
+ struct ppathcnf *pathconf; /* static pathconf kludge */
+ int biods; /* biods per mount */
+ int numclust; /* numclust per mount */
+};
+
+#if 0
+/* old structure we hand crafted. no longer needed */
struct aix4_nfs_args {
struct sockaddr_in addr; /* server address and port */
caddr_t u0; /* ??? UNKNOWN ??? */
unsigned long u14; /* ??? UNKNOWN ??? */
struct pathcnf *pathconf; /* pathconf */
};
+#endif
/*
* IBM is in dire need of taking a soft-eng class.
dnl
dnl AC_CONFIG_AUX_DIR(m4)
AC_PREREQ(2.52)
-AC_REVISION($Revision: 1.97 $)
+AC_REVISION($Revision: 1.98 $)
AC_COPYRIGHT([Copyright (c) 1997-2005 Erez Zadok])
dnl find out system type
AC_MSG_NOTICE(*** SYSTEM TYPES ***)
sbrk \
seteuid \
setitimer \
+ sleep \
strcasecmp \
strdup \
strlcpy \
* SUCH DAMAGE.
*
*
- * $Id: am_defs.h,v 1.58 2005/05/28 16:44:42 ezk Exp $
+ * $Id: am_defs.h,v 1.59 2005/06/23 20:02:40 ezk Exp $
*
*/
extern int setitimer(int, struct itimerval *, struct itimerval *);
#endif /* defined(HAVE_SETITIMER) && !defined(HAVE_EXTERN_SETITIMER) */
+#ifndef HAVE_EXTERN_SLEEP
+extern unsigned int sleep(unsign int seconds);
+#endif /* not HAVE_EXTERN_SETITIMER */
+
#ifndef HAVE_EXTERN_STRCASECMP
/*
* define this extern even if function does not exist, for it will
AH_TEMPLATE([HAVE_EXTERN_SETITIMER],
[does extern definition for setitimer() exist?])
+AH_TEMPLATE([HAVE_EXTERN_SLEEP],
+[does extern definition for sleep() exist?])
+
AH_TEMPLATE([HAVE_EXTERN_STRCASECMP],
[does extern definition for strcasecmp() exist?])