GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
xt_ff_stdin(3) FreeBSD Library Functions Manual xt_ff_stdin(3)

xt_ff_stdin() - Create a fast file stream attached to descriptor 0

#include <xtend/fast-file.h>
-lxtend

xt_ff_t *xt_ff_stdin(void)

None

xt_ff_stdin(3) is a simple wrapper function for connecting file descriptor 0 to an xt_ff_t object using xt_ff_dopen(3). This is useful for high-performance filter programs, where using the traditional FILE *stdin would cause a bottleneck.

The xt_ff_t system is simpler than and much faster than traditional FILE on typical systems. It is intended for processing large files character-by-character, where low-level block I/O is not convenient, but FILE I/O causes a bottleneck.

Pointer to an xt_ff_t object if successful, NULL otherwise

xt_ff_t *stream;
// "-" as a filename argument traditionally indicates stdin
if ( strcmp(argv[arg], "-") == 0 )

stream = xt_ff_stdin(3); else
stream = xt_ff_open(argv[arg], O_RDONLY);

xt_ff_open(3), xt_ff_dopen(3)


Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.