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

[PATCH 3/6] Fix signature of fcntl() compatibility dummy

From
Johannes Sixt <j6t@kdbg.org>
Date
Mar 6, 2010, 15:40 UTC
Message-ID
<dc9be33a660733a88e1c2fd8a3d9c190a7779d5d.1267889703.git.j6t@kdbg.org>
In-Reply-To
<cover.1267889703.git.j6t@kdbg.org>

Obviously, this function was never called with two arguments in Windows code sections, but this will be the case in a subsequent patch.

Signed-off-by: Johannes Sixt <j6t@kdbg.org>
---
 compat/mingw.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/compat/mingw.h b/compat/mingw.h
index e254fb4..f53bcca 100644
--- a/compat/mingw.h
+++ b/compat/mingw.h
@@ -89,7 +89,7 @@ static inline int getuid()
 { return 1; }
 static inline struct passwd *getpwnam(const char *name)
 { return NULL; }
-static inline int fcntl(int fd, int cmd, long arg)
+static inline int fcntl(int fd, int cmd, ...)
 {
 	if (cmd == F_GETFD || cmd == F_SETFD)
 		return 0;
-- 
1.7.0.rc2.65.g7b13a
Previous: Johannes SixtNext: Johannes Sixt
Message 3 of 6 in “Modernize t5530-upload-pack-error.”
  1. 1/6 Modernize t5530-upload-pack-error.Johannes Sixt, Mar 6, 2010
  2. 2/6 Make report() from usage.c public as vreportf() and use it.Johannes Sixt, Mar 6, 2010
  3. 3/6 Fix signature of fcntl() compatibility dummyJohannes Sixt, Mar 6, 2010
  4. 4/6 Windows: more pthreads functionsJohannes Sixt, Mar 6, 2010
  5. 5/6 Reimplement async procedures using pthreadsJohannes Sixt, Mar 6, 2010
  6. 6/6 Dying in an async procedure should only exit the thread, not the process.Johannes Sixt, Mar 6, 2010

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.