Size difference reported by /proc/partitions and lseek(SEEK_END) on block device

Loh, Joe joel@pivot3.com
Wed Dec 7 17:17:00 GMT 2005


> Have you tried this with the latest snashot from
http://cygwin.com/snapshots ?
>
>
> Corinna

We just installed the cygwin-inst-20051207.tar.bz2 snapshot.  The output
in //proc/partitions is the same as the Cygwin Kernel 1.5.18.  However,
the lseek(SEEK_END) no longer works.  When I rerun the "C" program it
gave the following error. I even recompiled with the new snapshot just
to make sure, still the same error.  I have also attached the strace
output for the lseekend.

$ ./lseekend.exe /dev/sda
lseek: Invalid argument

Here's the output from the snapshot:

major minor  #blocks  name

    8     0  78124095 sda
    8     1  15358108 sda1
    8     2    104422 sda2
    8     3  16386300 sda3

Strace for lseekend:

**********************************************
Program name: C:\cygwin\home\Administrator\lseekend.exe (pid 3220, ppid
1)
App version:  1005.19, api: 0.147
DLL version:  1005.19, api: 0.147
DLL build:    20051207 10:34:08SNP
OS version:   Windows NT-5.2
Heap size:    402653184
Date/Time:    2005-12-07 11:15:23
**********************************************
   74     592 [main] lseekend 3220 set_myself: myself->dwProcessId 3220
   63     655 [main] lseekend 3220 time: 1133975723 = time (0)
  548    1203 [main] lseekend 3220 environ_init: GetEnvironmentStrings
returned 0x2458B8 - "=C:=C:\cygwin\bin"
  186    1389 [main] lseekend 3220 environ_init: 0x420238:
!C:=C:\cygwin\bin
   79    1468 [main] lseekend 3220 environ_init: 0x420250:
ALLUSERSPROFILE=C:\Documents and Settings\All Users
   77    1545 [main] lseekend 3220 environ_init: 0x420288:
APPDATA=C:\Documents and Settings\Administrator\Application Data
   80    1625 [main] lseekend 3220 environ_init: 0x4202D0:
CLIENTNAME=Console
   77    1702 [main] lseekend 3220 environ_init: 0x4202E8:
CLUSTERLOG=C:\WINDOWS\Cluster\cluster.log
   78    1780 [main] lseekend 3220 environ_init: 0x420318:
COLORFGBG=0;default;15
   77    1857 [main] lseekend 3220 environ_init: 0x420338:
COLORTERM=rxvt-xpm
   78    1935 [main] lseekend 3220 environ_init: 0x420350:
COMMONPROGRAMFILES=C:\Program Files\Common Files
   78    2013 [main] lseekend 3220 environ_init: 0x420388:
COMPUTERNAME=P3PANDA
   77    2090 [main] lseekend 3220 environ_init: 0x4203A8:
COMSPEC=C:\WINDOWS\system32\cmd.exe
   78    2168 [main] lseekend 3220 environ_init: 0x4203D0:
CVS_RSH=/bin/ssh
   80    2248 [main] lseekend 3220 set_file_api_mode: File APIs set to
OEM
   40    2288 [main] lseekend 3220 parse_options: codepage (called func)
   77    2365 [main] lseekend 3220 parse_options: tty 1001
   78    2443 [main] lseekend 3220 parse_options: binmode 65536
   77    2520 [main] lseekend 3220 parse_options: title 1
   76    2596 [main] lseekend 3220 parse_options: returning
   41    2637 [main] lseekend 3220 environ_init: 0x4203E8:
CYGWIN=codepage:oem tty binmode title
   77    2714 [main] lseekend 3220 environ_init: 0x420460: DISPLAY=:0
   77    2791 [main] lseekend 3220 environ_init: 0x420470: EDITOR=vi
   77    2868 [main] lseekend 3220 environ_init: 0x420480:
FP_NO_HOST_CHECK=NO
   81    2949 [main] lseekend 3220 getwinenv: can't set native for HOME=
since no environ yet
   80    3029 [main] lseekend 3220 mount_info::conv_to_posix_path:
