I am reading APUE to explore the details of C and Unix, and encounter lseek
NAME
lseek - move the read/write file offset
SYNOPSIS
#include <unistd.h>
off_t lseek(int fildes, off_t offset, int whence);
What does l mean, is it length?
I am reading APUE to explore the details of C and Unix, and encounter lseek
NAME
lseek - move the read/write file offset
SYNOPSIS
#include <unistd.h>
off_t lseek(int fildes, off_t offset, int whence);
What does l mean, is it length?
Copyright © 2021 Jogjafile Inc.
l
is for long integer.It is named like that to differentiate from the old
seek()
in version 2 of AT&T Unix. This is an anachronism before the off_t type was introduced.References:
Infohost indicates:
As noted at the foot of lseek.html:
Note: Paraphrased from Why is the function called lseek(), not seek()?