Commit graph

9 commits

Author SHA1 Message Date
rillig
1fd58b933b Fixed a segmentation fault on IRIX. Although IRIX provides the
REG_STARTEND macro, it doesn't work as expected. A simple test case is:

	printf '\0\n\0\n' | nbsed /a/d

This test does not yet work as expected, but at least it doesn't cause
segmentation faults anymore. Handling of '\0' bytes must be improved.
2007-03-07 19:18:39 +00:00
jschauma
3b7e4ba262 Remove check for getprogname, setprogname and fgetln, consistent with
jlam's last change, since we use libnbcompat.  (If we left these checks in,
configure would test for them, find them and set HAVE_GETPROGNAME, subsequently
breaking 'getprogname', as nbcompat.h wouldn't work since HAVE_GETPROGNAME
is then defined.)
2004-09-11 17:54:04 +00:00
jlam
cbc4a5a727 Simplify the import structure by keeping the "sed" name, and using the
configure script's --program-transform-name to install as "nbsed".  Also
add a cat-ready nbsed.0 file.
2004-08-27 03:45:08 +00:00
jlam
73596af21b We use libnbcompat, so remove some standalone implemenations of some
needed functions, and vastly simplify the configure script.
2004-08-23 02:58:58 +00:00
jlam
c911e88f6d Include <termios.h> for winsize declaration and TIOCGWINSZ. Should fix
build on Solaris.
2004-08-22 05:51:55 +00:00
jlam
6cc8af8dc3 Update textproc/nbsed to 20040821 (date of import from src HEAD).
Changes from the previous version include:

- Adding a sed2nbcompat script to ease importing from src HEAD into
  pkgsrc.

- Make this package depend on libnbcompat since it needs a regex
  implementation and it's also a bootstrap package.

* s/xmalloc/xrealloc/ so that large (greater than _POSIX2_LINE_MAX*2-1)
  multi line text can be added.
2004-08-21 08:39:54 +00:00
grant
6de2b0d256 regen 2003-10-16 12:06:26 +00:00
jschauma
6ac56349ca Bump date for ability to build on Irix. 2003-08-23 22:20:25 +00:00
agc
7825056ec8 Initial import of an autoconf-ed version of NetBSD's sed(1). 2003-08-18 17:34:54 +00:00