conv_to_posix_path (C:\cygwin\home\Administrator, no-keep-rel,
no-add-slash)
   48    3077 [main] lseekend 3220 normalize_win32_path:
C:\cygwin\home\Administrator = normalize_win32_path
(C:\cygwin\home\Administrator)
   49    3126 [main] lseekend 3220 mount_info::conv_to_posix_path:
/home/Administrator = conv_to_posix_path (C:\cygwin\home\Administrator)
  114    3240 [main] lseekend 3220 win_env::add_cache: posix
/home/Administrator
   41    3281 [main] lseekend 3220 win_env::add_cache: native
HOME=C:\cygwin\home\Administrator
   41    3322 [main] lseekend 3220 posify: env var converted to
HOME=/home/Administrator
   77    3399 [main] lseekend 3220 environ_init: 0x4204C0:
HOME=/home/Administrator
   77    3476 [main] lseekend 3220 environ_init: 0x420498: HOMEDRIVE=C:
   77    3553 [main] lseekend 3220 environ_init: 0x420610:
HOMEPATH=\Documents and Settings\Administrator
   78    3631 [main] lseekend 3220 environ_init: 0x420648:
HOSTNAME=P3PANDA
   77    3708 [main] lseekend 3220 environ_init: 0x420660:
INFOPATH=/usr/local/info:/usr/share/info:/usr/info:
   79    3787 [main] lseekend 3220 environ_init: 0x420698:
LOGONSERVER=\\P3PANDA
   77    3864 [main] lseekend 3220 environ_init: 0x4206B8:
MAKE_MODE=unix
   78    3942 [main] lseekend 3220 environ_init: 0x4206D0:
MANPATH=/usr/local/man:/usr/share/man:/usr/man::/usr/ssl/man
   78    4020 [main] lseekend 3220 environ_init: 0x420718:
NUMBER_OF_PROCESSORS=2
   77    4097 [main] lseekend 3220 environ_init: 0x420738:
OLDPWD=/usr/bin
   77    4174 [main] lseekend 3220 environ_init: 0x420750: OS=Windows_NT
  134    4308 [main] lseekend 3220 getwinenv: can't set native for PATH=
since no environ yet
   50    4358 [main] lseekend 3220 normalize_posix_path: src .
   48    4406 [main] lseekend 3220 mount_info::conv_to_posix_path:
conv_to_posix_path (C:\cygwin\home\Administrator, no-keep-rel,
no-add-slash)
   42    4448 [main] lseekend 3220 normalize_win32_path:
C:\cygwin\home\Administrator = normalize_win32_path
(C:\cygwin\home\Administrator)
   42    4490 [main] lseekend 3220 mount_info::conv_to_posix_path:
/home/Administrator = conv_to_posix_path (C:\cygwin\home\Administrator)
   44    4534 [main] lseekend 3220 cwdstuff::get: posix
/home/Administrator
   43    4577 [main] lseekend 3220 cwdstuff::get: (/home/Administrator)
= cwdstuff::get (0x22EAC0, 260, 1, 0), errno 0
   43    4620 [main] lseekend 3220 normalize_posix_path:
/home/Administrator/ = normalize_posix_path (.)
   41    4661 [main] lseekend 3220 mount_info::conv_to_win32_path:
conv_to_win32_path (/home/Administrator)
   50    4711 [main] lseekend 3220 set_flags: flags: binary (0x2)
   41    4752 [main] lseekend 3220 mount_info::conv_to_win32_path:
src_path /home/Administrator, dst C:\cygwin\home\Administrator, flags
0xA, rc 0
   94    4846 [main] lseekend 3220 symlink_info::check: not a symlink
   43    4889 [main] lseekend 3220 symlink_info::check: 0 =
symlink.check (C:\cygwin\home\Administrator, 0x22E780) (0xA)
  750    5639 [main] lseekend 3220 set_privilege: 1 = set_privilege
((token 708) SeChangeNotifyPrivilege, 1)
  164    5803 [main] lseekend 3220 path_conv::check:
