Asqiir
Asqiir

Reputation: 627

Where does HOST_OPERATING_SYSTEM in uname.c comes from?

While reading uname.c (in order to recreate it) I found a variable called HOST_OPERATING_SYSTEM (line 371). It's never mentioned in the same file (as Strg+f told me) and not in the dependencies of uname.c, as far as I could see.

Where is the variable initialized and how to access it?

Upvotes: 1

Views: 198

Answers (1)

larsks
larsks

Reputation: 312400

HOST_OPERATING_SYSTEM is defined at build time using autoconf modules defined in gnulib.

Upvotes: 3

Related Questions