summaryrefslogtreecommitdiff
path: root/bin/dd/position.c
AgeCommit message (Collapse)Author
2024-07-12refactor the signal handlers for clarity, inverting the situation:Theo de Raadt
the signal handler was calling a big function which is shared between multiple contexts -- that hides the rule that this big function has signal safe requirements (which it fails). now, the signal handler contains all the code, and everyone else calls the signal handler function as a regular function, from their (normal) contexts. the signal handler context is the most strict, so this pattern is better. ok florian
2019-06-28When system calls indicate an error they return -1, not some arbitraryTheo de Raadt
value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future.
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
2006-11-07It is better to use isatty() to see if a dev is seekable, becauseOtto Moerbeek
skipping blocks on a raw disk device with bad sectors should be possible. Noted by Geoff Steckel; ok tom@ deraadt@
2006-11-07fix skipping when reading from a tty; reported by Karel KulhavyOtto Moerbeek
<clock at twibright dot com>; ok deraadt@
2003-06-11ansification, art okTheo de Raadt
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2002-10-28Seeking on a character device works fine.Todd C. Miller
2001-08-07Modify timekeeping in an effort to produce a sane bandwidth measureHugh Graham
for a short running dd process. Some floating point is used so that microsecond precision can be kept without shortening the off_t excessively. millert says ok.
1997-02-14Deal with 64-bit offsets and report bytes copied as a 64-bit quantity.Todd C. Miller
Closes OpenBSD PR system/107.
1996-06-23update rcsidTheo de Raadt
1995-10-18initial import of NetBSD treeTheo de Raadt