[ Previous ] [ Contents ] [ Index ] [ Next ]

Ns_WriteWithQuota

Overview

Write to a file while enforcing quota

Syntax

    long Ns_WriteWithQuota(
      char *hServer, 
      int   fd, 
      void *buffer, 
      long  bytes
    )

Description

This function writes to a file while enforcing the quota set by the QuotaSize configuration parameter. It returns the number of bytes written, or -1 for an error. NS_QUOTA is returned if the quota is exceeded. If the write operation would cause the quota to be exceeded, the write is not performed. If a directory is created that causes the  quota to be exceeded, the directory is removed.

Top of Page

[ Previous ] [ Contents ] [ Index ] [ Next ]
Copyright © 1996 America Online, Inc.