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

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



/** copies file descript from self to copy */
bool file_copy(int self, int copy);

int file_create(char *self, int omode, ulong perm);

int file_open(char *self, int omode);

void file_close(int self);

bool file_access(char *self, int mode);

bool file_exists(char *self);

bool file_mkdir(char *self);

bool file_recursive_mkdir(String *currentpath, char *restpath);

bool file_relative_recursive_mkdir(char *path);

bool file_on_demand_mkdir(char *path);

bool file_remove(char *self);

bool file_dirwstat(char *self, Dir *d);

bool file_isdir(char *self);

long file_dir_file_count(char *self);

bool file_isdir_empty(char *self);

bool file_dir_notempty(char *self);


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].