Commit Graph

11 Commits

Author SHA1 Message Date
mjacob dcdf7ba2cd Fix rmt for use with Solaris 2.7 and others. The deal here is that for
version 0 RMT protocol, the query of status makes no sense (send back, in
binary, the mtget structure), but systems sometimes use it anyway. And when
they use it, they get upset if they get back something that is a different
size from what they expect. The original mtget structure in BSD 4.3 is
24 bytes in size, and that seems to be what they can cope with.

The correct fix would be to go to Version 1 RMT, but that's a horse of
another color...
2000-02-08 18:00:05 +00:00
lukem 166448c2dc WARNSify 1997-10-17 13:02:01 +00:00
mrg 3bbeacd12c merge lite-2 1997-10-17 08:05:18 +00:00
mikel 58aea378cf use strtoq() instead of atoi() to generate offset argument for lseek()
(Todd Miller)
include <fcntl.h>, <stdlib.h>, and <unistd.h> for prototypes
include <sys/ioctl.h> instead of <sys/sgtty.h>
add explicit return types and prototypes for internal functions
use STD{IN,OUT}_FILENO instead of manifest constants
fix off-by-one buffer overflow error in getstring()
KNFify and RCSid police
1997-07-01 07:42:28 +00:00
mycroft e6ae4619a7 Add missing #include. 1995-04-13 02:07:23 +00:00
mycroft d092e7eb1e Give open() reasonable permissions for creating a file (though this doesn't
matter for the normal case of opening a device).  Suggested by Joerg Wunsch.
1995-04-09 19:02:54 +00:00
cgd 7a6e889600 kill bad casts 1994-03-30 02:28:43 +00:00
cgd 20137a28c8 kill extern'd lseek() 1994-03-28 07:08:56 +00:00
mycroft e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
mrg c78c6a22ab 4.4BSD-Lite2 1993-06-06 20:58:02 +00:00
cgd 61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00