1/*-
2 * See the file LICENSE for redistribution information.
3 *
4 * Copyright (c) 1999-2009 Oracle.  All rights reserved.
5 *
6 * $Id$
7 */
8
9#include "db_config.h"
10
11#include "db_int.h"
12
13/*
14 * __os_isroot --
15 *	Return if user has special permissions.
16 *
17 * PUBLIC: int __os_isroot __P((void));
18 */
19int
20__os_isroot()
21{
22#ifdef HAVE_GETUID
23	return (getuid() == 0);
24#else
25	return (0);
26#endif
27}
28