🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sun
Article #7993

A_TSIZE, A_SSIZE, A_USIZE, too small for modern systems

#7993
From: bugs
Date: Tue, 04 Jun 1991 18:40
43 lines
2139 bytes
Serial Number:  018E0352
Machine Type:   Sun 4/490
O/S Version:    SunOS 4.1.1
Organization:   Computer Science Department, The Pennsylvania State University
                333 Whitmore Laboratory, University Park, PA   16802
Phone Number:   +1 814 865 9505

Description:
	The constants A_TSIZE, A_SSIZE, A_USIZE are too small for modern
	system.  Thus the accounting software will abort whne these limits
	are exceeded.

Repeat-By:
	Run accounting on a system with more than 128 tty/pty lines.

Fix:
	Apply the foloowing patch to usr/lib/acctdef.h and recompile the
	accounting software.  These really should be dynamically allocated.

	SCCS/s.acctdef.h: 1.1 vs. 1.2
	*** /tmp/geta15140	Fri May 10 14:59:34 1991
	--- /tmp/getb15140	Fri May 10 14:59:35 1991
	***************
	*** 32,40 ****
	  /*
	   *	limits which may have to be increased if systems get larger
	   */
	! #define A_SSIZE	1000	/* max number of sessions in 1 acct run */
	! #define A_TSIZE	128	/* max number of line names in 1 acct run */
	! #define A_USIZE	500	/* max number of distinct login names in 1 acct run */

	  #define EQN(s1, s2)	(strncmp(s1, s2, sizeof(s1)) == 0)
	  #define CPYN(s1, s2)	strncpy(s1, s2, sizeof(s1))
	--- 32,40 ----
	  /*
	   *	limits which may have to be increased if systems get larger
	   */
	! #define A_SSIZE	4096	/* max number of sessions in 1 acct run */
	! #define A_TSIZE	1024	/* max number of line names in 1 acct run */
	! #define A_USIZE	4096	/* max number of distinct login names in 1 acct run */

	  #define EQN(s1, s2)	(strncmp(s1, s2, sizeof(s1)) == 0)
	  #define CPYN(s1, s2)	strncpy(s1, s2, sizeof(s1))
Technical Details
Message-ID: <3102@brchh104.bnr.ca>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!cunews!bnrgate!brchh104!brchs1!bnr.ca!rice.edu!sun-spots-request

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!cunews!bnrgate!brchh104!brchs1!bnr.ca!rice.edu!sun-spots-request
From: bugs@cs.psu.edu
Newsgroups: comp.sys.sun
Subject: A_TSIZE, A_SSIZE, A_USIZE, too small for modern systems
Keywords: No Digest Subjects in Unmoderated Mode
Message-ID: <3102@brchh104.bnr.ca>
Date: 4 Jun 91 18:40:00 GMT
Sender: news@brchh104.bnr.ca
Organization: Sunspots, Psuedo-Unmoderated
Lines: 44
Approved: sun-spots@rice.edu
X-Original-Date:    Fri, 10 May 91 15:05:02 EDT