[Marian Szebenyi 1999-06-14]
> I have installed SANE 1.0.1 on a DEC Alpha running Digital UNIX
> 4.0D, and had to edit a few things to get it to work. I didn't use
> the dynamic loading or shared library options, so I can't say
> anything about them, but I did find 3 places where there were
> problems that seemed general:
I tried to find the correct places to change the code. I'm really
unsure about the close() call. Is it where it should be?
Index: ChangeLog
===================================================================
RCS file: /cvsroot/external/sane/ChangeLog,v
retrieving revision 1.1.1.1.2.3
diff -u -r1.1.1.1.2.3 ChangeLog
--- ChangeLog 1999/08/12 09:53:00 1.1.1.1.2.3
+++ ChangeLog 1999/08/12 11:04:38
@@ -1,3 +1,8 @@
+1999-08-12 Marian Szebenyi <dms35@cornell.edu>
+
+ * sanei/sanei_scsi.c [sanei_scsi_cmd sanei_scsi_open]: Digital
+ UNIX 4.0D patches.
+
1999-08-12 Petter Reinholdtsen <pere@td.org.uit.no>
* lib/dll.c: Use calloc() instead of malloc() and memset(). Use
Index: sanei/sanei_scsi.c
===================================================================
RCS file: /cvsroot/external/sane/sanei/sanei_scsi.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 sanei_scsi.c
--- sanei_scsi.c 1999/08/09 18:05:59 1.1.1.1
+++ sanei_scsi.c 1999/08/12 11:04:46
@@ -677,6 +677,7 @@
for (fd = 0; fd < num_alloced; ++fd)
if (!fd_info[fd].in_use)
break;
+ fake_fd = 1;
}
#elif USE == DOMAINOS_INTERFACE
{
@@ -1906,6 +1907,7 @@
memset (&hdr, 0, sizeof (hdr));
hdr.uagt_ccb = (CCB_HEADER *) & ccb;
+ hdr.uagt_ccblen = sizeof(ccb);
hdr.uagt_buffer = ccb.cam_data_ptr;
hdr.uagt_buflen = ccb.cam_dxfer_len;
hdr.uagt_snsbuf = sense;
Index: backend/hp-scl.c
===================================================================
RCS file: /cvsroot/external/sane/backend/hp-scl.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 hp-scl.c
--- hp-scl.c 1999/08/09 18:05:57 1.1.1.1
+++ hp-scl.c 1999/08/12 11:04:43
@@ -880,6 +880,8 @@
quit:
+ close (outfd);
+
if ( image_buf ) sanei_hp_free ( image_buf );
if ( read_buf ) sanei_hp_free ( read_buf );
-- ##> Petter Reinholdtsen <## | pere@td.org.uit.no O- <SCRIPT Language="Javascript">window.close()</SCRIPT> http://www.hungry.com/~pere/ | Go Mozilla, go! Go!
-- Source code, list archive, and docs: http://www.mostang.com/sane/ To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com