Skip to content

Commit 404e39a

Browse files
authored
Merge pull request #40 from DataDog/paulcacheux/generate_types_darwin_amd64
Generate types for darwin/arm64
2 parents e8f965a + 9ef6a0c commit 404e39a

File tree

4 files changed

+234
-0
lines changed

4 files changed

+234
-0
lines changed

host/host_darwin_arm64.go

Lines changed: 22 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

mktypes.sh

100644100755
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,17 @@ case $ARCH in
2020
arm)
2121
GOARCH="arm"
2222
;;
23+
arm64)
24+
GOARCH="arm64"
25+
;;
2326
*)
2427
echo "unknown arch: $ARCH"
2528
exit 1
2629
esac
2730

31+
# Note that `process.Uucred#Uid` must be chanded manually to `UID` to match upstream behavior.
32+
# Please see https://github.com/shirou/gopsutil/pull/917 for more information.
33+
2834
for DIR in $DIRS
2935
do
3036
if [ -e ${DIR}/types_${GOOS}.go ]; then

process/process_darwin_arm64.go

Lines changed: 205 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

process/types_darwin.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ package process
2121
#define __DARWIN_UNIX03 0
2222
#define KERNEL
2323
#define _DARWIN_USE_64_BIT_INODE
24+
#include <stdint.h>
2425
#include <dirent.h>
2526
#include <fcntl.h>
2627
#include <signal.h>

0 commit comments

Comments
 (0)