diff options
author | vasiljevic <vasiljevic@noemail.net> | 2006-09-06 13:08:24 (GMT) |
---|---|---|
committer | vasiljevic <vasiljevic@noemail.net> | 2006-09-06 13:08:24 (GMT) |
commit | 04b0c5ed5aaa46bd3bbc7100bd121133f89100e0 (patch) | |
tree | ddfae99ef563e357ad94090bb150e55a7200e44d /unix/tclUnixPort.h | |
parent | 9cc699c13e075864cf97b4806977778d0e5e2eea (diff) | |
download | tcl-04b0c5ed5aaa46bd3bbc7100bd121133f89100e0.zip tcl-04b0c5ed5aaa46bd3bbc7100bd121133f89100e0.tar.gz tcl-04b0c5ed5aaa46bd3bbc7100bd121133f89100e0.tar.bz2 |
Added MT-safe implementation of some library calls.
See Tcl Bug 999544 for more information.
FossilOrigin-Name: fa1da032d77a63dbe9ece8e7f3883953fb6a8ea8
Diffstat (limited to 'unix/tclUnixPort.h')
-rw-r--r-- | unix/tclUnixPort.h | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/unix/tclUnixPort.h b/unix/tclUnixPort.h index 2bbe201..52fa194 100644 --- a/unix/tclUnixPort.h +++ b/unix/tclUnixPort.h @@ -19,7 +19,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclUnixPort.h,v 1.27.2.14 2006/08/21 05:37:26 das Exp $ + * RCS: @(#) $Id: tclUnixPort.h,v 1.27.2.15 2006/09/06 13:08:30 vasiljevic Exp $ */ #ifndef _TCLUNIXPORT @@ -685,6 +685,33 @@ typedef int TclpMutex; #define TclpMutexUnlock(a) #endif /* TCL_THREADS */ + +/* + * Compatibility calls + */ +#include <pwd.h> +#include <grp.h> +EXTERN int +TclpGetPwNam(const char *name, struct passwd *pwbuf, char *buf, size_t buflen, + struct passwd **pwbufp); +EXTERN int +TclpGetPwUid(uid_t uid, struct passwd *pwbuf, char *buf, size_t buflen, + struct passwd **pwbufp); +EXTERN int +TclpGetGrNam(const char *name, struct group *gbuf, char *buf, size_t buflen, + struct group **gbufp); +EXTERN int +TclpGetGrGid(gid_t gid, struct group *gbuf, char *buf, size_t buflen, + struct group **gbufp); + +EXTERN struct hostent * +TclpGetHostByName(const char *name, struct hostent *hbuf, char *buf, + size_t buflen, int *h_errnop); + +EXTERN struct hostent * +TclpGetHostByAddr(const char *addr, int length, int type, struct hostent *hbuf, + char *buf, size_t buflen, int *h_errnop); + #include "tclPlatDecls.h" #include "tclIntPlatDecls.h" |