[182] in The Cryptographic File System users list

home help back first fref pref prev next nref lref last post

[PATCH] POSIX ttys support change

daemon@ATHENA.MIT.EDU (Ollivier Robert)
Tue May 23 05:07:34 2000

From owner-cfs-users@nsa.research.att.com Tue May 23 09:07:33 2000
Return-Path: <owner-cfs-users@nsa.research.att.com>
Delivered-To: cfs-mtg@CHARON2.mit.edu
Received: (qmail 1174 invoked from network); 23 May 2000 09:07:33 -0000
Received: from h-135-207-30-103.research.att.com (HELO mail-green.research.att.com) (135.207.30.103)
  by charon2.mit.edu with SMTP; 23 May 2000 09:07:33 -0000
Received: from amontillado.research.att.com (amontillado.research.att.com [135.207.24.32])
	by mail-green.research.att.com (Postfix) with ESMTP
	id 223661E012; Tue, 23 May 2000 05:07:28 -0400 (EDT)
Received: from nsa.research.att.com (majordomo@nsa.research.att.com [135.207.24.155])
	by amontillado.research.att.com (8.8.7/8.8.7) with ESMTP id FAA11595;
	Tue, 23 May 2000 05:07:20 -0400 (EDT)
Received: (from majordomo@localhost) by nsa.research.att.com (8.7.3/8.7.3) id FAA18465 for cfs-users-list; Tue, 23 May 2000 05:03:03 -0400 (EDT)
X-Authentication-Warning: nsa.research.att.com: majordomo set sender to owner-cfs-users@nsa.research.att.com using -f
Received: from mail-blue.research.att.com (mail-blue.research.att.com [135.207.30.102]) by nsa.research.att.com (8.7.3/8.7.3) with ESMTP id FAA18461 for <cfs-users@nsa.research.att.com>; Tue, 23 May 2000 05:03:01 -0400 (EDT)
Received: by mail-blue.research.att.com (Postfix)
	id 0ECF34CE07; Tue, 23 May 2000 05:05:32 -0400 (EDT)
Delivered-To: cfs-users@research.att.com
Received: from matrix.eurocontrol.fr (matrix.eurocontrol.fr [147.196.254.254])
	by mail-blue.research.att.com (Postfix) with ESMTP id 25D234CE0B
	for <cfs-users@research.att.com>; Tue, 23 May 2000 05:05:27 -0400 (EDT)
Received: from caerdonn.eurocontrol.fr (caerdonn.eurocontrol.fr [147.196.5.62])
	by matrix.eurocontrol.fr (Postfix) with ESMTP id 6278E59F2
	for <cfs-users@research.att.com>; Tue, 23 May 2000 11:05:26 +0200 (CEST)
	(envelope-from roberto@caerdonn.eurocontrol.fr)
Received: by caerdonn.eurocontrol.fr (Postfix, from userid 1193)
	id 36AE14E2D; Tue, 23 May 2000 11:05:26 +0200 (CEST)
Date: Tue, 23 May 2000 11:05:26 +0200
From: Ollivier Robert <roberto@eurocontrol.fr>
To: cfs-users@research.att.com
Subject: [PATCH] POSIX ttys support change
Message-ID: <20000523110526.B23258@caerdonn.eurocontrol.fr>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2i
X-Operating-System: FreeBSD 5.0-CURRENT
Sender: owner-cfs-users@research.att.com
Precedence: bulk

Hello everyone,

I'm a newcomer to cfs and I'm using 1.4.0.beta2. I'd to submit the
following change to take into account that POSIX tty handling is also
available in other platforms than Linux and IRIX.

Is there an archive of this list somewhere?

Enjoy!

-=-=-
--- Makefile.orig	Sat Dec 20 10:57:08 1997
+++ Makefile	Tue May 23 11:01:38 2000
@@ -116,7 +116,7 @@
 ## Linux dists).
 ## See NOTE TO LINUX USERS above, and also README.linux,
 ## if you can't make things work.
-#CFLAGS=$(COPT) -U__STDC__ -Dd_fileno=d_ino -I$(RINCLUDES)
+#CFLAGS=$(COPT) -U__STDC__ -Dd_fileno=d_ino -I$(RINCLUDES) -DPOSIXTTY
 #LIBS=
 #COMPAT=
 #RPCOPTS= -k -b
@@ -125,7 +125,7 @@
 ## options:
 ## See NOTE TO LINUX USERS above, and also README.linux,
 ## if you can't make things work.
-#CFLAGS=$(COPT) -U__OPTIMIZE__ -traditional -Dd_fileno=d_ino -I$(RINCLUDES)
+#CFLAGS=$(COPT) -U__OPTIMIZE__ -traditional -Dd_fileno=d_ino -I$(RINCLUDES) -DPOSIXTTY
 #LIBS=
 #COMPAT=
 #RPCOPTS= -k -b
