Skip to content

Commit

Permalink
Minor fix for illumos support
Browse files Browse the repository at this point in the history
illumos is the opensource continuation of OpenSolaris after Oracle
closed to source it (again).

For example use see: openbao/openbao#205.

Signed-off-by: Jasper Siepkes <siepkes@serviceplanet.nl>
  • Loading branch information
siepkes committed Apr 3, 2024
1 parent 330a6f9 commit cf93311
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions pkg/system/stat_illumos.go
@@ -0,0 +1,15 @@
package system // import "github.com/docker/docker/pkg/system"

import "syscall"

// fromStatT converts a syscall.Stat_t type to a system.Stat_t type
func fromStatT(s *syscall.Stat_t) (*StatT, error) {
return &StatT{
size: s.Size,
mode: uint32(s.Mode),
uid: s.Uid,
gid: s.Gid,
rdev: uint64(s.Rdev),
mtim: s.Mtim,
}, nil
}

0 comments on commit cf93311

Please sign in to comment.