amd.c (51300) | amd.c (52897) |
---|---|
1/* 2 * Copyright (c) 1997-1999 Erez Zadok 3 * Copyright (c) 1989 Jan-Simon Pendry 4 * Copyright (c) 1989 Imperial College of Science, Technology & Medicine 5 * Copyright (c) 1989 The Regents of the University of California. 6 * All rights reserved. 7 * 8 * This code is derived from software contributed to Berkeley by --- 24 unchanged lines hidden (view full) --- 33 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 34 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 35 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 36 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 37 * SUCH DAMAGE. 38 * 39 * %W% (Berkeley) %G% 40 * | 1/* 2 * Copyright (c) 1997-1999 Erez Zadok 3 * Copyright (c) 1989 Jan-Simon Pendry 4 * Copyright (c) 1989 Imperial College of Science, Technology & Medicine 5 * Copyright (c) 1989 The Regents of the University of California. 6 * All rights reserved. 7 * 8 * This code is derived from software contributed to Berkeley by --- 24 unchanged lines hidden (view full) --- 33 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 34 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 35 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 36 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 37 * SUCH DAMAGE. 38 * 39 * %W% (Berkeley) %G% 40 * |
41 * $Id: amd.c,v 1.5 1999/02/04 07:24:14 ezk Exp $ 42 * $FreeBSD: head/contrib/amd/amd/amd.c 51300 1999-09-15 05:45:17Z obrien $ | 41 * $Id: amd.c,v 1.6 1999/09/30 21:01:29 ezk Exp $ 42 * $FreeBSD: head/contrib/amd/amd/amd.c 52897 1999-11-05 11:58:05Z obrien $ |
43 * 44 */ 45 46/* 47 * Automounter 48 */ 49 50#ifdef HAVE_CONFIG_H --- 193 unchanged lines hidden (view full) --- 244 gopt.logfile = NULL; 245 246 /* operating system name */ 247 gopt.op_sys = HOST_OS_NAME; 248 249 /* OS version */ 250 gopt.op_sys_ver = HOST_OS_VERSION; 251 | 43 * 44 */ 45 46/* 47 * Automounter 48 */ 49 50#ifdef HAVE_CONFIG_H --- 193 unchanged lines hidden (view full) --- 244 gopt.logfile = NULL; 245 246 /* operating system name */ 247 gopt.op_sys = HOST_OS_NAME; 248 249 /* OS version */ 250 gopt.op_sys_ver = HOST_OS_VERSION; 251 |
252 /* full OS name and version */ 253 gopt.op_sys_full = HOST_OS; 254 255 /* OS version */ 256 gopt.op_sys_vendor = HOST_VENDOR; 257 |
|
252 /* pid file */ 253 gopt.pid_file = "/dev/stdout"; 254 255 /* local domain */ 256 gopt.sub_domain = NULL; 257 258 /* NFS retransmit counter */ 259 gopt.amfs_auto_retrans = -1; --- 234 unchanged lines hidden (view full) --- 494 going_down(1); 495 } 496 497 /* 498 * Lock process text and data segment in memory. 499 */ 500#ifdef HAVE_PLOCK 501 if (gopt.flags & CFM_PROCESS_LOCK) { | 258 /* pid file */ 259 gopt.pid_file = "/dev/stdout"; 260 261 /* local domain */ 262 gopt.sub_domain = NULL; 263 264 /* NFS retransmit counter */ 265 gopt.amfs_auto_retrans = -1; --- 234 unchanged lines hidden (view full) --- 500 going_down(1); 501 } 502 503 /* 504 * Lock process text and data segment in memory. 505 */ 506#ifdef HAVE_PLOCK 507 if (gopt.flags & CFM_PROCESS_LOCK) { |
508# ifdef _AIX 509 /* 510 * On AIX you must lower the stack size using ulimit() before calling 511 * plock. Otherwise plock will reserve a lot of memory space based on 512 * your maximum stack size limit. Since it is not easily possible to 513 * tell what should the limit be, I print a warning before calling 514 * plock(). See the manual pages for ulimit(1,3,4) on your AIX system. 515 */ 516 plog(XLOG_WARNING, "AIX: may need to lower stack size using ulimit(3) before calling plock"); 517# endif /* _AIX */ |
|
502 if (plock(PROCLOCK) != 0) { 503 plog(XLOG_WARNING, "Couldn't lock process text and data segment in memory: %m"); 504 } else { 505 plog(XLOG_INFO, "Locked process text and data segment in memory"); 506 } 507 } 508#endif /* HAVE_PLOCK */ 509 --- 32 unchanged lines hidden --- | 518 if (plock(PROCLOCK) != 0) { 519 plog(XLOG_WARNING, "Couldn't lock process text and data segment in memory: %m"); 520 } else { 521 plog(XLOG_INFO, "Locked process text and data segment in memory"); 522 } 523 } 524#endif /* HAVE_PLOCK */ 525 --- 32 unchanged lines hidden --- |