Unix Man ( )



SDENTER(3)


SDENTER(3)
XENIX System V (21 1987)


sdenter, sdleave - cxpopye ocy paee ceea ax

#include <sys/sd.h>

int sdenter (addr, flags) char *addr; int flags;

int sdleave (addr) char *addr;


Sdenter coyec p oe eyeo poecca oy ocy coepoy paeeoo ceea ax. Apye addr pae ae, opaeoy pey oo . Boeoe ece opeeec apyeo flags, oop cpoc oeco coee ceyx ao:

SD_NOWAIT Ec pyo poecc ye cea o sdenter o ooe oy ceey ax, o e cea cooecy sdleave c ao SD_UNLOCK, poecc e e ocooe ceea cpyec oa ENAVAIL.

SD_WRITE aae, o poecc copaec ea ac paee cee ax. poecc, pcoe paee cee ax c ycaoe ao SD_RDONLY, e oe o sdenter c ao SD_WRITE.

Sdleave coyec yaa oo, o ey poecc ao oa coepoo paeeoo ceea ax.

Moa paeeoo ceea ax, ceae ey oa sdenter sdleave, oc oppeo oy ye py poecca. He peoeyec aoo oca cee o ece oa sdenter: a oo aepea eya paoa c ceeo, a sdleave. B acoc, e peoeyec ey sdenter sdleave o ccee o.

Ec cee coa e aa SD_UNLOCK, ey sdenter sdleave apee cce o fork.

Bopaaeoe aee


B cyae yceoo aepe opaaec aee 0. ae opaaec aee -1 errno aocc o o. Oa EINVAL oaae, o poecc a sdenter c ao SD_WRITE, a cee ye pcoee py poecco c ao SD_RDONLY. Oa ENAVAIL oaae, o sdenter yaa a SD_NOWAIT, a paee cee e cooe.

.


,

AEA


cpeca ce XENIX oy ocycoa pyx peaax UNIX. popa, coye y, o oooac c ao -lx.