Skip to contentSkip to conversation

Probably incorrect formatting in timespec.3type

DISCUSSION Alejandro Colomar 2 participants 4 messages Jul 21, 2022 Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

Hi наб!

I was moving timespec to a separate type, when I noticed a formatting (.I) that I think is misplaced. I didn't fix it, because I wanted to confirm with you what was the intention.

Check timespec(3type) and search for 'syscall', followed by 'long', and confirm if the formatting is what you wanted to put or not.

Cheers,

Alex

Signature · 2 lines
Alejandro Colomar
<http://www.alejandro-colomar.es/>
#1 lore raw

Hi!

Quoted 2 lines · Alejandro Colomar

Check timespec(3type) and search for 'syscall', followed by 'long', and confirm if the formatting is what you wanted to put or not.

It is:
syscall is emphasised, since that's both the fundamental point and a subtle difference as compared to the very strong binding of the "long" which also designates a C type, and
long is Some Object, not a type itself.

You may prefer sth like I[syscall] B[long]
(which I'd say is slightly worse because the whole point is that the
syscall long is not long on X32, so the long is not literal),
but having them both be I would be misleading.

Best,
наб

#2 lore raw

Hi!

Quoted 11 lines · наб

Hi!

Quoted 2 lines · Alejandro Colomar

Check timespec(3type) and search for 'syscall', followed by 'long', and confirm if the formatting is what you wanted to put or not.

It is:
syscall is emphasised, since that's both the fundamental point and a subtle difference as compared to the very strong binding of the "long" which also designates a C type, and
long is Some Object, not a type itself.

What is exactly "syscall long". Is it what the kernel understands internally as a long (which I guess doesn't necessarily match with what userspace understands as long)? I'm not so used to kernel details...

Quoted 5 lines

You may prefer sth like I[syscall] B[long]
(which I'd say is slightly worse because the whole point is that the
syscall long is not long on X32, so the long is not literal),
but having them both be I would be misleading.

That makes sense.

Thanks,

Alex

Quoted 3 lines

Best,
наб

Signature · 2 lines
Alejandro Colomar
<http://www.alejandro-colomar.es/>
#3 lore raw
Quoted 3 lines · Alejandro Colomar

What is exactly "syscall long". Is it what the kernel understands internally as a long (which I guess doesn't necessarily match with what userspace understands as long)? I'm not so used to kernel details...

Yeah, if you're looking at it that way then you could call it "the kABI long", as you say ‒ on X32 the kABI is amd64=LP64, but the userspace is ILP32: the kABI long is a u64, and the smallest (only) userspace u64 is long long.

наб