Content-type: text/html Manpage of SAFE_ADD_ID_TO_LIST

SAFE_ADD_ID_TO_LIST

Section: (3)
Updated: 2011-07-26
Index Return to Main Contents
 

NAME

safe_add_id_to_list, safe_add_id_range_to_list - add an id or range of ids to the list  

SYNOPSIS

#include safe_id_range_list.h

struct safe_id_range_list;
typedef struct safe_id_range_list safe_id_range_list;

int safe_add_id_to_list(safe_id_range_list list, id_t id);
int safe_add_id_range_to_list(safe_id_range_list list, id_t min_id, id_t max_id);  

DESCRIPTION

safe_add_id_to_list adds a single id to list.

safe_add_id_range_to_list adds a range of ids to list. The min_id must be less than or equal to max_id.  

Parameters

list
The safe_id_range_list to add values to. The value must be non-NULL.
id
The id to add.
min_id max_id
The range of ids to add. the min_id must be less than or equal to the max_id.
 

RETURN VALUE

returns 0 on success and -1 on failure with errno set appropriately.  

ERRORS

EINVAL
The list parameter was NULL, or in safe_add_id_range_to_list, min_id was greater than max_id.
ENOMEM
Failed to allocate memory.
 

AUTHOR

James A. Kupsch  

SEE ALSO

safe_init_id_range_list(3) safe_destroy_id_range_list(3)

http://research.cs.wisc.edu/mist/safefile


 

Index

NAME
SYNOPSIS
DESCRIPTION
Parameters
RETURN VALUE
ERRORS
AUTHOR
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 15:16:58 GMT, August 12, 2011