TIL, There is already a libbsd which facilitates porting software from BSD
to Linux
.
Check its header files, I find many acquainted function declarations: strlcpy
, arc4random
, readpassphrase
, etc. I really wish I had known this library when porting tcpbench.