🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #12761

Re: sistema de archivos /proc

#12761
From: J.A. Gutierrez
Date: Wed, 23 May 2001 09:23
16 lines
1691 bytes
efoliver <efoliver@terra.es> wrote:

: Y abusando un poco una preguntilla, haber si tu la supieras y ese tiempo 
: que adelanto. Con getuid() obtengo el uid del proceso en el que se ejecuta. 
: Pero sabes como puedo saber el uid de un proceso desde otro.  No se si 
: existe algo como esto getuid(pid) donde pid es el id del otro proceso del 
: cual quiero saber su uid. 

	no me suena que haya una forma portable.
	Mirate el codigo de top, p.e. ...

-- 
PGP and other useless info at      \
http://www.cps.unizar.es/~spd/      \
finger://daphne.cps.unizar.es/spd    \       Timeo Danaos et dona ferentes
ftp://ivo.cps.unizar.es/pub/          \                         (Virgilio)   
Technical Details
Message-ID: <9efvj2$cor$1@news.unizar.es>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!193.251.151.101!opentransit.net!jussieu.fr!news.rediris.es!news.unizar.es!not-for-mail
References: <990474035.863140@seux119> <Pine.LNX.4.33.0105220851260.29717-100000@eloy.ayrna.org> <990546658.169842@seux119>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII-7-bit
X-Google-Thread: f86c8,a67d6374509915da
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2001-05-23 02:08:54 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!193.251.151.101!opentransit.net!jussieu.fr!news.rediris.es!news.unizar.es!not-for-mail
From: "J.A. Gutierrez" <spd@daphne.cps.unizar.es>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: sistema de archivos /proc
Date: 23 May 2001 09:23:46 GMT
Organization: Rank
Lines: 16
Message-ID: <9efvj2$cor$1@news.unizar.es>
References: <990474035.863140@seux119> <Pine.LNX.4.33.0105220851260.29717-100000@eloy.ayrna.org> <990546658.169842@seux119>
NNTP-Posting-Host: daphne.cps.unizar.es
X-Trace: news.unizar.es 990609826 13083 155.210.152.20 (23 May 2001 09:23:46 GMT)
X-Complaints-To: usenet@news.unizar.es
NNTP-Posting-Date: 23 May 2001 09:23:46 GMT
User-Agent: tin/1.4.5-20010409 ("One More Nightmare") (UNIX) (IRIX/6.2 (IP22))