Article View: news.software.nn
Article #784nn6.4 changes for convex systems
From: Ray Davis
Date: Tue, 07 Aug 1990 15:08
Date: Tue, 07 Aug 1990 15:08
216 lines
7451 bytes
7451 bytes
At Convex, I have built and installed nn6.4 with patches 1-9. It
is currently installed on 33 Convex mini-super and super computers
(talk about "blindingly fast", Kim B-)), under ConvexOS 7.1, 8.0,
8.1 and 9.0 (beta). I built it under 8.1 (CCOPTIONS=-pcc). The
environment is one gateway system running nnmaster with the
database on an nfs server. Man pages, help files and online
manual are also on this nfs server. Articles and posting is done
with NNTP to the gateway server (using an nntp inews that came
with rn).
I have to say that I'm totally impressed with the quality of this
software. Building and installing it was trivial, considering
the complexity. Thanks to Kim and all other contributors!
The context diffs between the original nn 6.4 code with patches
1-9 applied, and my convex changes, as well as my config.h are
available from me via email.
My changes:
Added PATH_HOSTNAME to config.h and answer.c to force the
hostname in the Path: header line to be what's defined. This
is useful for multi-machine sites with one mail/news gateway.
SITES NOT AT CONVEX HQ IN DALLAS SHOULD CHANGE/UNDEF THIS!
Added 'edt' as a possible editor in aux.sh, since convex
supports it.
Only comment changes to conf/m-convex.h.
Changes to global.c and global.h to support convex uid, gid and
pid typesets, and get[ugp]id() declarations.
The diffs in inst.sh and xmakefile must have been generated
by making nn, as I didn't make any.
Ray Davis
Convex Computer GmbH, Frankfurt, West Germany
unido!connie!rdavis, uunet!convex!rdavis, rdavis@convex.com, +49-69-666-8081
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
*** nn_original_patch1-9/answer.c Tue Aug 7 15:39:46 1990
--- answer.c Wed Aug 1 18:14:32 1990
***************
*** 71,77 ****
--- 71,81 ----
now = cur_time();
date = asctime(gmtime(&now));
date[3] = date[7] = date[10] = date[19] = date[24] = NUL;
+ #ifdef PATH_HOSTNAME
+ strncpy(host, PATH_HOSTNAME, 64);
+ #else PATH_HOSTNAME
gethostname(host, 64);
+ #endif PATH_HOSTNAME
fprintf(t, "Path: %s!%s\n", host, user_name());
fprintf(t, "Date: %s %s %s %s GMT\n", date+8, date+4, date+22, date+11);
*** nn_original_patch1-9/aux.sh Tue Aug 7 15:36:05 1990
--- aux.sh Wed Jul 25 16:52:41 1990
***************
*** 142,147 ****
--- 142,151 ----
# call editor to enter at line $ED_LINE of work file
case `basename "${EDITOR-vi}"` in
+ edt)
+ # Convex edt editor
+ $EDITOR $WORK
+ ;;
vi|emacs|emacsclient )
# Berkeley vi display editor
# GNU emacs disply editor
*** nn_original_patch1-9/conf/m-convex.h Mon Apr 23 19:32:53 1990
--- conf/m-convex.h Thu May 24 15:44:05 1990
***************
*** 1,12 ****
/************** Machine (and compiler) dependent definitions. **************
*
! * Define appropriate types for the following ranges of integer
! * variables. These are processor & compiler dependent, but the
! * distributed definitions will probably work on most systems.
*/
-
-
/* MACHINE TYPE DEFINED TYPE VALUE RANGE */
typedef unsigned char int8; /* 0 .. 255 */
--- 1,8 ----
/************** Machine (and compiler) dependent definitions. **************
*
! * For CONVEX C1 and C2 series supercomputers.
*/
/* MACHINE TYPE DEFINED TYPE VALUE RANGE */
typedef unsigned char int8; /* 0 .. 255 */
***************
*** 13,19 ****
typedef short int16; /* -10,000 .. 10,000 */
typedef long int32; /* -100,000 .. 100,000 */
typedef unsigned long uint32; /* 0 .. 2^31-1 */
-
/*
* Define NO_VARARGS if the varargs feature is not available
--- 9,14 ----
*** nn_original_patch1-9/global.c Tue Aug 7 15:39:55 1990
--- global.c Wed Jul 25 17:29:01 1990
***************
*** 39,47 ****
export char version_id[32];
! export unsigned short user_eid;
export unsigned short user_id, group_id;
export int process_id;
export int who_am_i;
export int dont_write_console = 0;
--- 39,54 ----
export char version_id[32];
! #ifdef convex
! export uid_t user_eid;
! export uid_t user_id;
! export gid_t group_id;
! export pid_t process_id;
! #else convex
! export unsigned short user_eid
export unsigned short user_id, group_id;
export int process_id;
+ #endif convex
export int who_am_i;
export int dont_write_console = 0;
***************
*** 152,159 ****
--- 159,170 ----
init_global()
{
+ #ifdef convex
+ /* defined in unistd.h */
+ #else convex
unsigned short getuid(), getgid();
int getpid();
+ #endif convex
int suspend_nn();
int i;
*** nn_original_patch1-9/global.h Tue Aug 7 15:33:08 1990
--- global.h Wed Jul 25 16:50:44 1990
***************
*** 153,158 ****
--- 153,167 ----
#define I_AM_EXPIRE 11
#define I_AM_ACCT 12
+ #ifdef convex
+ extern uid_t /* as they are on POSIX systems... */
+ user_id;
+ extern gid_t
+ group_id;
+
+ extern pid_t
+ process_id;
+ #else convex
extern unsigned short /* as they are on most systems... */
user_id,
group_id;
***************
*** 159,164 ****
--- 168,174 ----
extern int
process_id;
+ #endif convex
extern int errno;
*** nn_original_patch1-9/inst.sh Tue Aug 7 15:37:13 1990
--- inst.sh Wed Jul 25 16:55:04 1990
***************
*** 333,338 ****
--- 333,341 ----
} |
while read DIR SECT SRC
do
+
+ # bsd4.2 test ([) says -w must be a file...
+ # if [ -d "$DIR"/. -a -w "$DIR"/. ]
if [ -d "$DIR"/. ]
then
for i in man/*$SRC
*** nn_original_patch1-9/xmakefile Tue Aug 7 15:31:54 1990
--- xmakefile Wed Jul 25 16:45:57 1990
***************
*** 68,74 ****
pack_date.o pack_name.o pack_subject.o news.o digest.o
NN = nn.o admin.o proto.o global.o options.o db.o nntp.o \
! init.o variable.o term.o keymap.o macro.o regexp.o \
menu.o more.o newsrc.o group.o folder.o dir.o \
sort.o articles.o sequence.o kill.o active.o fullname.o \
answer.o reroute.o hostname.o save.o unshar.o decode.o execute.o \
--- 68,74 ----
pack_date.o pack_name.o pack_subject.o news.o digest.o
NN = nn.o admin.o proto.o global.o options.o db.o nntp.o \
! init.o variable.o term.o ualarm.o keymap.o macro.o regexp.o \
menu.o more.o newsrc.o group.o folder.o dir.o \
sort.o articles.o sequence.o kill.o active.o fullname.o \
answer.o reroute.o hostname.o save.o unshar.o decode.o execute.o \
Technical Details
Message-ID:
<rdavis.650041714@connie.convex.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!gmdzi!unido!mcsun!sunic!uupsi!rpi!zaphod.mps.ohio-state.edu!usc!cs.utexas.edu!uunet!convex!connie!rdavisShow Full Headers
Complete Article Headers
Message-ID: <rdavis.650041714@connie.convex.com> Subject: nn6.4 changes for convex systems Date: Tue, 07 Aug 1990 15:08:34 +0000 From: rdavis@connie.UUCP (Ray Davis) Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!gmdzi!unido!mcsun!sunic!uupsi!rpi!zaphod.mps.ohio-state.edu!usc!cs.utexas.edu!uunet!convex!connie!rdavis Newsgroups: news.software.nn Summary: changes made to nn 6.4 for convex computers Keywords: nn, convex Sender: usenet@convex.com Distribution: news Organization: CONVEX Computer GmbH Frankfurt Lines: 216 Posted: Tue Aug 7 16:08:34 1990