www.delorie.com/djgpp/doc/libc/libc_492.html   search  
libc.a reference

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

_invent_inode

Syntax

 
ino_t
_invent_inode(const char *name, unsigned time_stamp,
              unsigned long fsize)

Description

This invents an inode number for those files which don't have valid DOS cluster number. These could be:

To ensure proper operation of this function, you must call it with a filename in some canonical form. E.g., with a name returned by truename() (see section _truename), or that returned by _fixpath() (see section _fixpath). The point here is that the entire program must abide by these conventions through its operation, or else you risk getting different inode numbers for the same file.

Return Value

0 on error, otherwise the invented inode number for the file.

Portability

ANSI/ISO C No
POSIX No


  webmaster   donations   bookstore     delorie software   privacy  
  Copyright 2004   by DJ Delorie     Updated Apr 2004