X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type :content-transfer-encoding; q=dns; s=default; b=cxu4IWEhoRagPdhf V+utZjXJl395EETeW67JIsf5gOmH938ipMvxL9B4AxiYkdVOHetViPk749AJAQX4 UTtAbR34RUS6G+WG0U2rRY5hhbyUVjeMkcSIM4tS8LDEgO221x8S9DWX7jphntF+ K3UDjFTV36+49YLdE/wlLFj0B/M= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type :content-transfer-encoding; s=default; bh=KUcOgaf7fEUqiK1Aid91Rd 7ljp4=; b=pJTW2ni7bkeHD53F8vspMga9/9FSps8NVuEToJmG+03zn+q4eRw7VZ tKRWA7bmrmJaKt9ZpNELmIVQohEi11lcryrXXHOKHrgfSeSBnzNcvd/wtKcL4yPn hTWioGWsXFlwwt4DgAaoCzLwZnw+n9O9Vtfw4s2CeqSRxmVAODRFU= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.4 required=5.0 tests=AWL,BAYES_50,EXECUTABLE_URI,FREEMAIL_FROM,KAM_EXEURI,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 X-HELO: mail-qa0-f48.google.com MIME-Version: 1.0 X-Received: by 10.140.31.36 with SMTP id e33mr5152222qge.36.1418921842975; Thu, 18 Dec 2014 08:57:22 -0800 (PST) In-Reply-To: <5492EDFC.5080608@gmail.com> References: <5492EDFC DOT 5080608 AT gmail DOT com> Date: Thu, 18 Dec 2014 17:57:22 +0100 Message-ID: Subject: Re: ps questions From: BGINFO4X To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id sBIGvhg4012068 2014-12-18 16:08 GMT+01:00 Marco Atzeri : > > > On 12/18/2014 3:52 PM, Kizito Porta BalanyĆ  wrote: >> >> Hello, >> >> I can't find where "ps -W" is coded in the procps source files. Is it >> there ? is it in cygwin.dll? What are you doing "internally" with the >> -W option? >> >> Another question related is: It is possible to map windows processes >> to the /proc filysystem. Any way or hint? >> >> Thanks a lot for your time and thanks for the other answered questions. >> >> Regards. >> > > ps is part of the cygwin package Yes, you are right, I was confused with the procps package. Another question: When I execute a windows program, in the /proc table of the process, the cwd and root are , is this correct? is it a bug? For example, if I launch notepad & : /proc/4422 : cwd -> root -> exe -> is OK. /cygdrive/c/WINDOWS/system32/notepad This only happens with the native windows aplications. Cygwin applications have correct values in cwd and root. Thanks again. > > https://cygwin.com/cgi-bin2/package-cat.cgi?file=x86%2Fcygwin%2Fcygwin-1.7.33-1&grep=ps.exe > > https://cygwin.com/viewvc/src/winsup/utils/ps.cc?revision=1.38&view=markup > > -- > Problem reports: http://cygwin.com/problems.html > FAQ: http://cygwin.com/faq/ > Documentation: http://cygwin.com/docs.html > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple