2011-01-23 10:23 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)

* utils/hbmk2/hbmk2.prg
    ! Minor typo in help text.

  * utils/hbmk2/hbmk2.pt_BR.po
  * utils/hbmk2/hbmk2.hu_HU.po
  * utils/hbmk2/hbmk2.es_PE.po
    + Updated from source.

  * contrib/hbmxml/tests/rem.xml
  * contrib/hbmxml/tests/rem_err.xml
    ! Added missing EOL @ EOF.

  * contrib/hbunix/hbposix.h
    + Added generic macro to accept both logical and numeric type for
      boolean-like input parameters.

  * contrib/hbunix/tests/testdmn.prg
  * contrib/hbunix/daemon.c
    + UNIX_DAEMON(): Changed to accept numeric value for logical parameters.
    + UNIX_DAEMON(): Changed to return numeric value.
    ; Patch by Tamas.
This commit is contained in:
Viktor Szakats
2011-01-23 09:24:47 +00:00
parent 4b18334560
commit fa950fae9c
10 changed files with 1977 additions and 778 deletions

View File

@@ -16,6 +16,29 @@
The license applies to all entries newer than 2009-04-28.
*/
2011-01-23 10:23 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
! Minor typo in help text.
* utils/hbmk2/hbmk2.pt_BR.po
* utils/hbmk2/hbmk2.hu_HU.po
* utils/hbmk2/hbmk2.es_PE.po
+ Updated from source.
* contrib/hbmxml/tests/rem.xml
* contrib/hbmxml/tests/rem_err.xml
! Added missing EOL @ EOF.
* contrib/hbunix/hbposix.h
+ Added generic macro to accept both logical and numeric type for
boolean-like input parameters.
* contrib/hbunix/tests/testdmn.prg
* contrib/hbunix/daemon.c
+ UNIX_DAEMON(): Changed to accept numeric value for logical parameters.
+ UNIX_DAEMON(): Changed to return numeric value.
; Patch by Tamas.
2011-01-21 16:47 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* config/hb_c.cfg
* Changed to align assignments.

View File

@@ -7,4 +7,4 @@
<heading>Reminder</heading>
<body type="opaque">Don't forget me this weekend!</body>
</note>
</group>
</group>

View File

@@ -7,4 +7,4 @@
<heading>Reminder</heading>
<body type="opaque">Don't forget me this weekend!</body>
</note>
</group>
</group>

View File

@@ -35,9 +35,6 @@
#include "hbposix.h"
#include "hbvm.h"
/*
* unix_daemon( [<lNoChdir>], [<lNoClose>] ) --> <lResult>
*/
HB_FUNC( UNIX_DAEMON )
{
int fd;
@@ -46,7 +43,7 @@ HB_FUNC( UNIX_DAEMON )
{
case -1:
hb_posix_save_errno();
hb_retl( HB_FALSE );
hb_retni( -1 );
return;
case 0:
break;
@@ -58,14 +55,14 @@ HB_FUNC( UNIX_DAEMON )
if( setsid() == -1 )
{
hb_posix_save_errno();
hb_retl( HB_FALSE );
hb_retni( -1 );
return;
}
if( ! hb_parl( 1 ) )
if( ! HB_PARLUNIX( 1 ) )
( void ) chdir( "/" );
if( ! hb_parl( 2 ) && ( fd = open( "/dev/null", O_RDWR ) ) != -1 )
if( ! HB_PARLUNIX( 2 ) && ( fd = open( "/dev/null", O_RDWR ) ) != -1 )
{
( void ) dup2( fd, STDIN_FILENO );
( void ) dup2( fd, STDOUT_FILENO );
@@ -76,5 +73,5 @@ HB_FUNC( UNIX_DAEMON )
hb_posix_set_errno( 0 );
hb_retl( HB_TRUE );
hb_retni( 0 );
}

View File

@@ -64,6 +64,7 @@
#define hb_par_uid( n ) ( ( uid_t ) hb_parnl( n ) )
#define hb_ret_uid( n ) hb_retnint( n )
#define HB_PARLUNIX( n ) ( HB_ISLOG( n ) ? ( int ) hb_parl( n ) : hb_parni( n ) )
HB_EXTERN_BEGIN

View File

@@ -20,8 +20,8 @@ PROCEDURE Main()
OutStd( hb_strFormat( "Parent(%d) launching child... ", posix_getpid() ) + hb_eol() )
IF ! unix_daemon( .F., .F. )
OutStd( "failed." + hb_eol() )
IF unix_daemon( 0, 0 ) == -1
OutStd( hb_strFormat( "failed with errno=%d", posix_errno() ) + hb_eol() )
ErrorLevel( 1 )
QUIT
ENDIF

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -11589,7 +11589,7 @@ STATIC PROCEDURE ShowHelp( hbmk, lLong )
{ "-depimplibs=<d:dll>" , I_( "<d> is the name of the dependency. Add <dll> to the import library source list" ) },;
{ "-depimplibd=<d:lib>" , I_( "<d> is the name of the dependency. Set generated import library name to <lib>" ) },;
NIL,;
{ "-plugin= <.prg|.hbs|.hrb>", I_( "add plugin" ) },;
{ "-plugin=<.prg|.hbs|.hrb>", I_( "add plugin" ) },;
{ "-pi=<filename>" , I_( "pass input file to plugins" ) },;
{ "-pflag=<f>" , I_( "pass flag to plugins" ) },;
NIL,;

File diff suppressed because it is too large Load Diff