Hi All,
Thanks for the help.
It works now.
So, the 2 things that were required
1. Adding the '/' in front of the semaphore name so that Cygwin can
recognise it
#define SemaphoreName "/mysemaphore"
2. Changing the if check from if(semptr == (void*) -1) to if(semptr ==
(sem_t*) 0)
Thank
On 16.02.2023 15:25, Jose Isaias Cabrera via Cygwin wrote:
On February 16, 2023 1:15 AM, Andrey Repin expressed:
Don't forget to rebase the resulting binary(-es).
How do I do that?
rebase -s /path/to/binary ...
The -n switch may be necessary as well.
jcabrera@JIC ~
$ rebase -s -n /u
Hi Kai,
Apart from what Takashi already wrote, there's another bug in this code:
On Feb 16 12:04, Yeo Kai Wei via Cygwin wrote:
> #define ByteSize 512
> #define BackingFile "/shMemEx"
> #define AccessPerms 0644
> #define SemaphoreName "mysemaphore"
What Takas
On February 16, 2023 1:15 AM, Andrey Repin expressed:
> >> Don't forget to rebase the resulting binary(-es).
>
> > How do I do that?
>
> rebase -s /path/to/binary ...
>
> The -n switch may be necessary as well.
jcabrera@JIC ~
$ rebase -s -n /usr/bin/sqlite3.exe
Nothing different, apparently
On Thu, 16 Feb 2023 12:04:01 +0800
Yeo Kai Wei wrote:
> Hi All,
>
> Could I request for some help on some code?
>
> I ran into an error with semaphores with some book code using Cygwin on
> Windows.
>
> The code will throw an error with sem_post().
>
> I compiled it with gcc -o memwriter memwr
Hi Brian,
On Feb 15 15:31, Brian Inglis via Cygwin wrote:
> On 2023-02-15 07:05, Corinna Vinschen via Cygwin wrote:
> > On Feb 15 14:52, Corinna Vinschen via Cygwin wrote:
> > > The currently building cygwin test release 3.5.0-0.174.gd6d4436145b8
> > > contains the new code. Would you mind to bui
6 matches
Mail list logo