<commit_before>;;;; -*- Mode: Lisp; indent-tabs-mode: nil -*-
;;;
;;; --- lfp_spawn(3) and its minions
;;;

(in-package :iolib.os)

(defsyscall (lfp-spawn "lfp_spawn")
    (:int :restart t)
  (pid          :pointer)
  (path         :string)
  (arguments    :pointer)
  (environment  :pointer)
  (file-actions :pointer)
  (attributes   :pointer))

(defsyscall (lfp-spawnp "lfp_spawnp")
    (:int :restart t)
  (pid          :pointer)
  (file         :string)
  (arguments    :pointer)
  (environment  :pointer)
  (file-actions :pointer)
  (attributes   :pointer))

(defsyscall (lfp-spawnattr-init
             "lfp_spawnattr_init")
    :int
  (attributes :pointer))

(defsyscall (lfp-spawnattr-destroy
             "lfp_spawnattr_destroy")
    :int
  (attributes :pointer))

(defsyscall (lfp-spawnattr-getflags
             "lfp_spawnattr_getflags")
    :int
  (attributes :pointer)
  (flags      :pointer))

(defsyscall (lfp-spawnattr-setflags
             "lfp_spawnattr_setflags")
    :int
  (attributes :pointer)
  (flags      :uint32))

(defsyscall (lfp-spawnattr-getsigmask
             "lfp_spawnattr_getsigmask")
    :int
  (attributes :pointer)
  (sigmask    :pointer))

(defsyscall (lfp-spawnattr-setsigmask
             "lfp_spawnattr_setsigmask")
    :int
  (attributes :pointer)
  (sigmask    :pointer))

(defsyscall (lfp-spawnattr-getsigdefault
             "lfp_spawnattr_getsigdefault")
    :int
  (attributes :pointer)
  (sigdefault :pointer))

(defsyscall (lfp-spawnattr-setsigdefault
             "lfp_spawnattr_setsigdefault")
    :int
  (attributes :pointer)
  (sigdefault :pointer))

(defsyscall (lfp-spawnattr-getpgroup
             "lfp_spawnattr_getpgroup")
    :int
  (attributes :pointer)
  (pgroup     :pointer))

(defsyscall (lfp-spawnattr-setpgroup
             "lfp_spawnattr_setpgroup")
    :int
  (attributes :pointer)
  (pgroup     pid-t))

(defsyscall (lfp-spawnattr-getuid
             "lfp_spawnattr_getuid")
    :int
  (attributes :pointer)
  (uid        :pointer))

(defsyscall (lfp-spawnattr-setuid
             "lfp_spawnattr_setuid")
    :int
  (attributes :pointer)
  (uid        uid-t))

(defsyscall (lfp-spawnattr-getgid
             "lfp_spawnattr_getgid")
    :int
  (attributes :pointer)
  (gid        :pointer))

(defsyscall (lfp-spawnattr-setgid
             "lfp_spawnattr_setgid")
    :int
  (attributes :pointer)
  (gid        gid-t))
<commit_msg>Remove unused lfp_spawnattr_* functions<commit_after>;;;; -*- Mode: Lisp; indent-tabs-mode: nil -*-
;;;
;;; --- lfp_spawn(3) and its minions
;;;

(in-package :iolib.os)

(defsyscall (lfp-spawn "lfp_spawn")
    (:int :restart t)
  (pid          :pointer)
  (path         :string)
  (arguments    :pointer)
  (environment  :pointer)
  (file-actions :pointer)
  (attributes   :pointer))

(defsyscall (lfp-spawnp "lfp_spawnp")
    (:int :restart t)
  (pid          :pointer)
  (file         :string)
  (arguments    :pointer)
  (environment  :pointer)
  (file-actions :pointer)
  (attributes   :pointer))

(defsyscall (lfp-spawnattr-init
             "lfp_spawnattr_init")
    :int
  (attributes :pointer))

(defsyscall (lfp-spawnattr-destroy
             "lfp_spawnattr_destroy")
    :int
  (attributes :pointer))

(defsyscall (lfp-spawnattr-setflags
             "lfp_spawnattr_setflags")
    :int
  (attributes :pointer)
  (flags      :uint32))

(defsyscall (lfp-spawnattr-setsigmask
             "lfp_spawnattr_setsigmask")
    :int
  (attributes :pointer)
  (sigmask    :pointer))

(defsyscall (lfp-spawnattr-setsigdefault
             "lfp_spawnattr_setsigdefault")
    :int
  (attributes :pointer)
  (sigdefault :pointer))

(defsyscall (lfp-spawnattr-setpgroup
             "lfp_spawnattr_setpgroup")
    :int
  (attributes :pointer)
  (pgroup     pid-t))

(defsyscall (lfp-spawnattr-setuid
             "lfp_spawnattr_setuid")
    :int
  (attributes :pointer)
  (uid        uid-t))

(defsyscall (lfp-spawnattr-setgid
             "lfp_spawnattr_setgid")
    :int
  (attributes :pointer)
  (gid        gid-t))

{'fraction_non_alphanumeric': 0.12786640079760717, 'fraction_numerical': 0.0014955134596211367, 'mean_word_length': 2.7364990689013036, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6790919', 'n_tokens_mistral': 1533, 'n_tokens_neox': 1459, 'n_words': 265}