Displaying 5 results from an estimated 5 matches for "rusage_children".
2000 Jun 15
1
problem in entropy.c if no getrusage
entropy.c assumes RUSAGE_SELF and RUSAGE_CHILDREN
*** entropy.c.orig Thu Jun 15 13:57:28 2000
--- entropy.c Thu Jun 15 13:58:25 2000
***************
*** 201,207 ****
--- 201,209 ----
total_entropy_estimate += stir_gettimeofday(1.0);
total_entropy_estimate += stir_clock(0.2);
+ #ifdef HAVE_GETRUSAGE
total_entropy_...
2009 Aug 12
0
Problem with Linux x86_64 RODBC and Netezza (PR#13889)
...rom(3, "P\0\0\0\5\0\0\0\6blank\0T\0\0\0\5\0\0\0P\0\3IDENTI"..., 16384, 0,
NULL, NULL) = 174
write(1, "> ", 2) = 2
write(1, "conn\n", 5) = 5
getrusage(RUSAGE_SELF, {ru_utime={0, 357945}, ru_stime={0, 82987}, ...}) = 0
getrusage(RUSAGE_CHILDREN, {ru_utime={0, 0}, ru_stime={0, 999}, ...}) = 0
write(1, "RODBC Connection ", 17) = 17
write(1, "1", 1) = 1
write(1, "\nDetails:\n ", 12) = 12
write(1, "case=nochange", 13) = 13
write(1, "\n ", 3)...
2000 Nov 02
2
misc. minor patches
...ropy_estimate += stir_gettimeofday(0.05);
total_entropy_estimate += stir_clock(0.05);
+#ifdef HAVE_GETRUSAGE
total_entropy_estimate += stir_rusage(RUSAGE_SELF, 0.1);
total_entropy_estimate += stir_rusage(RUSAGE_CHILDREN, 0.1);
+#endif
} else {
#ifdef DEBUG_ENTROPY
debug("Command '%s' disabled (badness %d)",
diff -u openssh-2.1.1p1.orig/packet.c openssh-2.1.1p1/packet.c
--- openssh-2.1.1p1.orig/packet.c Wed May 17 08:53:35 2000
+++ o...
2023 Jan 14
1
[klibc:time64] resource: Avoid using <linux/resource.h>
...e/sys/resource.h
@@ -6,8 +6,39 @@
#define _SYS_RESOURCE_H
#include <klibc/extern.h>
-#include <sys/types.h> /* MUST be included before linux/resource.h */
-#include <linux/resource.h>
+#include <sys/types.h>
+#include <sys/time.h>
+
+#define RUSAGE_SELF 0
+#define RUSAGE_CHILDREN (-1)
+#define RUSAGE_BOTH (-2)
+#define RUSAGE_THREAD 1
+
+struct rusage {
+ struct timeval ru_utime; /* user time used */
+ struct timeval ru_stime; /* system time used */
+ __kernel_long_t ru_maxrss; /* maximum resident set size */
+ __kernel_long_t ru_ixrss; /* integral shared memory size */
+ _...
2000 Aug 25
1
[patch] configurable ssh_prng_cmds
...th that couldn't be fixed at run-time).
Regards
Jan
diff -ur openssh-SNAP-20000823.orig/entropy.c openssh-SNAP-20000823.new/entropy.c
--- openssh-SNAP-20000823.orig/entropy.c Sat Jul 15 06:59:15 2000
+++ openssh-SNAP-20000823.new/entropy.c Fri Aug 25 14:44:52 2000
@@ -67,6 +67,8 @@
# define RUSAGE_CHILDREN 0
#endif
+char *ssh_prng_command_file = NULL;
+
#if defined(EGD_SOCKET) || defined(RANDOM_POOL)
#ifdef EGD_SOCKET
@@ -810,7 +812,7 @@
original_uid = getuid();
/* Read in collection commands */
- if (!prng_read_commands(SSH_PRNG_COMMAND_FILE))
+ if (!prng_read_commands(ssh_prng_command_...