tools/testing/selftests/acct/acct_syscall.c
Source file repositories/reference/linux-study-clean/tools/testing/selftests/acct/acct_syscall.c
File Facts
- System
- Linux kernel
- Corpus path
tools/testing/selftests/acct/acct_syscall.c- Extension
.c- Size
- 1420 bytes
- Lines
- 79
- Domain
- Support Tooling And Documentation
- Bucket
- tools
- Inferred role
- Support Tooling And Documentation: syscall or user/kernel boundary
- Status
- core implementation candidate
Why This File Exists
Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.
- Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.
- Defines or participates in a user/kernel boundary; inspect argument validation, copy_from_user/copy_to_user, credentials, and dispatch target.
Dependency Surface
stdio.herrno.hstring.hsys/wait.hkselftest.h
Detected Declarations
function acct
Annotated Snippet
if (sz <= 0) {
ksft_test_result_fail("Terminated child process not logged\n");
ksft_exit_fail();
return 1;
}
ksft_test_result_pass("Successfully logged terminated process.\n");
fclose(fp);
ksft_exit_pass();
return 0;
}
return 1;
}
Annotation
- Immediate include surface: `stdio.h`, `errno.h`, `string.h`, `sys/wait.h`, `kselftest.h`.
- Detected declarations: `function acct`.
- Atlas domain: Support Tooling And Documentation / tools.
- Implementation status: core implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.