diff options
author | lloyd <[email protected]> | 2007-12-24 20:54:30 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2007-12-24 20:54:30 +0000 |
commit | 769e503fd8e4cf0f3072e04afffb61db5b48d777 (patch) | |
tree | b5d5c5e88bcfa0c3790571c82cde222bec1addb3 /modules/es_unix/es_unix.cpp | |
parent | cf2f188f4ad96abb26400e2dc62e2012826d10e7 (diff) |
Qualify (some) calls to functions in the global namespace using an
explicit :: (it is unfortunate that there is no good way to detect all
of such calls in an automated manner). Also use new-style casts in parts
of the zlib code.
Diffstat (limited to 'modules/es_unix/es_unix.cpp')
-rw-r--r-- | modules/es_unix/es_unix.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/modules/es_unix/es_unix.cpp b/modules/es_unix/es_unix.cpp index d534db2ab..40be78e22 100644 --- a/modules/es_unix/es_unix.cpp +++ b/modules/es_unix/es_unix.cpp @@ -51,30 +51,30 @@ void Unix_EntropySource::do_fast_poll() for(u32bit j = 0; STAT_TARGETS[j]; j++) { - struct stat statbuf; + struct ::stat statbuf; clear_mem(&statbuf, 1); - stat(STAT_TARGETS[j], &statbuf); + ::stat(STAT_TARGETS[j], &statbuf); add_bytes(&statbuf, sizeof(statbuf)); } - add_bytes(getpid()); - add_bytes(getppid()); + add_bytes(::getpid()); + add_bytes(::getppid()); - add_bytes(getuid()); - add_bytes(getgid()); - add_bytes(geteuid()); - add_bytes(getegid()); + add_bytes(::getuid()); + add_bytes(::getgid()); + add_bytes(::geteuid()); + add_bytes(::getegid()); - add_bytes(getpgrp()); - add_bytes(getsid(0)); + add_bytes(::getpgrp()); + add_bytes(::getsid(0)); - struct rusage usage; + struct ::rusage usage; clear_mem(&usage, 1); - getrusage(RUSAGE_SELF, &usage); + ::getrusage(RUSAGE_SELF, &usage); add_bytes(&usage, sizeof(usage)); - getrusage(RUSAGE_CHILDREN, &usage); + ::getrusage(RUSAGE_CHILDREN, &usage); add_bytes(&usage, sizeof(usage)); } |