freebsd-skq/usr.bin/tail/Makefile
Alan Somers cdb7a6fc42 Fix memory leaks during "tail -r" of an irregular file
* Rewrite r_buf to use standard tail queues instead of a hand-rolled
  circular linked list. Free dynamic allocations when done.
* Remove an optimization for the case where the file is a multiple of 128KB
  in size and there is a scarcity of memory.
* Add ATF tests for "tail -r" and its variants.

Reported by:	Valgrind
Reviewed by:	ngie
MFC after:	4 weeks
Sponsored by:	Spectra Logic Corp
Differential Revision:	https://reviews.freebsd.org/D9067
2017-01-10 20:43:32 +00:00

14 lines
203 B
Makefile

# $FreeBSD$
# @(#)Makefile 8.1 (Berkeley) 6/6/93
.include <src.opts.mk>
PROG= tail
SRCS= forward.c misc.c read.c reverse.c tail.c
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
.include <bsd.prog.mk>