corrected some typos in comments

This commit is contained in:
Gerhard Rieger 2008-01-29 07:59:12 +01:00
parent 5a1ef121ab
commit e690002985
8 changed files with 18 additions and 18 deletions

View file

@ -9,7 +9,7 @@ corrections:
fixed lots of weaknesses in test.sh fixed lots of weaknesses in test.sh
corrected some bugs and typos in doc/socat.yo, EXAMPLES corrected some bugs and typos in doc/socat.yo, EXAMPLES, C comments
####################### V 1.6.0.0: ####################### V 1.6.0.0:

View file

@ -1,13 +1,13 @@
/* source: compat.h */ /* source: compat.h */
/* Copyright Gerhard Rieger 2001-2006 */ /* Copyright Gerhard Rieger 2001-2008 */
/* Published under the GNU General Public License V.2, see file COPYING */ /* Published under the GNU General Public License V.2, see file COPYING */
#ifndef __compat_h_included #ifndef __compat_h_included
#define __compat_h_included 1 #define __compat_h_included 1
/*****************************************************************************/ /*****************************************************************************/
/* I dont like this system dependent part, but it would be quit a challenge for /* I dont like this system dependent part, but it would be quite a challenge
configure */ for configure */
/* define if the following does not work: /* define if the following does not work:
socket() socket()

View file

@ -1,5 +1,5 @@
nl source: configure.in nl source: configure.in
dnl Copyright Gerhard Rieger 2001-2007 dnl Copyright Gerhard Rieger 2001-2008
dnl Published under the GNU General Public License V.2, see file COPYING dnl Published under the GNU General Public License V.2, see file COPYING
dnl Process this file with autoconf to produce a configure script. dnl Process this file with autoconf to produce a configure script.
@ -1161,7 +1161,7 @@ AC_MSG_RESULT($ac_cv_have_z_modifier)
dnl find the number of bits we must shift a value to match the given mask dnl find the number of bits we must shift a value to match the given mask
dnl (e.g., mask 0x00f0 requires shifting with 4) dnl (e.g., mask 0x00f0 requires shifting with 4)
## NOTE: some platforms only need on '\' to escape '"' in string constant ## NOTE: some platforms only need one '\' to escape '"' in string constant
define(AC_SHIFT_OFFSET,[ define(AC_SHIFT_OFFSET,[
AC_CACHE_CHECK(shift offset of $1, $2, AC_CACHE_CHECK(shift offset of $1, $2,
[LIBS1="$LIBS"; LIBS="" # avoid libwrap allow_severity undefined [LIBS1="$LIBS"; LIBS="" # avoid libwrap allow_severity undefined

View file

@ -1,5 +1,5 @@
/* source: xio-named.c */ /* source: xio-named.c */
/* Copyright Gerhard Rieger 2001-2007 */ /* Copyright Gerhard Rieger 2001-2008 */
/* Published under the GNU General Public License V.2, see file COPYING */ /* Published under the GNU General Public License V.2, see file COPYING */
/* this file contains the source for filesystem entry functions */ /* this file contains the source for filesystem entry functions */
@ -22,7 +22,7 @@ const struct optdesc opt_unlink_early= { "unlink-early",NULL, OPT_UNLINK_EARLY,G
const struct optdesc opt_unlink_late = { "unlink-late", NULL, OPT_UNLINK_LATE, GROUP_NAMED, PH_PASTOPEN, TYPE_BOOL, OFUNC_SPEC }; const struct optdesc opt_unlink_late = { "unlink-late", NULL, OPT_UNLINK_LATE, GROUP_NAMED, PH_PASTOPEN, TYPE_BOOL, OFUNC_SPEC };
const struct optdesc opt_unlink_close = { "unlink-close", NULL, OPT_UNLINK_CLOSE, GROUP_NAMED, PH_LATE, TYPE_BOOL, OFUNC_SPEC }; const struct optdesc opt_unlink_close = { "unlink-close", NULL, OPT_UNLINK_CLOSE, GROUP_NAMED, PH_LATE, TYPE_BOOL, OFUNC_SPEC };
const struct optdesc opt_umask = { "umask", NULL, OPT_UMASK, GROUP_NAMED, PH_EARLY, TYPE_MODET, OFUNC_SPEC }; const struct optdesc opt_umask = { "umask", NULL, OPT_UMASK, GROUP_NAMED, PH_EARLY, TYPE_MODET, OFUNC_SPEC };
#endif /* _WITH_NAMED */ #endif /* WITH_NAMED */
/* applies to fd all options belonging to phase */ /* applies to fd all options belonging to phase */
int applyopts_named(const char *filename, struct opt *opts, unsigned int phase) { int applyopts_named(const char *filename, struct opt *opts, unsigned int phase) {
@ -213,4 +213,4 @@ int _xioopen_open(const char *path, int rw, struct opt *opts) {
return fd; return fd;
} }
#endif /* WITH_NAMED */ #endif /* _WITH_NAMED */

View file

@ -1,5 +1,5 @@
/* source: xio-pipe.c */ /* source: xio-pipe.c */
/* Copyright Gerhard Rieger 2001-2007 */ /* Copyright Gerhard Rieger 2001-2008 */
/* Published under the GNU General Public License V.2, see file COPYING */ /* Published under the GNU General Public License V.2, see file COPYING */
/* this file contains the source for opening addresses of pipe type */ /* this file contains the source for opening addresses of pipe type */
@ -74,7 +74,7 @@ static int xioopen_fifo_unnamed(xiofile_t *sock, struct opt *opts) {
} }
/* open a named pipe/fifo */ /* open a named or unnamed pipe/fifo */
static int xioopen_fifo(int argc, const char *argv[], struct opt *opts, int xioflags, xiofile_t *fd, unsigned groups, int dummy1, int dummy2, int dummy3) { static int xioopen_fifo(int argc, const char *argv[], struct opt *opts, int xioflags, xiofile_t *fd, unsigned groups, int dummy1, int dummy2, int dummy3) {
const char *pipename = argv[1]; const char *pipename = argv[1];
int rw = (xioflags & XIO_ACCMODE); int rw = (xioflags & XIO_ACCMODE);

View file

@ -1,5 +1,5 @@
/* source: xioclose.c */ /* source: xioclose.c */
/* Copyright Gerhard Rieger 2001-2007 */ /* Copyright Gerhard Rieger 2001-2008 */
/* Published under the GNU General Public License V.2, see file COPYING */ /* Published under the GNU General Public License V.2, see file COPYING */
/* this is the source of the extended close function */ /* this is the source of the extended close function */
@ -12,7 +12,7 @@
#include "xio-termios.h" #include "xio-termios.h"
/* close the xio fd; must be valid and "simple" */ /* close the xio fd; must be valid and "simple" (not dual) */
int xioclose1(struct single *pipe) { int xioclose1(struct single *pipe) {
if (pipe->tag == XIO_TAG_INVALID) { if (pipe->tag == XIO_TAG_INVALID) {

View file

@ -1,5 +1,5 @@
/* source: xioinitialize.c */ /* source: xioinitialize.c */
/* Copyright Gerhard Rieger 2001-2006 */ /* Copyright Gerhard Rieger 2001-2008 */
/* Published under the GNU General Public License V.2, see file COPYING */ /* Published under the GNU General Public License V.2, see file COPYING */
/* this file contains the source for the initialize function */ /* this file contains the source for the initialize function */
@ -127,8 +127,8 @@ void xiodroplocks(void) {
/* consider an invokation like this: /* consider an invokation like this:
socat -u exec:'some program that accepts data' tcp-l:...,fork socat -u exec:'some program that accepts data' tcp-l:...,fork
we do not want the program to be killed by the first tcp-l sub process, it's we do not want the program to be killed by the first tcp-l sub process, it's
better if it survives all sub processes. Thus, it must not be killed if the better if it survives all sub processes. Thus, it must not be killed when
sub process delivers EOF. Also, a socket that is reused in sub processes the sub process delivers EOF. Also, a socket that is reused in sub processes
should not be shut down (affects the connection), but closed (affects only should not be shut down (affects the connection), but closed (affects only
sub processes copy of file descriptor) */ sub processes copy of file descriptor) */
static int xio_nokill(xiofile_t *sock) { static int xio_nokill(xiofile_t *sock) {

View file

@ -1,5 +1,5 @@
/* source: xioread.c */ /* source: xioread.c */
/* Copyright Gerhard Rieger 2001-2007 */ /* Copyright Gerhard Rieger 2001-2008 */
/* Published under the GNU General Public License V.2, see file COPYING */ /* Published under the GNU General Public License V.2, see file COPYING */
/* this is the source of the extended read function */ /* this is the source of the extended read function */
@ -142,7 +142,7 @@ ssize_t xioread(xiofile_t *file, void *buff, size_t bufsiz) {
} }
if (pipe->peersa.soa.sa_family != PF_UNSPEC) { if (pipe->peersa.soa.sa_family != PF_UNSPEC) {
/* a peer address is defined, so we need to check if it matches */ /* a peer address is registered, so we need to check if it matches */
#if 0 /* with UNIX sockets we find inconsistent lengths */ #if 0 /* with UNIX sockets we find inconsistent lengths */
if (fromlen != pipe->salen) { if (fromlen != pipe->salen) {
Info("recvfrom(): wrong peer address length, ignoring packet"); Info("recvfrom(): wrong peer address length, ignoring packet");