Sync with FreeBSD.
commit9fe31a3a8f4be3da7dbe72cab0cf0c7a39b1d332
authorpavalos <pavalos>
Fri, 6 Apr 2007 23:36:54 +0000 (6 23:36 +0000)
committerpavalos <pavalos>
Fri, 6 Apr 2007 23:36:54 +0000 (6 23:36 +0000)
tree643a3f143f8682da90eaf5922cc65e6fb2d750d1
parent57c451a7f663568599381ad59a76d1b33519208c
Sync with FreeBSD.

File positions are off_t nowdays, not long, so:
  fseek -> fseeko

Make errmsg a const, so we can just set error messages instead
  of using sprintf/strcpy.

proper parens mean that fd is always set by open(2) [in any part of C],
and so we can accurately check for it returning -1, without feeling like
we need to initialize fd to -1 in its declaration.

Remove some #ifdef sun.

Sprinkle const.
bin/ed/buf.c
bin/ed/cbc.c
bin/ed/ed.h
bin/ed/glbl.c
bin/ed/io.c
bin/ed/main.c
bin/ed/re.c
bin/ed/sub.c
bin/ed/undo.c