X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=include%2Fsearch.h;h=7faf23f4aca255554acc3e60c88d1dd7bd6989b2;hb=6786ce1ce14feb4d02854a0c04bc0cce505be46e;hp=e56843c26fdab07973b93c37c7501e64b00bd963;hpb=890feecaab72a630eac3344443e053173f4ad02f;p=platform%2Fkernel%2Fu-boot.git diff --git a/include/search.h b/include/search.h index e56843c..7faf23f 100644 --- a/include/search.h +++ b/include/search.h @@ -80,7 +80,16 @@ int hsearch_r(struct env_entry item, enum env_action action, int hmatch_r(const char *match, int last_idx, struct env_entry **retval, struct hsearch_data *htab); -/* Search and delete entry matching "key" in internal hash table. */ +/** + * hdelete_r() - Search and delete entry in internal hash table + * + * @key: Name of entry to delete + * @htab: Hash table + * @flag: Flags to use (H_...) + * Return: 0 on success, -ENOENT if not found, -EPERM if the hash table callback + * rejected changing the variable, -EINVAL if the hash table refused to + * delete the variable + */ int hdelete_r(const char *key, struct hsearch_data *htab, int flag); ssize_t hexport_r(struct hsearch_data *htab, const char sep, int flag,