Skip to content

Commit 2561615

Browse files
committed
Better types in ShmInfo structure
1 parent e7ee0d4 commit 2561615

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

src/types.jl

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -75,19 +75,19 @@ struct ShmId
7575
end
7676

7777
mutable struct ShmInfo
78-
atime::UInt64 # last attach time
79-
dtime::UInt64 # last detach time
80-
ctime::UInt64 # last change time
81-
segsz::UInt64 # size of the public area
82-
id::Int32 # shared memory identifier
83-
cpid::Int32 # process ID of creator
84-
lpid::Int32 # process ID of last operator
85-
nattch::Int32 # no. of current attaches
86-
mode::UInt32 # lower 9 bits of access modes
87-
uid::UInt32 # effective user ID of owner
88-
gid::UInt32 # effective group ID of owner
89-
cuid::UInt32 # effective user ID of creator
90-
cgid::UInt32 # effective group ID of creator
78+
atime::time_t # last attach time
79+
dtime::time_t # last detach time
80+
ctime::time_t # last change time
81+
segsz::Int64 # size of the public area
82+
id::Cint # shared memory identifier
83+
cpid::pid_t # process ID of creator
84+
lpid::pid_t # process ID of last operator
85+
nattch::shmatt_t # no. of current attaches
86+
mode::mode_t # lower 9 bits of access modes
87+
uid::uid_t # effective user ID of owner
88+
gid::gid_t # effective group ID of owner
89+
cuid::uid_t # effective user ID of creator
90+
cgid::gid_t # effective group ID of creator
9191
ShmInfo() = new(0,0,0,0,0,0,0,0,0,0,0,0,0)
9292
end
9393

0 commit comments

Comments
 (0)