diff options
author | Tim Potter <tpot@samba.org> | 2002-03-14 01:53:04 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2002-03-14 01:53:04 +0000 |
commit | 57bd576445e42a55887c41d270f2230f5136b873 (patch) | |
tree | bf65710f0350af25c5696aec28cc8542a1cee569 /source3/lib | |
parent | 8975d3ef70916bc13c8186c92e66260abc91aaaa (diff) | |
download | samba-57bd576445e42a55887c41d270f2230f5136b873.tar.gz samba-57bd576445e42a55887c41d270f2230f5136b873.tar.bz2 samba-57bd576445e42a55887c41d270f2230f5136b873.zip |
getpid() -> sys_getpid()
(This used to be commit a3cea5e9ae3b53ecbc45e61a39cbce0ca1b916aa)
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/debug.c | 4 | ||||
-rw-r--r-- | source3/lib/messages.c | 2 | ||||
-rw-r--r-- | source3/lib/talloc.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/source3/lib/debug.c b/source3/lib/debug.c index 87a8d42999..7960c32b58 100644 --- a/source3/lib/debug.c +++ b/source3/lib/debug.c @@ -239,7 +239,7 @@ BOOL debug_parse_levels(char *params_str) if (debug_parse_params(params, debuglevel_class, debuglevel_class_isset)) { - debug_message(0, getpid(), (void*)debuglevel_class, sizeof(debuglevel_class)); + debug_message(0, sys_getpid(), (void*)debuglevel_class, sizeof(debuglevel_class)); memcpy(DEBUGLEVEL_CLASS, debuglevel_class, sizeof(debuglevel_class)); @@ -276,7 +276,7 @@ void debug_message(int msg_type, pid_t src, void *buf, size_t len) DEBUG(3,("INFO: Debug class %s level = %d (pid %u from pid %u)\n", classname_table[DBGC_ALL], - DEBUGLEVEL_CLASS[DBGC_ALL], (unsigned int)getpid(), (unsigned int)src)); + DEBUGLEVEL_CLASS[DBGC_ALL], (unsigned int)sys_getpid(), (unsigned int)src)); for (i=1; i<DBGC_LAST; i++) { if (DEBUGLEVEL_CLASS[i]) diff --git a/source3/lib/messages.c b/source3/lib/messages.c index 5974c5a872..642caafac4 100644 --- a/source3/lib/messages.c +++ b/source3/lib/messages.c @@ -335,7 +335,7 @@ void message_dispatch(void) if (!n_handled) { DEBUG(5,("message_dispatch: warning: no handlers registed for " "msg_type %d in pid%d\n", - msg_type, getpid())); + msg_type, sys_getpid())); } SAFE_FREE(buf); } diff --git a/source3/lib/talloc.c b/source3/lib/talloc.c index 330780a035..543165c881 100644 --- a/source3/lib/talloc.c +++ b/source3/lib/talloc.c @@ -364,7 +364,7 @@ char *talloc_describe_all(TALLOC_CTX *rt) char *s; s = talloc_asprintf(rt, "global talloc allocations in pid: %u\n", - (unsigned) getpid()); + (unsigned) sys_getpid()); s = talloc_asprintf_append(rt, s, "%-40s %8s %8s\n", "name", "chunks", "bytes"); s = talloc_asprintf_append(rt, s, "%-40s %8s %8s\n", |