[Bug 291683] FreeBSD 15.0-RELEASE: system hangs when performing stress-ng utime stress tests

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 15 Dec 2025 12:16:39 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=291683

Marek Zarychta <zarychtam@plan-b.pwste.edu.pl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |zarychtam@plan-b.pwste.edu.
                   |                            |pl

--- Comment #3 from Marek Zarychta <zarychtam@plan-b.pwste.edu.pl> ---
(In reply to Colin Ian King from comment #2)

stress.c:12:8: warning: call to undeclared function 'unlink'; ISO C99 and later
do not support implicit function declarations [-Wimplicit-function-declaration]
   12 |         (void)unlink(filename);
      |               ^
1 warning generated.

You forgot about including <unistd.h>
Please add #include <unistd.h> and you will be fine.

-- 
You are receiving this mail because:
You are the assignee for the bug.