lib/linebuffer.c


Log

Author Commit Date CI Message
Bruno Haible 57fdfd3f 2007-10-07T19:14:58 Change copyright notice from GPLv2+ to GPLv3+.
Bruno Haible 1b343b87 2007-05-14T21:36:29 Tweak doc.
Jim Meyering 526b71aa 2007-05-12T15:59:59 * lib/linebuffer.c (readlinebuffer_delim): New function, like readlinebuffer, but use a caller-specified delimiter. (readlinebuffer): Just call readlinebuffer_delim with '\n' as the delimiter. * lib/linebuffer.h (readlinebuffer_delim): Declare it.
Paul Eggert 0632e115 2006-09-13T22:38:14 * _fpending.c: Include <config.h> unconditionally, since we no longer worry about uses that don't define HAVE_CONFIG_H. * acl.c, alloca.c, argmatch.c, atexit.c, backupfile.c: * basename.c, c-stack.c, c-strtod.c, calloc.c, canon-host.c: * canonicalize.c, chdir-long.c, chdir-safer.c, chown.c: * cloexec.c, close-stream.c, closeout.c, creat-safer.c: * cycle-check.c, diacrit.c, dirchownmod.c, dirfd.c, dirname.c: * dup-safer.c, dup2.c, error.c, euidaccess.c, exclude.c: * exitfail.c, fchmodat.c, fchown-stub.c, fd-safer.c: * file-type.c, fileblocks.c, filemode.c, filenamecat.c: * fnmatch.c, fopen-safer.c, fprintftime.c, free.c, fsusage.c: * ftruncate.c, fts-cycle.c, fts.c, full-write.c, gai_strerror.c: * getcwd.c, getdate.y, getdomainname.c, getgroups.c: * gethostname.c, gethrxtime.c, getloadavg.c, getlogin_r.c: * getndelim2.c, getnline.c, getopt.c, getopt1.c, getpass.c: * gettime.c, gettimeofday.c, getugroups.c, getusershell.c: * glob.c, group-member.c, hard-locale.c, hash-pjw.c, hash.c: * human.c, idcache.c, inet_ntop.c, inet_pton.c, inttostr.c: * isdir.c, lchown.c, linebuffer.c, long-options.c, lstat.c: * malloc.c, md5.c, memcasecmp.c, memchr.c, memcmp.c, memcoll.c: * memcpy.c, memmove.c, memrchr.c, mkancesdirs.c, mkdir-p.c: * mkdir.c, mkdirat.c, mkstemp-safer.c, mkstemp.c, modechange.c: * mountlist.c, nanosleep.c, obstack.c, open-safer.c: * openat-die.c, openat.c, pagealign_alloc.c, physmem.c: * pipe-safer.c, posixtm.c, posixver.c, putenv.c, quote.c: * quotearg.c, raise.c, readtokens.c, readtokens0.c, readutmp.c: * realloc.c, regex.c, rename.c, rmdir.c, rpmatch.c, safe-read.c: * same.c, save-cwd.c, savedir.c, setenv.c, settime.c, sha1.c: * sig2str.c, snprintf.c, strdup.c, strerror.c, strftime.c: * stripslash.c, strndup.c, strnlen.c, strpbrk.c, strtod.c: * strtoimax.c, strtol.c, strverscmp.c, tempname.c, time_r.c: * timegm.c, tmpfile-safer.c, unlinkdir.c, userspec.c, utime.c: * utimecmp.c, utimens.c, version-etc-fsf.c, version-etc.c: * xalloc-die.c, xgetcwd.c, xgethostname.c, xmalloc.c: * xmemcoll.c, xnanosleep.c, xreadlink.c, xstrtod.c: * xstrtoimax.c, xstrtol.c, xstrtoumax.c, yesno.c: Likewise.
Paul Eggert 267a39ba 2005-05-14T06:03:57 *** empty log message ***
Paul Eggert 917752ad 2004-10-04T20:17:39 Remove dependencies on unlocked-io.
Jim Meyering 3aa5630a 2003-10-31T13:53:15 Include <string.h> for declaration of memset.
Paul Eggert 0c0be7e5 2003-10-30T00:36:03 Simplify the code by using new xalloc.h features.
Paul Eggert b5f4d75d 2003-09-24T20:56:42 (freebuffer): Don't free the argument, just the buffer associated with the argument. Bug reported by Simon Josefsson.
Paul Eggert 73bb09bd 2003-09-16T20:00:38 linebuffer.c (readlinebuffer): Return NULL immediately upon input error.
Paul Eggert a9b64ea6 2003-09-09T21:51:00 Include <stdlib.h>. (free): Remove decl.
Paul Eggert 7987825e 2003-01-13T07:09:16 (readlinebuffer): Renamed from readline. All uses changed.
Jim Meyering 9d2aa9f8 2001-12-10T00:13:36 Remove explicit declarations of xmalloc and xrealloc, Instead, include "xalloc.h". (initbuffer): Don't cast xmalloc return value to char*. (readline): Reword comment. Don't cast xrealloc return value to char* Return NULL, not 0.
Jim Meyering 92f1833a 2001-11-17T13:29:42 Include unlocked-io.h.
Jim Meyering 89f2b489 2000-08-07T15:48:18 back out Copyright date changes for files with no changes year
Jim Meyering d349992d 2000-07-09T07:22:43 update copyright date
Jim Meyering 32027663 1999-11-04T23:12:42 (readline): Do not leave room for an extra byte after the newline; it's no longer needed.
Jim Meyering d59ff2bd 1999-07-30T19:29:27 Include <sys/types.h> now that linebuffer.h uses size_t. This is required on at least SunOS4. From Kaveh Ghazi.
Jim Meyering 9d80c0d4 1999-07-04T10:31:01 (readline): Leave room for an extra byte after the newline; comm needs this for memcoll.
Jim Meyering ade79def 1999-07-04T10:06:42 (readline): Append trailing newline to line.
Jim Meyering 04e03d50 1998-08-03T03:03:11 Ansideclify.
Jim Meyering 069ca377 1998-08-03T03:02:20 *** empty log message ***
Jim Meyering 13192579 1998-08-03T03:02:04 (readline): Return zero upon error as well as upon end of file. From James Youngman.
Jim Meyering 87e2683e 1992-11-08T02:50:44 Initial revision