Correct dlpi_name field type

This commit is contained in:
LemonBoy 2020-01-14 21:15:33 +01:00
parent 158d98a7f2
commit c1f3766f1c
4 changed files with 4 additions and 4 deletions

View File

@ -612,7 +612,7 @@ pub const sockaddr_storage = extern struct {
};
pub const dl_phdr_info = extern struct {
dlpi_addr: usize,
dlpi_name: ?[*]const u8,
dlpi_name: ?[*:0]const u8,
dlpi_phdr: [*]std.elf.Phdr,
dlpi_phnum: u16,
};

View File

@ -45,7 +45,7 @@ pub const RTLD_NOLOAD = 0x02000;
pub const dl_phdr_info = extern struct {
dlpi_addr: usize,
dlpi_name: ?[*]const u8,
dlpi_name: ?[*:0]const u8,
dlpi_phdr: [*]std.elf.Phdr,
dlpi_phnum: u16,
};

View File

@ -992,7 +992,7 @@ pub const dirent64 = extern struct {
pub const dl_phdr_info = extern struct {
dlpi_addr: usize,
dlpi_name: ?[*]const u8,
dlpi_name: ?[*:0]const u8,
dlpi_phdr: [*]std.elf.Phdr,
dlpi_phnum: u16,
};

View File

@ -16,7 +16,7 @@ pub const Kevent = extern struct {
pub const dl_phdr_info = extern struct {
dlpi_addr: usize,
dlpi_name: ?[*]const u8,
dlpi_name: ?[*:0]const u8,
dlpi_phdr: [*]std.elf.Phdr,
dlpi_phnum: u16,
};