unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* More Posix stuff on Windows
@ 2014-06-30 15:11 Eli Zaretskii
  2014-07-02  9:59 ` Ludovic Courtès
  0 siblings, 1 reply; 3+ messages in thread
From: Eli Zaretskii @ 2014-06-30 15:11 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: Mark H Weaver, guile-devel

I'd like to add emulations of a couple of Posix functions to make a
few Guile procedures available on Windows.  Specifically, getaffinity,
setaffinity, getpriority, and setpriority can work on Windows, once
the emulations of the corresponding C APIs are written, which isn't
hard.

Is it OK to add those to win32-proc.c?  (Perhaps the file should be
renamed to posix-w32.c or some such now, since it is no longer only
about processes.)

If you agree, I will post the patches here.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: More Posix stuff on Windows
  2014-06-30 15:11 More Posix stuff on Windows Eli Zaretskii
@ 2014-07-02  9:59 ` Ludovic Courtès
  2014-07-02 15:17   ` Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: Ludovic Courtès @ 2014-07-02  9:59 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Mark H Weaver, guile-devel

Eli Zaretskii <eliz@gnu.org> skribis:

> I'd like to add emulations of a couple of Posix functions to make a
> few Guile procedures available on Windows.  Specifically, getaffinity,
> setaffinity, getpriority, and setpriority can work on Windows, once
> the emulations of the corresponding C APIs are written, which isn't
> hard.

The usual answer to this would be Gnulib.  Is this again a case where
that seems difficult, because the process-related code is a
prerequisite?

We must really try hard to push such things into Gnulib.

Thanks,
Ludo’.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: More Posix stuff on Windows
  2014-07-02  9:59 ` Ludovic Courtès
@ 2014-07-02 15:17   ` Eli Zaretskii
  0 siblings, 0 replies; 3+ messages in thread
From: Eli Zaretskii @ 2014-07-02 15:17 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: mhw, guile-devel

> From: ludo@gnu.org (Ludovic Courtès)
> Cc: Mark H Weaver <mhw@netris.org>,  guile-devel@gnu.org
> Date: Wed, 02 Jul 2014 11:59:26 +0200
> 
> Eli Zaretskii <eliz@gnu.org> skribis:
> 
> > I'd like to add emulations of a couple of Posix functions to make a
> > few Guile procedures available on Windows.  Specifically, getaffinity,
> > setaffinity, getpriority, and setpriority can work on Windows, once
> > the emulations of the corresponding C APIs are written, which isn't
> > hard.
> 
> The usual answer to this would be Gnulib.  Is this again a case where
> that seems difficult, because the process-related code is a
> prerequisite?

No, these are unrelated to the Gnulib process-related code.  They are
stand-alone functions.

> We must really try hard to push such things into Gnulib.

I agree, in theory.  In practice, it's harder than I'd expect.  E.g.,
the patches I sent for nl_langinfo, an existing Gnulib module, were
left without a single comment for the last 4 weeks.  The only
conclusion I can draw from this and similar experiences is that the
Gnulib maintainers are not really interested in improving support for
Windows, even if someone else writes and tests the code.

On top of that, there are no Gnulib modules for the above-mentioned
functionality.  Creating a Gnulib module from scratch is a lot of
effort for me and a lot of overhead (write Autoconf macros,
documentation, testing on other platforms, to which I have no easy
access, etc.).

So I guess these will remain my local changes, sigh.




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-07-02 15:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-30 15:11 More Posix stuff on Windows Eli Zaretskii
2014-07-02  9:59 ` Ludovic Courtès
2014-07-02 15:17   ` Eli Zaretskii

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).