FreeBSD/cddl/contrib/opensolaris/cmd/zfs/zfs_main.c
/*
 * Callback routine that will print out information for each of
 * the properties.
 */
Callback routine that will print out information for each of
the properties.
Callback routine that will print out information for each of the properties .
static int
usage_prop_cb(int prop, void *cb)
{
	FILE *fp = cb;
	(void) fprintf(fp, "\t%-15s ", zfs_prop_to_name(prop));
	if (zfs_prop_readonly(prop))
		(void) fprintf(fp, " NO    ");
	else
		(void) fprintf(fp, "YES    ");
	if (zfs_prop_inheritable(prop))
		(void) fprintf(fp, "  YES   ");
	else
		(void) fprintf(fp, "   NO   ");
	if (zfs_prop_values(prop) == NULL)
		(void) fprintf(fp, "-\n");
	else
		(void) fprintf(fp, "%s\n", zfs_prop_values(prop));
	return (ZPROP_CONT);
}
static int usage_prop_cb ( int prop , void * cb ) { FILE * fp = cb ; ( void ) fprintf ( fp , " \t " , zfs_prop_to_name ( prop ) ) ; if ( zfs_prop_readonly ( prop ) ) ( void ) fprintf ( fp , " " ) ; else ( void ) fprintf ( fp , " " ) ; if ( zfs_prop_inheritable ( prop ) ) ( void ) fprintf ( fp , " " ) ; else ( void ) fprintf ( fp , " " ) ; if ( zfs_prop_values ( prop ) == NULL ) ( void ) fprintf ( fp , " \n " ) ; else ( void ) fprintf ( fp , " \n " , zfs_prop_values ( prop ) ) ; return ( ZPROP_CONT ) ; }
Callback routine that will print out information for each of
 the properties.
Callback routine that will print out information for each of the properties .