| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | locking() |
Привет, andrew!
Ответ на сообщение andrew clarke (3:633/267{at}fidonet) к Max Chernogor,
написанное 16 Nov 02 в 14:15:
ac> rc = locking(fd, LK_LOCK, 1);
ac> if (rc != 0)
ac> {
ac> perror("locking: " FILENAME);
ac> }
ac> assert(rc == 0);
next operators can't run: rc eq zero always (if rc not zero perror() called
before this line)
ac> 14:22 voodoo [e:\devel\csource\locking]bcc32 locking.c
ac> Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
ac> locking.c:
ac> Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
ac> 14:22 voodoo [e:\devel\csource\locking]locking.exe
ac> All OK!
This result not from this source code.
ac> [same with MSVC, Watcom, Digital Mars...]
ac> 14:23 voodoo [e:\devel\csource\locking]gcc -mno-cygwin -Wall -o locking.exe
ac> locking.c
ac> 14:23 voodoo [e:\devel\csource\locking]locking.exe
ac> locking: blah: Bad file descriptor
ac> Assertion failed: rc == 0, file locking.c, line 53
This is rigth
Stas Degteff
--- GoldED+/W32 1.1.4.7
* Origin: Grumbler mail station, Ekaterinburg. (2:5080/102.1)SEEN-BY: 10/345 102/943 106/1 2 3 1234 2000 123/140 350 500 789 128/187 SEEN-BY: 130/803 143/2 226/600 229/1000 2000 3000 249/116 261/38 267/200 SEEN-BY: 280/5003 333/0 342/3 379/1 1200 393/68 633/267 270 774/605 2404/201 SEEN-BY: 2624/306 3613/360 1275 3618/555 3800/1 3830/9 11 5080/5 7105/1 @PATH: 5080/102 68 5 3830/9 123/500 106/1 379/1 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.