Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Let the great de-typedef'ification begin. MEDIA -> struct file_media *. | 2016-01-17 | 1 | -2/+2 | ||
| | ||||||
* | Move last field (size_in_bytes) in struct media to struct file_media | 2016-01-16 | 1 | -2/+2 | ||
| | | | | and replace MEDIA with FILE_MEDIA everywhere. media.h becomes unused. | |||||
* | There can be only one. 'grain' that is. i.e. DEV_BSIZE. No need to track | 2016-01-16 | 1 | -5/+2 | ||
| | | | | | | or store. Just use. No functional change. | |||||
* | Start peeling away excess layers of abstraction. | 2016-01-16 | 1 | -3/+3 | ||
| | | | | | | | | | | 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. | |||||
* | We don't need yet another alias for DEV_BSIZE. Use DEV_BSIZE and | 2016-01-15 | 1 | -7/+8 | ||
| | | | | nuke PBLOCK_SIZE and another unused #define. | |||||
* | Kill unused variable 'lfile'. | 2016-01-14 | 1 | -6/+2 | ||
| | ||||||
* | Don't include hfs_misc.h, which no longer contains anything of use. | 2016-01-14 | 1 | -2/+1 | ||
| | ||||||
* | Remove code supporting undocumented and inaccessible flags 'a' | 2016-01-14 | 1 | -9/+1 | ||
| | | | | | (abbreviate partition type names), 'f' (print HFS partition names) and 'kLogicalOption' (obviously a getopt_long() conversion error). | |||||
* | Remove obsolete flags (h, v, i, c) from getopt() call. | 2016-01-13 | 1 | -7/+4 | ||
| | | | | No need for 'flags' variable. Just call usage() on unknown options. | |||||
* | The only thing in pdisk.h is an unused #define. So don't include it. | 2016-01-12 | 1 | -2/+1 | ||
| | ||||||
* | Use normal err/errx/warn/warnx rather than handrolling new ones. Move | 2016-01-12 | 1 | -19/+23 | ||
| | | | | | | usage() to pdisk.c and nuke do_help() and '-h'. ok jasper@ deraadt@ | |||||
* | Retire '-i', a poorly documented interactive mode that tries to | 2016-01-12 | 1 | -138/+5 | ||
| | | | | | | | 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@ | |||||
* | Since we use the disklabel size info we are always in 'device size | 2016-01-12 | 1 | -21/+1 | ||
| | | | | | mode' and '-c' and the '-d' command to toggle cflag are pointless since cflag is never examined. | |||||
* | Remove some '-v' leftovers. Pointed out by jasper@. | 2016-01-11 | 1 | -8/+2 | ||
| | ||||||
* | open_pathname_as_media() simply called open_file_as_media() which | 2016-01-11 | 1 | -3/+3 | ||
| | | | | | | | | | | 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@ | |||||
* | Remove '-v' and related version handling. Use strncasecmp() instead | 2016-01-11 | 1 | -21/+3 | ||
| | | | | | | of handrolled local istrncmp(). No need to compile util.c anymore. ok deraadt@ jasper@ | |||||
* | more whitespace was lurking | 2016-01-11 | 1 | -2/+2 | ||
| | ||||||
* | add rcs ids | 2016-01-11 | 1 | -0/+2 | ||
| | ||||||
* | Remove NULL-checks before free(). ok tb@ | 2015-12-10 | 1 | -6/+3 | ||
| | ||||||
* | Use __progname instead of manually handling argv[0]. | 2015-12-06 | 1 | -2/+0 | ||
| | | | | ok deraadt, mmcc, tedu | |||||
* | <stdlib.h> is included, so do not need to cast result from | 2015-08-20 | 1 | -1/+1 | ||
| | | | | | malloc, calloc, realloc* ok krw millert | |||||
* | remove mac68k leftovers | 2012-08-08 | 1 | -31/+0 | ||
| | | | | ok miod@ mpi@ deraadt@ martin@ | |||||
* | use opendev(), as requested in 6373. document this using text borrowed from | 2010-05-25 | 1 | -2/+0 | ||
| | | | | | disklabel(8), and while at it, fix the usage code to not be utterly distasteful ok drahn | |||||
* | partion -> partition. First one (mkfs.c) noted by Brad Tilley on tech@. | 2009-12-23 | 1 | -1/+1 | ||
| | ||||||
* | put back original getopt(3) handling lost during the update | 2006-05-12 | 1 | -45/+5 | ||
| | ||||||
* | remove a bunch of linux and NeXT defines and, in turn, -D__unix__ | 2006-05-11 | 1 | -39/+0 | ||
| | ||||||
* | With last pdisk and full functionality for mac68k now in place, start | 2006-04-29 | 1 | -69/+0 | ||
| | | | | | | cleaning the maze of ifdef's not relevant for us. This round wipes most linux and/or MacOS-only bits, more to come. | |||||
* | update for pdisk 0.8a2, from NetBSD, retaining our local changes; | 2006-04-27 | 1 | -119/+182 | ||
| | | | | | | | | | | | | | | | | | | | | | summing it up: - Clean up sources - fix naming, delete old email addresses - Added support for display of Mac volume names - Fix block 0 display to show logical offset of drivers - Require confirmation of quit without write - Fix iteration to not complain about missing devices - Warn when creating/writing a map with more than 15 entries and, most important, add do_update_dpme() which allows us to partition OpenBSD slices without previous MacOS setup. Tested with shared MacOS install on macppc, procedure there remains the same. grammer and spelling help and ok jmc@ ok miod@ | |||||
* | Check strdup return value for failure. OK miod | 2005-03-06 | 1 | -1/+4 | ||
| | ||||||
* | get rid of incorrectly sized buffer by using asprintf; ok millert | 2003-04-24 | 1 | -3/+8 | ||
| | ||||||
* | snprintf; drahn ok | 2003-04-02 | 1 | -2/+1 | ||
| | ||||||
* | more writable spelling; torh | 2002-12-15 | 1 | -7/+7 | ||
| | ||||||
* | rm trailing whitespace | 2002-06-09 | 1 | -18/+18 | ||
| | ||||||
* | New feature for pdisk, change the type of a parition. | 2001-10-12 | 1 | -1/+50 | ||
| | | | | | | | Useful since that is part of the OpenBSD/macppc installation procedure. Code by Alexander Guy, examined by drahn@ ok deraadt@ | |||||
* | return from main() don't exit | 2001-06-04 | 1 | -1/+1 | ||
| | ||||||
* | Make the apple code compile for OpenBSD. These changes are mostly from maja. | 2001-03-24 | 1 | -2/+68 | ||
| | ||||||
* | Import of pdisk from apple, BSD licensed code. Archive dated Feb 18 1998 | 2001-03-24 | 1 | -0/+1004 | ||
This is a HFS partition editing tool. |