summaryrefslogtreecommitdiffstats
path: root/sbin/pdisk/file_media.c (follow)
Commit message (Expand)AuthorAgeFilesLines
* Move last three lines (#define's) from dpme.h to partition_map.h andkrw2016-01-301-2/+1
* Fold struct dpme into struct entry. Same reasons as for foldingkrw2016-01-301-75/+75
* There is not much to do if we run out of memory, so simply exit ifkrw2016-01-301-5/+5
* Fold struct block0 into struct partition map. There can be only onekrw2016-01-291-46/+48
* Use consistent 'return' idiom -- no parenthesis since that was the stylekrw2016-01-281-5/+5
* dpme_name and dpme_type are NUL-terminated in Apple code, so usekrw2016-01-261-4/+4
* Whitespace, line wrapping fixes.krw2016-01-261-2/+3
* Use new read/write_block0 and read/write_dpme which handle anykrw2016-01-251-13/+8
* Add read/write_block0 and read/write_dpme functions, not yet used.krw2016-01-251-1/+301
* Flip read_block() and write_block() back to taking sector addresseskrw2016-01-231-5/+5
* Merge read_block() and read_file_media() into read_block(). Dittokrw2016-01-221-12/+9
* Hoist all file opening and ioctl calls into main(), passing a pointer tokrw2016-01-211-45/+2
* Remove forward declarations for functions that do not exist.krw2016-01-191-2/+1
* struct file_media had 1 field left. And one place where structkrw2016-01-181-33/+10
* Discard a whack of double and triple checking lseek/read/write parameters.krw2016-01-181-65/+23
* os_reload_file_media() doesn't do anything except tell you if you passed itkrw2016-01-181-22/+1
* Run indent(1) over it and tweak the results a bit manually to look morekrw2016-01-181-108/+108
* Remove a grab bag of unused #define's, fields, enum's, variables,krw2016-01-181-17/+1
* Change "//" comments to "/**/". Nuke really stupid ones.krw2016-01-171-2/+1
* Reduce namespace pollution by eliminating parameter names from forwardkrw2016-01-171-2/+2
* Remove a bunch of ridiculous and uninformative comments like "// Defines".krw2016-01-171-27/+1
* Let the great de-typedef'ification begin. MEDIA -> struct file_media *.krw2016-01-171-8/+9
* Move last field (size_in_bytes) in struct media to struct file_mediakrw2016-01-161-27/+12
* Oops. Missed a file.krw2016-01-161-10/+2
* There can be only one. 'grain' that is. i.e. DEV_BSIZE. No need to trackkrw2016-01-161-10/+8
* There can be only one. 'kind' that is. No need to allocate or track thekrw2016-01-161-19/+1
* Start peeling away excess layers of abstraction.krw2016-01-161-9/+1
* Nuke support for 1024- and 2048-byte sector devices. Error out ifkrw2016-01-161-5/+4
* As with compute_device_size(), gut compute_block_size() and simplykrw2016-01-151-40/+17
* Nuke unused enum.krw2016-01-131-8/+1
* #define LOFF_T off_tkrw2016-01-121-19/+11
* Use normal err/errx/warn/warnx rather than handrolling new ones. Movekrw2016-01-121-4/+5
* Remove media interation types, structures and functions. They are not usedkrw2016-01-121-187/+1
* - remove some unused data structures/fieldsjasper2016-01-111-3/+3
* plug a mem leakjasper2016-01-111-1/+2
* trailing whitespacejasper2016-01-111-2/+2
* add rcs idsjasper2016-01-111-0/+2
* <stdlib.h> is included, so do not need to cast result fromderaadt2015-08-201-1/+1
* use opendev(), as requested in 6373. document this using text borrowed fromderaadt2010-05-251-1/+2
* remove a bunch of linux and NeXT defines and, in turn, -D__unix__martin2006-05-111-15/+0
* With last pdisk and full functionality for mac68k now in place, startmartin2006-04-291-51/+2
* update for pdisk 0.8a2, from NetBSD, retaining our local changes;martin2006-04-271-38/+72
* use SEEK_* for lseek()deraadt2006-04-021-4/+4
* snprintf; drahn okderaadt2003-04-021-7/+8
* rm trailing whitespacetodd2002-06-091-27/+27
* Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.millert2002-02-161-1/+1
* Make the apple code compile for OpenBSD. These changes are mostly from maja.drahn2001-03-241-2/+18
* Import of pdisk from apple, BSD licensed code. Archive dated Feb 18 1998 drahn2001-03-241-0/+527