public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* binutils 20040312-1 : problem linking 16bit x86 code with ld
@ 2004-05-17 23:33 Brice VIDDEAU
  2004-05-18  9:50 ` Corinna Vinschen
  0 siblings, 1 reply; 10+ messages in thread
From: Brice VIDDEAU @ 2004-05-17 23:33 UTC (permalink / raw)
  To: cygwin

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

when I link 16bit code with ld, strangely enough linking is not doing 
correctly : some symbols are off by two byte when I make a call.

here is an example : one coded with .code16, the other without.
Tested on a debian it works fine.

first one : working, 32bit mode (ld script is home made), putc (home 
made too) is linked correctly. results obtained with objdump.

(sorry it is quite long...)

test2.exe:     file format pei-i386

Disassembly of section .text:

00007c00 <end>:
    7c00:    66 31 c0                 xor    %ax,%ax
    7c03:    8e d0                    mov    %eax,%ss
    7c05:    66 8b 25 00 7c 00 00     mov    0x7c00,%sp
    7c0c:    66 89 e6                 mov    %sp,%si
    7c0f:    66 50                    push   %ax
    7c11:    07                       pop    %es
    7c12:    66 50                    push   %ax
    7c14:    1f                       pop    %ds
    7c15:    6a 46                    push   $0x46
    7c17:    e8 54 00 00 00           call   7c70 <putc>
    7c1c:    66 83 c4 02              add    $0x2,%sp
    7c20:    6a 6c                    push   $0x6c
    7c22:    e8 49 00 00 00           call   7c70 <putc>
    7c27:    66 83 c4 02              add    $0x2,%sp
    7c2b:    6a 72                    push   $0x72
    7c2d:    e8 3e 00 00 00           call   7c70 <putc>
    7c32:    66 83 c4 02              add    $0x2,%sp
    7c36:    6a 65                    push   $0x65
    7c38:    e8 33 00 00 00           call   7c70 <putc>
    7c3d:    66 83 c4 02              add    $0x2,%sp
    7c41:    6a 6e                    push   $0x6e
    7c43:    e8 28 00 00 00           call   7c70 <putc>
    7c48:    66 83 c4 02              add    $0x2,%sp
    7c4c:    6a 63                    push   $0x63
    7c4e:    e8 1d 00 00 00           call   7c70 <putc>
    7c53:    66 83 c4 02              add    $0x2,%sp
    7c57:    6a 65                    push   $0x65
    7c59:    e8 12 00 00 00           call   7c70 <putc>
    7c5e:    66 83 c4 02              add    $0x2,%sp

00007c62 <_loop>:
    7c62:    eb fe                    jmp    7c62 <_loop>
    7c64:    90                       nop
    7c65:    90                       nop
    7c66:    90                       nop
    7c67:    90                       nop
    7c68:    90                       nop
    7c69:    90                       nop
    7c6a:    90                       nop
    7c6b:    90                       nop
    7c6c:    90                       nop
    7c6d:    90                       nop
    7c6e:    90                       nop
    7c6f:    90                       nop

00007c70 <putc>:
    7c70:    66 55                    push   %bp
    7c72:    66 89 e5                 mov    %sp,%bp
    7c75:    66 83 ec 02              sub    $0x2,%sp
    7c79:    66 50                    push   %ax
    7c7b:    66 53                    push   %bx
    7c7d:    66 56                    push   %si
    7c7f:    8a 45 08                 mov    0x8(%ebp),%al
    7c82:    b4 0e                    mov    $0xe,%ah
    7c84:    66 bb 07 00              mov    $0x7,%bx
    7c88:    cd 10                    int    $0x10
    7c8a:    66 5e                    pop    %si
    7c8c:    66 5b                    pop    %bx
    7c8e:    66 58                    pop    %ax
    7c90:    c9                       leave
    7c91:    c3                       ret
    7c92:    90                       nop
    7c93:    90                       nop


second one same program but in 16bit mode :
notice the _loop+8 instead of the putc : linkage is off two bytes 7c4e 
instead of 7c50

test2.exe:     file format pei-i386

Disassembly of section .text:

00007c00 <end>:
    7c00:    31 c0                    xor    %ax,%ax
    7c02:    8e d0                    mov    %ax,%ss
    7c04:    8b 26 00 7c              mov    31744,%sp
    7c08:    89 e6                    mov    %sp,%si
    7c0a:    50                       push   %ax
    7c0b:    07                       pop    %es
    7c0c:    50                       push   %ax
    7c0d:    1f                       pop    %ds
    7c0e:    6a 46                    push   $0x46
    7c10:    e8 3b 00                 call   7c4e <_loop+0x8>
    7c13:    83 c4 02                 add    $0x2,%sp
    7c16:    6a 6c                    push   $0x6c
    7c18:    e8 33 00                 call   7c4e <_loop+0x8>
    7c1b:    83 c4 02                 add    $0x2,%sp
    7c1e:    6a 72                    push   $0x72
    7c20:    e8 2b 00                 call   7c4e <_loop+0x8>
    7c23:    83 c4 02                 add    $0x2,%sp
    7c26:    6a 65                    push   $0x65
    7c28:    e8 23 00                 call   7c4e <_loop+0x8>
    7c2b:    83 c4 02                 add    $0x2,%sp
    7c2e:    6a 6e                    push   $0x6e
    7c30:    e8 1b 00                 call   7c4e <_loop+0x8>
    7c33:    83 c4 02                 add    $0x2,%sp
    7c36:    6a 63                    push   $0x63
    7c38:    e8 13 00                 call   7c4e <_loop+0x8>
    7c3b:    83 c4 02                 add    $0x2,%sp
    7c3e:    6a 65                    push   $0x65
    7c40:    e8 0b 00                 call   7c4e <_loop+0x8>
    7c43:    83 c4 02                 add    $0x2,%sp

00007c46 <_loop>:
    7c46:    eb fe                    jmp    7c46 <_loop>
    7c48:    90                       nop
    7c49:    90                       nop
    7c4a:    90                       nop
    7c4b:    90                       nop
    7c4c:    90                       nop
    7c4d:    90                       nop
    7c4e:    90                       nop
    7c4f:    90                       nop

00007c50 <putc>:
    7c50:    55                       push   %bp
    7c51:    89 e5                    mov    %sp,%bp
    7c53:    83 ec 02                 sub    $0x2,%sp
    7c56:    50                       push   %ax
    7c57:    53                       push   %bx
    7c58:    56                       push   %si
    7c59:    8a 46 04                 mov    4(%bp),%al
    7c5c:    b4 0e                    mov    $0xe,%ah
    7c5e:    bb 07 00                 mov    $0x7,%bx
    7c61:    cd 10                    int    $0x10
    7c63:    5e                       pop    %si
    7c64:    5b                       pop    %bx
    7c65:    58                       pop    %ax
    7c66:    c9                       leave
    7c67:    c3                       ret
    7c68:    90                       nop

thank you for reading so far.

[-- Attachment #2: cygcheck.out --]
[-- Type: text/plain, Size: 25625 bytes --]


Cygwin Win95/NT Configuration Diagnostics
Current System Time: Tue May 18 00:17:57 2004

Windows XP Professional Ver 5.1 Build 2600 Service Pack 1

Path:	C:\cygwin\usr\local\bin
	C:\cygwin\bin
	C:\cygwin\bin
	C:\cygwin\usr\X11R6\bin
	.
	C:\cygwin\bin
	C:\cygwin\usr\X11R6\bin
	d:\Utils\tcl\bin
	c:\Program Files\NetworkSimplicity\ssh
	c:\WINDOWS\system32
	c:\WINDOWS
	c:\WINDOWS\System32\Wbem
	c:\Program Files\AliasWavefront\Maya 4 Personal Learning Edition\bin
	c:\Program Files\NVIDIA Corporation\NVIDIA OpenGL SDK\dll\release
	c:\Program Files\VDMSound\
	c:\Program Files\Microsoft Visual Studio\Common\Tools\WinNT
	c:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin
	c:\Program Files\Microsoft Visual Studio\Common\Tools
	c:\Program Files\Microsoft Visual Studio\VC98\bin
	d:\jeux\ut2003\system
	c:\Program Files\PowerArchiver\POWERARC.EXE
	c:\Program Files\VisualGIPSY26\bin
	c:\Program Files\Microsoft Visual Studio\Common\Tools\WinNT
	c:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin
	c:\Program Files\Microsoft Visual Studio\Common\Tools
	c:\Program Files\Microsoft Visual Studio\VC98\bin
	d:\jeux\ut2003\system
	C:\cygwin\bin

Output from C:\cygwin\bin\id.exe (nontsec)
UID: 1003(Brice) GID: 513(None)
513(None)

Output from C:\cygwin\bin\id.exe (ntsec)
UID: 1003(Brice) GID: 513(None)
0(root)              513(None)            
544(Administrators)  545(Users)

SysDir: C:\WINDOWS\System32
WinDir: C:\WINDOWS

CYGWIN = `ntsec tty'
HOME = `C:\cygwin\home\Brice'
MAKE_MODE = `unix'
PWD = `/home/Brice'
USER = `Brice'

