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.

Dependency Surface

Detected Declarations

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

Implementation Notes