In the following example, a file named_stream_file
was created with 20 named data streams using the API calls.
The named data streams are not displayed by the ls
command. When named data streams are created, they are organized in a hidden directory. For example:
-r-xr-lr-x 1 root other 1024 Aug 12 09:49 named_stream_file
getdents
() or readdir_r
() system call to query the named_stream_file
file for its directory contents, which contains the 20 named stream files:
Attribute Directory contents for
0x1ff root other 1K Thu Aug 12 09:49:17 2004 .
0x565 root other 1K Thu Aug 12 09:49:17 2004 ..
0x177 root other 1K Thu Aug 12 09:49:17 2004 stream0
0x177 root other 1K Thu Aug 12 09:49:17 2004 stream1
0x177 root other 1K Thu Aug 12 09:49:17 2004 stream2
0x177 root other 1K Thu Aug 12 09:49:17 2004 stream17
0x177 root other 1K Thu Aug 12 09:49:17 2004 stream18
0x177 root other 1K Thu Aug 12 09:49:17 2004 stream19