LLSEEK(2) Linux Programmer's Manual LLSEEK(2)NAME
_llseek - reposition read/write file offset
SYNOPSIS
#include <unistd.h>
#include <linux/unistd.h>
_syscall5(int, _llseek, uint, fd, ulong, hi, ulong, lo, loff_t *, res, uint, wh);
int _llseek(unsigned int fd, unsigned long offset_high, unsigned long offset_low, loff_t *result, unsigned int whence);
DESCRIPTION
The _llseek function repositions the offset of the file descriptor fd to (offset_high<<32) | offset_low bytes relative to the beginning of
the file, the current position in the file, or the end of the file, depending on whether whence is SEEK_SET, SEEK_CUR, or SEEK_END, respec-
tively. It returns the resulting file position in the argument result.
RETURN VALUE
Upon successful completion, _llseek returns 0. Otherwise, a value of -1 is returned and errno is set to indicate the error.
ERRORS
EBADF fd is not an open file descriptor.
EINVAL whence is invalid.
CONFORMING TO
This function is Linux-specific, and should not be used in programs intended to be portable.
SEE ALSO lseek(2)Linux 1.2.9 1995-06-10 LLSEEK(2)
Check Out this Related Man Page
LLSEEK(2) Linux Programmer's Manual LLSEEK(2)NAME
_llseek - reposition read/write file offset
SYNOPSIS
#include <sys/types.h>
#include <unistd.h>
int _llseek(unsigned int fd, unsigned long offset_high,
unsigned long offset_low, loff_t *result,
unsigned int whence);
DESCRIPTION
The _llseek() function repositions the offset of the open file associated with the file descriptor fd to (offset_high<<32) | offset_low
bytes relative to the beginning of the file, the current position in the file, or the end of the file, depending on whether whence is
SEEK_SET, SEEK_CUR, or SEEK_END, respectively. It returns the resulting file position in the argument result.
RETURN VALUE
Upon successful completion, _llseek() returns 0. Otherwise, a value of -1 is returned and errno is set to indicate the error.
ERRORS
EBADF fd is not an open file descriptor.
EFAULT Problem with copying results to user space.
EINVAL whence is invalid.
CONFORMING TO
This function is Linux-specific, and should not be used in programs intended to be portable.
NOTES
Glibc does not provide a wrapper for this system call; call it using syscall(2).
SEE ALSO lseek(2), lseek64(3)COLOPHON
This page is part of release 3.25 of the Linux man-pages project. A description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
Linux 2007-06-01 LLSEEK(2)
I have a sun4u system running Solaris 8. I tried running the df command but it returns a blank result. Also I'm unable to collect an explorer from this system as the OS complains that the disk is full. What could be going on here? (10 Replies)
Hello,
I have solaris 10 systems from which I can not ssh/scp outside. These systems are nis+/nfs clients for user authentication and home directories. When a nis+ user logs in, authentication works fine, home directory is mounted from nfs server. But, from these machines, when a user tries to... (0 Replies)
Hello Experts,
I am on Solaris 10
Due to some limitations in one of the vendor software, I am forced to output the command to exec and then run it from there.
For example..
$(echo "/usr/bin/cp a.dat b.dat") # This works
However,
$(echo "/usr/bin/cat a.dat > c.dat") # This does not... (8 Replies)
Hi,
I am facing a (for me and coworkers) strange behaviour. When I stop sendmail on a plain AIX 5.3 testing box (there is definetly no sendmail process left running anymore), I am still able to send mails to remote addresses via the mail command. I tried that on another box which is not a... (6 Replies)
My question is simple: When should I use a long, int, char, unsigned/signed variables??
When I declare a variable "unsigned;" what did I do it???
Why would I delcare an integer "long" or "short" ( unsigned or signed)??
Any examples of when things like "unsigned", "long", "short" etc...... (6 Replies)
Hi everybody,
i've been googling for ages now and gotten kinda desperate... The question, however, might be rather trivial for the experts: What is it exactly, i.e. physically, the POSIX function (for a file) "lseek" does? Does it trigger some kind of synchronization on disk? Is it just for the... (4 Replies)
I got a issue with one binary application when i run it it will not run and after doing a truss i noticed the following errors in the log dose anyone know what the errors are about and how to fix them?, I also inserted a image of the error log in case their is something i have mists, thank you for... (19 Replies)
I have recently upgraded my Supermicro X10SAT motherboard. I have also a SSD with a Windows10 partition and a Solaris 11.3 partition. Upon boot I press F11 and choose which partition I want to boot into. But after the bios upgrade, I cannot see the Solaris partition when I press "F11" to choose... (9 Replies)
I'm getting the following output from a truss operation of a PID from an application that will not start properly, something with the writing to an archive. Here is the output:
open("arch/chkpt.arch", O_RDWR) Err#13 EACCES
open("arch/chkpt.arch", O_RDWR|O_CREAT|O_TRUNC, 0666)... (6 Replies)