!EXITCODE = `00000734'
ALLUSERSPROFILE = `C:\Documents and Settings\All Users'
APPDATA = `C:\Documents and Settings\Brice\Application Data'
COMMONPROGRAMFILES = `C:\Program Files\Common Files'
COMPUTERNAME = `KERILK'
COMSPEC = `C:\WINDOWS\system32\cmd.exe'
CVS_RSH = `/bin/ssh'
CYGWIN_ROOT = `\cygwin'
DISPLAY = `127.0.0.1:0.0'
GHTMLVIEWER = `C:\PROGRA~1\INTERN~1\iexplore.exe'
HOMEDRIVE = `C:'
HOMEPATH = `\Documents and Settings\Brice'
HOSTNAME = `Kerilk'
INCLUDE = `C:\Program Files\Microsoft Visual Studio\VC98\atl\include;C:\Program Files\Microsoft Visual Studio\VC98\mfc\include;C:\Program Files\Microsoft Visual Studio\VC98\include'
INFOPATH = `/usr/local/info:/usr/info:/usr/share/info:/usr/autotool/devel/info:/usr/autotool/stable/info:'
LIB = `C:\Program Files\Microsoft Visual Studio\VC98\mfc\lib;C:\Program Files\Microsoft Visual Studio\VC98\lib'
LOGNAME = `Brice'
LOGONSERVER = `\\KERILK'
MANPATH = `/usr/local/man:/usr/man:/usr/share/man:/usr/autotool/devel/man::/usr/ssl/man'
MAYA_SHADER_LIBRARY_PATH = `C:\Program Files\AliasWavefront\ShaderLibrary\shaders'
MSDEVDIR = `C:\Program Files\Microsoft Visual Studio\Common\MSDev98'
NUMBER_OF_PROCESSORS = `1'
OLDPWD = `/usr/X11R6/bin'
OS = `Windows_NT'
PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.tcl'
PKG_CONFIG_PATH = `/usr/X11R6/lib/pkgconfig'
PROCESSOR_ARCHITECTURE = `x86'
PROCESSOR_IDENTIFIER = `x86 Family 15 Model 2 Stepping 4, GenuineIntel'
PROCESSOR_LEVEL = `15'
PROCESSOR_REVISION = `0204'
PROGRAMFILES = `C:\Program Files'
PROMPT = `$P$G'
PS1 = `\[\033]0;\w\007
\033[32m\]\u@\h \[\033[33m\w\033[0m\]
$ '
SESSIONNAME = `Console'
SHLVL = `1'
SYSTEMDRIVE = `C:'
SYSTEMROOT = `C:\WINDOWS'
TEMP = `c:\DOCUME~1\Brice\LOCALS~1\Temp'
TERM = `xterm'
TERMCAP = `xterm-r6|xterm|xterm X11R6 version:am:km:mi:ms:xn:co#80:it#8:li#24:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:ae=^O:al=\E[L:as=^N:bl=^G:cd=\E[J:ce=\E[K:cl=\E[H\E[2J:cm=\E[%i%d;%dH:cr=^M:cs=\E[%i%d;%dr:ct=\E[3g:dc=\E[P:dl=\E[M:do=^J:ei=\E[4l:ho=\E[H:im=\E[4h:is=\E7\E[r\E[m\E[?7h\E[?1;3;4;6l\E[4l\E8\E>:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:k5=\E[15~:k6=\E[17~:k7=\E[18~:k8=\E[19~:k9=\E[20~:kD=\E[3~:kI=\E[2~:kN=\E[6~:kP=\E[5~:kd=\EOB:ke=\E[?1l\E>:kh=\E[1~:kl=\EOD:kr=\EOC:ks=\E[?1h\E=:ku=\EOA:le=^H:md=\E[1m:me=\E[m:mr=\E[7m:nd=\E[C:rc=\E8:sc=\E7:se=\E[m:sf=^J:so=\E[7m:sr=\EM:ta=^I:te=\E[2J\E[?47l\E8:ti=\E7\E[?47h:ue=\E[m:up=\E[A:us=\E[4m:kb=\010:'
TMP = `c:\DOCUME~1\Brice\LOCALS~1\Temp'
USERDOMAIN = `KERILK'
USERNAME = `Brice'
USERPROFILE = `C:\Documents and Settings\Brice'
VDMSPATH = `C:\Program Files\VDMSound\'
WINDIR = `C:\WINDOWS'
WINDOWID = `2097166'
XAPPLRESDIR = `/usr/X11R6/lib/X11/app-defaults'
XCMSDB = `/usr/X11R6/lib/X11/Xcms.txt'
XKEYSYMDB = `/usr/X11R6/lib/X11/XKeysymDB'
XNLSPATH = `/usr/X11R6/lib/X11/locale'
_ = `/usr/bin/cygcheck'
POSIXLY_CORRECT = `1'

HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2
  (default) = `/cygdrive'
  cygdrive flags = 0x00000022
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/
  (default) = `C:\cygwin'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin
  (default) = `C:\cygwin/bin'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib
  (default) = `C:\cygwin/lib'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/X11R6/lib/X11/fonts
  (default) = `C:\cygwin\usr\X11R6\lib\X11\fonts'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options

a:  fd           N/A    N/A                    
c:  hd  FAT32  12405Mb  89% CP    UN           SYSTEM
d:  hd  FAT32  57225Mb  96% CP    UN           DATA
e:  cd           N/A    N/A                    

C:\cygwin                          /                         system  binmode
C:\cygwin/bin                      /usr/bin                  system  binmode
C:\cygwin/lib                      /usr/lib                  system  binmode
C:\cygwin\usr\X11R6\lib\X11\fonts  /usr/X11R6/lib/X11/fonts  system  binmode
.                                  /cygdrive                 system  binmode,cygdrive

Found: C:\cygwin\bin\awk.exe
Found: C:\cygwin\bin\bash.exe
Found: C:\cygwin\bin\cat.exe
Found: C:\cygwin\bin\cp.exe
Found: C:\cygwin\bin\cpp.exe
Found: C:\cygwin\bin\find.exe
Found: C:\cygwin\bin\gcc.exe
Found: C:\cygwin\bin\gdb.exe
Found: C:\cygwin\bin\grep.exe
Found: C:\cygwin\bin\ld.exe
Found: C:\cygwin\bin\ls.exe
Found: C:\cygwin\bin\make.exe
Found: C:\cygwin\bin\mv.exe
Found: C:\cygwin\bin\rm.exe
Found: C:\cygwin\bin\sed.exe
Found: C:\cygwin\bin\sh.exe
Found: C:\cygwin\bin\tar.exe

   61k 2003/08/09 C:\cygwin\bin\cygbz2-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygbz2-1.dll" v0.0 ts=2003/8/9 8:35
   19k 2003/03/22 C:\cygwin\bin\cyggdbm.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm.dll" v0.0 ts=2002/2/20 4:05
   28k 2003/07/20 C:\cygwin\bin\cyggdbm-3.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm-3.dll" v0.0 ts=2003/7/20 9:58
   15k 2003/07/20 C:\cygwin\bin\cyggdbm_compat-3.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm_compat-3.dll" v0.0 ts=2003/7/20 10:00
   30k 2003/08/11 C:\cygwin\bin\cyggdbm-4.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm-4.dll" v0.0 ts=2003/8/11 4:12
   15k 2003/08/11 C:\cygwin\bin\cyggdbm_compat-4.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm_compat-4.dll" v0.0 ts=2003/8/11 4:13
   12k 2003/08/10 C:\cygwin\bin\cyggettextpo-0.dll - os=4.0 img=1.0 sys=4.0
                  "cyggettextpo-0.dll" v0.0 ts=2003/8/11 0:11
   69k 2003/08/10 C:\cygwin\bin\cyggettextlib-0-12-1.dll - os=4.0 img=1.0 sys=4.0
                  "cyggettextlib-0-12-1.dll" v0.0 ts=2003/8/11 0:10
  134k 2003/08/10 C:\cygwin\bin\cyggettextsrc-0-12-1.dll - os=4.0 img=1.0 sys=4.0
                  "cyggettextsrc-0-12-1.dll" v0.0 ts=2003/8/11 0:10
  958k 2003/08/10 C:\cygwin\bin\cygiconv-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygiconv-2.dll" v0.0 ts=2003/8/10 22:57
   22k 2001/12/13 C:\cygwin\bin\cygintl-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl-1.dll" v0.0 ts=2001/12/13 10:28
   37k 2003/08/10 C:\cygwin\bin\cygintl-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl-2.dll" v0.0 ts=2003/8/10 23:50
   45k 2001/04/25 C:\cygwin\bin\cygform5.dll - os=4.0 img=1.0 sys=4.0
                  "cygform5.dll" v0.0 ts=2001/4/25 7:28
   26k 2001/04/25 C:\cygwin\bin\cygmenu5.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu5.dll" v0.0 ts=2001/4/25 7:27
  156k 2001/04/25 C:\cygwin\bin\cygncurses++5.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses++5.dll" v0.0 ts=2001/4/25 7:29
  226k 2001/04/25 C:\cygwin\bin\cygncurses5.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses5.dll" v0.0 ts=2001/4/25 7:17
   15k 2001/04/25 C:\cygwin\bin\cygpanel5.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel5.dll" v0.0 ts=2001/4/25 7:27
   35k 2002/01/09 C:\cygwin\bin\cygform6.dll - os=4.0 img=1.0 sys=4.0
                  "cygform6.dll" v0.0 ts=2002/1/9 7:03
   20k 2002/01/09 C:\cygwin\bin\cygmenu6.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu6.dll" v0.0 ts=2002/1/9 7:03
  175k 2002/01/09 C:\cygwin\bin\cygncurses++6.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses++6.dll" v0.0 ts=2002/1/9 7:03
  202k 2002/01/09 C:\cygwin\bin\cygncurses6.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses6.dll" v0.0 ts=2002/1/9 7:03
   12k 2002/01/09 C:\cygwin\bin\cygpanel6.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel6.dll" v0.0 ts=2002/1/9 7:03
   48k 2003/08/09 C:\cygwin\bin\cygform7.dll - os=4.0 img=1.0 sys=4.0
                  "cygform7.dll" v0.0 ts=2003/8/9 11:25
   29k 2003/08/09 C:\cygwin\bin\cygmenu7.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu7.dll" v0.0 ts=2003/8/9 11:25
  224k 2003/08/09 C:\cygwin\bin\cygncurses7.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses7.dll" v0.0 ts=2003/8/9 11:24
   19k 2003/08/09 C:\cygwin\bin\cygpanel7.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel7.dll" v0.0 ts=2003/8/9 11:24
   63k 2003/04/11 C:\cygwin\bin\cygpcre.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcre.dll" v0.0 ts=2003/4/11 10:31
   61k 2003/04/11 C:\cygwin\bin\cygpcreposix.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcreposix.dll" v0.0 ts=2003/4/11 10:31
   62k 2003/12/11 C:\cygwin\bin\cygpcre-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcre-0.dll" v0.0 ts=2003/12/11 18:01
    9k 2003/12/11 C:\cygwin\bin\cygpcreposix-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcreposix-0.dll" v0.0 ts=2003/12/11 18:01
   17k 2001/06/28 C:\cygwin\bin\cyghistory4.dll - os=4.0 img=1.0 sys=4.0
                  "cyghistory4.dll" v0.0 ts=2001/1/7 5:34
  108k 2001/06/28 C:\cygwin\bin\cygreadline4.dll - os=4.0 img=1.0 sys=4.0
                  "cygreadline4.dll" v0.0 ts=2001/1/7 5:34
   29k 2003/08/10 C:\cygwin\bin\cyghistory5.dll - os=4.0 img=1.0 sys=4.0
                  "cyghistory5.dll" v0.0 ts=2003/8/11 1:16
  148k 2003/08/10 C:\cygwin\bin\cygreadline5.dll - os=4.0 img=1.0 sys=4.0
                  "cygreadline5.dll" v0.0 ts=2003/8/11 1:16
   61k 2003/12/04 C:\cygwin\bin\cygz.dll - os=4.0 img=1.0 sys=4.0
                  "cygz.dll" v0.0 ts=2003/12/4 4:03
   15k 2003/11/20 C:\cygwin\bin\cygminires.dll - os=4.0 img=0.97 sys=4.0
                  "cygminires.dll" v0.0 ts=2003/11/20 2:55
  841k 2004/03/17 C:\cygwin\bin\cygcrypto-0.9.7.dll - os=4.0 img=1.0 sys=4.0
                  "cygcrypto-0.9.7.dll" v0.0 ts=2004/3/17 23:58
  171k 2004/03/17 C:\cygwin\bin\cygssl-0.9.7.dll - os=4.0 img=1.0 sys=4.0
                  "cygssl-0.9.7.dll" v0.0 ts=2004/3/17 23:58
  155k 2004/01/07 C:\cygwin\bin\cygexpat-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygexpat-0.dll" v0.0 ts=2004/1/7 17:14
  129k 2004/03/11 C:\cygwin\bin\cygfontconfig-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygfontconfig-1.dll" v0.0 ts=2004/3/11 1:12
  361k 2003/10/25 C:\cygwin\bin\cygfreetype-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygfreetype-6.dll" v0.0 ts=2003/10/22 6:18
   21k 2001/06/20 C:\cygwin\bin\cygintl.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl.dll" v0.0 ts=2001/6/20 19:09
  132k 2003/08/11 C:\cygwin\bin\cygjpeg-62.dll - os=4.0 img=1.0 sys=4.0
                  "cygjpeg-62.dll" v0.0 ts=2003/8/11 2:37
  119k 2002/02/09 C:\cygwin\bin\cygjpeg6b.dll - os=4.0 img=1.0 sys=4.0
                  "cygjpeg6b.dll" v0.0 ts=2002/2/9 6:19
  173k 2003/08/10 C:\cygwin\bin\cygpng12.dll - os=4.0 img=1.0 sys=4.0
                  "cygpng12.dll" v0.0 ts=2003/8/11 0:35
   22k 2002/06/09 C:\cygwin\bin\cygpopt-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpopt-0.dll" v0.0 ts=2002/6/9 7:45
  281k 2003/02/24 C:\cygwin\bin\cygtiff3.dll - os=4.0 img=1.0 sys=4.0
                  "cygtiff3.dll" v0.0 ts=2003/2/24 5:58
  282k 2003/08/11 C:\cygwin\bin\cygtiff4.dll - os=4.0 img=1.0 sys=4.0
                  "cygtiff4.dll" v0.0 ts=2003/8/11 4:32
   27k 2004/03/05 C:\cygwin\bin\cygungif-4.dll - os=4.0 img=1.0 sys=4.0
                  "cygungif-4.dll" v0.0 ts=2004/3/5 21:13
    7k 2003/10/19 C:\cygwin\bin\cygcrypt-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygcrypt-0.dll" v0.0 ts=2003/10/19 9:57
   22k 2004/02/10 C:\cygwin\bin\cygcygipc-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygcygipc-2.dll" v0.0 ts=2004/2/10 3:48
  831k 2003/09/20 C:\cygwin\bin\cygdb-4.1.dll - os=4.0 img=1.0 sys=4.0
                  "cygdb-4.1.dll" v0.0 ts=2003/9/20 23:51
 1080k 2003/09/20 C:\cygwin\bin\cygdb_cxx-4.1.dll - os=4.0 img=1.0 sys=4.0
                  "cygdb_cxx-4.1.dll" v0.0 ts=2003/9/20 23:53
   40k 2004/01/02 C:\cygwin\bin\cyglber-2.dll - os=4.0 img=1.0 sys=4.0
                  "cyglber-2.dll" v0.0 ts=2004/1/2 12:11
  194k 2004/01/02 C:\cygwin\bin\cygldap-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygldap-2.dll" v0.0 ts=2004/1/2 12:27
  202k 2004/01/02 C:\cygwin\bin\cygldap_r-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygldap_r-2.dll" v0.0 ts=2004/1/2 12:27
 1049k 2003/11/07 C:\cygwin\bin\cygperl5_8_2.dll - os=4.0 img=1.0 sys=4.0
                  "cygperl5_8_2.dll" v0.0 ts=2003/11/7 12:08
 1100k 2004/03/19 C:\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
                  "cygwin1.dll" v0.0 ts=2004/3/19 5:05
    Cygwin DLL version info:
        DLL version: 1.5.9
        DLL epoch: 19
        DLL bad signal mask: 19005
        DLL old termios: 5
        DLL malloc env: 28
        API major: 0
        API minor: 112
        Shared data: 4
        DLL identifier: cygwin1
        Mount registry: 2
        Cygnus registry name: Cygnus Solutions
        Cygwin registry name: Cygwin
        Program options name: Program Options
        Cygwin mount registry name: mounts v2
        Cygdrive flags: cygdrive flags
        Cygdrive prefix: cygdrive prefix
        Cygdrive default prefix: 
        Build date: Thu Mar 18 23:05:18 EST 2004
        Shared id: cygwin1S4

   28k 2004/01/16 C:\cygwin\usr\X11R6\bin\cygDtPrint-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygDtPrint-1.dll" v0.0 ts=2004/1/16 5:07
   76k 2004/01/16 C:\cygwin\usr\X11R6\bin\cygMrm-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygMrm-2.dll" v0.0 ts=2004/1/16 5:07
   66k 2004/01/16 C:\cygwin\usr\X11R6\bin\cygUil-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygUil-2.dll" v0.0 ts=2004/1/16 5:07
 1293k 2004/01/16 C:\cygwin\usr\X11R6\bin\cygXm-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygXm-2.dll" v0.0 ts=2004/1/16 5:03
   56k 2004/03/11 C:\cygwin\usr\X11R6\bin\cygXft-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygXft-1.dll" v0.0 ts=2003/11/18 2:42
   63k 2004/03/23 C:\cygwin\usr\X11R6\bin\cygXft-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygXft-2.dll" v0.0 ts=2004/3/23 23:20
   36k 2004/04/10 C:\cygwin\usr\X11R6\bin\cygFS-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygFS-6.dll" v0.0 ts=2004/4/10 1:20
  431k 2004/04/10 C:\cygwin\usr\X11R6\bin\cygGL-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygGL-1.dll" v0.0 ts=2004/4/10 1:24
  437k 2004/04/10 C:\cygwin\usr\X11R6\bin\cygGLU-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygGLU-1.dll" v0.0 ts=2004/4/10 1:25
   74k 2004/04/10 C:\cygwin\usr\X11R6\bin\cygICE-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygICE-6.dll" v0.0 ts=2004/4/10 1:17
 1250k 2004/04/10 C:\cygwin\usr\X11R6\bin\cygOSMesa-4.dll - os=4.0 img=1.0 sys=4.0
                  "cygOSMesa-4.dll" v0.0 ts=2004/4/10 1:24
   30k 2004/04/10 C:\cygwin\usr\X11R6\bin\cygSM-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygSM-6.dll" v0.0 ts=2004/4/10 1:17
  869k 2004/04/10 C:\cygwin\usr\X11R6\bin\cygX11-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygX11-6.dll" v0.0 ts=2004/4/10 1:17
    8k 2004/04/10 C:\cygwin\usr\X11R6\bin\cygXRes-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygXRes-1.dll" v0.0 ts=2004/4/10 1:26
   27k 2004/04/10 C:\cygwin\usr\X11R6\bin\cygXTrap-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygXTrap-6.dll" v0.0 ts=2004/4/10 1:26
  253k 2004/04/10 C:\cygwin\usr\X11R6\bin\cygXaw-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygXaw-6.dll" v0.0 ts=2004/4/10 1:19
  355k 2004/04/10 C:\cygwin\usr\X11R6\bin\cygXaw-7.dll - os=4.0 img=1.0 sys=4.0
                  "cygXaw-7.dll" v0.0 ts=2004/4/10 1:20
   30k 2004/04/10 C:\cygwin\usr\X11R6\bin\cygXcursor-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygXcursor-1.dll" v0.0 ts=2004/4/10 1:26
   49k 2004/04/10 C:\cygwin\usr\X11R6\bin\cygXext-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygXext-6.dll" v0.0 ts=2004/4/10 1:17
    7k 2004/04/10 C:\cygwin\usr\X11R6\bin\cygXfontcache-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygXfontcache-1.dll" v0.0 ts=2004/4/10 1:27
   27k 2004/04/10 C:\cygwin\usr\X11R6\bin\cygXi-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygXi-6.dll" v0.0 ts=2004/4/10 1:20
   76k 2004/04/10 C:\cygwin\usr\X11R6\bin\cygXmu-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygXmu-6.dll" v0.0 ts=2004/4/10 1:18
   11k 2004/04/10 C:\cygwin\usr\X11R6\bin\cygXmuu-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygXmuu-1.dll" v0.0 ts=2004/4/10 1:18
   26k 2004/04/10 C:\cygwin\usr\X11R6\bin\cygXp-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygXp-6.dll" v0.0 ts=2004/4/10 1:21
   51k 2004/04/10 C:\cygwin\usr\X11R6\bin\cygXpm-4.dll - os=4.0 img=1.0 sys=4.0
                  "cygXpm-4.dll" v0.0 ts=2004/4/10 1:19
   11k 2004/04/10 C:\cygwin\usr\X11R6\bin\cygXrandr-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygXrandr-2.dll" v0.0 ts=2004/4/10 1:26
   27k 2004/04/10 C:\cygwin\usr\X11R6\bin\cygXrender-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygXrender-1.dll" v0.0 ts=2004/4/10 1:25
  282k 2004/04/10 C:\cygwin\usr\X11R6\bin\cygXt-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygXt-6.dll" v0.0 ts=2004/4/10 1:18
   17k 2004/04/10 C:\cygwin\usr\X11R6\bin\cygXtst-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygXtst-6.dll" v0.0 ts=2004/4/10 1:20
  237k 2004/04/10 C:\cygwin\usr\X11R6\bin\cygdps-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygdps-1.dll" v0.0 ts=2004/4/10 1:25
   25k 2004/04/10 C:\cygwin\usr\X11R6\bin\cygdpstk-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygdpstk-1.dll" v0.0 ts=2004/4/10 1:25
   21k 2004/04/10 C:\cygwin\usr\X11R6\bin\cygfontenc-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygfontenc-1.dll" v0.0 ts=2004/4/10 1:27
    9k 2004/04/10 C:\cygwin\usr\X11R6\bin\cygoldX-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygoldX-6.dll" v0.0 ts=2004/4/10 1:17
   20k 2004/04/10 C:\cygwin\usr\X11R6\bin\cygpsres-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygpsres-1.dll" v0.0 ts=2004/4/10 1:25
  124k 2004/04/10 C:\cygwin\usr\X11R6\bin\cygxkbfile-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygxkbfile-1.dll" v0.0 ts=2004/4/10 1:20
   12k 2004/04/10 C:\cygwin\usr\X11R6\bin\cygxkbui-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygxkbui-1.dll" v0.0 ts=2004/4/10 1:21

Cygwin Package Information
Last downloaded files to: D:\Utils\CygWin
Last downloaded files from: ftp://planetmirror.com/pub/sourceware/cygwin

Package              Version            
_update-info-dir     00227-1            
a2ps                 4.13-1             
ash                  20040127-1         
base-files           2.6-1              
base-passwd          1.1-1              
bash                 2.05b-16           
binutils             20040312-1         
bison                20030307-1         
byacc                1.9-1              
bzip2                1.0.2-5            
clear                1.0-1              
crypt                1.1-1              
cygipc               2.03-2             
cygrunsrv            1.0-1              
cygutils             1.2.5-1            
cygwin               1.5.9-1            
diffutils            2.8.7-1            
editrights           1.01-1             
expat                1.95.7-1           
fileutils            4.1-2              
findutils            4.1.7-4            
fontconfig           2.2.2-1            
freetype2            2.1.5-1            
gawk                 3.1.3-4            
gcc                  3.3.1-3            
gcc-ada              3.3.1-3            
gcc-g++              3.3.1-3            
gcc-java             3.3.1-3            
gcc-mingw-ada        20031020-1         
gcc-mingw-core       20031020-1         
gcc-mingw-g++        20031020-1         
gcc-mingw-java       20031020-1         
gdb                  20030919-1         
gdbm                 1.8.3-7            
gettext              0.12.1-3           
ghostscript          7.05-2             
ghostscript-base     7.05-2             
ghostscript-x11      7.05-2             
gnugo                3.4-1              
grep                 2.5-1              
groff                1.18.1-2           
gzip                 1.3.5-1            
jpeg                 6b-11              
less                 381-1              
lesstif              0.93.91-6          
libbz2_1             1.0.2-5            
libdb4.1             4.1.25-1           
libfontconfig-devel  2.2.2-1            
libfontconfig1       2.2.2-1            
libfreetype2-devel   2.1.5-1            
libfreetype26        2.1.5-1            
libgdbm              1.8.0-5            
libgdbm-devel        1.8.3-7            
libgdbm3             1.8.3-3            
libgdbm4             1.8.3-7            
libgettextpo0        0.12.1-3           
libiconv2            1.9.1-3            
libintl              0.10.38-3          
libintl1             0.10.40-1          
libintl2             0.12.1-3           
libjpeg62            6b-11              
libjpeg6b            6b-8               
libncurses5          5.2-1              
libncurses6          5.2-8              
libncurses7          5.3-4              
libopenldap2         2.1.25-1           
libpcre              4.1-1              
libpcre0             4.5-1              
libpng               1.2.5-4            
libpng12             1.2.5-4            
libpopt0             1.6.4-4            
libreadline4         4.1-2              
libreadline5         4.3-5              
libtiff-devel        3.6.0-5            
libtiff3             3.6.0-2            
libtiff4             3.6.0-5            
libungif             4.1.0-3            
libXft               2.1.6-1            
libXft-devel         2.1.6-1            
libXft1              1.0.0-1            
libXft2              2.1.6-1            
links                0.99pre14-1        
login                1.9-7              
lynx                 2.8.4-7            
m4                   1.4-1              
make                 3.80-1             
man                  1.5k-3             
mingw-runtime        3.3-1              
minires              0.97-1             
mktemp               1.5-3              
ncurses              5.3-4              
nedit                5.4-1              
opengl               1.1.0-7            
openssh              3.8.1p1-1          
openssl              0.9.7d-1           
pcre                 4.5-1              
pcre-doc             4.5-1              
perl                 5.8.2-1            
postgresql           7.4.1-3            
procps               010801-2           
psutils              1.17-1             
readline             4.3-5              
sed                  4.0.9-2            
sh-utils             2.0.15-4           
shutdown             1.4-1              
tar                  1.13.25-5          
tcltk                20030901-1         
termcap              20021106-2         
terminfo             5.3_20030726-1     
texinfo              4.2-4              
textutils            2.0.21-1           
tiff                 3.6.0-5            
time                 1.7-1              
unzip                5.50-5             
vim                  6.2.098-1          
w32api               2.5-1              
which                1.5-2              
whois                4.6.14-1           
X-startup-scripts    1.0.7-1            
xemacs               21.4.15-1          
xemacs-sumo          2004-02-02-1       
XFree86-base         4.3.0-11           
XFree86-bin          4.3.0-21           
XFree86-prog         4.3.0-21           
XFree86-xserv        4.3.0-68           
xorg-x11-base        6.7.0.0-8          
xorg-x11-bin         6.7.0.0-4          
xorg-x11-bin-dlls    6.7.0.0-4          
xorg-x11-bin-lndir   6.7.0.0-2          
xorg-x11-devel       6.7.0.0-4          
xorg-x11-etc         6.7.0.0-3          
xorg-x11-fenc        6.7.0.0-2          
xorg-x11-fnts        6.7.0.0-1          
xorg-x11-libs-data   6.7.0.0-2          
xorg-x11-xwin        6.7.0.0-9          
xterm                185-4              
zip                  2.3-6              
zlib                 1.2.1-1            
Use -h to see help about each section


[-- Attachment #3: Type: text/plain, Size: 218 bytes --]

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

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

* Re: binutils 20040312-1 : problem linking 16bit x86 code with ld
  2004-05-17 23:33 binutils 20040312-1 : problem linking 16bit x86 code with ld Brice VIDDEAU
@ 2004-05-18  9:50 ` Corinna Vinschen
  2004-05-18 10:04   ` Dave Korn
  2004-05-18 13:16   ` Brice VIDDEAU
  0 siblings, 2 replies; 10+ messages in thread
From: Corinna Vinschen @ 2004-05-18  9:50 UTC (permalink / raw)
  To: cygwin

On May 18 00:41, Brice VIDDEAU wrote:
> when I link 16bit code with ld, strangely enough linking is not doing 
> correctly : some symbols are off by two byte when I make a call.

You should ask this on the binutils mailing list.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Co-Project Leader          mailto:cygwin@cygwin.com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

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

* RE: binutils 20040312-1 : problem linking 16bit x86 code with ld
  2004-05-18  9:50 ` Corinna Vinschen
@ 2004-05-18 10:04   ` Dave Korn
  2004-05-18 13:16   ` Brice VIDDEAU
  1 sibling, 0 replies; 10+ messages in thread
From: Dave Korn @ 2004-05-18 10:04 UTC (permalink / raw)
  To: cygwin

> -----Original Message-----
> From: cygwin-owner  On Behalf Of Corinna Vinschen
> Sent: 18 May 2004 09:09

> On May 18 00:41, Brice VIDDEAU wrote:
> > when I link 16bit code with ld, strangely enough linking is 
> not doing 
> > correctly : some symbols are off by two byte when I make a call.
> 
> You should ask this on the binutils mailing list.

And use the -r option to objdump to get the relocs displayed in-line with
the diassembly.


    cheers, 
      DaveK
-- 
Can't think of a witty .sigline today....


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

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

* Re: binutils 20040312-1 : problem linking 16bit x86 code with ld
  2004-05-18  9:50 ` Corinna Vinschen
  2004-05-18 10:04   ` Dave Korn
@ 2004-05-18 13:16   ` Brice VIDDEAU
  2004-05-18 13:31     ` Corinna Vinschen
  1 sibling, 1 reply; 10+ messages in thread
From: Brice VIDDEAU @ 2004-05-18 13:16 UTC (permalink / raw)
  To: cygwin

Corinna Vinschen wrote:

>On May 18 00:41, Brice VIDDEAU wrote:
>  
>
>>when I link 16bit code with ld, strangely enough linking is not doing 
>>correctly : some symbols are off by two byte when I make a call.
>>    
>>
>
>You should ask this on the binutils mailing list.
>
>Corinna
>
>  
>
I tried to find the cygwin binutils mailing list but I did not succeed. 
Could you point me to it?

Thank you.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

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

* Re: binutils 20040312-1 : problem linking 16bit x86 code with ld
  2004-05-18 13:16   ` Brice VIDDEAU
@ 2004-05-18 13:31     ` Corinna Vinschen
  2004-05-18 13:36       ` tail and win file handling C Wells
  0 siblings, 1 reply; 10+ messages in thread
From: Corinna Vinschen @ 2004-05-18 13:31 UTC (permalink / raw)
  To: cygwin

On May 18 13:15, Brice VIDDEAU wrote:
> I tried to find the cygwin binutils mailing list but I did not succeed. 
> Could you point me to it?

There's no Cygwin binutils list, there's just a binutils list
binutils@sources.redhat.com.  It's the right list to ask this
sort of question.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Co-Project Leader          mailto:cygwin@cygwin.com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

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

* tail and win file handling
  2004-05-18 13:31     ` Corinna Vinschen
@ 2004-05-18 13:36       ` C Wells
  2004-05-18 16:58         ` Larry Hall
  0 siblings, 1 reply; 10+ messages in thread
From: C Wells @ 2004-05-18 13:36 UTC (permalink / raw)
  To: cygwin

I am sorry if this has been covered before, but I was
wondering if there is work around (probably not ;-(

In unix you can do the following
tail -f /somefile
in another session
rm -f /somefile
echo OK > /somefile

of course the tail stops working, but the file is
recreated

On a cygwin box
tail -f c:/somefile
in another session
rm -f c:/somefile
echo OK > c:/somefile
'Access is denied'

So obviously the tail puts a lock on the file,
preventing an application from creating a new one,
which in my case breaks the application. Any thoughts
about how work around this, given I need to tail the
file ?

Thanks



	
		
__________________________________
Do you Yahoo!?
SBC Yahoo! - Internet access at a great low price.
http://promo.yahoo.com/sbc/

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

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

* Re: tail and win file handling
  2004-05-18 13:36       ` tail and win file handling C Wells
@ 2004-05-18 16:58         ` Larry Hall
  2004-05-18 17:23           ` C Wells
  0 siblings, 1 reply; 10+ messages in thread
From: Larry Hall @ 2004-05-18 16:58 UTC (permalink / raw)
  To: C Wells, cygwin

At 09:31 AM 5/18/2004, you wrote:
>I am sorry if this has been covered before, but I was
>wondering if there is work around (probably not ;-(
>
>In unix you can do the following
>tail -f /somefile
>in another session
>rm -f /somefile
>echo OK > /somefile
>
>of course the tail stops working, but the file is
>recreated
>
>On a cygwin box
>tail -f c:/somefile
>in another session
>rm -f c:/somefile
>echo OK > c:/somefile
>'Access is denied'
>
>So obviously the tail puts a lock on the file,
>preventing an application from creating a new one,
>which in my case breaks the application. Any thoughts
>about how work around this, given I need to tail the
>file ? 


Your going to have to use a different file name.  Windows doesn't 
support the same semantics in this case.  The emulation Cygwin provides
is as close as you're going to get (which ain't that close but... ;-) ).


--
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
838 Washington Street                   (508) 893-9889 - FAX
Holliston, MA 01746                     


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

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

* Re: tail and win file handling
  2004-05-18 16:58         ` Larry Hall
@ 2004-05-18 17:23           ` C Wells
  2004-05-18 22:13             ` Larry Hall
  0 siblings, 1 reply; 10+ messages in thread
From: C Wells @ 2004-05-18 17:23 UTC (permalink / raw)
  To: Cygwin List

I can't change the application unfortunately, if I
could I'd have it only log interesting stuff rather
than the garbage it does.

Is it worth trying maybe to link the file and tail the
link ? or mess with a tee command ??

--- Larry Hall <cygwin-lh@cygwin.com> wrote:
> re tail and win file handles.

> Your going to have to use a different file name. 
> Windows doesn't 
> support the same semantics in this case.  The
> emulation Cygwin provides
> is as close as you're going to get (which ain't that
> close but... ;-) ).
> 


	
		
__________________________________
Do you Yahoo!?
SBC Yahoo! - Internet access at a great low price.
http://promo.yahoo.com/sbc/

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

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

* Re: tail and win file handling
  2004-05-18 17:23           ` C Wells
@ 2004-05-18 22:13             ` Larry Hall
  0 siblings, 0 replies; 10+ messages in thread
From: Larry Hall @ 2004-05-18 22:13 UTC (permalink / raw)
  To: C Wells, Cygwin List

At 01:08 PM 5/18/2004, you wrote:
>I can't change the application unfortunately, if I
>could I'd have it only log interesting stuff rather
>than the garbage it does.
>
>Is it worth trying maybe to link the file and tail the
>link ? or mess with a tee command ??


I guess I'm unclear on what you're doing and what's creating/removing
the file you're interested in and how it's being done.  The above ideas 
may work in your situation.  I don't know.  For the example you posted,
the file deleted by "rm" isn't deleted really until it's closed, which
won't happen until 'tail' ends.  This is the way Windows works.  There's
not much to be done about it (at least not in Cygwin).  Believe me, we've
tried.


--
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
838 Washington Street                   (508) 893-9889 - FAX
Holliston, MA 01746                     


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

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

* Re: tail and win file handling
@ 2004-05-19 17:42 Paul Haas
  0 siblings, 0 replies; 10+ messages in thread
From: Paul Haas @ 2004-05-19 17:42 UTC (permalink / raw)
  To: cygwin

Larry Hall wrote:

> the file deleted by "rm" isn't deleted really until it's closed, which
> won't happen until 'tail' ends.  This is the way Windows works.  There's
> not much to be done about it (at least not in Cygwin).  Believe me,
> we've tried.

Here is a really ugly kludge to deal with a really ugly file system.

I'm sure I read about this sort of kludge before, so the idea is certainly
not original.

-------Cut here------
#!/usr/bin/perl -w
# this acts sort of like tail -f, but doesn't keep the
# open.  It is designed for non-unix systems where open files
# can't be deleted.
# It mindlessly shows the last 512 bytes of the file on startup
# rather than the last 10 lines.
#
#  Paul Haas, May 19, 2004
my $file = shift;
open(TF,$file) || die "Reading $file $!";
seek(TF,-512,2);
@lines=<TF>;
my $curpos=tell(TF);
close(TF);
print @lines;
sleep 1;
while(-r $file ) {
  open(TF,$file) || die "Rereading $file $!";
  seek(TF,$curpos,0);
  @lines=<TF>;
  $curpos = tell(TF);
  print @lines;
  close(TF);
  sleep 1;
}


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

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

end of thread, other threads:[~2004-05-19 15:11 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-17 23:33 binutils 20040312-1 : problem linking 16bit x86 code with ld Brice VIDDEAU
2004-05-18  9:50 ` Corinna Vinschen
2004-05-18 10:04   ` Dave Korn
2004-05-18 13:16   ` Brice VIDDEAU
2004-05-18 13:31     ` Corinna Vinschen
2004-05-18 13:36       ` tail and win file handling C Wells
2004-05-18 16:58         ` Larry Hall
2004-05-18 17:23           ` C Wells
2004-05-18 22:13             ` Larry Hall
2004-05-19 17:42 Paul Haas

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