Fix file permissions when using "open()" with O_CREAT

File permissions must be set explicitly when "open()"
is used with O_CREAT
Moved OPEN_MODE_REGULAR_FILE to local.h
Outputting line-numbers

Controlled via flag -n<delim>