delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/09/08/08:56:56

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Thu, 8 Sep 2005 14:56:26 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: [ANNOUNCEMENT] Updated: file-4.15-3
Message-ID: <20050908125626.GF5555@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <cygwin DOT 20050907103506 DOT GE5555 AT calimero DOT vinschen DOT de> <4320326C DOT 4060503 AT byu DOT net>
Mime-Version: 1.0
In-Reply-To: <4320326C.4060503@byu.net>
User-Agent: Mutt/1.4.2i

On Sep  8 06:45, Eric Blake wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> According to Corinna Vinschen on 9/7/2005 4:35 AM:
> > I've updated the version of file to 4.15-3.
> > 
> > This release is supposed to solve problems examining binary files
> > on textmode mounts.
> 
> I don't know if this is a regression, or exposing a bug with cygwin's
> virtual file handling, but with a recent snapshot:
> 
> $ file /proc/$$/ppid
> /proc/164/ppid: empty
> $ cat /proc/$$/ppid
> 3904
> 
> Hmm - if cat(1) can see contents, why does file(1) treat it as empty?
> Maybe it's a cygwin bug after all, since the size is being reported as 0:
> 
> $ ls -l /proc/$$/ppid
> - -r--r--r--  1 eblake None 0 Sep  8 06:40 /proc/164/ppid
> 
> If stat() can't easily determine file sizes in /proc, then it might be
> better to report those files as a different file type rather than regular
> files.

  $ uname -sr
  Linux 2.6.12.5
  $ ls -l /proc/self/
  total 0
  -r--------  1 corinna users 0 Sep  8 14:55 auxv
  -r--r--r--  1 corinna users 0 Sep  8 14:55 cmdline
  lrwxrwxrwx  1 corinna users 0 Sep  8 14:55 cwd -> /home/corinna
  -r--------  1 corinna users 0 Sep  8 14:55 environ
  lrwxrwxrwx  1 corinna users 0 Sep  8 14:55 exe -> /bin/ls
  dr-x------  2 corinna users 0 Sep  8 14:55 fd
  -r--r--r--  1 corinna users 0 Sep  8 14:55 maps
  -rw-------  1 corinna users 0 Sep  8 14:55 mem
  -r--r--r--  1 corinna users 0 Sep  8 14:55 mounts
  -rw-r--r--  1 corinna users 0 Sep  8 14:55 oom_adj
  -r--r--r--  1 corinna users 0 Sep  8 14:55 oom_score
  lrwxrwxrwx  1 corinna users 0 Sep  8 14:55 root -> /
  -rw-------  1 corinna users 0 Sep  8 14:55 seccomp
  -r--r--r--  1 corinna users 0 Sep  8 14:55 stat
  -r--r--r--  1 corinna users 0 Sep  8 14:55 statm
  -r--r--r--  1 corinna users 0 Sep  8 14:55 status
  dr-xr-xr-x  3 corinna users 0 Sep  8 14:55 task
  -r--r--r--  1 corinna users 0 Sep  8 14:55 wchan
  $ file /proc/self/mem
  /proc/self/mem: empty


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          mailto:cygwin AT cygwin DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019