public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
* posix_memalign(3)
@ 2023-11-17 22:03 Jonny Grant
  2023-11-24 22:15 ` posix_memalign(3) Alejandro Colomar
  0 siblings, 1 reply; 2+ messages in thread
From: Jonny Grant @ 2023-11-17 22:03 UTC (permalink / raw)
  To: Alejandro Colomar, linux-man

Hello

Some feedback, suggestions.

https://man7.org/linux/man-pages/man3/posix_memalign.3.html
"ENOMEM There was insufficient memory to fulfill the allocation request."

Rather wordy, how about "ENOMEM Out of memory" ? that would match malloc(3)


There are quite a few extra words in the description, how about simplifying:

Orig:
"The function posix_memalign() allocates size bytes and places the
address of the allocated memory in *memptr. "

Simplification:
"posix_memalign() allocates size bytes and places the
allocated memory address in *memptr."

Another one.
Orig:
"The function aligned_alloc() is the same as memalign(), except
for the added restriction that size should be a multiple of
alignment."

simplification:

"aligned_alloc() is the same as memalign(), except
for the added restriction that size should be a multiple of
alignment.

Kind regards, Jonny

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-11-24 22:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-17 22:03 posix_memalign(3) Jonny Grant
2023-11-24 22:15 ` posix_memalign(3) Alejandro Colomar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox