[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

About the mintlibs.



I finished to compile the latest CTAGS (for a perl project, don't ask
me why), the KGMD version was too old :)
and It occurs to me that I had to trick a lot of the Source because we
don't have a err.h file.   
Here is a err.h example for a bsdi machine, if that can give you an
help.
Also, same apply with getopt, The patch works well, but EVERYTIME I
have to do it manually, I think it would be better if it was directly
in the libs.
It consists of: adding in the C code the <getopt.h>
and when compiling/linking, the too objects: getopt and getopt1. It
works, but might as well put that into the libs, no?
thanks :)   (if you can't find getopt files I will send that to you)


/*	BSDI $Id: err.h,v 2.1 1995/02/03 06:01:01 polk Exp $	*/


#ifndef _ERR_H_
#define	_ERR_H_

/*
 * Don't use va_list in the err/warn prototypes.   Va_list is typedef'd in two
 * places (<machine/varargs.h> and <machine/stdarg.h>), so if we include one
 * of them here we may collide with the utility's includes.  It's unreasonable
 * for utilities to have to include one of them to include err.h, so we get
 * _BSD_VA_LIST_ from <machine/ansi.h> and use it.
 */
#include <machine/ansi.h>
#include <sys/cdefs.h>

__BEGIN_DECLS
__dead void	err __P((int, const char *, ...)) __attribute__((__volatile));
__dead void	verr __P((int, const char *, _BSD_VA_LIST_))
		    __attribute__((__volatile));
__dead void	errx __P((int, const char *, ...)) __attribute__((__volatile));
__dead void	verrx __P((int, const char *, _BSD_VA_LIST_))
		    __attribute__((__volatile));
void		warn __P((const char *, ...));
void		vwarn __P((const char *, _BSD_VA_LIST_));
void		warnx __P((const char *, ...));
void		vwarnx __P((const char *, _BSD_VA_LIST_));
__END_DECLS

#endif /* !_ERR_H_ */


________________________________________________________________________________
Email:Kellis@primenet.com
Web http://www.primenet.com/~kellis/
________________________________________________________________________________