Re: [Mingw-w64-public] Linking issue: _lock_file

2013-11-13 Thread JonY
On 11/14/2013 01:34, André Guerreiro wrote: > Hello all, > sorry if this is a really basic question, I'm a MingW newbie. > > I'm trying to build this code with Mingw-w64 4.6.3 > > #include > > int main() > { > FILE *fp = fopen("SOME_FILE", "r"); > _lock_file(fp); > return 0; > > } > >

Re: [Mingw-w64-public] semaphore wrappers

2013-11-13 Thread Edscott Wilson
Here's the code for using named and unnamed semaphores in Mingw-w64. The only function I have not tested (but looks OK now) is _sem_timedwait(). Code is included in libtubo release 5.0.12 (http://xffm.org/libtubo.html) with GPLV3, so if it is of any use, feel free to use it. I've prepared Mingw-w6

Re: [Mingw-w64-public] MSYS2 correct HOME setup

2013-11-13 Thread Ray Donnelly
I unify my windows home with my MSYS2 homes using mklink /D so that e.g. C:\msys32\home\ray is a symlink to C:\Users\ray .. I haven't run into any problems with this recently. msysgit didn't used to like cloning to a folder within a symlink folder, but MSYS2 git is fine with it. Of course you'd ne

Re: [Mingw-w64-public] MSYS2 correct HOME setup

2013-11-13 Thread Alexpux
14 нояб. 2013 г., в 0:56, Jon написал(а): > > Jon@Black ~ > $ cd ~ > > Jon@Black /home/Jon > $ pwd > /home/Jon > > Sorry, the above is not correct in the default case. The correct version is: > > Jon@Black ~ > $ cd ~ > -bash: cd: /home/Jon: No such file or directory > > Jon@Black ~ > $ pwd

Re: [Mingw-w64-public] MSYS2 correct HOME setup

2013-11-13 Thread Jon
On Wed, Nov 13, 2013 at 3:53 PM, Alexpux wrote: > > 14 нояб. 2013 г., в 0:48, Jon написал(а): > > > On Wed, Nov 13, 2013 at 3:36 PM, Alexpux wrote: > >> >> 14 нояб. 2013 г., в 0:31, Jon написал(а): >> >> I'm an old cygwin user who went astray years ago and would like to >> confirm my MSYS2 set

Re: [Mingw-w64-public] MSYS2 correct HOME setup

2013-11-13 Thread Jon
> Jon@Black ~ > $ cd ~ > > Jon@Black /home/Jon > $ pwd > /home/Jon > Sorry, the above is not correct in the default case. The correct version is: Jon@Black ~ $ cd ~ -bash: cd: /home/Jon: No such file or directory Jon@Black ~ $ pwd /c/Users/Jon My earlier experiments with HOME in msys2_shell.bat

Re: [Mingw-w64-public] MSYS2 correct HOME setup

2013-11-13 Thread Alexpux
14 нояб. 2013 г., в 0:48, Jon написал(а): > > On Wed, Nov 13, 2013 at 3:36 PM, Alexpux wrote: > > 14 нояб. 2013 г., в 0:31, Jon написал(а): > >> I'm an old cygwin user who went astray years ago and would like to confirm >> my MSYS2 setup. >> >> Here's what I'm doing to have a sandboxed st

Re: [Mingw-w64-public] MSYS2 correct HOME setup

2013-11-13 Thread Jon
On Wed, Nov 13, 2013 at 3:36 PM, Alexpux wrote: > > 14 нояб. 2013 г., в 0:31, Jon написал(а): > > I'm an old cygwin user who went astray years ago and would like to confirm > my MSYS2 setup. > > Here's what I'm doing to have a sandboxed style setup that isolates my > normal windows setup. For ex

Re: [Mingw-w64-public] MSYS2 correct HOME setup

2013-11-13 Thread Alexpux
14 нояб. 2013 г., в 0:31, Jon написал(а): > I'm an old cygwin user who went astray years ago and would like to confirm my > MSYS2 setup. > > Here's what I'm doing to have a sandboxed style setup that isolates my normal > windows setup. For example, I don't want MSYS2's default /etc/profile to

[Mingw-w64-public] MSYS2 correct HOME setup

2013-11-13 Thread Jon
I'm an old cygwin user who went astray years ago and would like to confirm my MSYS2 setup. Here's what I'm doing to have a sandboxed style setup that isolates my normal windows setup. For example, I don't want MSYS2's default /etc/profile to think HOME is C:\Users\Jon. I want it to think HOME is %

[Mingw-w64-public] Linking issue: _lock_file

2013-11-13 Thread André Guerreiro
Hello all, sorry if this is a really basic question, I'm a MingW newbie. I'm trying to build this code with Mingw-w64 4.6.3 #include int main() { FILE *fp = fopen("SOME_FILE", "r"); _lock_file(fp); return 0; } Using the following command: /usr/bin/i686-w64-mingw32-gcc -o hello.exe hel

Re: [Mingw-w64-public] windres vs. rc.exe: Different resource alignment

2013-11-13 Thread mity
> 2013/11/12 Martin Mitáš : >> >> Hi all, >> >> I've been resolving some strange issues with resources ([1]). Although I >> did not succeed so far, I've spent some time in hex editor and reading >> objdump -s output (not much fun). My analyzes has exhibited some >> differences in how windres and Mi

Re: [Mingw-w64-public] MSYS2: wrong disk space used reported by `du'

2013-11-13 Thread Adrien Nader
On Tue, Nov 12, 2013, Corinna Vinschen wrote: > On Nov 12 22:52, Óscar Fuentes wrote: > > Corinna Vinschen > > writes: > > > > > On Nov 12 13:59, Óscar Fuentes wrote: > > >> > > >> $ du -sh /lib/git-core > > >> 13M /lib/git-core > > >> > > >> Windows Explorer says that d:/msys32/lib/git-cor

Re: [Mingw-w64-public] windres vs. rc.exe: Different resource alignment

2013-11-13 Thread Kai Tietz
2013/11/12 Martin Mitáš : > > Hi all, > > I've been resolving some strange issues with resources ([1]). Although I > did not succeed so far, I've spent some time in hex editor and reading > objdump -s output (not much fun). My analyzes has exhibited some > differences in how windres and Microsoft's

Re: [Mingw-w64-public] MSYS2: wrong disk space used reported by `du'

2013-11-13 Thread Alexey Pavlov
2013/11/13 Corinna Vinschen > On Nov 12 22:52, Óscar Fuentes wrote: > > Corinna Vinschen > > writes: > > > > > On Nov 12 13:59, Óscar Fuentes wrote: > > >> > > >> $ du -sh /lib/git-core > > >> 13M /lib/git-core > > >> > > >> Windows Explorer says that d:/msys32/lib/git-core uses 169 MB. > Ob