Plan 9 from Bell Labs’s /usr/web/sources/contrib/de0u/root/sys/src/cmd/divergefs/filehandle.h

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.



typedef struct FileHandle FileHandle;
typedef struct DirectoryHandle DirectoryHandle;
typedef struct SingleFileHandle SingleFileHandle;
/* See 9fans "new compiler" 2005-01-07 */
#pragma incomplete FileHandle
#pragma incomplete DirectoryHandle
#pragma incomplete SingleFileHandle


void filehandle_free(FileHandle *self);
void filehandle_read(FileHandle *self, Req *request, HoleManager *holemanager);
void filehandle_write(FileHandle *self, Req *request);
void filehandle_close(FileHandle *self);

SingleFileHandle *singlefilehandle_open(int fd);

DirectoryHandle *directoryhandle_new(char *path);
uint directoryhandle_count(DirectoryHandle *self);
void directoryhandle_add(DirectoryHandle *self, Rule *rule, int fd);



Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].