diff options
author | obrien <obrien@FreeBSD.org> | 1999-11-05 11:58:05 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 1999-11-05 11:58:05 +0000 |
commit | 2f57d4d4dfd12d08cc75df095d5135c647015e2d (patch) | |
tree | be3182943f82a2deb288715638b95c84bd9b4cf2 /contrib/amd | |
parent | 26b8629f85a5f42a111a8d2bab4e1576a2f27a5d (diff) | |
download | FreeBSD-src-2f57d4d4dfd12d08cc75df095d5135c647015e2d.zip FreeBSD-src-2f57d4d4dfd12d08cc75df095d5135c647015e2d.tar.gz |
Fix conflicts.
Diffstat (limited to 'contrib/amd')
-rw-r--r-- | contrib/amd/amd/amd.c | 18 | ||||
-rw-r--r-- | contrib/amd/amd/get_args.c | 4 | ||||
-rw-r--r-- | contrib/amd/include/am_defs.h | 5 |
3 files changed, 23 insertions, 4 deletions
diff --git a/contrib/amd/amd/amd.c b/contrib/amd/amd/amd.c index 191a5e1..07022e7 100644 --- a/contrib/amd/amd/amd.c +++ b/contrib/amd/amd/amd.c @@ -38,7 +38,7 @@ * * %W% (Berkeley) %G% * - * $Id: amd.c,v 1.5 1999/02/04 07:24:14 ezk Exp $ + * $Id: amd.c,v 1.6 1999/09/30 21:01:29 ezk Exp $ * $FreeBSD$ * */ @@ -249,6 +249,12 @@ init_global_options(void) /* OS version */ gopt.op_sys_ver = HOST_OS_VERSION; + /* full OS name and version */ + gopt.op_sys_full = HOST_OS; + + /* OS version */ + gopt.op_sys_vendor = HOST_VENDOR; + /* pid file */ gopt.pid_file = "/dev/stdout"; @@ -499,6 +505,16 @@ main(int argc, char *argv[]) */ #ifdef HAVE_PLOCK if (gopt.flags & CFM_PROCESS_LOCK) { +# ifdef _AIX + /* + * On AIX you must lower the stack size using ulimit() before calling + * plock. Otherwise plock will reserve a lot of memory space based on + * your maximum stack size limit. Since it is not easily possible to + * tell what should the limit be, I print a warning before calling + * plock(). See the manual pages for ulimit(1,3,4) on your AIX system. + */ + plog(XLOG_WARNING, "AIX: may need to lower stack size using ulimit(3) before calling plock"); +# endif /* _AIX */ if (plock(PROCLOCK) != 0) { plog(XLOG_WARNING, "Couldn't lock process text and data segment in memory: %m"); } else { diff --git a/contrib/amd/amd/get_args.c b/contrib/amd/amd/get_args.c index 37ca84a..a5f5a4b 100644 --- a/contrib/amd/amd/get_args.c +++ b/contrib/amd/amd/get_args.c @@ -38,7 +38,7 @@ * * %W% (Berkeley) %G% * - * $Id: get_args.c,v 1.3 1999/01/10 21:53:45 ezk Exp $ + * $Id: get_args.c,v 1.4 1999/09/30 21:01:31 ezk Exp $ * $FreeBSD$ * */ @@ -100,7 +100,7 @@ get_version_string(void) cpu, endian, gopt.arch, gopt.karch); strcat(vers, tmpbuf); sprintf(tmpbuf, "full_os=%s, os=%s, osver=%s, vendor=%s.\n", - HOST_OS, gopt.op_sys, gopt.op_sys_ver, HOST_VENDOR); + gopt.op_sys_full, gopt.op_sys, gopt.op_sys_ver, gopt.op_sys_vendor); strcat(vers, tmpbuf); strcat(vers, "Map support for: "); diff --git a/contrib/amd/include/am_defs.h b/contrib/amd/include/am_defs.h index 66f08b9..36c695e 100644 --- a/contrib/amd/include/am_defs.h +++ b/contrib/amd/include/am_defs.h @@ -1381,11 +1381,14 @@ extern u_int ualarm(u_int usecs, u_int interval); extern int wait3(int *statusp, int options, struct rusage *rusage); #endif /* defined(HAVE_WAIT3) && !defined(HAVE_EXTERN_WAIT3) */ +#if defined(HAVE_VSNPRINTF) && !defined(HAVE_EXTERN_VSNPRINTF) +extern int vsnprintf(char *, int, const char *, ...); +#endif /* defined(HAVE_VSNPRINTF) && !defined(HAVE_EXTERN_VSNPRINTF) */ + #ifndef HAVE_EXTERN_XDR_OPAQUE_AUTH extern bool_t xdr_opaque_auth(XDR *xdrs, struct opaque_auth *auth); #endif /* not HAVE_EXTERN_XDR_OPAQUE_AUTH */ - /****************************************************************************/ /* * amd-specific header files. |