From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 127198 invoked by alias); 10 Sep 2018 19:13:15 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 127188 invoked by uid 89); 10 Sep 2018 19:13:15 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1078 X-HELO: eggs.gnu.org Received: from eggs.gnu.org (HELO eggs.gnu.org) (208.118.235.92) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 10 Sep 2018 19:13:14 +0000 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fzRcT-0005Oj-7P for gdb-patches@sourceware.org; Mon, 10 Sep 2018 15:13:12 -0400 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:47604) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fzRcT-0005OZ-3F; Mon, 10 Sep 2018 15:13:09 -0400 Received: from [176.228.60.248] (port=2892 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fzRcS-0003fA-ND; Mon, 10 Sep 2018 15:13:09 -0400 Date: Mon, 10 Sep 2018 19:13:00 -0000 Message-Id: <83efe1np2q.fsf@gnu.org> From: Eli Zaretskii To: John Baldwin CC: gdb-patches@sourceware.org In-reply-to: <1d069bee-7706-fe4c-3190-3b1a6c40a14d@FreeBSD.org> (message from John Baldwin on Mon, 10 Sep 2018 11:43:16 -0700) Subject: Re: [PATCH 5/5] Document the 'info proc files' command. References: <20180908003659.37482-1-jhb@FreeBSD.org> <20180908003659.37482-6-jhb@FreeBSD.org> <83a7ostqvd.fsf@gnu.org> <1d069bee-7706-fe4c-3190-3b1a6c40a14d@FreeBSD.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-IsSubscribed: yes X-SW-Source: 2018-09/txt/msg00299.txt.bz2 > Cc: gdb-patches@sourceware.org > From: John Baldwin > Date: Mon, 10 Sep 2018 11:43:16 -0700 > > > Show the file descriptors open by the process. For each open file > > descriptor, @value{GDBN} shows its number, type (file, directory, > > character device, socket), offset, and the name of the resource open > > on the descriptor. The resource name can be a file name (for files, > > directories, and devices) or a protocol followed by socket address > > (for network connections). > > This looks better to me, thanks. > > > This lacks the details about "offset", which you didn't describe, and > > I couldn't guess. > > Some file descriptors (for files for example) include a read/write offset > (the thing lseek() changes) used as the starting offset of read() and > write() (but not for syscalls like pread() and pwrite() that take an > explicit offset). This value is usually referred to as the "offset" of > the file descriptor (e.g. in man pages for lseek). I'd say "file pointer offset", then.