Age | Commit message (Collapse) | Author | |
---|---|---|---|
2016-01-16 | Oops. Missed a file. | Kenneth R Westerback | |
2016-01-16 | Another to the attic. | Kenneth R Westerback | |
2016-01-16 | No need to abstract malloc(), so replace new_file_media() with | Kenneth R Westerback | |
malloc(). Removes last use of last used function in media.c, so unhook that from the Makefile and remove forward declarations from media.h. No functional change. | |||
2016-01-16 | There can be only one. 'grain' that is. i.e. DEV_BSIZE. No need to track | Kenneth R Westerback | |
or store. Just use. No functional change. | |||
2016-01-16 | There can be only one. 'kind' that is. No need to allocate or track the | Kenneth R Westerback | |
media kind since it will always be the same -- a file. No functional change. | |||
2016-01-16 | Remove some forward declarations missed in last commit. | Kenneth R Westerback | |
2016-01-16 | Start peeling away excess layers of abstraction. | Kenneth R Westerback | |
Since 'file' is the only kind of media, no need to call the appropriate functions via pointers. Just call the _file_ variants directly. Nuke the fields do_read(), do_write(), do_close(), do_os_reload() and the functions read_media(), write_media(), close_media() and os_reload_media(). No functional change. | |||
2016-01-16 | remove these files for they're no longer accurate, up to date or relevant for | Jasper Lievisse Adriaanse | |
that matter. ok krw@ | |||
2016-01-16 | Another couple for the attic. | Kenneth R Westerback | |
2016-01-16 | Nuke support for 1024- and 2048-byte sector devices. Error out if | Kenneth R Westerback | |
anything other than 512-byte sectors are encountered. Unlink deblock_media.c from the build. ok jasper@ | |||
2016-01-15 | As with compute_device_size(), gut compute_block_size() and simply | Kenneth R Westerback | |
ask the disklabel as everyone else does. Add file name to compute_block_size() parameters to make error messages nicer. | |||
2016-01-15 | We don't need yet another alias for DEV_BSIZE. Use DEV_BSIZE and | Kenneth R Westerback | |
nuke PBLOCK_SIZE and another unused #define. | |||
2016-01-15 | Two more for the attic. | Kenneth R Westerback | |
2016-01-15 | Replace bitfield_get() and bitfield_set() abstraction with simple masking | Kenneth R Westerback | |
operations since all the uses but 1 are for 1 bit fields. No functional change intended. Unhook bitfield.c from build. | |||
2016-01-14 | Kill unused variable 'lfile'. | Kenneth R Westerback | |
2016-01-14 | Move more unused files to attic. | Kenneth R Westerback | |
2016-01-14 | Don't include hfs_misc.h, which no longer contains anything of use. | Kenneth R Westerback | |
2016-01-14 | Nuke 'HFS_name' field which was not referenced now other than setting | Kenneth R Westerback | |
it and freeing it. Unhook hfs_misc.c from build since it now longer contains anything being used. | |||
2016-01-14 | Remove code supporting undocumented and inaccessible flags 'a' | Kenneth R Westerback | |
(abbreviate partition type names), 'f' (print HFS partition names) and 'kLogicalOption' (obviously a getopt_long() conversion error). | |||
2016-01-13 | Remove obsolete flags (h, v, i, c) from getopt() call. | Kenneth R Westerback | |
No need for 'flags' variable. Just call usage() on unknown options. | |||
2016-01-13 | Nuke unused enum. | Kenneth R Westerback | |
2016-01-12 | #define LOFF_T off_t | Kenneth R Westerback | |
#define llseek lseek #define LOFF_T_MAX LLONG_MAX I mean, really? Nuke'em and use off_t, lseek and LLONG_MAX. Also make a couple of checks for overflow of off_t value more likely to work. ok millert@ | |||
2016-01-12 | Another unused file for the attic. | Kenneth R Westerback | |
2016-01-12 | The only thing in pdisk.h is an unused #define. So don't include it. | Kenneth R Westerback | |
2016-01-12 | Move unused files to attic. | Kenneth R Westerback | |
2016-01-12 | Use normal err/errx/warn/warnx rather than handrolling new ones. Move | Kenneth R Westerback | |
usage() to pdisk.c and nuke do_help() and '-h'. ok jasper@ deraadt@ | |||
2016-01-12 | Remove media interation types, structures and functions. They are not used | Kenneth R Westerback | |
anywhere, as evidenced by everything still compiling after they are gone. | |||
2016-01-12 | Retire '-i', a poorly documented interactive mode that tries to | Kenneth R Westerback | |
mimic the 20th century MacOS version of pdisk more closely than the usual interactive editor. One set of commands is enough for anyone. ok jasper@ | |||
2016-01-12 | Since we use the disklabel size info we are always in 'device size | Kenneth R Westerback | |
mode' and '-c' and the '-d' command to toggle cflag are pointless since cflag is never examined. | |||
2016-01-11 | More '-v' leftovers (usage). | Kenneth R Westerback | |
2016-01-11 | Remove some '-v' leftovers. Pointed out by jasper@. | Kenneth R Westerback | |
2016-01-11 | Nuke now unused files. | Kenneth R Westerback | |
ok deraadt@ | |||
2016-01-11 | open_pathname_as_media() simply called open_file_as_media() which | Kenneth R Westerback | |
takes the same parameters and returns the same value. Nuke open_pathname_as_media() and call open_file_as_media() directly. Nothing else from pathname.[ch] is used so remove them from build in preparation for moving them to the attic. ok deraadt@ | |||
2016-01-11 | Nuke now unused files. | Kenneth R Westerback | |
ok deraadt@ jasper@ | |||
2016-01-11 | Remove '-v' and related version handling. Use strncasecmp() instead | Kenneth R Westerback | |
of handrolled local istrncmp(). No need to compile util.c anymore. ok deraadt@ jasper@ | |||
2016-01-11 | - remove some unused data structures/fields | Jasper Lievisse Adriaanse | |
- unifdef notdef ok krw@ | |||
2016-01-11 | plug a mem leak | Jasper Lievisse Adriaanse | |
ok krw@ | |||
2016-01-11 | more whitespace was lurking | Jasper Lievisse Adriaanse | |
2016-01-11 | trailing whitespace | Jasper Lievisse Adriaanse | |
2016-01-11 | add rcs ids | Jasper Lievisse Adriaanse | |
2016-01-10 | Use the normal method for determining a disk size. i.e. use the | Kenneth R Westerback | |
device's default disklabel. Don't spew i/o's at the disk to find the largest address that works, displaying many a 'read failed' message along the way. Problem noted by Brian Conway on bugs@ and jasper@. ok jasper@ | |||
2015-12-10 | Remove NULL-checks before free(). ok tb@ | mmcc | |
2015-12-06 | Use __progname instead of manually handling argv[0]. | Tobias Stoeckmann | |
ok deraadt, mmcc, tedu | |||
2015-08-20 | Two reallocarray() conversions that were missed earlier. | Todd C. Miller | |
OK deraadt@ | |||
2015-08-20 | <stdlib.h> is included, so do not need to cast result from | Theo de Raadt | |
malloc, calloc, realloc* ok krw millert | |||
2014-07-21 | Switch from <sys/endian.h> or <machine/endian.h> to the new, | Philip Guenther | |
being-standardized <endian.h> ok deraadt@ millert@ beck@ | |||
2014-07-16 | zap trailing newlines; "go for it" deraadt | Okan Demirmen | |
2012-12-04 | remove some unnecessary sys/param.h inclusions | Theo de Raadt | |
2012-08-08 | remove mac68k leftovers | Jonathan Gray | |
ok miod@ mpi@ deraadt@ martin@ | |||
2012-06-20 | more mac68k bits for the attic | Matthew Dempsky | |