Hi,
I want to edit/view some files that were encrypted using
'crypt' command on HP-UX machines. HP-UX vi had an
-x option for editing such files, but unfortunately, Linux
vim has no such option. Does anyone know of a way to edit
such files in Linux? Can emacs be used to do that?
Thanks in advance,
-SS
[EMAIL PROTECTED] Wed Mar 17 15:29:26 1999
Return-Path: <[EMAIL PROTECTED]>
Received: from portcullis.itis.com (portcullis.itis.com [209.83.0.27])
by jab.org (8.8.7/8.8.7) with ESMTP id PAA27174
for <[email protected]>; Wed, 17 Mar 1999 15:29:26 -0500
Received: (from majordomo@localhost)
by portcullis.itis.com (8.8.8/8.8.8) id NAA00080
for linux-c-programming-outgoing; Wed, 17 Mar 1999 13:33:33 -0600 (CST)
Received: from online.no (pilt-s.online.no [148.122.208.18])
by portcullis.itis.com (8.8.8/8.8.8) with ESMTP id NAA00075
for <[EMAIL PROTECTED]>; Wed, 17 Mar 1999 13:33:30 -0600
(CST)
Received: from online.no (ti21a96-0534.dialup.online.no [130.67.199.150])
by online.no (8.9.3/8.9.1) with ESMTP id UAA06172
for <[EMAIL PROTECTED]>; Wed, 17 Mar 1999 20:33:25 +0100
(MET)
Message-ID: <[EMAIL PROTECTED]>
Date: Wed, 17 Mar 1999 20:34:43 +0100
From: "Torbj�rn Kristoffersen" <[EMAIL PROTECTED]>
Organization: -scc-
X-Mailer: Mozilla 4.08 [en] (X11; I; Linux 2.2.1 i586)
MIME-Version: 1.0
To: [EMAIL PROTECTED]
Subject: learning ioctl()
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: [EMAIL PROTECTED]
Precedence: bulk
Reply-To: "Torbj�rn Kristoffersen" <[EMAIL PROTECTED]>
I'm trying to make a program that simply ejects the CD-ROM. The reason
why is that
I'd like to learn more about the ioctl() call.
Maybe I've misunderstood everything, but here's my code which doesn't
work:
FILE *fd = fopen("/dev/cdrom", "w");
int x;
ioctl (fd, CDROMEJECT, &x);
(I'm not really sure why I'm using 'x', but I saw it being used in
another example and I saw that
ioctl() took a third argument also)
(I found CDROMEJECT in the man-page ioctl_list)
Thanks in advance!