WvStreams
include
wvuid.h
1
/* -*- Mode: C++ -*-
2
* Worldvisions Weaver Software:
3
* Copyright (C) 1997-2002 Net Integration Technologies, Inc.
4
*
5
* Portable standins for getuid() and friends.
6
*/
7
#ifndef __WVUID_H
8
#define __WVUID_H
9
10
#include <unistd.h>
11
#include "wvstring.h"
12
13
#if WIN32
14
typedef
WvString
wvuid_t;
15
#define WVUID_INVALID (WvString::null)
16
#else // not WIN32
17
#include <pwd.h>
18
typedef
uid_t wvuid_t;
19
#define WVUID_INVALID ((wvuid_t)(-1))
20
#endif
21
26
WvString
wv_username_from_uid(wvuid_t uid);
27
32
wvuid_t wv_uid_from_username(
WvString
username);
33
43
wvuid_t wvgetuid();
44
45
46
#endif // __WVUID_H
WvString
WvString is an implementation of a simple and efficient printable-string class.
Definition:
wvstring.h:329
Generated by
1.8.17