Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-developers-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin-developers AT sourceware DOT cygnus DOT com Message-ID: <37DD6BB8.499E06A4@vinschen.de> Date: Mon, 13 Sep 1999 23:25:12 +0200 From: Corinna Vinschen X-Mailer: Mozilla 4.6 [en] (WinNT; I) X-Accept-Language: de,en MIME-Version: 1.0 To: DJ Delorie CC: cygwin-developers AT sourceware DOT cygnus DOT com Subject: Re: POSIX and uid_t resp. gid_t References: <37DD6791 DOT 44D0748A AT vinschen DOT de> <199909132105 DOT RAA22093 AT envy DOT delorie DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit DJ Delorie wrote: > > > How are the datatypes of uid_t and gid_t defined in POSIX? > > "All of the types listed in Table 2-1 shall be arithmetic types;" Thanks for the fast reply. This isn't the answer, I hoped to get. The problem is, that in a WinNT environment an arithmetic type isn't enough to get the information of the user and the group of an object. The loose translation via /etc/passwd and /etc/group will never be able, to reflect the ownership of objects. My idea was, to change uid_t and gid_t to the SID datatype. The [fl]stat-calls would return complete ownership info. This would be transparent to applications which never do "id arithmetic" as e.g. ls(1). It's too bad... Thanks again, Corinna