Read a 4.2BSD source file
read_source_fileRead a source file from the 4.2BSD tree by its path, optionally within a line range. Fetches up to 1500 lines.
Instructions
Read a source file from the 4.2BSD tree by path (e.g. "sys/sys/sysent.c" or "src/lib/libc/gen/read.c"). Optionally restrict to a line range. At most 1500 lines are returned.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File path in the source tree, e.g. "sys/netinet/tcp_input.c" | |
| end_line | No | Last line to read (inclusive) | |
| start_line | No | First line to read |