X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fcommon%2Ffd-tracker%2Ffd-tracker.h;h=b8082c9a7697f51eb9b2c7d30e3ef94610f6d450;hb=db206709ddf47d60c263ebb06474a1f9c9f0177c;hp=ff5f49a1b8d2afc62e731e04e2ce66ab36457b78;hpb=894c746d142bee5283c864e4d6f95e29eb5bf72a;p=deliverable%2Flttng-tools.git diff --git a/src/common/fd-tracker/fd-tracker.h b/src/common/fd-tracker/fd-tracker.h index ff5f49a1b..b8082c9a7 100644 --- a/src/common/fd-tracker/fd-tracker.h +++ b/src/common/fd-tracker/fd-tracker.h @@ -156,6 +156,20 @@ int fs_handle_get_fd(struct fs_handle *handle); */ void fs_handle_put_fd(struct fs_handle *handle); +/* + * Unlink the file associated to an fs_handle. Note that the unlink + * operation will not be performed immediately. It will only be performed + * once all references to the underlying file (through other fs_handle objects) + * have been released. + * + * However, note that the file will be renamed so as to provide the observable + * effect of an unlink(), that is removing a name from the filesystem. + * + * Returns 0 on success, otherwise a negative value will be returned + * if the operation failed. + */ +int fs_handle_unlink(struct fs_handle *handle); + /* * Frees the handle and discards the underlying fd. */