亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? library_26.html

?? linux_c函數(shù),linux下編程必備的
?? HTML
字號(hào):
<!-- This HTML file has been created by texi2html 1.27
     from library.texinfo on 3 March 1994 -->

<TITLE>The GNU C Library - System Information</TITLE>
<P>Go to the <A HREF="library_25.html" tppabs="http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/library_25.html">previous</A>, <A HREF="library_27.html" tppabs="http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/library_27.html">next</A> section.<P>
<H1><A NAME="SEC451" HREF="library_toc.html#SEC451" tppabs="http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/library_toc.html#SEC451">System Information</A></H1>
<P>
This chapter describes functions that return information about the
particular machine that is in use--the type of hardware, the type of
software, and the individual machine's name.
<P>
<H2><A NAME="SEC452" HREF="library_toc.html#SEC452" tppabs="http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/library_toc.html#SEC452">Host Identification</A></H2>
<P>
This section explains how to identify the particular machine that your
program is running on.  The identification of a machine consists of its
Internet host name and Internet address; see section <A HREF="library_15.html#SEC227" tppabs="http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/library_15.html#SEC227">The Internet Namespace</A>.  
<A NAME="IDX1846"></A>
<A NAME="IDX1847"></A>
<A NAME="IDX1848"></A>
<P>
Prototypes for these functions appear in <TT>`unistd.h'</TT>.  The shell
commands <CODE>hostname</CODE> and <CODE>hostid</CODE> work by calling them.
<P>
<A NAME="IDX1849"></A>
<U>Function:</U> int <B>gethostname</B> <I>(char *<VAR>name</VAR>, size_t <VAR>size</VAR>)</I><P>
This function returns the name of the host machine in the array
<VAR>name</VAR>.  The <VAR>size</VAR> argument specifies the size of this array,
in bytes.
<P>
The return value is <CODE>0</CODE> on success and <CODE>-1</CODE> on failure.  In
the GNU C library, <CODE>gethostname</CODE> fails if <VAR>size</VAR> is not large
enough; then you can try again with a larger array.  The following
<CODE>errno</CODE> error condition is defined for this function:
<P>
<DL COMPACT>
<DT><CODE>ENAMETOOLONG</CODE>
<DD>The <VAR>size</VAR> argument is less than the size of the host name plus one.
</DL>
<A NAME="IDX1850"></A>
<P>
On some systems, there is a symbol for the maximum possible host name
length: <CODE>MAXHOSTNAMELEN</CODE>.  It is defined in <TT>`sys/param.h'</TT>.
But you can't count on this to exist, so it is cleaner to handle
failure and try again.
<P>
<CODE>gethostname</CODE> stores the beginning of the host name in <VAR>name</VAR>
even if the host name won't entirely fit.  For some purposes, a
truncated host name is good enough.  If it is, you can ignore the
error code.
<P>
<A NAME="IDX1851"></A>
<U>Function:</U> int <B>sethostname</B> <I>(const char *<VAR>name</VAR>, size_t <VAR>length</VAR>)</I><P>
The <CODE>sethostname</CODE> function sets the name of the host machine to
<VAR>name</VAR>, a string with length <VAR>length</VAR>.  Only privileged
processes are allowed to do this.  Usually it happens just once, at
system boot time.
<P>
The return value is <CODE>0</CODE> on success and <CODE>-1</CODE> on failure.
The following <CODE>errno</CODE> error condition is defined for this function:
<P>
<DL COMPACT>
<DT><CODE>EPERM</CODE>
<DD>This process cannot set the host name because it is not privileged.
</DL>
<P>
<A NAME="IDX1852"></A>
<U>Function:</U> long int <B>gethostid</B> <I>(void)</I><P>
This function returns the Internet address of the machine the program is
running on.
<P>
<A NAME="IDX1853"></A>
<U>Function:</U> int <B>sethostid</B> <I>(long int <VAR>id</VAR>)</I><P>
The <CODE>sethostid</CODE> function sets the address of the host machine to
<VAR>id</VAR>.  Only privileged processes are allowed to do this.  Usually it
happens just once, at system boot time.
<P>
The return value is <CODE>0</CODE> on success and <CODE>-1</CODE> on failure.
The following <CODE>errno</CODE> error condition is defined for this function:
<P>
<DL COMPACT>
<DT><CODE>EPERM</CODE>
<DD>This process cannot set the host name because it is not privileged.
</DL>
<P>
<H2><A NAME="SEC453" HREF="library_toc.html#SEC453" tppabs="http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/library_toc.html#SEC453">Hardware/Software Type Identification</A></H2>
<P>
You can use the <CODE>uname</CODE> function to find out some information about
the type of computer your program is running on.  This function and the
associated data type are declared in the header file
<TT>`sys/utsname.h'</TT>.
<A NAME="IDX1854"></A>
<P>
<A NAME="IDX1855"></A>
<U>Data Type:</U> <B>struct utsname</B><P>
The <CODE>utsname</CODE> structure is used to hold information returned
by the <CODE>uname</CODE> function.  It has the following members:
<P>
<DL COMPACT>
<DT><CODE>char sysname[]</CODE>
<DD>This is the name of the operating system in use.
<P>
<DT><CODE>char nodename[]</CODE>
<DD>This is the network name of this particular computer.  In the GNU
library, the value is the same as that returned by <CODE>gethostname</CODE>;
see section <A HREF="library_26.html#SEC452" tppabs="http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/library_26.html#SEC452">Host Identification</A>.
<P>
<DT><CODE>char release[]</CODE>
<DD>This is the current release level of the operating system implementation.
<P>
<DT><CODE>char version[]</CODE>
<DD>This is the current version level within the release of the operating
system.
<P>
<DT><CODE>char machine[]</CODE>
<DD>This is a description of the type of hardware that is in use.
<P>
The GNU C Library fills in this field based on the configuration name
that was specified when building and installing the library.  GNU uses a
three-part name to describe a system configuration; the three parts are
<VAR>cpu</VAR>, <VAR>manufacturer</VAR> and <VAR>system-type</VAR>, and they are
separated with dashes.  Any possible combination of three names is
potentially meaningful, but most such combinations are meaningless in
practice and even the meaningful ones are not necessarily supported by
any particular GNU program.
<P>
Since the value in <CODE>machine</CODE> is supposed to describe just the
hardware, it consists of the first two parts of the configuration name:
<SAMP>`<VAR>cpu</VAR>-<VAR>manufacturer</VAR>'</SAMP>.
<P>
Here is a list of all the possible alternatives:
<P>
<BLOCKQUOTE>
<CODE>"i386-<VAR>anything</VAR>"</CODE>, <CODE>"m68k-hp"</CODE>, <CODE>"sparc-sun"</CODE>,
<CODE>"m68k-sun"</CODE>, <CODE>"m68k-sony"</CODE>, <CODE>"mips-dec"</CODE>
</BLOCKQUOTE>
</DL>
<P>
<A NAME="IDX1856"></A>
<U>Function:</U> int <B>uname</B> <I>(struct utsname *<VAR>info</VAR>)</I><P>
The <CODE>uname</CODE> function fills in the structure pointed to by
<VAR>info</VAR> with information about the operating system and host machine.
A non-negative value indicates that the data was successfully stored.
<P>
<CODE>-1</CODE> as the value indicates an error.  The only error possible is
<CODE>EFAULT</CODE>, which we normally don't mention as it is always a
possibility.
<P>
<P>Go to the <A HREF="library_25.html" tppabs="http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/library_25.html">previous</A>, <A HREF="library_27.html" tppabs="http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/library_27.html">next</A> section.<P>

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本欧洲一区二区| 国产偷国产偷亚洲高清人白洁| 国产精品美女一区二区三区| 国产在线看一区| 国产午夜久久久久| 成人一级黄色片| 中文无字幕一区二区三区 | 欧美一区二区免费视频| 亚欧色一区w666天堂| 欧美一区二区视频在线观看2022 | 亚洲综合色在线| 欧美视频一区二| 蜜臀国产一区二区三区在线播放| 日韩免费看网站| 国产91高潮流白浆在线麻豆 | 亚洲精品精品亚洲| 欧美色图第一页| 免费的成人av| 国产欧美视频一区二区三区| 91免费版在线看| 日韩精品免费视频人成| 26uuu精品一区二区| 97精品视频在线观看自产线路二| 亚洲成人黄色影院| 国产亚洲制服色| 欧日韩精品视频| 美女网站一区二区| 中文字幕一区二区三区乱码在线| 欧美午夜不卡视频| 国产盗摄一区二区| 亚洲图片一区二区| 久久精品亚洲一区二区三区浴池 | 日本v片在线高清不卡在线观看| 久久综合给合久久狠狠狠97色69| 91婷婷韩国欧美一区二区| 91麻豆国产精品久久| 五月综合激情网| 日本一区二区电影| 91精品欧美久久久久久动漫| 波多野结衣91| 免费美女久久99| 一区二区三区中文在线| 久久久久一区二区三区四区| 欧美视频精品在线| 国产精品一区在线观看你懂的| 亚洲综合清纯丝袜自拍| 久久久精品天堂| 在线不卡免费欧美| 色综合网站在线| 国产a久久麻豆| 美女视频第一区二区三区免费观看网站| 国产精品视频线看| 久久综合色之久久综合| 欧美日韩成人高清| 色哟哟精品一区| 国产精品小仙女| 美国三级日本三级久久99| 一区二区三区四区视频精品免费| 国产日韩三级在线| 精品国产三级电影在线观看| 欧美日韩卡一卡二| 99久久久国产精品| 成人精品一区二区三区四区| 久久99精品久久久久久久久久久久 | 日本韩国一区二区三区视频| 丰满亚洲少妇av| 国产成人一区二区精品非洲| 久久电影网站中文字幕| 日韩综合一区二区| 成人免费视频一区| 国产成人免费在线观看| 免费看日韩a级影片| 视频一区二区三区中文字幕| 亚洲综合男人的天堂| 一区二区三区在线观看国产| 亚洲三级免费电影| 亚洲免费av网站| 专区另类欧美日韩| 亚洲精品ww久久久久久p站| 91亚洲大成网污www| 有码一区二区三区| 一区二区三区成人在线视频| 亚洲美腿欧美偷拍| 亚洲精品精品亚洲| 亚洲高清视频中文字幕| 午夜av区久久| 六月婷婷色综合| 久久99国产精品麻豆| 老司机午夜精品| 国产一区二区三区视频在线播放| 久久91精品久久久久久秒播| 久久www免费人成看片高清| 精品一区二区三区日韩| 国产剧情在线观看一区二区| 国产不卡在线播放| 91色九色蝌蚪| 欧美日韩一区三区四区| 欧美高清一级片在线| 日韩精品专区在线影院观看| 久久综合色鬼综合色| 精品日韩一区二区三区| 国产欧美一区二区精品忘忧草| 国产精品久久久久久久第一福利| 亚洲女与黑人做爰| 天天综合色天天综合色h| 激情综合色综合久久综合| 国产a久久麻豆| 欧美视频中文字幕| 精品国产区一区| 国产精品美女一区二区| 亚洲成人自拍一区| 国产麻豆成人精品| 一本久道久久综合中文字幕| 欧美肥胖老妇做爰| 国产亚洲美州欧州综合国| 一区二区三区在线视频观看| 老司机精品视频一区二区三区| 福利一区在线观看| 欧美日韩国产片| 久久网这里都是精品| 亚洲一线二线三线视频| 九九精品一区二区| 色94色欧美sute亚洲线路一久| 欧美一区二区三区在| 国产精品久久久久久亚洲毛片 | 91精品婷婷国产综合久久性色| 国产亚洲精品bt天堂精选| 亚洲线精品一区二区三区| 激情综合网激情| 欧美色综合天天久久综合精品| 久久精品欧美日韩| 亚洲成在人线免费| 99视频精品在线| xfplay精品久久| 午夜精品福利一区二区三区av| 国产99久久久国产精品免费看| 欧美裸体一区二区三区| 中文无字幕一区二区三区 | ...av二区三区久久精品| 美女一区二区在线观看| 欧美亚洲国产怡红院影院| 国产日本一区二区| 麻豆91在线观看| 欧美日韩视频专区在线播放| 国产精品你懂的在线欣赏| 91小视频免费观看| www国产亚洲精品久久麻豆| 亚洲在线成人精品| 99久久精品国产毛片| 国产夜色精品一区二区av| 久久精品二区亚洲w码| 欧美日韩精品一区二区三区四区| 国产精品国产三级国产专播品爱网 | 亚洲国产视频在线| 99re成人精品视频| 国产婷婷一区二区| 国产在线精品一区二区| 欧美日本国产一区| 亚洲高清三级视频| 欧洲人成人精品| 亚洲精品国产a| 色综合久久中文综合久久牛| 国产精品三级视频| 大胆亚洲人体视频| 国产精品女人毛片| 成人一级视频在线观看| 国产精品午夜春色av| 懂色av中文一区二区三区| 国产日韩综合av| 岛国一区二区三区| 国产精品高潮呻吟| 99精品久久久久久| 亚洲欧美日韩中文字幕一区二区三区| 成人sese在线| 综合欧美一区二区三区| 色婷婷久久一区二区三区麻豆| 中文字幕一区在线| 91麻豆国产自产在线观看| 亚洲一区免费观看| 91.xcao| 九色综合狠狠综合久久| 久久综合99re88久久爱| 成人综合婷婷国产精品久久免费| 亚洲国产精品精华液2区45| 不卡视频在线看| 亚洲精品写真福利| 欧美丰满美乳xxx高潮www| 久久精品国产秦先生| 久久久久成人黄色影片| 99久久综合99久久综合网站| 亚洲精品国产a久久久久久| 欧美日韩精品是欧美日韩精品| 日韩精品成人一区二区在线| 日韩免费成人网| 成人精品小蝌蚪| 天天综合色天天| 久久久精品影视| 日本高清成人免费播放| 午夜视频一区在线观看| 精品久久国产字幕高潮|