Zig 0.17.0-dev (Split by item)

Shortcut keys
?
Show these tips
S
Focus search field
Esc
Clear focus & close tips
U
Jump to source code
↑
Move up in search results
↓
Move down in search results
↵
Go to active search result
This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig standard library. Public Struct

entry_point_command

Public Struct
std.macho.entry_point_command
pub const entry_point_command = extern struct

The entry_point_command is a replacement for thread_command. It is used for main executables to specify the location (file offset) of main(). If -stack_size was used at link time, the stacksize field will contain the stack size needed for the main thread.

Fields

cmd: LC = .MAIN

LC_MAIN only used in MH_EXECUTE filetypes

cmdsize: u32 = @sizeOf(entry_point_command)

sizeof(struct entry_point_command)

entryoff: u64 = 0

file (__TEXT) offset of main()

stacksize: u64 = 0

if not zero, initial stack size

File

macho.zig:170
170
171
172
173
174
175
176
177
178
179
180
181
182
pub const entry_point_command = extern struct {
    /// LC_MAIN only used in MH_EXECUTE filetypes
    cmd: LC = .MAIN,

    /// sizeof(struct entry_point_command)
    cmdsize: u32 = @sizeOf(entry_point_command),

    /// file (__TEXT) offset of main()
    entryoff: u64 = 0,

    /// if not zero, initial stack size
    stacksize: u64 = 0,
}