Swiftpack.co -  x13a/syscall-swift as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
x13a/syscall-swift
Swift wrapper on some syscalls.
.package(url: "https://github.com/x13a/syscall-swift.git", from: "0.1.1")

syscall-swift

Swift wrapper on some syscalls.

  • KERN_PROC_PID
  • KERN_PROCARGS2

Example

To get pid args:

import Darwin
import SysCall

func main() throws {
    let args = try SysCall.args(getpid()).get()
    print(args.path)
    print(args.args)
    print(args.env)
}

main()

GitHub

link
Stars: 0
Last commit: 1 week ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API