[parisc-linux] utssys?

John David Anglin dave@hiauly1.hia.nrc.ca
Sat, 7 Aug 1999 23:34:25 -0400 (EDT)


> 
> Re:
> 
> > Can anyone tell me what the utssys() system call does?  There's no manual
> > page for it.  From tusc, I can see:
> > 
> > utssys("HP-UX", 0, 0) ............................................ = 0
> 
> >From decompiling, it doesn't appear to do much.  The kernel utssys
> routine (called to handle system call (SYS_utssys, #57)), is short,
> with one external call ... to a short routine that has no procedure calls
> at all.  That's where I stopped looking.

From the 9.1 kernel lib:

Symbols from libhp-ux.a[utssys.o]:

Name                    Value   Scope  Type    Subspace

$str_lit_sym$       |1073741824|static|data   |$DATA$
$THIS_DATA$         |1073741824|static|data   |$DATA$
$THIS_SHORTDATA$    |1073741848|static|data   |$SHORTDATA$
$THIS_BSS$          |1073741848|static|data   |$BSS$
$THIS_SHORTBSS$     |1073741848|static|data   |$SHORTBSS$
$THIS_STATICDATA$   |1073741848|static|data   |$STATICDATA$
$THIS_SHORTSTATICDATA$|1073741848|static|data   |$SHORTSTATICDATA$
$THIS_LIT$          |      1192|static|code   |$LIT$
$THIS_LITSTATIC$    |      1192|static|code   |$LITSTATIC$
$global$            |          |undef |data   |
int_owner           |         4|undef |common |$SHORTBSS$
uptr                |          |undef |data   |
utsname             |          |undef |data   |
brmtdev             |          |undef |data   |
proto_stats         |       124|undef |common |$BSS$
hostname            |          |undef |data   |
utssys              |         0|extern|entry  |$CODE$
getcputype          |          |undef |code   |
copyout             |          |undef |code   |
dux_ustat           |          |undef |code   |
getmp               |          |undef |code   |
bcopy               |          |undef |code   |
suser               |          |undef |code   |
fubyte              |          |undef |code   |

The call is used by a number of routines in libc.

-- 
J. David Anglin                                  dave.anglin@nrc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6605)