#
272461 |
|
02-Oct-2014 |
gjb |
Copy stable/10@r272459 to releng/10.1 as part of the 10.1-RELEASE process.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation |
#
256281 |
|
10-Oct-2013 |
gjb |
Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation
|
#
227253 |
|
06-Nov-2011 |
ed |
Mark global functions and/or variables in fdread(8) static where possible.
This allows compilers and static analyzers to do more thorough analysis.
|
#
223197 |
|
17-Jun-2011 |
joerg |
Open the floppy disk device with O_RDONLY rather than O_RDWR. After all, this is the fd*read* command, and thus should be able to read even write-protected disks.
MFC after: 1 week
|
#
194892 |
|
24-Jun-2009 |
joerg |
Drop the defunct FDOPT_NOERRLOG option from all the floppy utilities. 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.
|
#
160522 |
|
20-Jul-2006 |
stefanf |
Remove unused variables.
|
#
151723 |
|
26-Oct-2005 |
peter |
fdread cannot work without opening the /dev/fd node in O_RDWR mode now, because it sets the floppy controller parameters, which requires O_RDWR. Specifically, the FD_SOPTS ioctl requires this, and the code errors out and aborts if it can't do it. Among other things, it is changing the FDOPT_NOERRLOG flag. Broken in 6.0 as well.
|
#
139905 |
|
08-Jan-2005 |
delphij |
Cleanup usr.sbin/fd* so they can compile under WARNS=6.
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.
|
#
79110 |
|
02-Jul-2001 |
joerg |
Break out the function to print the FDC error information into fdutil.c so it can be used elsewhere.
|
#
78857 |
|
26-Jun-2001 |
joerg |
Implement the -I option that uses the FD_READID ioctl in order to read sector ID fields from a floppy, and display them.
|
#
77801 |
|
06-Jun-2001 |
joerg |
Part #2 of the <machine/ioctl_fd.h> => <sys/fdcio.h> move: handle the tools in usr.sbin/fd*.
|
#
77729 |
|
04-Jun-2001 |
joerg |
Now that we've got the ne765.h file installed under <dev/ic/>, use it here instead of the old "/sys/isa/ic/..." hack. This should fix building the world for machines that don't have a /sys symlink, finally.
|
#
76590 |
|
14-May-2001 |
joerg |
This commit was generated by cvs2svn to compensate for changes in r76589, which included commits to RCS files with non-trunk default branches.
|
#
76589 |
|
14-May-2001 |
joerg |
Initial import of fdread(1), a logical counterpart to fdwrite(1).
Its main purpose is to adapt automatically to the floppy parameters (in particular the track size for efficient reading), and to allow a simple error recovery for CRC-errored sectors. Requires the newly added fdc(4) options.
|