Commit graph

10 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
83a9355796 Sync with last (pointed out by jlam@: don't check for fgetln, setprogname
and getprogname.
We're using libnbcompat, so we know they exist.  (If we were to check again,
then we'd mess up definitions set in the nbcompat headers.)
2004-09-12 16:50:50 +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
6dcf345625 - this is named 'nbsed', not 'nb-sed'
- s/netbsd.org/NetBSD.org/
2003-10-16 12:05:36 +00:00
grant
4ce5753a63 portability fixes:
- test for __inline/inline, de-mangle the corresponding hack in
  process.c to reduce the diff to NetBSD-current source
- move some autoconf-y bits to configure.ac

fixes build on Solaris with SunPro.
2003-10-16 12:04:41 +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