mirror of
https://github.com/obarthel/amiga-smbfs.git
synced 2025-12-08 14:58:35 +00:00
More hyphens and blank spaces
This commit is contained in:
@@ -636,13 +636,13 @@ Robert Kidd provided detailed information on how to make the **smbfs** client/se
|
|||||||
|
|
||||||
The *Sharity-Light* source code was adapted, wrapped into an AmigaOS layer, subsequently debugged and enhanced by Olaf Barthel. If you wish to contact me, you can reach me at:
|
The *Sharity-Light* source code was adapted, wrapped into an AmigaOS layer, subsequently debugged and enhanced by Olaf Barthel. If you wish to contact me, you can reach me at:
|
||||||
|
|
||||||
Olaf Barthel
|
Olaf Barthel
|
||||||
Gneisenaustr. 43
|
Gneisenaustr. 43
|
||||||
D-31275 Lehrte
|
D-31275 Lehrte
|
||||||
|
|
||||||
Or via e-mail:
|
Or via e-mail:
|
||||||
|
|
||||||
obarthel [at] gmx.net
|
obarthel [at] gmx.net
|
||||||
|
|
||||||
If you want to submit a bug report or an enhancement request, please enclose sufficient information to allow me to make sense of the problem. That includes debugging logs produced using the `DEBUG` and `DEBUGFILE` options.
|
If you want to submit a bug report or an enhancement request, please enclose sufficient information to allow me to make sense of the problem. That includes debugging logs produced using the `DEBUG` and `DEBUGFILE` options.
|
||||||
|
|
||||||
|
|||||||
@@ -2324,7 +2324,7 @@ print_smb_contents(const struct smb_header * header,int command,enum smb_packet_
|
|||||||
|
|
||||||
FPrintf(dump_smb_file,"system time = 0x%08lx%08lx\n",system_time[0],system_time[1]);
|
FPrintf(dump_smb_file,"system time = 0x%08lx%08lx\n",system_time[0],system_time[1]);
|
||||||
FPrintf(dump_smb_file," %s\n",convert_filetime_to_string(system_time));
|
FPrintf(dump_smb_file," %s\n",convert_filetime_to_string(system_time));
|
||||||
FPrintf(dump_smb_file,"server time zone = %ld\n",(signed short)next_data_word(parameters,&offset)); /* ZZZ this is a signed 16 bit integer */
|
FPrintf(dump_smb_file,"server time zone = %ld\n",(signed short)next_data_word(parameters,&offset)); /* ZZZ this is a signed 16-bit integer */
|
||||||
|
|
||||||
challenge_length = next_data_byte(parameters,&offset);
|
challenge_length = next_data_byte(parameters,&offset);
|
||||||
FPrintf(dump_smb_file,"challenge length = %ld\n",challenge_length);
|
FPrintf(dump_smb_file,"challenge length = %ld\n",challenge_length);
|
||||||
|
|||||||
+8
-8
@@ -269,7 +269,7 @@ static void convert_time_t_to_long_date(time_t t, QUAD * long_date);
|
|||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
/* Copy a string in ISO-Latin-1 form (8 bits per character) into a
|
/* Copy a string in ISO-Latin-1 form (8 bits per character) into a
|
||||||
* buffer, converting it into a little-endian 16 bit Unicode version
|
* buffer, converting it into a little-endian 16-bit Unicode version
|
||||||
* of the string. This works because the ISO-Latin-1 character sits
|
* of the string. This works because the ISO-Latin-1 character sits
|
||||||
* within the ASCII/BMP Latin-1 Unicode range.
|
* within the ASCII/BMP Latin-1 Unicode range.
|
||||||
*
|
*
|
||||||
@@ -318,12 +318,12 @@ copy_latin1_to_utf16le(byte * to,int to_size, const byte * from,int len)
|
|||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
/* Copy a string in little-endian 16 bit Unicode into a buffer, converting
|
/* Copy a string in little-endian 16-bit Unicode into a buffer, converting
|
||||||
* it into a ISO-Latin-1 (8 bits per character) version of the string, if
|
* it into a ISO-Latin-1 (8 bits per character) version of the string, if
|
||||||
* possible. Code points beyond the ASCII/BMP Latin-1 character set are
|
* possible. Code points beyond the ASCII/BMP Latin-1 character set are
|
||||||
* replaced by the control character 0x80.
|
* replaced by the control character 0x80.
|
||||||
*
|
*
|
||||||
* Note that the length is given as the number of 16 bit Unicode
|
* Note that the length is given as the number of 16-bit Unicode
|
||||||
* characters, not the number of bytes required to store the string.
|
* characters, not the number of bytes required to store the string.
|
||||||
*
|
*
|
||||||
* This function creates a NUL-terminated ISO-Latin-1 string and
|
* This function creates a NUL-terminated ISO-Latin-1 string and
|
||||||
@@ -403,7 +403,7 @@ static size_t strnlen(const char * s,size_t max_size)
|
|||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
/* Works just like strnlen(), but operates on 16 bit characters. */
|
/* Works just like strnlen(), but operates on 16-bit characters. */
|
||||||
static size_t strnlen_utf16(const char * s,size_t max_size)
|
static size_t strnlen_utf16(const char * s,size_t max_size)
|
||||||
{
|
{
|
||||||
size_t result = 0;
|
size_t result = 0;
|
||||||
@@ -483,7 +483,7 @@ smb_encode_smb_length (byte * p, int len)
|
|||||||
/* 0x00 = NetBIOS session message */
|
/* 0x00 = NetBIOS session message */
|
||||||
p[0] = 0;
|
p[0] = 0;
|
||||||
|
|
||||||
/* Length is a 17 bit integer, the most significant
|
/* Length is a 17-bit integer, the most significant
|
||||||
* bit of which goes into bit #0. The other 7 bits
|
* bit of which goes into bit #0. The other 7 bits
|
||||||
* are reserved.
|
* are reserved.
|
||||||
*/
|
*/
|
||||||
@@ -2736,7 +2736,7 @@ convert_long_date_to_time_t(const char * p)
|
|||||||
ULONG underflow;
|
ULONG underflow;
|
||||||
time_t result;
|
time_t result;
|
||||||
|
|
||||||
/* Extract the 64 bit time value. */
|
/* Extract the 64-bit time value. */
|
||||||
long_date.Low = DVAL(p,0);
|
long_date.Low = DVAL(p,0);
|
||||||
long_date.High = DVAL(p,4);
|
long_date.High = DVAL(p,4);
|
||||||
|
|
||||||
@@ -3694,7 +3694,7 @@ smb_query_path_information(
|
|||||||
|
|
||||||
/* Let's show what the name of the object in
|
/* Let's show what the name of the object in
|
||||||
* question is supposed to look like. The
|
* question is supposed to look like. The
|
||||||
* text is provided as 16 bit characters,
|
* text is provided as 16-bit characters,
|
||||||
* even if Unicode mode is not enabled.
|
* even if Unicode mode is not enabled.
|
||||||
*/
|
*/
|
||||||
copy_utf16le_to_latin1(name, sizeof(name), file_name, file_name_length / sizeof(word));
|
copy_utf16le_to_latin1(name, sizeof(name), file_name, file_name_length / sizeof(word));
|
||||||
@@ -4245,7 +4245,7 @@ smb_proc_reconnect (struct smb_server *server, int * error_ptr)
|
|||||||
* transmit may vary.
|
* transmit may vary.
|
||||||
*
|
*
|
||||||
* What follows the 4 byte NetBIOS session header must not be
|
* What follows the 4 byte NetBIOS session header must not be
|
||||||
* larger than that an unsigned 17 bit integer can hold. It should
|
* larger than that an unsigned 17-bit integer can hold. It should
|
||||||
* not be much larger than 65535 bytes, though, since the transmission
|
* not be much larger than 65535 bytes, though, since the transmission
|
||||||
* buffer only has some extra 1024 bytes of room at the end.
|
* buffer only has some extra 1024 bytes of room at the end.
|
||||||
*/
|
*/
|
||||||
|
|||||||
+11
-11
@@ -67,7 +67,7 @@ static ULONG mulhu (ULONG u, ULONG v)
|
|||||||
return u1 * v1 + w2 + (w1 >> 16);
|
return u1 * v1 + w2 + (w1 >> 16);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Multiply two 32-bit numbers, yielding a 64 bit result value. */
|
/* Multiply two 32-bit numbers, yielding a 64-bit result value. */
|
||||||
void
|
void
|
||||||
multiply_32_by_32_to_64(ULONG ab,ULONG cd,QUAD * product)
|
multiply_32_by_32_to_64(ULONG ab,ULONG cd,QUAD * product)
|
||||||
{
|
{
|
||||||
@@ -75,9 +75,9 @@ multiply_32_by_32_to_64(ULONG ab,ULONG cd,QUAD * product)
|
|||||||
product->Low = ab * cd;
|
product->Low = ab * cd;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Multiply an unsigned 64 bit quantity by a 32 bit quantity, yielding a 64
|
/* Multiply an unsigned 64-bit quantity by a 32-bit quantity, yielding a
|
||||||
* bit product. Returns the most significant component of the product, which
|
* 64-bit product. Returns the most significant component of the product,
|
||||||
* is effectively the 32 bit overflow from the 96 bit product.
|
* which is effectively the 32-bit overflow from the 96-bit product.
|
||||||
*/
|
*/
|
||||||
ULONG
|
ULONG
|
||||||
multiply_64_by_32_to_64(const QUAD * const abcd,ULONG ef,QUAD * abcdef)
|
multiply_64_by_32_to_64(const QUAD * const abcd,ULONG ef,QUAD * abcdef)
|
||||||
@@ -111,7 +111,7 @@ multiply_64_by_32_to_64(const QUAD * const abcd,ULONG ef,QUAD * abcdef)
|
|||||||
|
|
||||||
/****************************************************************************/
|
/****************************************************************************/
|
||||||
|
|
||||||
/* Divide a 64-bit integer by a 32-bit integer, filling in a 64 bit quotient
|
/* Divide a 64-bit integer by a 32-bit integer, filling in a 64-bit quotient
|
||||||
* and returning a 32-bit remainder.
|
* and returning a 32-bit remainder.
|
||||||
*/
|
*/
|
||||||
ULONG
|
ULONG
|
||||||
@@ -134,14 +134,14 @@ divide_64_by_32(const QUAD * const dividend,ULONG divisor,QUAD * quotient)
|
|||||||
quotient->Low = (quotient->Low << 1);
|
quotient->Low = (quotient->Low << 1);
|
||||||
|
|
||||||
/* Shift the dividend left by one bit. We start
|
/* Shift the dividend left by one bit. We start
|
||||||
* with the most significant 32 bit portion.
|
* with the most significant 32-bit portion.
|
||||||
*/
|
*/
|
||||||
dividend_ab = (dividend_ab << 1);
|
dividend_ab = (dividend_ab << 1);
|
||||||
|
|
||||||
if((dividend_cdef.High & 0x80000000UL) != 0)
|
if((dividend_cdef.High & 0x80000000UL) != 0)
|
||||||
dividend_ab |= 1;
|
dividend_ab |= 1;
|
||||||
|
|
||||||
/* Now for the middle 32 bit portion. */
|
/* Now for the middle 32-bit portion. */
|
||||||
dividend_cdef.High = (dividend_cdef.High << 1);
|
dividend_cdef.High = (dividend_cdef.High << 1);
|
||||||
|
|
||||||
if((dividend_cdef.Low & 0x80000000UL) != 0)
|
if((dividend_cdef.Low & 0x80000000UL) != 0)
|
||||||
@@ -169,8 +169,8 @@ divide_64_by_32(const QUAD * const dividend,ULONG divisor,QUAD * quotient)
|
|||||||
|
|
||||||
/****************************************************************************/
|
/****************************************************************************/
|
||||||
|
|
||||||
/* Add an unsigned 32 bit quantity to a 64 bit quantity, yielding a
|
/* Add an unsigned 32-bit quantity to a 64-bit quantity, yielding a
|
||||||
* 64 bit sum.
|
* 64-bit sum.
|
||||||
*/
|
*/
|
||||||
ULONG
|
ULONG
|
||||||
add_64_plus_32_to_64(const QUAD * const a,ULONG b,QUAD * ab)
|
add_64_plus_32_to_64(const QUAD * const a,ULONG b,QUAD * ab)
|
||||||
@@ -185,8 +185,8 @@ add_64_plus_32_to_64(const QUAD * const a,ULONG b,QUAD * ab)
|
|||||||
|
|
||||||
/****************************************************************************/
|
/****************************************************************************/
|
||||||
|
|
||||||
/* Add an unsigned 64 bit quantity to a 64 bit quantity, yielding a
|
/* Add an unsigned 64-bit quantity to a 64-bit quantity, yielding a
|
||||||
* 64 bit sum.
|
* 64-bit sum.
|
||||||
*/
|
*/
|
||||||
ULONG
|
ULONG
|
||||||
add_64_plus_64_to_64(const QUAD * const a,const QUAD * const b,QUAD * ab)
|
add_64_plus_64_to_64(const QUAD * const a,const QUAD * const b,QUAD * ab)
|
||||||
|
|||||||
+1
-1
@@ -69,7 +69,7 @@ smb_encode_smb_length (byte * p, int len)
|
|||||||
/* 0x00 = NetBIOS session message */
|
/* 0x00 = NetBIOS session message */
|
||||||
p[0] = 0;
|
p[0] = 0;
|
||||||
|
|
||||||
/* Length is a 17 bit integer, the most significant
|
/* Length is a 17-bit integer, the most significant
|
||||||
* bit of which goes into bit #0. The other 7 bits
|
* bit of which goes into bit #0. The other 7 bits
|
||||||
* are reserved.
|
* are reserved.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user