[lkml]   [2020]   [Nov]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] lseek.2: SYNOPSIS: Use correct types
Hi Florian,

On 11/22/20 1:43 PM, Florian Weimer wrote:
> * Alejandro Colomar:
>> The Linux kernel uses 'unsigned int' instead of 'int' for 'fd' and
>> 'whence'. As glibc provides no wrapper, use the same types the
>> kernel uses.
> lseek is a POSIX interface, and glibc provides it. POSIX uses int for
> file descriptors (and the whence parameter in case of lseek).
> The llseek system call is a different matter, that's indeed
> Linux-specific.

Ahhh, true. So many similar functions... :p



 \ /
  Last update: 2020-11-22 14:17    [W:0.059 / U:1.652 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site