this->path(C:\cygwin\home\Administrator), has_acls(1)
  151    5954 [main] lseekend 3220 mount_info::conv_to_posix_path:
conv_to_posix_path (C:\cygwin\usr\local\bin, keep-rel, no-add-slash)
   50    6004 [main] lseekend 3220 normalize_win32_path:
C:\cygwin\usr\local\bin = normalize_win32_path (C:\cygwin\usr\local\bin)
   44    6048 [main] lseekend 3220 mount_info::conv_to_posix_path:
/usr/local/bin = conv_to_posix_path (C:\cygwin\usr\local\bin)
   42    6090 [main] lseekend 3220 mount_info::conv_to_posix_path:
conv_to_posix_path (C:\cygwin\bin, keep-rel, no-add-slash)
   42    6132 [main] lseekend 3220 normalize_win32_path: C:\cygwin\bin =
normalize_win32_path (C:\cygwin\bin)
   41    6173 [main] lseekend 3220 mount_info::conv_to_posix_path:
/usr/bin = conv_to_posix_path (C:\cygwin\bin)
   41    6214 [main] lseekend 3220 mount_info::conv_to_posix_path:
conv_to_posix_path (C:\cygwin\bin, keep-rel, no-add-slash)
   42    6256 [main] lseekend 3220 normalize_win32_path: C:\cygwin\bin =
normalize_win32_path (C:\cygwin\bin)
   42    6298 [main] lseekend 3220 mount_info::conv_to_posix_path:
/usr/bin = conv_to_posix_path (C:\cygwin\bin)
   41    6339 [main] lseekend 3220 mount_info::conv_to_posix_path:
conv_to_posix_path (C:\cygwin\usr\X11R6\bin, keep-rel, no-add-slash)
   42    6381 [main] lseekend 3220 normalize_win32_path:
C:\cygwin\usr\X11R6\bin = normalize_win32_path (C:\cygwin\usr\X11R6\bin)
   42    6423 [main] lseekend 3220 mount_info::conv_to_posix_path:
/usr/X11R6/bin = conv_to_posix_path (C:\cygwin\usr\X11R6\bin)
   42    6465 [main] lseekend 3220 mount_info::conv_to_posix_path:
conv_to_posix_path (c:\WINDOWS\system32, keep-rel, no-add-slash)
   42    6507 [main] lseekend 3220 normalize_win32_path:
c:\WINDOWS\system32 = normalize_win32_path (c:\WINDOWS\system32)
   42    6549 [main] lseekend 3220 mount_info::conv_to_posix_path:
/cygdrive/c/WINDOWS/system32 = conv_to_posix_path (c:\WINDOWS\system32)
   42    6591 [main] lseekend 3220 mount_info::conv_to_posix_path:
conv_to_posix_path (c:\WINDOWS, keep-rel, no-add-slash)
   42    6633 [main] lseekend 3220 normalize_win32_path: c:\WINDOWS =
normalize_win32_path (c:\WINDOWS)
   41    6674 [main] lseekend 3220 mount_info::conv_to_posix_path:
/cygdrive/c/WINDOWS = conv_to_posix_path (c:\WINDOWS)
   42    6716 [main] lseekend 3220 mount_info::conv_to_posix_path:
conv_to_posix_path (c:\WINDOWS\System32\Wbem, keep-rel, no-add-slash)
   42    6758 [main] lseekend 3220 normalize_win32_path:
c:\WINDOWS\System32\Wbem = normalize_win32_path
(c:\WINDOWS\System32\Wbem)
  112    6870 [main] lseekend 3220 mount_info::conv_to_posix_path:
/cygdrive/c/WINDOWS/System32/Wbem = conv_to_posix_path
(c:\WINDOWS\System32\Wbem)
   45    6915 [main] lseekend 3220 mount_info::conv_to_posix_path:
