chnamespace

Sets the name space of the specified path.

Library:LibC
Classification:Novell
Service:File and Directory I/O

Syntax

  #include <fsio.h> 
   
  int chnamespace (
    const char   *path,
    int           newnamespace );
  

Parameters

path

(IN) Points to the buffer containing the directory path.

newnamespace

(IN) Specifies the namespace for the path.

Return Values

If successful, returns 0. Otherwise, returns -1 and sets errno to one of the following:

Decimal

Constant

Description

1

ENOENT

A component of path does not name an existing file or path is an empty string.

6

EACCES

Search permission is denied on a component of the path.

65

ENAMETOOLONG

The length of the path parameter exceeds maximum path length, or a path component is longer than maximum name length.

67

ENOTDIR

A component of the path is not a directory.

Remarks

If

See Also