diff --git a/TODO b/TODO index c27e778b..21f609da 100644 --- a/TODO +++ b/TODO @@ -60,8 +60,6 @@ mbfido: N: Process To: and Cc: lines in messages gated from Fido to Internet. - U: Add routing table to override standard routing. UNDER TEST NOW! - N: Add traffic to html.nodes N: Add stats for posts made by external programs. @@ -72,6 +70,8 @@ mbfido: N: Add logging info about added/removed areas. + L: Implement netmail K/S flag to mark netmail Deleted. + mbcico: L: Implement modem connect response translation for ISDN lines, i.e. make the CAUSE responses human readable. see McMail for this diff --git a/examples/.cvsignore b/examples/.cvsignore index f1140943..ff1abd9d 100644 --- a/examples/.cvsignore +++ b/examples/.cvsignore @@ -1 +1 @@ -filelist +filelist endian diff --git a/examples/Makefile b/examples/Makefile index e2b52be1..1d8bf9ab 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -3,11 +3,23 @@ include ../Makefile.global +SRCS = endian.c +HDRS = endian.h +OBJS = endian.o OTHER = Makefile header.txt footer.txt menus-le.tar menus-be.tar txtfiles.tar templates.tar ##################################################################################### -install: +.c.o: + ${CC} ${CFLAGS} ${INCLUDES} ${DEFINES} -c $< + +all: endian + +endian: ${OBJS} ${LIBS} + ${CC} -o endian ${OBJS} ${LIBS} + strip endian + +install: all @if [ ! -f ${ETCDIR}/header.txt ]; then \ ${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0644 header.txt ${ETCDIR} ; \ echo "${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0644 header.txt ${ETCDIR}" ; \ @@ -35,13 +47,36 @@ install: fi clean: - rm -f filelist Makefile.bak + rm -f endian *.o *.h~ *.c~ core filelist Makefile.bak filelist: Makefile BASE=`pwd`; \ BASE=`basename $${BASE}`; \ (for f in ${OTHER} ;do echo ${PACKAGE}-${VERSION}/$${BASE}/$$f; done) >filelist -all: depend: + @rm -f Makefile.bak; \ + mv Makefile Makefile.bak; \ + sed -e '/^# DO NOT DELETE/,$$d' Makefile.bak >Makefile; \ + ${ECHO} '# DO NOT DELETE THIS LINE - MAKE DEPEND RELIES ON IT' \ + >>Makefile; \ + ${ECHO} '# Dependencies generated by make depend' >>Makefile; \ + for f in ${SRCS}; \ + do \ + ${ECHO} "Dependencies for $$f:\c"; \ + ${ECHO} "`basename $$f .c`.o:\c" >>Makefile; \ + for h in `sed -n -e \ + 's/^#[ ]*include[ ]*"\([^"]*\)".*/\1/p' $$f`; \ + do \ + ${ECHO} " $$h\c"; \ + ${ECHO} " $$h\c" >>Makefile; \ + done; \ + ${ECHO} " done."; \ + ${ECHO} "" >>Makefile; \ + done; \ + ${ECHO} '# End of generated dependencies' >>Makefile +# DO NOT DELETE THIS LINE - MAKE DEPEND RELIES ON IT +# Dependencies generated by make depend +endian.o: endian.h +# End of generated dependencies diff --git a/examples/endian.c b/examples/endian.c new file mode 100644 index 00000000..8841b754 --- /dev/null +++ b/examples/endian.c @@ -0,0 +1,55 @@ +/***************************************************************************** + * + * $Id$ + * Purpose ...............: Check little/big-endian for install of the menus. + * + ***************************************************************************** + * Copyright (C) 1997-2002 + * + * Michiel Broek FIDO: 2:280/2802 + * Beekmansbos 10 + * 1971 BV IJmuiden + * the Netherlands + * + * This file is part of MBSE BBS. + * + * This BBS is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2, or (at your option) any + * later version. + * + * MB BBS is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with MB BBS; see the file COPYING. If not, write to the Free + * Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. + *****************************************************************************/ + + +#include +#include +#include "endian.h" + +int main(void) +{ + +#ifdef __i386__ +printf("le"); +#else +printf("be"); +#endif + +#ifdef __BIG_ENDIAN +printf("__BIG_ENDIAN %d\n", __BIG_ENDIAN); +#endif +#ifdef BIG_ENDIAN +printf("BIG_ENDIAN %d\n", BIG_ENDIAN); +#endif +printf("BYTE_ORDER %d\n", BYTE_ORDER); + +return 0; +} + diff --git a/examples/endian.h b/examples/endian.h new file mode 100644 index 00000000..1a8c5fda --- /dev/null +++ b/examples/endian.h @@ -0,0 +1,4 @@ +/* $Id$ */ + +int main(void); +