fehQlibs 26
Qlibs
Loading...
Searching...
No Matches
Macros | Functions
seek.c File Reference

seek in an open file descritor More...

#include <sys/types.h>
#include "seek.h"
Include dependency graph for seek.c:

Go to the source code of this file.

Macros

#define CUR   1 /* sigh */
 
#define END   2 /* sigh */
 
#define SET   0 /* sigh */
 

Functions

off_t lseek (int fd, off_t offset, int whence)
 
int ftruncate (int fd, off_t length)
 
seek_pos seek_cur (int fd)
 
int seek_end (int fd)
 
int seek_set (int fd, seek_pos pos)
 
int seek_trunc (int fd, seek_pos pos)
 

Detailed Description

seek in an open file descritor

Author
djb qmail

Definition in file seek.c.

Macro Definition Documentation

◆ CUR

#define CUR   1 /* sigh */

Definition at line 14 of file seek.c.

◆ END

#define END   2 /* sigh */

Definition at line 21 of file seek.c.

◆ SET

#define SET   0 /* sigh */

Definition at line 29 of file seek.c.

Function Documentation

◆ ftruncate()

int ftruncate ( int  fd,
off_t  length 
)
Here is the caller graph for this function:

◆ lseek()

off_t lseek ( int  fd,
off_t  offset,
int  whence 
)
Here is the caller graph for this function:

◆ seek_cur()

seek_pos seek_cur ( int  fd)

Definition at line 16 of file seek.c.

Here is the call graph for this function:

◆ seek_end()

int seek_end ( int  fd)

Definition at line 23 of file seek.c.

Here is the call graph for this function:

◆ seek_set()

int seek_set ( int  fd,
seek_pos  pos 
)

Definition at line 31 of file seek.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ seek_trunc()

int seek_trunc ( int  fd,
seek_pos  pos 
)

Definition at line 37 of file seek.c.

Here is the call graph for this function: