Commit Graph

15 Commits

Author SHA1 Message Date
agc
326b2259b7 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22366, verified by myself.
2003-08-07 11:25:11 +00:00
itojun
d9f2774c1e use bounded string op 2003-07-13 12:08:28 +00:00
itojun
aafb24a06b getstring() safer by passing buffer size. millert@openbsd 2002-07-04 06:43:19 +00:00
lukem
28073e3899 - use snprintf() instead of sprintf() when printing strerror.
(from openbsd via freebsd)
- use strtoll instead of strtoq()
2001-12-24 00:54:28 +00:00
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