Small library fixes, doc updates
This commit is contained in:
@@ -92,55 +92,6 @@ struct icmp_filter {
|
||||
# ifndef IP_PKTINFO
|
||||
# define IP_PKTINFO 8
|
||||
# endif
|
||||
# ifndef CMSG_LEN
|
||||
/* ---- from glibc 2.1.2 */
|
||||
|
||||
|
||||
/* Ancillary data object manipulation macros. */
|
||||
/*
|
||||
# if !defined __STRICT_ANSI__ && defined __GNUC__ && __GNUC__ >= 2
|
||||
# define CMSG_DATA(cmsg) ((cmsg)->__cmsg_data)
|
||||
# else
|
||||
# define CMSG_DATA(cmsg) ((unsigned char *) ((struct cmsghdr *) (cmsg) + 1))
|
||||
# endif
|
||||
*/
|
||||
|
||||
/*
|
||||
# define CMSG_NXTHDR(mhdr, cmsg) __cmsg_nxthdr (mhdr, cmsg)
|
||||
# define CMSG_FIRSTHDR(mhdr) \
|
||||
((size_t) (mhdr)->msg_controllen >= sizeof (struct cmsghdr) \
|
||||
? (struct cmsghdr *) (mhdr)->msg_control : (struct cmsghdr *) NULL)
|
||||
# define CMSG_ALIGN(len) (((len) + sizeof (size_t) - 1) \
|
||||
& ~(sizeof (size_t) - 1))
|
||||
# define CMSG_SPACE(len) (CMSG_ALIGN (len) \
|
||||
+ CMSG_ALIGN (sizeof (struct cmsghdr)))
|
||||
# define CMSG_LEN(len) (CMSG_ALIGN (sizeof (struct cmsghdr)) + (len))
|
||||
extern struct cmsghdr *__cmsg_nxthdr __P ((struct msghdr *__mhdr,
|
||||
struct cmsghdr *__cmsg));
|
||||
# ifdef __USE_EXTERN_INLINES
|
||||
# ifndef _EXTERN_INLINE
|
||||
# define _EXTERN_INLINE extern __inline
|
||||
# endif
|
||||
_EXTERN_INLINE struct cmsghdr *
|
||||
__cmsg_nxthdr (struct msghdr *__mhdr, struct cmsghdr *__cmsg) __THROW
|
||||
{
|
||||
if ((size_t) __cmsg->cmsg_len < sizeof (struct cmsghdr))
|
||||
*/ /* The kernel header does this so there may be a reason. */ /*
|
||||
return 0;
|
||||
*/
|
||||
/*
|
||||
__cmsg = (struct cmsghdr *) ((unsigned char *) __cmsg
|
||||
+ CMSG_ALIGN (__cmsg->cmsg_len));
|
||||
if ((unsigned char *) (__cmsg + 1) >= ((unsigned char *) __mhdr->msg_control
|
||||
+ __mhdr->msg_controllen)
|
||||
|| ((unsigned char *) __cmsg + CMSG_ALIGN (__cmsg->cmsg_len)
|
||||
>= ((unsigned char *) __mhdr->msg_control + __mhdr->msg_controllen)))
|
||||
*/ /* No more entries. */ /*
|
||||
return 0;
|
||||
return __cmsg;
|
||||
}
|
||||
# endif */ /* Use `extern inline'. */
|
||||
# endif
|
||||
|
||||
|
||||
/* A macro to extract the pointer to the address of a struct sockaddr (_in or _in6) */
|
||||
@@ -169,6 +120,26 @@ typedef struct _faddr {
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* ANSI colors
|
||||
*/
|
||||
#define BLACK 0
|
||||
#define BLUE 1
|
||||
#define GREEN 2
|
||||
#define CYAN 3
|
||||
#define RED 4
|
||||
#define MAGENTA 5
|
||||
#define BROWN 6
|
||||
#define LIGHTGRAY 7
|
||||
#define DARKGRAY 8
|
||||
#define LIGHTBLUE 9
|
||||
#define LIGHTGREEN 10
|
||||
#define LIGHTCYAN 11
|
||||
#define LIGHTRED 12
|
||||
#define LIGHTMAGENTA 13
|
||||
#define YELLOW 14
|
||||
#define WHITE 15
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
|
@@ -225,28 +225,28 @@ void load_maincfg(void)
|
||||
/*
|
||||
* Colors
|
||||
*/
|
||||
CFG.TextColourF = 3;
|
||||
CFG.TextColourB = 0;
|
||||
CFG.UnderlineColourF = 14;
|
||||
CFG.UnderlineColourB = 0;
|
||||
CFG.InputColourF = 11;
|
||||
CFG.InputColourB = 0;
|
||||
CFG.CRColourF = 15;
|
||||
CFG.CRColourB = 0;
|
||||
CFG.MoreF = 13;
|
||||
CFG.MoreB = 0;
|
||||
CFG.HiliteF = 15;
|
||||
CFG.HiliteB = 0;
|
||||
CFG.FilenameF = 14;
|
||||
CFG.FilenameB = 0;
|
||||
CFG.FilesizeF = 13;
|
||||
CFG.FilesizeB = 0;
|
||||
CFG.FiledateF = 10;
|
||||
CFG.FiledateB = 0;
|
||||
CFG.FiledescF = 3;
|
||||
CFG.FiledescB = 0;
|
||||
CFG.MsgInputColourF = 3;
|
||||
CFG.MsgInputColourB = 0;
|
||||
CFG.TextColourF = CYAN;
|
||||
CFG.TextColourB = BLACK;
|
||||
CFG.UnderlineColourF = YELLOW;
|
||||
CFG.UnderlineColourB = BLACK;
|
||||
CFG.InputColourF = LIGHTCYAN;
|
||||
CFG.InputColourB = BLACK;
|
||||
CFG.CRColourF = WHITE;
|
||||
CFG.CRColourB = BLACK;
|
||||
CFG.MoreF = LIGHTMAGENTA;
|
||||
CFG.MoreB = BLACK;
|
||||
CFG.HiliteF = WHITE;
|
||||
CFG.HiliteB = BLACK;
|
||||
CFG.FilenameF = YELLOW;
|
||||
CFG.FilenameB = BLACK;
|
||||
CFG.FilesizeF = LIGHTMAGENTA;
|
||||
CFG.FilesizeB = BLACK;
|
||||
CFG.FiledateF = LIGHTGREEN;
|
||||
CFG.FiledateB = BLACK;
|
||||
CFG.FiledescF = CYAN;
|
||||
CFG.FiledescB = BLACK;
|
||||
CFG.MsgInputColourF = CYAN;
|
||||
CFG.MsgInputColourB = BLACK;
|
||||
|
||||
/*
|
||||
* NextUser Door
|
||||
@@ -357,7 +357,7 @@ void load_maincfg(void)
|
||||
sprintf(CFG.phonetrans[2].repl, "00");
|
||||
CFG.Speed = 9600;
|
||||
CFG.dialdelay = 60;
|
||||
sprintf(CFG.Flags, "CM,XX,IBN,IFC,ITN::60177");
|
||||
sprintf(CFG.Flags, "CM,XX");
|
||||
CFG.cico_loglevel = DLOG_ALLWAYS | DLOG_ERROR | DLOG_ATTENT | DLOG_NORMAL | DLOG_VERBOSE;
|
||||
|
||||
/*
|
||||
@@ -389,7 +389,8 @@ void load_maincfg(void)
|
||||
sprintf(CFG.www_url, "http://%s", CFG.sysdomain);
|
||||
sprintf(CFG.www_charset, "ISO 8859-1");
|
||||
sprintf(CFG.www_author, "Your Name");
|
||||
sprintf(CFG.www_convert,"/usr/X11R6/bin/convert -geometry x100");
|
||||
if (strlen(_PATH_CONVERT))
|
||||
sprintf(CFG.www_convert,"%s -geometry x100", _PATH_CONVERT);
|
||||
CFG.www_files_page = 10;
|
||||
|
||||
CFG.maxarticles = 500;
|
||||
@@ -429,7 +430,7 @@ void load_taskcfg(void)
|
||||
sprintf(TCFG.cmd_newnews, "%s/bin/mbfido news web -quiet", getenv("MBSE_ROOT"));
|
||||
sprintf(TCFG.cmd_mbindex1, "%s/bin/mbindex -quiet", getenv("MBSE_ROOT"));
|
||||
if (strlen(_PATH_GOLDNODE))
|
||||
sprintf(TCFG.cmd_mbindex2, "%s/bin/goldnode -f -q", getenv("MBSE_ROOT"));
|
||||
sprintf(TCFG.cmd_mbindex2, "%s -f -q", _PATH_GOLDNODE);
|
||||
sprintf(TCFG.cmd_msglink, "%s/bin/mbmsg link -quiet", getenv("MBSE_ROOT"));
|
||||
sprintf(TCFG.cmd_reqindex, "%s/bin/mbfile index -quiet", getenv("MBSE_ROOT"));
|
||||
TCFG.debug = FALSE;
|
||||
|
Reference in New Issue
Block a user