[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [qemu-s390x] [Qemu-devel] [PATCH for-2.13] pc-bios/s390-ccw: size_t
From: |
Peter Maydell |
Subject: |
Re: [qemu-s390x] [Qemu-devel] [PATCH for-2.13] pc-bios/s390-ccw: size_t should be unsigned |
Date: |
Fri, 13 Apr 2018 16:40:15 +0100 |
On 13 April 2018 at 16:28, Halil Pasic <address@hidden> wrote:
>
>
> On 04/13/2018 04:30 PM, Thomas Huth wrote:
>> "size_t" should be an unsigned type - the signed counterpart is called
>> "ssize_t" in the C standard instead. Thus we should also use this
>
> The first sentence sounds like ssize_t is too a type defined by some
> C standard. Is it or does ssize_t come form somewhere else? I find negative
> size a little difficult conceptually.
I think ssize_t is from POSIX:
http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_types.h.html
"Used for a count of bytes or an error indication".
thanks
-- PMM