After applying this patch, the warning is gone. Thanks! safe_macros.c:62: WARN: hugemmap05.c:184: close(-1) failed: EBADF safe_macros.c:360: WARN: hugemmap05.c:185: unlink(hugemmap05/file) failed: ENOENT -- Li Wang liwang@redhat.com