X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fcommon%2Fcompat%2Fdirectory-handle.h;h=b6ee8b3846fdc7a70a77f19c295ab49b23bd3555;hb=9a1a997f2f22b556f63437d911b98c7b522b38e4;hp=551fa50b439b84c85cc6d2bfa667943836973454;hpb=57b1431829d660508840fc820a19ee27f5e1a711;p=lttng-tools.git diff --git a/src/common/compat/directory-handle.h b/src/common/compat/directory-handle.h index 551fa50b4..b6ee8b384 100644 --- a/src/common/compat/directory-handle.h +++ b/src/common/compat/directory-handle.h @@ -267,6 +267,14 @@ int lttng_directory_handle_stat( const char *name, struct stat *stat_buf); +/* + * Returns true if this directory handle is backed by a file + * descriptor, false otherwise. + */ +LTTNG_HIDDEN +bool lttng_directory_handle_uses_fd( + const struct lttng_directory_handle *handle); + /* * Compare two directory handles. *