who.c revision 20c1c3551cb3b3117591ae38463d16aada597c48
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
*/
#include <stdio.h>
#include <fcntl.h>
#include <link.h>
#include <stdlib.h>
#include <unistd.h>
#include <strings.h>
#include <signal.h>
#include "env.h"
#include "mach.h"
#include "who.h"
static int detail_syms = 0; /* display detail symbol information */
static void
{
int i;
exit(1);
}
/* LINTED */
/* LINTED */
}
return;
}
/*
* Do an insertion sort to maintain the list
* in order.
*/
return;
}
break;
}
return;
}
}
static void
{
break;
}
/*
* Did we find it?
*/
if (!cur)
return;
if (!prev)
else
}
}
static void
print_simple_address(void *pc)
{
"\t<unknown>: 0x%lx\n", (unsigned long)pc);
return;
}
}
static void
{
int fd;
return;
}
return;
}
return;
}
continue;
/* LINTED */
}
}
}
static void
{
int i;
if (!detail_syms) {
return;
}
break;
}
return;
}
}
}
static void
{
FLUSHWIN();
}
}
{
if (version > LAV_CURRENT)
version);
if (checkenv((const char *)"WHO_DETAIL"))
detail_syms++;
/*
* Initalize iset to the full set of signals to be masked durring
*/
(void) sigfillset(&iset);
return (LAV_CURRENT);
}
/* ARGSUSED1 */
{
return (LA_FLG_BINDTO | LA_FLG_BINDFROM);
}
{
return (1);
}
/* ARGSUSED1 */
#if defined(__sparcv9)
const char *sym_name)
const char *sym_name)
#endif
{
#if !defined(_LP64)
#endif
+ STACK_BIAS);
}
}