Some documentation fixes
This commit is contained in:
parent
f3b74ad244
commit
63e3358b8f
@ -10,6 +10,7 @@ v0.39.4 08-Dec-2003
|
|||||||
Cleanup in main makefile, added help.
|
Cleanup in main makefile, added help.
|
||||||
Revised configure and all Makefiles for better support of
|
Revised configure and all Makefiles for better support of
|
||||||
linking with threads libraries.
|
linking with threads libraries.
|
||||||
|
Changed endian tests using the configure script.
|
||||||
|
|
||||||
upgrade:
|
upgrade:
|
||||||
If you didn't change anything of the language defaults then
|
If you didn't change anything of the language defaults then
|
||||||
|
@ -18,7 +18,7 @@ universal setup on most distributions.
|
|||||||
Login as root and type the following commands to do the basic install:
|
Login as root and type the following commands to do the basic install:
|
||||||
|
|
||||||
cd /tmp
|
cd /tmp
|
||||||
tar xfvz /pathtopackage/@PACKAGE@-@VERSION@.tar.gz
|
tar xfvj /@prefix@/@PACKAGE@-@VERSION@.tar.bz2
|
||||||
cd @PACKAGE@-@VERSION@
|
cd @PACKAGE@-@VERSION@
|
||||||
bash ./SETUP.sh
|
bash ./SETUP.sh
|
||||||
|
|
||||||
@ -27,7 +27,7 @@ necessary users. If this in successfull, logout and login as user "mbse".
|
|||||||
To build and install mbse bbs type the following commands:
|
To build and install mbse bbs type the following commands:
|
||||||
|
|
||||||
cd
|
cd
|
||||||
tar xfvz /pathtopackage/@PACKAGE@-@VERSION@.tar.gz
|
tar xfvj /pathtopackage/@PACKAGE@-@VERSION@.tar.bz2
|
||||||
cd @PACKAGE@-@VERSION@
|
cd @PACKAGE@-@VERSION@
|
||||||
./configure
|
./configure
|
||||||
make
|
make
|
||||||
@ -50,7 +50,7 @@ Login as user "mbse", backup your bbs configuration, and then type the
|
|||||||
following commands:
|
following commands:
|
||||||
|
|
||||||
cd
|
cd
|
||||||
tar xfvz /pathtopackage/@PACKAGE@-@VERSION@.tar.gz
|
tar xfvj /pathtopackage/@PACKAGE@-@VERSION@.tar.bz2
|
||||||
cd @PACKAGE@-@VERSION@
|
cd @PACKAGE@-@VERSION@
|
||||||
./configure
|
./configure
|
||||||
make
|
make
|
||||||
|
5
README
5
README
@ -5,7 +5,7 @@ $Id$
|
|||||||
|
|
||||||
Distribution naming scheme:
|
Distribution naming scheme:
|
||||||
|
|
||||||
mbsebbs-0.33.18.tar.gz
|
mbsebbs-0.33.18.tar.bz2
|
||||||
| | | |
|
| | | |
|
||||||
| | | +-------- minor patchlevel
|
| | | +-------- minor patchlevel
|
||||||
| | +----------- minor version
|
| | +----------- minor version
|
||||||
@ -22,4 +22,7 @@ The even minor version numbers will be stable releases, they will be available
|
|||||||
at http://www.mbse.dds.nl and at 2:280/2802. The first version using this
|
at http://www.mbse.dds.nl and at 2:280/2802. The first version using this
|
||||||
scheme is 0.36.00
|
scheme is 0.36.00
|
||||||
|
|
||||||
|
For first time installing, see the file INSTALL. After installation, the html
|
||||||
|
guide is installed in /opt/mbse/html.
|
||||||
|
|
||||||
|
|
||||||
|
@ -169,7 +169,7 @@ While in mbse's home directory (/opt/mbse) unpack the distribution archives:
|
|||||||
tar xfvz /path/to/mbsebbs-@VERSION@.tar.bz2
|
tar xfvz /path/to/mbsebbs-@VERSION@.tar.bz2
|
||||||
</pre>
|
</pre>
|
||||||
You now have the subdirectory with sources in the right place.
|
You now have the subdirectory with sources in the right place.
|
||||||
Next build the binaries and install them using the folowing commands:
|
Next build the binaries and install them using the following commands:
|
||||||
<pre>
|
<pre>
|
||||||
cd ~/mbsebbs-@VERSION@
|
cd ~/mbsebbs-@VERSION@
|
||||||
./configure
|
./configure
|
||||||
|
15
lib/endian.c
15
lib/endian.c
@ -41,22 +41,11 @@
|
|||||||
*/
|
*/
|
||||||
int le_int(int val)
|
int le_int(int val)
|
||||||
{
|
{
|
||||||
#ifdef BYTE_ORDER
|
#ifdef WORDS_BIGENDIAN
|
||||||
if (BYTE_ORDER == 1234) {
|
|
||||||
return val;
|
|
||||||
} else if (BYTE_ORDER == 4321) {
|
|
||||||
return ((val & 0xff) << 24) | (((val >> 8) & 0xff) << 16) | (((val >> 16) & 0xff) << 8) | ((val >> 24) & 0xff);
|
return ((val & 0xff) << 24) | (((val >> 8) & 0xff) << 16) | (((val >> 16) & 0xff) << 8) | ((val >> 24) & 0xff);
|
||||||
} else {
|
|
||||||
#endif
|
|
||||||
#ifdef __i386__
|
|
||||||
return val;
|
|
||||||
#else
|
#else
|
||||||
return ((val & 0xff) << 24) | (((val >> 8) & 0xff) << 16) | (((val >> 16) & 0xff) << 8) | ((val >> 24) & 0xff);
|
|
||||||
#endif
|
|
||||||
#ifdef BYTE_ORDER
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
return val;
|
return val;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -109,15 +109,14 @@ static int txoptions, rxoptions;
|
|||||||
|
|
||||||
static char *put_long(char *buffer, long val)
|
static char *put_long(char *buffer, long val)
|
||||||
{
|
{
|
||||||
#if defined(__i386__)
|
#ifdef WORDS_BIGENDIAN
|
||||||
*(unsigned long *) buffer = (unsigned long) val;
|
|
||||||
#else
|
|
||||||
buffer[0] = (unsigned long) val & 0xff;
|
buffer[0] = (unsigned long) val & 0xff;
|
||||||
buffer[1] = ((unsigned long) val >> 8) & 0xff;
|
buffer[1] = ((unsigned long) val >> 8) & 0xff;
|
||||||
buffer[2] = ((unsigned long) val >> 16) & 0xff;
|
buffer[2] = ((unsigned long) val >> 16) & 0xff;
|
||||||
buffer[3] = ((unsigned long) val >> 24) & 0xff;
|
buffer[3] = ((unsigned long) val >> 24) & 0xff;
|
||||||
|
#else
|
||||||
|
*(unsigned long *) buffer = (unsigned long) val;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return buffer;
|
return buffer;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -125,11 +124,11 @@ static char *put_long(char *buffer, long val)
|
|||||||
|
|
||||||
static long get_long(char *buffer)
|
static long get_long(char *buffer)
|
||||||
{
|
{
|
||||||
#if defined(__i386__)
|
#ifdef WORDS_BIGENDIAN
|
||||||
return *(long *) buffer;
|
|
||||||
#else
|
|
||||||
return ((unsigned long) ((unsigned char) buffer[0])) | ((unsigned long) ((unsigned char) buffer[1]) << 8) |
|
return ((unsigned long) ((unsigned char) buffer[0])) | ((unsigned long) ((unsigned char) buffer[1]) << 8) |
|
||||||
((unsigned long) ((unsigned char) buffer[2]) << 16) | ((unsigned long) ((unsigned char) buffer[3]) << 24);
|
((unsigned long) ((unsigned char) buffer[2]) << 16) | ((unsigned long) ((unsigned char) buffer[3]) << 24);
|
||||||
|
#else
|
||||||
|
return *(long *) buffer;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user