Skip to content

Commit

Permalink
Merge pull request #40 from DataDog/paulcacheux/generate_types_darwin…
Browse files Browse the repository at this point in the history
…_amd64

Generate types for darwin/arm64
  • Loading branch information
paulcacheux authored Jun 29, 2022
2 parents e8f965a + 9ef6a0c commit 404e39a
Show file tree
Hide file tree
Showing 4 changed files with 234 additions and 0 deletions.
22 changes: 22 additions & 0 deletions host/host_darwin_arm64.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions mktypes.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,17 @@ case $ARCH in
arm)
GOARCH="arm"
;;
arm64)
GOARCH="arm64"
;;
*)
echo "unknown arch: $ARCH"
exit 1
esac

# Note that `process.Uucred#Uid` must be chanded manually to `UID` to match upstream behavior.
# Please see https://github.com/shirou/gopsutil/pull/917 for more information.

for DIR in $DIRS
do
if [ -e ${DIR}/types_${GOOS}.go ]; then
Expand Down
205 changes: 205 additions & 0 deletions process/process_darwin_arm64.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions process/types_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ package process
#define __DARWIN_UNIX03 0
#define KERNEL
#define _DARWIN_USE_64_BIT_INODE
#include <stdint.h>
#include <dirent.h>
#include <fcntl.h>
#include <signal.h>
Expand Down

0 comments on commit 404e39a

Please sign in to comment.