agent: Another portion of replacing Linux structures with BSD's

NOTE: Commented out code needs to be removed.