Skip to content

Commit

Permalink
clusterd: Add ppc64le architecture
Browse files Browse the repository at this point in the history
  • Loading branch information
donald committed Jun 13, 2018
1 parent 5a917d5 commit 5aa3a28
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions clusterd/clusterd
Original file line number Diff line number Diff line change
Expand Up @@ -829,6 +829,15 @@ if ($machine eq 'i686') {
} elsif ($machine eq 'amd64') {
$SYS_lchown=254; # SYS_lchown in /usr/include/syscall.h
$SYS_mknod=14; # SYS_mknod
} elsif ($machine eq 'ppc64le') {
$SYS_lchown=16; # __NR_lchown in /usr/include/powerpc64le-linux-gnu/asm/unistd.h
$SYS_mknod=14; # __NR_mknod

$SYS_utimensat=304; # __NR_utimensat in /usr/include/powerpc64le-linux-gnu/asm/unistd.h
$AT_FDCWD=-100; # /usr/include/linux/fcntl.h
$UTIME_OMIT=(1<<30)-2; # /usr/include/powerpc64le-linux-gnu/bits/stat.h
$AT_SYMLINK_NOFOLLOW=0x100; # /usr/include/linux/fcntl.h
$lmtime_sub=\&lmtime_utimensat;
} else {
warn "unknown machine type $machine: symlink ownership can't be set.\n";
warn "unknown machine type $machine: named pipes,character and block devices can't be created\n";
Expand Down

0 comments on commit 5aa3a28

Please sign in to comment.