O nás     Inzerce     KontaktSpolehlivé informace o IT již od roku 2011
Hledat
Nepřehlédněte: Usnadní vám práci: Pozoruhodné IT produkty pro rok 2024
Správa dokumentů
Digitální transformace
Informační systémy
Hlavní rubriky: Informační systémy, Mobilní technologie, Datová centra, Sítě, IT bezpečnost, Software, Hardware, Zkušenosti a názory, Speciály

Pozoruhodné IT produkty 2024
E-knihy o IT zdarma
Manuál Linux
[Linux manuál]

_llseek: přemístění souboru pro čtení / zápis

Originální popis anglicky: _llseek - reposition read/write file offset

Návod, kniha: Linux Programmer's Manual

STRUČNĚ

#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);

POPIS / INSTRUKCE

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, respectively. It returns the resulting file position in the argument result.
 

NÁVRATOVÁ HODNOTA

Upon successful completion, _llseek returns 0. Otherwise, a value of -1 is returned and errno is set to indicate the error.

CHYBY / ERRORY

EBADF
fd is not an open file descriptor.
EFAULT
Problem with copying results to user space.
EINVAL
whence is invalid.

ODPOVÍDAJÍCÍ

This function is Linux-specific, and should not be used in programs intended to be portable.

SOUVISEJÍCÍ

lseek(2)
1995-06-10 Linux 1.2.9
©2011-2024 BusinessIT.cz, ISSN 1805-0522 | Názvy použité v textech mohou být ochrannými známkami příslušných vlastníků.
Provozovatel: Bispiral, s.r.o., kontakt: BusinessIT(at)Bispiral.com | Inzerce: Best Online Media, s.r.o., zuzana@online-media.cz
O vydavateli | Pravidla webu BusinessIT.cz a ochrana soukromí | Používáme účetní program Money S3 | pg(9282)