public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Yeo Kai Wei <yeokaiwei@hotmail.com>
To: "cygwin@cygwin.com" <cygwin@cygwin.com>
Subject: Re: [ERROR] msgget() "Function not implmented" Error : Cygwin
Date: Wed, 1 Mar 2023 19:56:20 +0800	[thread overview]
Message-ID: <PH0PR05MB9918670DD03942C96BE6187AA4AD9@PH0PR05MB9918.namprd05.prod.outlook.com> (raw)
In-Reply-To: <Y/3XcBIH3zo7knRZ@calimero.vinschen.de>

[-- Attachment #1: Type: text/plain, Size: 2419 bytes --]

Hi Corinna,

Thank you for the help.

I tried following the instructions on 
https://cygwin.com/cygwin-ug-net/using-cygserver.html#start-cygserver

There was a line, "Before you run Cygserver for the first time, you 
should run the /usr/bin/cygserver-config script once."

I googled for some instructions and it said to use "cygserver-config" in 
the Cygwin terminal.

I did it and the following is the reply from the terminal.

*Without admin privileges*

"$ cygserver-config
Generating /etc/cygserver.conf file
chown: changing ownership of '/etc/cygserver.conf': Permission denied


Warning: The following function requires administrator privileges!

Do you want to install cygserver as service?
(Say "no" if it's already installed as service) (yes/no) yes
/usr/bin/cygserver-config: line 181: cygrunsrv: command not found

Installation of cygserver as service failed.  Please check the
error messages you got.  They might give a clue why it failed.

A good start is either you don't have administrator privileges
or a missing cygrunsrv binary.  Please check for both."


*With admin privileges*
"$ cygserver-config
Overwrite existing /etc/cygserver.conf file? (yes/no) yes
Generating /etc/cygserver.conf file


Warning: The following function requires administrator privileges!

Do you want to install cygserver as service?
(Say "no" if it's already installed as service) (yes/no) yes
/usr/bin/cygserver-config: line 181: cygrunsrv: command not found

Installation of cygserver as service failed.  Please check the
error messages you got.  They might give a clue why it failed.

A good start is either you don't have administrator privileges
or a missing cygrunsrv binary.  Please check for both."


May I ask what I should do next?


Thank you very much.


Kind Regards,

YEO Kai Wei

P.S. How do you convert to using POSIX message queues in Cygwin?


On 28/2/2023 6:29 pm, Corinna Vinschen wrote:
> On Feb 28 18:13, Yeo Kai Wei via Cygwin wrote:
>> Hi Cygwin,
>>
>> May I ask if there will be an implementation of msgget() on Cygwin for
>> Windows?
> There is, for ages.  However, you have to run cygserver for that
> to work:
>
>    https://cygwin.com/cygwin-ug-net/using-cygserver.html
>
> If cygserver isn't running, the XSI IPC functions return ENOSYS.
>
> Alternatively, convert your tool to using POSIX message queues, those
> are using a file backed solution and don't require cygserver.
>
>
> Corinna

  reply	other threads:[~2023-03-01 11:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-28 10:13 Yeo Kai Wei
2023-02-28 10:29 ` Corinna Vinschen
2023-03-01 11:56   ` Yeo Kai Wei [this message]
2023-03-01 18:36     ` Ken Brown
2023-03-05 16:35   ` [ERROR] msgget() "Function not implemented" " Yeo Kai Wei

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-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=PH0PR05MB9918670DD03942C96BE6187AA4AD9@PH0PR05MB9918.namprd05.prod.outlook.com \
    --to=yeokaiwei@hotmail.com \
    --cc=cygwin@cygwin.com \
    /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).