*** empty log message ***

This commit is contained in:
Martin Baulig
2000-01-02 16:20:15 +00:00
parent e0d9f28674
commit fa5d2af7ea
5 changed files with 13 additions and 6 deletions

View File

@@ -41,7 +41,9 @@ glibtop_call_i (glibtop *server, glibtop_backend *backend, unsigned command,
int *retval_ptr)
{
glibtop_command cmnd;
#if 0
int retval;
#endif
glibtop_init_r (&server, 0, 0);

View File

@@ -34,7 +34,7 @@ print '';
print '#include <glibtop/backend.h>';
print '';
print '#include <glibtop-backend-private.h>';
print '#include "command.h"';
print '#include "server.h"';
print '';
$feature_count = 0;

View File

@@ -115,7 +115,7 @@ handle_slave_connection (int input, int output)
while (do_read (input, cmnd, sizeof (glibtop_command))) {
fprintf (stderr, "Slave %d received command "
"%d from client.\n", getpid (), cmnd->command);
"%ld from client.\n", getpid (), (long) cmnd->command);
if (cmnd->send_size >= BUFSIZ)
glibtop_error ("Client sent %d bytes, but buffer is %d",

View File

@@ -70,6 +70,9 @@ BEGIN_LIBGTOP_DECLS
#define GET_MAX_FDS() 256
#endif
int
do_read (int s, void *ptr, size_t total_size);
void
handle_slave_connection (int input, int output);

View File

@@ -3,7 +3,7 @@
my $c_strlen_func = sub {
local ($_) = @_;
return "strlen ($_) + sizeof (unsigned) + 1";
return "strlen ($_) + 1";
};
my $c_marshal_func = sub {
@@ -13,10 +13,12 @@ my $c_marshal_func = sub {
$code .= sprintf ("%s_LIBGTOP_SEND_temp_len = strlen (%s)+1;\n",
$indent, $param);
$code .= sprintf ("%smemcpy (_LIBGTOP_SEND_ptr, %s, %s);\n",
$indent, "&_LIBGTOP_SEND_temp_len", "sizeof (unsigned)");
$code .= sprintf ("%s_LIBGTOP_SEND_ptr += sizeof (unsigned);\n", $indent);
$code .= sprintf ("%smemcpy (_LIBGTOP_SEND_ptr, %s, %s);\n",
$indent, "&_LIBGTOP_SEND_temp_len", "sizeof (size_t)");
$code .= sprintf ("%s_LIBGTOP_SEND_ptr += sizeof (size_t);\n", $indent);
$code .= sprintf ("%smemcpy (_LIBGTOP_DATA_ptr, %s, %s);\n",
$indent, $param, "strlen ($param)+1");
$code .= sprintf ("%s_LIBGTOP_DATA_ptr += strlen ($param)+1;\n",
$indent);
$need_temp_len = 1;