@@ -134,14 +134,14 @@
 ## use these options:
 ## See NOTE TO LINUX USERS above, and also README.linux,
 ## if you can't make things work.
-#CFLAGS=$(COPT) -I$(RINCLUDES)
+#CFLAGS=$(COPT) -I$(RINCLUDES) -DPOSIXTTY
 #LIBS=
 #COMPAT=
 #RPCOPTS=
 
 ## Irix 4.0 -- markh@wimsey.bc.ca
 ## Be sure to read README.irix
-#CFLAGS=-cckr $(COPT) -Dirix -I$(RINCLUDES)
+#CFLAGS=-cckr $(COPT) -Dirix -I$(RINCLUDES) -DPOSIXTTY
 #LIBS=-lrpcsvc -lsun
 #COMPAT=
 #RPCOPTS=
@@ -163,9 +163,9 @@
 #RPCOPTS=
 
 ## Generic 4.4 systems with CFS on its own port
-#CFLAGS=$(COPT) -DBSD44 -DANYPORT -I$(RINCLUDES)
+#CFLAGS=$(COPT) -DBSD44 -DANYPORT -I$(RINCLUDES) -DPOSIXTTY
 #LIBS=-lrpc
-#COMPAT=-lcompat
+#COMPAT=
 #RPCOPTS=
 
 ## Ultrix 4.2a
@@ -177,9 +177,9 @@
 ## BSD386 systems with CFS on its own port 
 ## Use this for BSDI 2.1 or later
 ## BSDI support by mab
-#CFLAGS=$(COPT) -DBSD44 -DANYPORT -DSHORTLINKS -I$(RINCLUDES)
+#CFLAGS=$(COPT) -DBSD44 -DANYPORT -DSHORTLINKS -I$(RINCLUDES) -DPOSIXTTY
 #LIBS=-lrpc
-#COMPAT=-lcompat
+#COMPAT=
 #RPCOPTS=
 
 ## Use these for 4.4/BSD386 systems with CFS on the NFS port because of no
@@ -188,24 +188,24 @@
 ## BSDI support by mab
 ## Also works under older freeBSD, though you may want to use -static on the
 ##  linker (dean@deanstoy.wa.com (Dean M. Phillips))
-#CFLAGS=$(COPT) -DBSD44 -DANYPORT -DCFS_PORT=2049 -DSHORTLINKS -I$(RINCLUDES)
+#CFLAGS=$(COPT) -DBSD44 -DANYPORT -DCFS_PORT=2049 -DSHORTLINKS -I$(RINCLUDES) -DPOSIXTTY
 #LIBS=-lrpc
-#COMPAT=-lcompat
+#COMPAT=
 #RPCOPTS=
 
 ## Use these for FreeBSD 2.2.x systems with CFS on it's own port (Dima Ruban)
-#CFLAGS=$(COPT) -DBSD44 -DANYPORT -DSHORTLINKS -I$(RINCLUDES)
+#CFLAGS=$(COPT) -DBSD44 -DANYPORT -DSHORTLINKS -I$(RINCLUDES) -DPOSIXTTY
 #LIBS=
-#COMPAT=-lcompat
+#COMPAT=
 #RPCOPTS=
  
 ##Use these for NetBSD i386 1.0 (John Kohl)
 ## For mounting, you need to use a command like:
 ##	mount -o -P,-c localhost:/null /crypt
 ## Use -DSHORTLINKS to support the BSD 4.4 symbolic links (Dave Carrel)
-#CFLAGS=$(COPT) -DBSD44 -DANYPORT -DCFS_PORT=2049 -DSHORTLINKS -I$(RINCLUDES)
+#CFLAGS=$(COPT) -DBSD44 -DANYPORT -DCFS_PORT=2049 -DSHORTLINKS -I$(RINCLUDES) -DPOSIXTTY
 #LIBS=
-#COMPAT=-lcompat
+#COMPAT=
 #RPCOPTS=
 
 ## Solaris 2.3 / SUNOS 5.x
--- getpass.c.orig	Wed Dec  3 22:51:34 1997
+++ getpass.c	Tue May 23 10:57:48 2000
@@ -35,7 +35,7 @@
 
 #include <stdio.h>
 #include <signal.h>
-#ifndef linux
+#ifndef POSIXTTY
 #include <sgtty.h>
 #endif
 #include <sys/types.h>
@@ -45,7 +45,7 @@
 #include "cfs.h"
 #include "shs.h"
 
-#if defined(irix) || defined(linux)
+#ifdef POSIXTTY
 /* hacks to use POSIX style termios instead of old BSD style sgttyb */
 #include <termios.h>
 #define sgttyb termios
-=-=-
-- 
Ollivier ROBERT -=- Eurocontrol EEC/TEC -=- roberto@eurocontrol.fr
The Postman hits! The Postman hits! You have new mail.

home help back first fref pref prev next nref lref last post