delorie.com/djgpp/doc/libc/libc_483.html   search  
libc.a reference

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

__install_dev_zero

Syntax

 
#include <sys/xdevices.h>

int __install_dev_zero (void);

Description

This function activates support for the special file `/dev/zero'. When read, `dev/zero' always returns `\0' characters. When written, `/dev/zero' discards the data. Seeks on `/dev/zero' will always succeed.

The DJGPP debug support functions will interfere with `/dev/zero' (see section File System Extensions).

Return Value

On success, a non-zero value is returned; on failure, zero is returned.

Portability

ANSI/ISO C No
POSIX No


  webmaster     delorie software   privacy  
  Copyright © 2004     Updated Apr 2004