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

[PATCH v2 0/6] win32-dirent

From
Erik Faye-Lund <kusmabite@gmail.com>
Date
Nov 23, 2010, 18:38 UTC
Message-ID
<1290537509-360-1-git-send-email-kusmabite@gmail.com>

Here's a re-roll of my win32-dirent branch, this time with some comments by Jonathan Nieder taken into account.

* 1/6 is back to using malloc (as opposed to xmalloc),
* 2/6 corrected the strlen, and now does strlen of the input-string. It
  seems I messed up when splitting some patches.
The other patches are adjusted accordingly.
Erik Faye-Lund (6):
  msvc: opendir: fix malloc-failure
  msvc: opendir: allocate enough memory
  msvc: opendir: do not start the search
  win32: dirent: handle errors
  msvc: opendir: handle paths ending with a slash
  win32: use our own dirent.h
 Makefile                        |    7 ++-
 compat/mingw.c                  |   60 ------------------
 compat/mingw.h                  |   29 ---------
 compat/msvc.c                   |   29 ---------
 compat/vcbuild/include/dirent.h |  128 ---------------------------------------
 compat/win32/dirent.c           |  108 +++++++++++++++++++++++++++++++++
 compat/win32/dirent.h           |   24 +++++++
 7 files changed, 137 insertions(+), 248 deletions(-)
 delete mode 100644 compat/vcbuild/include/dirent.h
 create mode 100644 compat/win32/dirent.c
 create mode 100644 compat/win32/dirent.h
-- 
1.7.3.2.493.gc8738
Next: Erik Faye-Lund
Message 1 of 11 in “win32-dirent”
  1. 0/6 win32-direntErik Faye-Lund, Nov 23, 2010
  2. 1/6 msvc: opendir: fix malloc-failureErik Faye-Lund, Nov 23, 2010
  3. 2/6 msvc: opendir: allocate enough memoryErik Faye-Lund, Nov 23, 2010
  4. Junio C HamanoNov 26, 2010
  5. 3/6 msvc: opendir: do not start the searchErik Faye-Lund, Nov 23, 2010
  6. 4/6 win32: dirent: handle errorsErik Faye-Lund, Nov 23, 2010
  7. 5/6 msvc: opendir: handle paths ending with a slashErik Faye-Lund, Nov 23, 2010
  8. René ScharfeNov 23, 2010
  9. Erik Faye-LundNov 23, 2010
  10. René ScharfeNov 23, 2010
  11. 6/6 win32: use our own dirent.hErik Faye-Lund, Nov 23, 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.