summaryrefslogtreecommitdiffstats
path: root/usr.sbin/burncd/burncd.c
Commit message (Collapse)AuthorAgeFilesLines
* Reencode files to UTF-8. Drop CP1252 em-dash.uqs2011-12-301-1/+1
|
* Add a "kern.features.ata_cam" sysctl in the kernel when the ATA_CAM kernelrodrigc2011-10-091-0/+7
| | | | | | | | | | | | | | | | | | | | | option is defined. This sysctl can be queried by feature_present(3). Query for this feature in /sbin/atacontrol and /usr/sbin/burncd. If these utilities detect that ATA_CAM is enabled, then these utilities will error out. These utilities are compatible with the old ATA driver, but are incomptible with the new ATA_CAM driver. By erroring out, we give end-users an idea as to what remedies to use, and reduce the need for them to file PR's. For atacontrol, camcontrol must be used instead, and for burncd, alternative utilties from the ports collection must be used such as sysutils/cdrtools. In future, maybe someone can re-write burncd to work with ATA_CAM, but at least for now, we give a somewhat useful error message to end users. PR: 160979 Reviewed by: jh, Arnaud Lacombe <lacombar at gmail dot com> Reported by: Joe Barbish <fbsd8 at a1poweruser dot com> MFC after: 3 days
* Give the right value when complaining it being wrong.delphij2010-01-201-1/+1
| | | | | Reported by: danfe MFC after: 3 days
* Add support of using environment variable BURNCD_SPEED to specifydelphij2009-12-211-7/+13
| | | | | | | | recodring speed. PR: bin/140530 Submitted by: Alexander Best <alexbestms wwu.de> MFC after: 1 month
* Correct the type for the global var accessed in sig handlers.obrien2009-01-051-1/+1
|
* Make signal handler safer.obrien2008-12-231-5/+7
| | | | Submitted by: Jaakko Heinonen <jh@saunalahti.fi>
* burncd(8) doesn't handle signals and interrupting burncd during operation.obrien2008-12-191-5/+36
| | | | | | | | | | | | | | | | | For example, ^C (SIGINT) may leave the drive spinning and locked. This may also happen if you try to write a too-large image to a disc and burncd(8) exits with an I/O error. Add signal handling by doing a CDRIOCFLUSH ioctl to attempt to leave burner in a sane state when burning is interrupted with SIGHUP, SIGINT, SIGTERM, or in case an I/O error occurs during write. Note, that blanking will still continue after interrupt but it seems to finish correctly even after burncd(8) has quit. Also, while I'm here bump WARNS to "6". PR: 48730 Submitted by: Jaakko Heinonen <jh@saunalahti.fi>
* Fix the "only wrote -1 of 32768 bytes: Input/output error" error message.ru2005-05-131-2/+5
|
* Document -F in usage() and SYNOPSIS.ru2004-12-211-1/+1
|
* Make "burncd ... fixate eject" really work as promised.ru2004-12-211-1/+1
|
* err() -> errx()ru2004-12-171-6/+6
|
* My fingers keep typing 'burncd data foo fixate eject' instead of 'burncd -edes2004-09-151-0/+4
| | | | | | data foo fixate'. Humor them. MFC after: 4 weeks
* Mechanical whitespace cleanup.des2004-09-151-37/+37
|
* Make NULL a (void*)0 whereever possible, and fix the warnings(-Werror)markm2004-03-051-1/+1
| | | | | | | | | | | | | | | that this provokes. "Wherever possible" means "In the kernel OR NOT C++" (implying C). There are places where (void *) pointers are not valid, such as for function pointers, but in the special case of (void *)0, agreement settles on it being OK. Most of the fixes were NULL where an integer zero was needed; many of the fixes were NULL where ascii <nul> ('\0') was needed, and a few were just "other". Tested on: i386 sparc64
* Use intmax_t to avoid wrap on large images in verbose output.alfred2003-12-281-3/+4
|
* Fix "write from stdin".pb2003-07-261-3/+6
| | | | | Reviewed by: sos MFC after: 1 week
* Add support for using the CDROM env var for device to use;sos2003-05-041-1/+4
| | | | PR: 38178
* Fix filename printing when using -l option.sos2003-05-041-2/+2
| | | | PR: 43574
* Dont fixate when doing dvdrw or test writing.sos2003-05-041-1/+1
| | | | PR: 47195
* Make fully WARNS=5 clean.obrien2002-12-301-4/+4
| | | | Tested on: sparc64, x86
* Fix printf format errors on 64-bit platforms and make WARNS=5 compliant.wollman2002-12-291-22/+27
| | | | | | | Checked on Alpha and IA32. Reviewed by: maintainer timeout MFC after: 1 week
* On drives that returns 00 as 100% done, lower the criteriasos2002-12-181-13/+13
| | | | | | for wraparound, 99 was too much for fast drives since they do not give 99 as the last value, but instead something in the 90's range.
* Take care of the case for the default speed (no -s option) also.njl2002-10-271-3/+2
|
* Move speed units conversion to right before it is used. This catches thenjl2002-10-271-1/+2
| | | | case when the -s option is not used.
* Convert speed into KB/s. This was missed by the previous commit to this file.njl2002-10-261-1/+1
| | | | MFC after: 3 weeks
* * Add CDRIOC{READ,WRITE}SPEED ioctls to cd(4). Units are in KB/sec.njl2002-10-181-1/+4
| | | | | | | | | | | | | | | * Change atapi-cd ioctls to use the same units. * Change burncd, cdcontrol to convert CDROM speed to KB/sec before calling the ioctl. Add a "max" speed option for their command lines. This change does not break ABI but does change the units passed through the ioctl so 3rd party software that uses cdrio.h will have to convert (most likely by multiplying CDROM speed by 177 to get KB/s). PR: kern/36845 Submitted by: Philipp Mergenthaler <p@i609a.hadiko.de> (CAM ioctls) Reviewed by: sos, ken MFC after: 1 month
* Add DVD+RW support to the ATA driver and burncd. This also closessos2002-08-081-19/+131
| | | | | | | | | PR40430 by "Peter Haight <peterh@sapros.com>" that has semilar patches included and which I merged with my own work. HW sponsored by: FreeBSD Foundation & FreeBSD Mall Inc Enjoy!
* Usage style sweep: spell "usage" with a small 'u'.des2002-04-221-1/+1
| | | | | Also change one case of blatant __progname abuse (several more remain) This commit does not touch anything in src/{contrib,crypto,gnu}/.
* Dont quit prematurely when writing from stdin...sos2002-04-051-2/+5
|
* fix the wildrunning % counter.sos2002-03-041-4/+2
|
* o Move NTOHL() and associated macros into <sys/param.h>. These aremike2002-02-181-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | deprecated in favor of the POSIX-defined lowercase variants. o Change all occurrences of NTOHL() and associated marcros in the source tree to use the lowercase function variants. o Add missing license bits to sparc64's <machine/endian.h>. Approved by: jake o Clean up <machine/endian.h> files. o Remove unused __uint16_swap_uint32() from i386's <machine/endian.h>. o Remove prototypes for non-existent bswapXX() functions. o Include <machine/endian.h> in <arpa/inet.h> to define the POSIX-required ntohl() family of functions. o Do similar things to expose the ntohl() family in libstand, <netinet/in.h>, and <sys/param.h>. o Prepend underscores to the ntohl() family to help deal with complexities associated with having MD (asm and inline) versions, and having to prevent exposure of these functions in other headers that happen to make use of endian-specific defines. o Create weak aliases to the canonical function name to help deal with third-party software forgetting to include an appropriate header. o Remove some now unneeded pollution from <sys/types.h>. o Add missing <arpa/inet.h> includes in userland. Tested on: alpha, i386 Reviewed by: bde, jake, tmm
* Write the "msinfo" result to stdout instead of stderrsos2002-01-051-2/+2
|
* Fix the msinfo command, as mentioned in several PR's.sos2001-12-271-5/+8
|
* WARNS=2 fixup. Set NO_WERROR due to use of 'j' format specifier.mikeh2001-12-241-12/+13
| | | | PR: bin/32567
* Add the ability to write VCD/SVCD disc's.sos2001-12-041-58/+74
| | | | | | It is still nessesary to supply the tracks as individual files, burncd can't read .cue files yet, but now the infrastructure to do it is present we just need a .cue file parser (hint hint)...
* Change the way DAO/TAO modes are init'ed.sos2001-10-011-4/+6
|
* Use getprogname(3) instead of hardcoding the name..sos2001-09-111-2/+2
|
* Fixes from Ruslan Ermilov:sos2001-09-111-8/+8
| | | | | | | | | | | | | 1. FreeBSD should be spelled with "F" and "BSD" in capitals, even in comments. 2. Please don't use hard sentence breaks. Always start a new sentence from the new line. 3. Don't use `#' or `$' in EXAMPLES; this has been fixed recently in share/examples/mdoc/ templates. 4. Nuke the prog_name variable burncd.c, use getprogname(3).
* Add DAO mode (Disk At Once).sos2001-09-101-75/+287
| | | | See burncd.8 for how to use it.
* Change to spell erasing right.sos2001-05-301-6/+7
| | | | PR 26306 but implemented differently by me.
* New option -m to select multisession mode.sos2001-01-101-80/+164
| | | | | | | | | | | | | | | | WARNING: until now all disks was closed as multisession disks, this is no longer the case, if the -m option isn't used disks are closed as singlesession. The reason is that some drives wont close a disk with one large image on in multisession mode, probably because it "knows" that a new session wont fit on the media resonably. Also update burncd with new stuff from various places that I've collected and modified to my taste, its actually amasing how many thinks up the same enhancements (none mentioned none forgotten): Allow '-' to be used as filename for using stdin. Add 'l' option to take a list of image files from 'filename'
* Update to match the progress interface on blank command.sos2000-12-261-1/+16
|
* Add msinfo command, used for multisession CD generation withsos2000-03-031-7/+19
| | | | | | mkisofs. Gives the last track start LBA, and the next writable LBA. Inspired by: peter
* Add a percentage-meter to the progress report.sos2000-03-021-10/+16
| | | | Submitted by: peter
* Dont allow burn when format not selected.sos2000-02-181-6/+9
| | | | | | | | Use the right format in printfs. Fix the partial write error (the res variable). Reminder by: (Bill Fumerola <billf@FreeBSD.org>)
* Add mode2 and XAmode1 type CD tracks.sos2000-02-021-0/+14
|
* Update to keep track of next_writeable in userland.sos2000-01-241-1/+1
| | | | Recompile both kernel & burncd !!
* Change the buffer size to 16 blocks, some crappy drives have troublesos2000-01-171-2/+8
| | | | | | | with bigger chunks of data at a time. Add filesize to progress printout. Submitted by: green@FreeBSD.org <Brian Fundakowski Feldman>
* Enable the 't' option, and document it in the manpage.sos2000-01-151-1/+2
| | | | Submitted by: green@freebsd.org <Brian Fundakowski Feldman>
* Oops, still leftovers from yesterdays remote commit problems.sos2000-01-071-3/+3
| | | | Proberly restore blocksize on the device.
OpenPOWER on IntegriCloud