[BACK]Return to ci_misc.h CVS log [TXT][DIR] Up to [Development] / failsafe / FailSafe / cluster_services / include

File: [Development] / failsafe / FailSafe / cluster_services / include / ci_misc.h (download)

Revision 1.2, Thu Feb 22 10:12:09 2001 UTC (16 years, 8 months ago) by lmb
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +2 -1 lines

Merging readline enhancements from Andreas Pisek. (Bugzilla #54)

The patch also contained various compiler warning cleanups.

/*
 * Copyright (c) 2000 Silicon Graphics, Inc.  All Rights Reserved.
 * 
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of version 2.1 of the GNU Lesser General Public
 * License as published by the Free Software Foundation.
 * 
 * This program is distributed in the hope that it would be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * 
 * Further, this software is distributed without any warranty that it is
 * free of the rightful claim of any third person regarding infringement
 * or the like.  Any license provided herein, whether implied or
 * otherwise, applies only to this software file.  Patent licenses, if
 * any, provided herein do not apply to combinations of this program with
 * other software, or any other product whatsoever.
 * 
 * You should have received a copy of the GNU Lesser General Public
 * License along with this program; if not, write the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston MA 02111-1307,
 * USA.
 * 
 * Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
 * Mountain View, CA 94043, or:
 * 
 * http://www.sgi.com 
 * 
 * For further information regarding this notice, see: 
 * 
 * http://oss.sgi.com/projects/GenInfo/NoticeExplan
 */
/* 
 * ci_misc.h
 *
 * What's in this file?
 */

#ifndef	CI_MISC_H
#define	CI_MISC_H
#ident "$Id: ci_misc.h,v 1.2 2001/02/22 10:12:09 lmb Exp $"

#include	<sys/types.h>
#include	<sys/param.h>
#include	<sys/time.h>
#include	<sys/stat.h>

#include	<sys/mman.h>
#include	<stdio.h>
#include	<stdlib.h>
#include	<stdarg.h>
#include	<unistd.h>
#include        <string.h>
#include	<malloc.h>

#include	<fcntl.h>
#include	<signal.h>
#include	<syslog.h>
#include	<pthread.h>
#include	<libgen.h>
#include	<netdb.h>

#include	<cdb.h>
#include	<ci_types.h>
#include	<ci_param.h>
#include	<ci_log.h>
#include	<ci_clock.h>
#include	<ci_list.h>
#include	<ci_nlist.h>
#include	<ci_zone.h>
#include	<ci_pthread.h>
#include	<ci_malloc.h>
#include	<ci_encrypt.h>
#include	<ci_cdbkeys.h>
#include	<ci_cdbvalues.h>
#include	<ci_cfgcksum.h>
#include	<ci_config.h>
#include 	<ci_pathnames.h>
#include	<ci_restart.h>

#define 	CI_FLAG_MPIN		0x1
#define		CI_MEMALIGN		sizeof(int)

#define		GETHOSTNAME_TRIES	5

#define UNKNOWN_SRCFILE	"Unknown"
#define UNKNOWN_LINENO	0

extern	const int	ci_false;
extern	const int	ci_true;	

char *			ci_gen_filename(char *subdir, char *prefix);
char *			ci_xcode(char *str, boolean_t encode_flag);
struct servent *	ci_getservbyname(const char *, const char *);
ci_incarnation_t	ci_incarnation_gen(void);
ci_err_t		ci_incarnation_recreate(cdb_handle_t,
						cdb_node_handle_t,
						cdb_node_handle_t,
						char *,
						ci_incarnation_t *);

#endif	/* CI_MISC_H */