早教吧作业答案频道 -->英语-->
lk.lwhence=SEEKSET;是什么意思?
题目详情
lk.l_whence=SEEK_SET;是什么意思?
▼优质解答
答案和解析
这是flock的l_whence域吧?它用来表示l_start的含义,如果l_whence=SEEK_SET,那么l_start就是从文件头开始计算的偏移值.
如果l_whence=SEEK_CUR,那么l_start表示从文件当前指针位置开始计算的偏移值,如果为SEEK_END,那么l_start为从文件尾向前移动的偏移值.
The l_whence, l_start, and l_len fields of this structure specify the
range of bytes we wish to lock. l_start is the starting offset for the
lock, and is interpreted relative to either: the start of the file (if
l_whence is SEEK_SET); the current file offset (if l_whence is
SEEK_CUR); or the end of the file (if l_whence is SEEK_END). In the
final two cases, l_start can be a negative number provided the offset
does not lie before the start of the file.
linux下可用man 2 fcntl看到这些内容.
如果l_whence=SEEK_CUR,那么l_start表示从文件当前指针位置开始计算的偏移值,如果为SEEK_END,那么l_start为从文件尾向前移动的偏移值.
The l_whence, l_start, and l_len fields of this structure specify the
range of bytes we wish to lock. l_start is the starting offset for the
lock, and is interpreted relative to either: the start of the file (if
l_whence is SEEK_SET); the current file offset (if l_whence is
SEEK_CUR); or the end of the file (if l_whence is SEEK_END). In the
final two cases, l_start can be a negative number provided the offset
does not lie before the start of the file.
linux下可用man 2 fcntl看到这些内容.
看了lk.lwhence=SEEK...的网友还看了以下:
●考查下列文法:G(V T,V N,E,P)其中:V T={+,*,(,),i}V N={E,T,F 2020-05-25 …
考查下列文法:C(VT,VN,E,P) 其中:VT={+,*,(,),i} VN={E,T,F} E 2020-05-26 …
考查文法:G(VT,VN,E,P) 其中,VT={+,*,(,),i},VN={E,T,F},E为开 2020-05-26 …
∮1dx/(x^2+y^2+z^2)ds,其中,曲线x=(e^t)sinty==(e^t)cost 2020-06-03 …
求极限的值limInx-1/x-e,x趋近于e我知道令x-e=t=limIn(e+t)-Ine/t 2020-06-17 …
令文法G[E]为:E→T|E+T|E-TT→F|T*F|T/FF→(E)|i证明E+T*F是它的一 2020-07-08 …
matlab求解二阶导数方程,四个方程四个未知量>>symst>>E=32;G=10.81;b=2 2020-07-19 …
这个微分方程怎么解!r(t)^2+3r(t)^1+2r(t)=e(t)^2+2e(t)^1+e(t 2020-07-23 …
已知向量a≠e,|e|=1,满足:任意t∈R.已知向量a不等于e,|e|=1,对任意t属于R,恒有 2020-07-25 …
已知(1+1/x)^x=e,e^x-1=x,limx→1(x+x^2+...+x^n-n)/(x-1 2020-10-31 …