git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v2] compat: convert modes to use portable file type values

From
David Michael <fedora.dm0@gmail.com>
Date
Dec 4, 2014, 19:27 UTC
Message-ID
<CAEvUa7nxzX=54QJto_R3hfvAO4FKhs8Pancz0TTiC7ev22--Kw@mail.gmail.com>
In-Reply-To
<87wq68w3se.fsf@gmail.com>
On Wed, Dec 3, 2014 at 9:24 PM, David Michael <fedora.dm0@gmail.com> wrote:
Show 7 quoted lines
> --- /dev/null
> +++ b/compat/stat.c
> @@ -0,0 +1,49 @@
> +#define _POSIX_C_SOURCE 200112L
> +#include <stddef.h>    /* NULL         */
> +#include <sys/stat.h>  /* *stat, S_IS* */
> +#include <sys/types.h> /* mode_t       */

Oops, the <stddef.h> line can be removed now that this is no longer testing for NULL. Let me know if this warrants a v3 if there is no other feedback.

Thanks.
David
Previous: David MichaelNext: Junio C Hamano
Message 2 of 3 in “compat: convert modes to use portable file type values”
  1. compat: convert modes to use portable file type valuesDavid Michael, Dec 4, 2014
  2. David MichaelDec 4, 2014
  3. Junio C HamanoDec 4, 2014

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.