Project

General

Profile

Actions

Misc #12474

closed

Wishlist for Windows Unix compatibility features

Added by naruse (Yui NARUSE) almost 8 years ago. Updated over 1 year ago.

Status:
Third Party's Issue
Assignee:
-
[ruby-core:75907]
Tags:

Description

fork(2)

Windows already has related features like CreateProcess, but for servers and workers fork is required for source code compatibility of existing scripts,
which are written for Unix.

nonblocking IO

Signal

Windows doesn't support true Signal.
https://msdn.microsoft.com/en-us//library/xdkz3x12.aspx

tz

Get IANA timezone name of current timezone from OS.

Remove a file which is opened by another process

If the process opens the file with CreateFile with FILE_SHARE_DELETE flag, another process can remove the file.
But in that case processes can't remove its parent folder.
https://bugs.ruby-lang.org/issues/11218

symlink

Windows has mklink and SeCreateSymbolicLinkPrivilege, but it has some limitations.
http://k-takata.o.oo7.jp/diary/2013-04.html#03
https://twitter.com/n0kada/status/570232516545638400

[Bug #18882] On 64-mingw-ucrt, File.read() sometimes doesn't read entire file (alanwu)

https://github.com/ruby/dev-meeting-log/blob/master/DevMeeting-2022-07-21.md#bug-18882-on-64-mingw-ucrt-fileread-sometimes-doesnt-read-entire-file-alanwu

fd

Generic handling of file, pipe, socket by fd

fd passing to child process other than 0,1,2

Get access mode from fd/HANDLE

System side append mode

https://bugs.ruby-lang.org/issues/18605

a high performance selector API

https://tonyarcieri.com/a-gentle-introduction-to-nio4r

socket

CloseHandle should work with socket.

writev(2)

https://twitter.com/okuoku/status/670212493134852097
https://msdn.microsoft.com/ja-jp/library/windows/desktop/aa365749%28v=vs.85%29.aspx

ANSI color code

http://srad.jp/story/16/02/09/0639223/

UNIXSocket

We can emuate UNIXSocket with named pipe?
Implemented [Feature #19135]

Updated by naruse (Yui NARUSE) almost 8 years ago

  • Description updated (diff)

This page was moved

Thank! fixed.

Updated by nobu (Nobuyoshi Nakada) almost 8 years ago

  • Description updated (diff)

Updated by naruse (Yui NARUSE) almost 8 years ago

  • Description updated (diff)

Updated by emk (Masatoshi Kimura) almost 6 years ago

Remove a file which is opened by another process

Fall Creators Update added FILE_DISPOSITION_POSIX_SEMANTICS.
https://docs.microsoft.com/en-us/windows-hardware/drivers/ddi/content/ntddk/ns-ntddk-_file_disposition_information_ex

UNIXSocket

April 2018 Update added AF_UNIX sockets.
https://blogs.msdn.microsoft.com/commandline/2018/02/07/windowswsl-interop-with-af_unix/

Just FYI, I did not test them.

Actions #6

Updated by naruse (Yui NARUSE) over 5 years ago

  • Description updated (diff)
Actions #7

Updated by naruse (Yui NARUSE) over 4 years ago

  • Tags set to win
Actions #9

Updated by naruse (Yui NARUSE) over 1 year ago

  • Description updated (diff)
Actions #10

Updated by naruse (Yui NARUSE) over 1 year ago

  • Description updated (diff)
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0