History log of /freebsd-current/tools/regression/sockets/sendfile/sendfile.c
Revision Date Author Comments
# b3e76948 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: two-line .h pattern

Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/


# eb1c509f 15-Jan-2016 Enji Cooper <ngie@FreeBSD.org>

Fix warnings with gcc 5.0

reconnect.c:
- Convert the K&R prototype of main to an ANSI prototype to mute a
warning from gcc 4.2.1
- Close s_sock2 after finishing off the last test to plug a leak and
mute a warning from gcc 5.0 about a -Wunused-but-set variable

sendfile.c:
- Fix a -Wunused-but-set warning with gcc 5.0 with pagesize in main(..)

MFC after: 5 days
Sponsored by: EMC / Isilon Storage Division


# b74bcac4 10-Apr-2015 Enji Cooper <ngie@FreeBSD.org>

- Don't use /tmp because it's outside ATF's prescribed sandbox
- Replace a hardcoded PATH_MAX value with sizeof(path)
- Use path like an array, not a pointer, and always try to unlink it in cleanup

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division


# 50185946 10-Sep-2013 Ed Maste <emaste@FreeBSD.org>

Add a sendfile regression test for transmit length > file size.

This test identified the issue fixed in FreeBSD-SA-13:11.sendfile.

Sponsored by: The FreeBSD Foundation
Approved by: re (glebius)


# 76423e6e 11-Dec-2010 Pawel Jakub Dawidek <pjd@FreeBSD.org>

Allow to specify path to a file we want to test with sendfile(2).
This allows to specify selected file system and not only /tmp/.


# a7d5f7eb 19-Oct-2010 Jamie Gritton <jamie@FreeBSD.org>

A new jail(8) with a configuration file, to replace the work currently done
by /etc/rc.d/jail.


# fe0506d7 09-Mar-2010 Marcel Moolenaar <marcel@FreeBSD.org>

Create the altix project branch. The altix project will add support
for the SGI Altix 350 to FreeBSD/ia64. The hardware used for porting
is a two-module system, consisting of a base compute module and a
CPU expansion module. SGI's NUMAFlex architecture can be an excellent
platform to test CPU affinity and NUMA-aware features in FreeBSD.


# 8dd83f1e 24-Feb-2010 Rebecca Cran <brucec@FreeBSD.org>

Update the sendfile regression test so that it outputs results in the
TAP format.
Add a checksum to verify that the data hasn't been corrupted between
being read from disk and being received.

Approved by: rrs (mentor)


# d7f03759 19-Oct-2008 Ulf Lilleengen <lulf@FreeBSD.org>

- Import the HEAD csup code which is the basis for the cvsmode work.


# 4225b7d6 10-Sep-2008 Maxim Konovalov <maxim@FreeBSD.org>

o Correct a comment: a test file size is a four pages not three.


# d77f4f6a 20-Apr-2007 Pawel Jakub Dawidek <pjd@FreeBSD.org>

Test sending 0 bytes.


# 4b7e26d0 20-Apr-2007 Pawel Jakub Dawidek <pjd@FreeBSD.org>

Fix length calculation.


# f7754b09 19-Apr-2007 Dag-Erling Smørgrav <des@FreeBSD.org>

Valid error codes for err() and errx() are 1..255.
The correct format specifier for ssize_t is %zd.


# ed3d9b6e 19-Apr-2007 Pawel Jakub Dawidek <pjd@FreeBSD.org>

Add more tests to verify last sendfile(2) breakage: test sending more
than a page size and nbytes=0.


# 0fb57f87 25-May-2006 Robert Watson <rwatson@FreeBSD.org>

Add a basic regression test for sendfile() over TCP, which sends varying
lengths of headers and data and makes sure it receives about the right
number of bytes.