[ovs-dev] [PATCH 01/10] windows: Add definition of getrusage

Alin Serdean aserdean at cloudbasesolutions.com
Mon Feb 6 04:41:40 UTC 2017


getrusage is implemented in lib/getrusage-windows.c.

This patch just adds its definition to include/windows/sys/resource.h,
which serves for files that include <sys/resource.h>.

Another that we could also do is to move the implementation to
include/windows

Signed-off-by: Alin Gabriel Serdean <aserdean at cloudbasesolutions.com>
---
 include/windows/sys/resource.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/include/windows/sys/resource.h b/include/windows/sys/resource.h
index d4628f2..d8f2607 100644
--- a/include/windows/sys/resource.h
+++ b/include/windows/sys/resource.h
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2014 Nicira, Inc.
+ * Copyright (c) 2014, 2017 Nicira, Inc.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -48,4 +48,6 @@ struct rusage {
 #define RUSAGE_THREAD 3
 #endif
 
+int getrusage(int who, struct rusage *usage);
+
 #endif /* sys/resource.h */
-- 
2.10.2.windows.1


More information about the dev mailing list