diff options
| author | Marc G. Fournier <scrappy@hub.org> | 1997-12-19 02:46:25 +0000 |
|---|---|---|
| committer | Marc G. Fournier <scrappy@hub.org> | 1997-12-19 02:46:25 +0000 |
| commit | 3aae0f5300f36ceca30b88378a7678ed4f902e50 (patch) | |
| tree | 47a8e21585c4a3787daea64ff681a7dbab56c038 /src/backend/port/getrusage.c | |
| parent | 3ad815fc2a15c96afd29298cff0ad0dfaf7c9fc4 (diff) | |
| download | postgresql-3aae0f5300f36ceca30b88378a7678ed4f902e50.tar.gz | |
More cleanups...several ports are major redundancies of other ports
Diffstat (limited to 'src/backend/port/getrusage.c')
| -rw-r--r-- | src/backend/port/getrusage.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/backend/port/getrusage.c b/src/backend/port/getrusage.c index a560d4afa3..ce17043875 100644 --- a/src/backend/port/getrusage.c +++ b/src/backend/port/getrusage.c @@ -4,6 +4,11 @@ #include "rusagestub.h" #include "port-protos.h" +#ifdef 0 /* this is from univel port ... how does compiler define? */ + /* same for i386_solaris port ... how does compiler define? */ + /* same for sco port ... how does compiler define? */ + /* same for sparc_solaris port ... how does compiler define? */ + /* same for svr4 port ... how does compiler define? */ int getrusage(int who, struct rusage * rusage) { @@ -44,4 +49,11 @@ getrusage(int who, struct rusage * rusage) rusage->ru_stime.tv_usec = TICK_TO_USEC(u, tick_rate); return (0); } +#endif +#ifdef 0 /* this is for hpux port ... how does compiler define? */ +getrusage(int who, struct rusage * ru) +{ + return (syscall(SYS_GETRUSAGE, who, ru)); +} +#endif |
