summaryrefslogtreecommitdiff
path: root/sbin/pdisk/file_media.c
AgeCommit message (Expand)Author
2016-01-30Move last three lines (#define's) from dpme.h to partition_map.h andKenneth R Westerback
2016-01-30Fold struct dpme into struct entry. Same reasons as for foldingKenneth R Westerback
2016-01-30There is not much to do if we run out of memory, so simply exit ifKenneth R Westerback
2016-01-29Fold struct block0 into struct partition map. There can be only oneKenneth R Westerback
2016-01-28Use consistent 'return' idiom -- no parenthesis since that was the styleKenneth R Westerback
2016-01-26dpme_name and dpme_type are NUL-terminated in Apple code, so useKenneth R Westerback
2016-01-26Whitespace, line wrapping fixes.Kenneth R Westerback
2016-01-25Use new read/write_block0 and read/write_dpme which handle anyKenneth R Westerback
2016-01-25Add read/write_block0 and read/write_dpme functions, not yet used.Kenneth R Westerback
2016-01-23Flip read_block() and write_block() back to taking sector addressesKenneth R Westerback
2016-01-22Merge read_block() and read_file_media() into read_block(). DittoKenneth R Westerback
2016-01-21Hoist all file opening and ioctl calls into main(), passing a pointer toKenneth R Westerback
2016-01-19Remove forward declarations for functions that do not exist.Kenneth R Westerback
2016-01-18struct file_media had 1 field left. And one place where structKenneth R Westerback
2016-01-18Discard a whack of double and triple checking lseek/read/write parameters.Kenneth R Westerback
2016-01-18os_reload_file_media() doesn't do anything except tell you if you passed itKenneth R Westerback
2016-01-18Run indent(1) over it and tweak the results a bit manually to look moreKenneth R Westerback
2016-01-18Remove a grab bag of unused #define's, fields, enum's, variables,Kenneth R Westerback
2016-01-17Change "//" comments to "/**/". Nuke really stupid ones.Kenneth R Westerback
2016-01-17Reduce namespace pollution by eliminating parameter names from forwardKenneth R Westerback
2016-01-17Remove a bunch of ridiculous and uninformative comments like "// Defines".Kenneth R Westerback
2016-01-17Let the great de-typedef'ification begin. MEDIA -> struct file_media *.Kenneth R Westerback
2016-01-16Move last field (size_in_bytes) in struct media to struct file_mediaKenneth R Westerback
2016-01-16Oops. Missed a file.Kenneth R Westerback
2016-01-16There can be only one. 'grain' that is. i.e. DEV_BSIZE. No need to trackKenneth R Westerback
2016-01-16There can be only one. 'kind' that is. No need to allocate or track theKenneth R Westerback
2016-01-16Start peeling away excess layers of abstraction.Kenneth R Westerback
2016-01-16Nuke support for 1024- and 2048-byte sector devices. Error out ifKenneth R Westerback
2016-01-15As with compute_device_size(), gut compute_block_size() and simplyKenneth R Westerback
2016-01-13Nuke unused enum.Kenneth R Westerback
2016-01-12#define LOFF_T off_tKenneth R Westerback
2016-01-12Use normal err/errx/warn/warnx rather than handrolling new ones. MoveKenneth R Westerback
2016-01-12Remove media interation types, structures and functions. They are not usedKenneth R Westerback
2016-01-11- remove some unused data structures/fieldsJasper Lievisse Adriaanse
2016-01-11plug a mem leakJasper Lievisse Adriaanse
2016-01-11trailing whitespaceJasper Lievisse Adriaanse
2016-01-11add rcs idsJasper Lievisse Adriaanse
2015-08-20<stdlib.h> is included, so do not need to cast result fromTheo de Raadt
2010-05-25use opendev(), as requested in 6373. document this using text borrowed fromTheo de Raadt
2006-05-11remove a bunch of linux and NeXT defines and, in turn, -D__unix__Martin Reindl
2006-04-29With last pdisk and full functionality for mac68k now in place, startMartin Reindl
2006-04-27update for pdisk 0.8a2, from NetBSD, retaining our local changes;Martin Reindl
2006-04-02use SEEK_* for lseek()Theo de Raadt
2003-04-02snprintf; drahn okTheo de Raadt
2002-06-09rm trailing whitespaceTodd T. Fries
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ...Todd C. Miller
2001-03-24Make the apple code compile for OpenBSD. These changes are mostly from maja.Dale Rahn
2001-03-24Import of pdisk from apple, BSD licensed code. Archive dated Feb 18 1998 Dale Rahn