aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/fdwrite/fdwrite.c
Commit message (Collapse)AuthorAgeFilesLines
* Drop the defunct FDOPT_NOERRLOG option from all the floppy utilities.Joerg Wunsch2009-06-241-4/+1
| | | | | | | | | | | The kernel does not log floppy media errors anymore. In fdcontrol, do always open the file descriptor in read-only mode so it can operate on read-only media, as there is no longer a separate control device to operate on. Notes: svn path=/head/; revision=194892
* Cleanup usr.sbin/fd* so they can compile under WARNS=6.Xin LI2005-01-081-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | fdcontrol/fdcontrol.c: - Add const constraint to an intermediate value which is not supposed to be changed elsewhere. fdread/fdread.c: - Use _devname in favor of devname to avoid name conflicit. - -1 is less than any positive number so in order to get the block to function, we should get the block a little earlier. - Cast to remove signed when we are sure that a return value is positive, or is compared with an positive number (tracknumber of a floppy disk is not likely to have UINT_MAX/2 anyway) fdread/fdutil.c: - Use more specific initializer fdwrite/fdwrite.c: - Use static on format_track since it's not referenced in other places. - Use const char* to represent string constant. Bump WARNS accordingly. Notes: svn path=/head/; revision=139905
* Include <string.h> rather than <strings.h> for string function prototypes.Stefan Farfeleder2004-05-301-1/+1
| | | | | | | Approved by: das (mentor) Notes: svn path=/head/; revision=129863
* Modernize my email addressPoul-Henning Kamp2002-03-251-1/+1
| | | | Notes: svn path=/head/; revision=93150
* Now that we've got it, use FDOPT_NOERRLOG for fdformat and fdwrite toJoerg Wunsch2001-06-261-1/+4
| | | | | | | | | avoid blasting the syslog with error messages from bad floppies. Both tools have their own error reporting anyway (which could easily be cluttered by the syslog output on your terminal). Notes: svn path=/head/; revision=78858
* Part #2 of the <machine/ioctl_fd.h> => <sys/fdcio.h> move: handle theJoerg Wunsch2001-06-061-1/+1
| | | | | | | tools in usr.sbin/fd*. Notes: svn path=/head/; revision=77801
* Add `_PATH_DEVZERO'.David E. O'Brien2000-12-091-2/+3
| | | | | | | Use _PATH_* where where possible. Notes: svn path=/head/; revision=69793
* /dev/r<FOO> => /dev/<FOO>David E. O'Brien2000-04-261-1/+1
| | | | Notes: svn path=/head/; revision=59651
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50479
* Use err(3). Document -y flag. Remove unused -s flag from getopt string.Philippe Charnier1997-09-181-46/+23
| | | | Notes: svn path=/head/; revision=29559
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-221-1/+1
| | | | Notes: svn path=/head/; revision=22997
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-141-1/+1
| | | | | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise. Notes: svn path=/head/; revision=21673
* Make this more usable from shell scripts and such by adding a non-interactiveJordan K. Hubbard1996-09-301-9/+19
| | | | | | | | flag and some checking to see if it's even reasonable to ask for confirmation at all. Notes: svn path=/head/; revision=18573
* Remove trailing whitespace.Rodney W. Grimes1995-05-301-2/+2
| | | | Notes: svn path=/head/; revision=8857
* #include'ing mysterious stuff from ${DESTDIR}/sys/<somewhere> is no longerJoerg Wunsch1994-10-141-2/+1
| | | | | | | | necessary. Requested by: phk Notes: svn path=/head/; revision=3592
* A small program, which can take a file of any size, format, write and verifyPoul-Henning Kamp1994-09-181-0/+208
it onto a bunch of floppies in a semi-intelligent way. Useful for things like: tar cf - . | gzip -9 | fdwrite -d /dev/rfd0.1720 -v Where it will keep asking for floppies until tar is done. Notes: svn path=/cvs2svn/branches/phk/; revision=2849