conv_to_posix_path ("C, keep-rel, no-add-slash)
   41    6956 [main] lseekend 3220 mount_info::conv_to_posix_path: "C =
conv_to_posix_path ("C)
   42    6998 [main] lseekend 3220 mount_info::conv_to_posix_path:
conv_to_posix_path (C:\cygwin\Program Files\Symantec\Norton Ghost
2003\", keep-rel, no-add-slash)
   43    7041 [main] lseekend 3220 normalize_win32_path:
C:\cygwin\Program Files\Symantec\Norton Ghost 2003\" =
normalize_win32_path (C:\cygwin\Program Files\Symantec\Norton Ghost
2003\")
   43    7084 [main] lseekend 3220 mount_info::conv_to_posix_path:
/Program Files/Symantec/Norton Ghost 2003/" = conv_to_posix_path
(C:\cygwin\Program Files\Symantec\Norton Ghost 2003\")
   43    7127 [main] lseekend 3220 mount_info::conv_to_posix_path:
conv_to_posix_path (C:\cygwin\lib\lapack, keep-rel, no-add-slash)
   42    7169 [main] lseekend 3220 normalize_win32_path:
C:\cygwin\lib\lapack = normalize_win32_path (C:\cygwin\lib\lapack)
   43    7212 [main] lseekend 3220 mount_info::conv_to_posix_path:
/usr/lib/lapack = conv_to_posix_path (C:\cygwin\lib\lapack)
  134    7346 [main] lseekend 3220 win_env::add_cache: posix
/usr/local/bin:/usr/bin:/usr/bin:/usr/X11R6/bin:/cygdrive/c/WINDOWS/syst
em32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:"C:/Program
Files/Symantec/Norton Ghost 2003/":/usr/lib/lapack
   45    7391 [main] lseekend 3220 win_env::add_cache: native
PATH=C:\cygwin\usr\local\bin;C:\cygwin\bin;C:\cygwin\bin;C:\cygwin\usr\X
11R6\bin;c:\WINDOWS\system32;c:\WINDOWS;c:\WINDOWS\System32\Wbem;"C;C:\c
ygwin\Program Files\Symantec\Norton Ghost 2003\";C:\cygwin\lib\lapack
   44    7435 [main] lseekend 3220 posify: env var converted to
PATH=/usr/local/bin:/usr/bin:/usr/bin:/usr/X11R6/bin:/cygdrive/c/WINDOWS
/system32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:"C:/Prog
ram Files/Symantec/Norton Ghost 2003/":/usr/lib/lapack
   79    7514 [main] lseekend 3220 environ_init: 0x420848:
PATH=/usr/local/bin:/usr/bin:/usr/bin:/usr/X11R6/bin:/cygdrive/c/WINDOWS
/system32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:"C:/Prog
ram Files/Symantec/Norton Ghost 2003/":/usr/lib/lapack
   83    7597 [main] lseekend 3220 environ_init: 0x420768:
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
   78    7675 [main] lseekend 3220 environ_init: 0x4207A8:
PKG_CONFIG_PATH=/usr/X11R6/lib/pkgconfig
   78    7753 [main] lseekend 3220 environ_init: 0x4207D8:
PRINTER=NPICE37B3 on http://192.168.100.17 (from ASTOR) in session 0
   78    7831 [main] lseekend 3220 environ_init: 0x420828:
PROCESSOR_ARCHITECTURE=x86
   78    7909 [main] lseekend 3220 environ_init: 0x420C58:
PROCESSOR_IDENTIFIER=x86 Family 15 Model 4 Stepping 1, GenuineIntel
   79    7988 [main] lseekend 3220 environ_init: 0x420CA0:
PROCESSOR_LEVEL=15
   77    8065 [main] lseekend 3220 environ_init: 0x420CB8:
PROCESSOR_REVISION=0401
   78    8143 [main] lseekend 3220 environ_init: 0x420CD8:
PROGRAMFILES=C:\Program Files
   78    8221 [main] lseekend 3220 environ_init: 0x4204B0: PROMPT=$P$G
   77    8298 [main] lseekend 3220 environ_init: 0x420D00:
PS1=\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n\$ 
   79    8377 [main] lseekend 3220 environ_init: 0x420D48:
PWD=/home/Administrator
   77    8454 [main] lseekend 3220 environ_init: 0x420D68:
SESSIONNAME=RDP-Tcp#1
   77    8531 [main] lseekend 3220 environ_init: 0x420D88: SHLVL=1
   78    8609 [main] lseekend 3220 environ_init: 0x420D98:
SYSTEMDRIVE=C:
   77    8686 [main] lseekend 3220 environ_init: 0x420DB0:
SYSTEMROOT=C:\WINDOWS
   78    8764 [main] lseekend 3220 getwinenv: can't set native for TEMP=
since no environ yet
   77    8841 [main] lseekend 3220 mount_info::conv_to_posix_path:
conv_to_posix_path (c:\DOCUME~1\ADMINI~1\LOCALS~1\Temp, no-keep-rel,
no-add-slash)
   42    8883 [main] lseekend 3220 normalize_win32_path:
c:\DOCUME~1\ADMINI~1\LOCALS~1\Temp = normalize_win32_path
(c:\DOCUME~1\ADMINI~1\LOCALS~1\Temp)
   47    8930 [main] lseekend 3220 mount_info::conv_to_posix_path:
/cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp = conv_to_posix_path
(c:\DOCUME~1\ADMINI~1\LOCALS~1\Temp)
  116    9046 [main] lseekend 3220 win_env::add_cache: posix
/cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp
   40    9086 [main] lseekend 3220 win_env::add_cache: native
TEMP=c:\DOCUME~1\ADMINI~1\LOCALS~1\Temp
   41    9127 [main] lseekend 3220 posify: env var converted to
TEMP=/cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp
   77    9204 [main] lseekend 3220 environ_init: 0x420E00:
TEMP=/cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp
   78    9282 [main] lseekend 3220 environ_init: 0x420DD0: TERM=xterm
   78    9360 [main] lseekend 3220 environ_init: 0x420DE0:
TEXDOCVIEW_DVI=cygstart %s
   78    9438 [main] lseekend 3220 environ_init: 0x420F70:
TEXDOCVIEW_HTML=cygstart %s
   77    9515 [main] lseekend 3220 environ_init: 0x420F90:
TEXDOCVIEW_PDF=cygstart %s
   78    9593 [main] lseekend 3220 environ_init: 0x420FB0:
TEXDOCVIEW_PS=cygstart %s
   78    9671 [main] lseekend 3220 environ_init: 0x420FD0:
TEXDOCVIEW_TXT=cygstart %s
   82    9753 [main] lseekend 3220 getwinenv: can't set native for TMP=
since no environ yet
   77    9830 [main] lseekend 3220 mount_info::conv_to_posix_path:
conv_to_posix_path (c:\DOCUME~1\ADMINI~1\LOCALS~1\Temp, no-keep-rel,
no-add-slash)
   42    9872 [main] lseekend 3220 normalize_win32_path:
c:\DOCUME~1\ADMINI~1\LOCALS~1\Temp = normalize_win32_path
(c:\DOCUME~1\ADMINI~1\LOCALS~1\Temp)
   42    9914 [main] lseekend 3220 mount_info::conv_to_posix_path:
/cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp = conv_to_posix_path
(c:\DOCUME~1\ADMINI~1\LOCALS~1\Temp)
  115   10029 [main] lseekend 3220 win_env::add_cache: posix
/cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp
   41   10070 [main] lseekend 3220 win_env::add_cache: native
TMP=c:\DOCUME~1\ADMINI~1\LOCALS~1\Temp
   40   10110 [main] lseekend 3220 posify: env var converted to
TMP=/cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp
   77   10187 [main] lseekend 3220 environ_init: 0x421020:
TMP=/cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp
   78   10265 [main] lseekend 3220 environ_init: 0x420FF0:
USER=Administrator
   77   10342 [main] lseekend 3220 environ_init: 0x421008:
USERDOMAIN=P3PANDA
   77   10419 [main] lseekend 3220 environ_init: 0x421190:
USERNAME=Administrator
   78   10497 [main] lseekend 3220 environ_init: 0x4211B0:
USERPROFILE=C:\Documents and Settings\Administrator
   78   10575 [main] lseekend 3220 environ_init: 0x4211E8: VISUAL=vi
   77   10652 [main] lseekend 3220 environ_init: 0x4211F8:
WINDIR=C:\WINDOWS
   78   10730 [main] lseekend 3220 environ_init: 0x421210:
WINDOWID=6565432
   77   10807 [main] lseekend 3220 environ_init: 0x421228:
_=/usr/bin/strace
   51   10858 [main] lseekend 3220 pinfo_init: Set nice to 0
   41   10899 [main] lseekend 3220 pinfo_init: pid 3220, pgid 3220
  690   11589 [main] lseekend 3220 set_privilege: 0 = set_privilege
((token 734) SeRestorePrivilege, 1)
   61   11650 [main] lseekend 3220 set_privilege: 1 = set_privilege
((token 734) SeChangeNotifyPrivilege, 1)
  103   11753 [main] lseekend 3220 dtable::extend: size 32, fds
0x6115C6DC
   54   11807 [main] lseekend 3220 normalize_posix_path: src /etc/passwd
   41   11848 [main] lseekend 3220 normalize_posix_path: /etc/passwd =
normalize_posix_path (/etc/passwd)
   42   11890 [main] lseekend 3220 mount_info::conv_to_win32_path:
conv_to_win32_path (/etc/passwd)
   43   11933 [main] lseekend 3220 set_flags: flags: binary (0x2)
   41   11974 [main] lseekend 3220 mount_info::conv_to_win32_path:
src_path /etc/passwd, dst C:\cygwin\etc\passwd, flags 0xA, rc 0
   85   12059 [main] lseekend 3220 symlink_info::check: not a symlink
   44   12103 [main] lseekend 3220 symlink_info::check: 0 =
symlink.check (C:\cygwin\etc\passwd, 0x22E840) (0xA)
   44   12147 [main] lseekend 3220 path_conv::check:
this->path(C:\cygwin\etc\passwd), has_acls(1)
  135   12282 [main] lseekend 3220 etc::test_file_change: FindFirstFile
succeeded
  397   12679 [main] lseekend 3220 pwdgrp::load: /etc/passwd curr_lines
6
   43   12722 [main] lseekend 3220 pwdgrp::load: /etc/passwd load
succeeded
   63   12785 [main] lseekend 3220 normalize_posix_path: src /etc/group
   42   12827 [main] lseekend 3220 normalize_posix_path: /etc/group =
normalize_posix_path (/etc/group)
   42   12869 [main] lseekend 3220 mount_info::conv_to_win32_path:
conv_to_win32_path (/etc/group)
   45   12914 [main] lseekend 3220 set_flags: flags: binary (0x2)
   42   12956 [main] lseekend 3220 mount_info::conv_to_win32_path:
src_path /etc/group, dst C:\cygwin\etc\group, flags 0xA, rc 0
   74   13030 [main] lseekend 3220 symlink_info::check: not a symlink
   42   13072 [main] lseekend 3220 symlink_info::check: 0 =
symlink.check (C:\cygwin\etc\group, 0x22E810) (0xA)
   44   13116 [main] lseekend 3220 path_conv::check:
this->path(C:\cygwin\etc\group), has_acls(1)
  114   13230 [main] lseekend 3220 etc::test_file_change: FindFirstFile
succeeded
  339   13569 [main] lseekend 3220 pwdgrp::load: /etc/group curr_lines
17
   42   13611 [main] lseekend 3220 pwdgrp::load: /etc/group load
succeeded
   59   13670 [main] lseekend 3220 internal_getlogin:
SetTokenInformation(TokenPrimaryGroup), Win32 error 1308
   45   13715 [main] lseekend 3220 internal_getlogin:
SetTokenInformation(TokenPrimaryGroup), Win32 error 1308
   43   13758 [main] lseekend 3220 cygheap_user::ontherange: what 2, pw
0x421528
   43   13801 [main] lseekend 3220 cygheap_user::ontherange: HOME is
already in the environment /home/Administrator
  260   14061 [main] lseekend 3220 sigproc_init: process/signal handling
enabled, state 0x1001
  297   14358 [sig] lseekend 3220 wait_sig: myself->dwProcessId 3220
   11   14369 [main] lseekend 3220 tty_list::allocate_tty: console 10090
already associated with tty0
   59   14428 [sig] lseekend 3220 wait_sig: entering ReadFile loop,
readsig 0x700, myself->sendsig 0x6FC
   97   14525 [main] lseekend 3220 tty_list::allocate_tty: console
0x10090 associated with tty0
  976   15501 [main] lseekend 3220 build_argv: argv[0] = 'lseekend.exe'
   55   15556 [main] lseekend 3220 build_argv: argv[1] = '/dev/sda'
   45   15601 [main] lseekend 3220 build_argv: argc 2
  135   15736 [main] lseekend 3220 build_fh_pc: fh 0x6115C844
   57   15793 [main] lseekend 3220 fhandler_base::set_flags: flags
0x10002, supplied_bin 0x0
   44   15837 [main] lseekend 3220 fhandler_base::set_flags:
O_TEXT/O_BINARY set in flags 0x10000
   44   15881 [main] lseekend 3220 fhandler_base::set_flags: filemode
set to binary
   44   15925 [main] lseekend 3220 fhandler_base::init: created new
fhandler_base for handle 0x668, bin 1
  127   16052 [main] lseekend 3220 build_fh_pc: fh 0x6115CA4C
   45   16097 [main] lseekend 3220 fhandler_base::set_flags: flags
0x10002, supplied_bin 0x0
   44   16141 [main] lseekend 3220 fhandler_base::set_flags:
O_TEXT/O_BINARY set in flags 0x10000
   44   16185 [main] lseekend 3220 fhandler_base::set_flags: filemode
set to binary
   44   16229 [main] lseekend 3220 fhandler_base::init: created new
fhandler_base for handle 0x664, bin 1
  118   16347 [main] lseekend 3220 build_fh_pc: fh 0x6115CC54
   44   16391 [main] lseekend 3220 fhandler_base::set_flags: flags
0x10002, supplied_bin 0x0
   45   16436 [main] lseekend 3220 fhandler_base::set_flags:
O_TEXT/O_BINARY set in flags 0x10000
   45   16481 [main] lseekend 3220 fhandler_base::set_flags: filemode
set to binary
   44   16525 [main] lseekend 3220 fhandler_base::init: created new
fhandler_base for handle 0x6D8, bin 1
  168   16693 [main] lseekend 3220 set_console_title: title 'lseekend'
   61   16754 [main] lseekend 3220 dll_crt0_1: user_data->main 0x401050
   44   16798 [main] lseekend 3220 __set_errno: void
dll_crt0_1(char*):890 val 0
   44   16842 [main] lseekend 3220 wait_for_sigthread: wait_sig_inited
0x704
  140   16982 [main] lseekend 3220 open: open (/dev/sda, 0x0)
   50   17032 [main] lseekend 3220 normalize_posix_path: src /dev/sda
   43   17075 [main] lseekend 3220 normalize_posix_path: /dev/sda =
normalize_posix_path (/dev/sda)
   54   17129 [main] lseekend 3220 mount_info::conv_to_win32_path:
conv_to_win32_path (/dev/sda)
   51   17180 [main] lseekend 3220 mount_info::conv_to_win32_path:
src_path /dev/sda, dst \Device\Harddisk0\Partition0, flags 0x2, rc 0
   55   17235 [main] lseekend 3220 build_fh_pc: fh 0x6115CE5C
   87   17322 [main] lseekend 3220 fhandler_base::open:
(\Device\Harddisk0\Partition0, 0x10000)
  166   17488 [main] lseekend 3220 fhandler_base::set_flags: flags
0x10000, supplied_bin 0x10000
   69   17557 [main] lseekend 3220 fhandler_base::set_flags:
O_TEXT/O_BINARY set in flags 0x10000
   51   17608 [main] lseekend 3220 fhandler_base::set_flags: filemode
set to binary
   50   17658 [main] lseekend 3220 fhandler_base::open: 0 = NtCreateFile
(0x704, 80100000, \Device\Harddisk0\Partition0, io, NULL, 0, 7, 1, 20,
NULL, 0)
   53   17711 [main] lseekend 3220 fhandler_base::open: 1 =
fhandler_base::open (\Device\Harddisk0\Partition0, 0x10000)
  215   17926 [main] lseekend 3220 fhandler_dev_floppy::get_drive_info:
disk geometry: (9726 cyl)*(255 trk)*(63 sec)*(512 bps)
   57   17983 [main] lseekend 3220 fhandler_dev_floppy::get_drive_info:
partition info: offset 0  length 80000000000
   47   18030 [main] lseekend 3220 fhandler_dev_floppy::get_drive_info:
drive size: 80000000000
   46   18076 [main] lseekend 3220 open: 3 = open (/dev/sda, 0x0)
   52   18128 [main] lseekend 3220 __set_errno: virtual _off64_t
fhandler_dev_floppy::lseek(_off64_t, int):385 val 22
   44   18172 [main] lseekend 3220 lseek64: -1 = lseek (3, 0, 2)
  133   18305 [main] lseekend 3220 fhandler_base::write: binary write
  208   18513 [main] lseekend 3220 fhandler_base::write: binary write
  200   18713 [main] lseekend 3220 fhandler_base::write: binary write
  277   18990 [main] lseekend 3220 fhandler_base::write: binary write
  355   19345 [main] lseekend 3220 close: close (0)
   44   19389 [main] lseekend 3220 fhandler_base::close: closing ''
handle 0x668
   49   19438 [main] lseekend 3220 close: 0 = close (0)
  343   19781 [main] lseekend 3220 close: close (1)
   45   19826 [main] lseekend 3220 fhandler_base::close: closing ''
handle 0x664
   47   19873 [main] lseekend 3220 close: 0 = close (1)
  343   20216 [main] lseekend 3220 close: close (2)
   44   20260 [main] lseekend 3220 fhandler_base::close: closing ''
handle 0x6D8
   46   20306 [main] lseekend 3220 close: 0 = close (2)
  193   20499 [main] lseekend 3220 do_exit: do_exit (256), exit_state 0
   49   20548 [main] lseekend 3220 void: 0x0 = signal (20, 0x1)
   43   20591 [main] lseekend 3220 void: 0x0 = signal (1, 0x1)
   43   20634 [main] lseekend 3220 void: 0x0 = signal (2, 0x1)
   44   20678 [main] lseekend 3220 void: 0x0 = signal (3, 0x1)
   45   20723 [main] lseekend 3220 fhandler_base::close: closing
'/dev/sda' handle 0x704
  112   20835 [main] lseekend 3220 do_exit: 3220 == sid 3220, send
SIGHUP to children
  164   20999 [main] lseekend 3220 set_console_title: title
'rxvt0000061c'
  108   21107 [main] lseekend 3220 sigproc_terminate: entering
   49   21156 [main] lseekend 3220 sig_send: sendsig 0x6FC, pid 3220,
signal -42, its_me 1
   63   21219 [main] lseekend 3220 sig_send: Not waiting for
sigcomplete.  its_me 1 signal -42
    9   21228 [sig] lseekend 3220 wait_sig: saw __SIGEXIT
   47   21275 [main] lseekend 3220 sig_send: returning 0x0 from sending
signal -42
   92   21367 [main] lseekend 3220 proc_terminate: nprocs 0
    8   21375 [sig] lseekend 3220 wait_sig: signal thread exiting
   39   21414 [main] lseekend 3220 proc_terminate: leaving
   49   21463 [sig] lseekend 3220 _cygtls::remove: wait 0x0
  382   21845 [main] lseekend 3220 __to_clock_t: dwHighDateTime 0,
dwLowDateTime 156250
  171   22016 [main] lseekend 3220 __to_clock_t: total 00000000 0000000F
   75   22091 [main] lseekend 3220 __to_clock_t: dwHighDateTime 0,
dwLowDateTime 0
   44   22135 [main] lseekend 3220 __to_clock_t: total 00000000 00000000
  423   22558 [main] lseekend 3220 pinfo::exit: Calling ExitProcess n
0x100, exitcode 0x1


--
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/



More information about the Cygwin mailing list