From: "ioquatix (Samuel Williams)" <noreply@ruby-lang.org>
To: ruby-core@neon.ruby-lang.org
Subject: [ruby-core:110801] [Ruby master Misc#12474] Wishlist for Windows Unix compatibility features
Date: Thu, 17 Nov 2022 20:10:02 +0000 (UTC) [thread overview]
Message-ID: <redmine.journal-100156.20221117201002.5@ruby-lang.org> (raw)
In-Reply-To: redmine.issue-12474.20160609083729.5@ruby-lang.org
Issue #12474 has been updated by ioquatix (Samuel Williams).
UNIXSocket is implemented in https://bugs.ruby-lang.org/issues/19135
----------------------------------------
Misc #12474: Wishlist for Windows Unix compatibility features
https://bugs.ruby-lang.org/issues/12474#change-100156
* Author: naruse (Yui NARUSE)
* Status: Third Party's Issue
* Priority: Normal
----------------------------------------
## 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
* To check socket's availability by `IO#read_nonblock` https://github.com/ruby/ruby/pull/1089
* `O_NONBLOCK`
## 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
## 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
### 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?
--
https://bugs.ruby-lang.org/
parent reply other threads:[~2022-11-17 20:10 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <redmine.issue-12474.20160609083729.5@ruby-lang.org>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.ruby-lang.org/en/community/mailing-lists/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=redmine.journal-100156.20221117201002.5@ruby-lang.org \
--to=ruby-core@ruby-lang.org \
--cc=ruby-core@neon.ruby-lang.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).