C How to posixify vtoycli

Gesundheit? What's with the name?

Anyway, looks like a good amount of Linuxisms. Some bad code such as omitting error checking on system calls. Have seen worse, but it will be pain to port a program that omits basic error checking.

I can't answer your question directly since I don't know what "pozixify" is supposed to mean.
 
You can't implement partition manager functionality purely with Posix. You could port this to BSDs. But as I said it is a pain to port software that omits error checking.
 
You can't implement partition manager functionality purely with Posix. You could port this to BSDs. But as I said it is a pain to port software that omits error checking.
Looking at the code more closely, it looks like some functions can easily be re-written using native FreeBSD commands, eg

diskinfo /dev/ada0 | cut -f 3

seems to be the equivalent of:-

get_disk_size_in_byte
 
Back
Top