Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • L libbsd
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 7
    • Issues 7
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 5
    • Merge requests 5
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • libbsd
  • libbsd
  • Merge requests
  • !22

Define a setproctitle_init macro to ease porting

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open guijan requested to merge guijan/libbsd:spt-init into main Nov 29, 2022
  • Overview 2
  • Commits 1
  • Pipelines 0
  • Changes 2

Hi, I came up with this idea while writing libobsd. If we define a macro in our BSD libraries when setproctitle_init() is present (always the case for libbsd right now), then the setproctitle_init() call can be wrapped around an #ifdef and the same code will work on libbsd, libobsd, and also on BSD because BSD won't need setproctitle_init() and won't have the macro defined.

Here's how my version of the man page looks like: https://paste.debian.net/plainh/7419d2a9 https://raw.githubusercontent.com/guijan/libobsd/df36bb27cb8f530101de1d5045207d5595b851fd/src/stdlib/setproctitle.3

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: spt-init