⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 uname.2

📁 <B>Digital的Unix操作系统VAX 4.2源码</B>
💻 2
字号:
.\" SCCSID: @(#)uname.2	8.1	9/11/90.TH uname 2.SH Nameuname \- get name of current system.SH Syntax.nf.ft B#include <limits.h> .br#include <sys/utsname.h>.PP.ft Bint uname (name)struct utsname *name;.fi.SH Description.NXR "uname system call".NXR "system" "getting name".NXR "system" "getting version number".NXR "system" "identifying machine type"The.PN unamesystem call stores information identifying the current system in the structure pointed to by.IR name ..PPThe .PN unamesystem call uses the structuredefined in .PN <sys/utsname.h> whose members are:.PP.RSchar	sysname[SYS_NMLN];.brchar	nodename[SYS_NMLN];.brchar	release[SYS_NMLN];.brchar	version[SYS_NMLN];.brchar	machine[SYS_NMLN];.RE.PPThe constant SYS_NMLN is defined in .PN <limits.h> ..PPThe.PN unamesystem call returnsa null-terminated character string naming the current ULTRIXsystem in the character array,.IR sysname .Similarly,.I nodenamecontains the name that the systemis known by on a communications network.  The.I releaseand.I versionfurther identify the operating system.  The.I machinecontains a standard name that identifies the hardware that theULTRIX system is running on..SH Return ValuesUpon successful completion, a nonnegativevalue is returned.  Otherwise, \-1 is returned, and.I errnois set to indicate the error..SH Diagnostics.TP 15[EFAULT]The.PN unamesystem call fails if.I namepoints to an invalid address.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -