Server for Information Technologies

(095) 932-9212, 932-9213, 939-0783
E-mail: info@citforum.ru
(!) CIT Forum CD-ROM

SDGET(3)
XENIX System V (21 1987)


sdget, sdfree - pcoee ocoee paee cee ax

	#include <sys/sd.h>
	
	char *sdget (path, flags, size[, mode])
	char *path;
	int flags, mode;
	long size;
	
	int sdfree (addr)
	char *addr;


Sdget pcoee paee cee ax pocpacy ax eyeo poecca. Cee aaec ee path. Boee ec opeec apyeo flags, oop cpoc oec coee ceyx ao:

SD_RDONLY
pcoe cee oo e.

SD_WRITE
pcoe cee e ac.

SD_CREAT
Ec cee cyecye e coyec (eae), ece aeo coa ycoo ceea. ae cee coaec cooec c size mode. aee mode aae paa pyx poecco o e ac oo ceea. oyc y, peee o aa. pao oe ceea eo cca. oce coa cee apyec y.

SD_UNLOCK
Hecoo poecco oy e ocy ceey ey sdenter sdleave.

Sdfree ocoee paee cee ax o eyeo poecca. Cee aaec apeco pcoee addr. Ec ey poecc cea paee o sdenter, o e cea sdleave, epe ocoeee ceea aoaec oec sdleave.

Koa e ocaec oe poecco, pcoex a cee, coepoe ceea epecae cyecoa o poecc e oe pcoe cee e coa eo ocpeco sdget c ao SD_CREAT. B errno aocc o o EEXIST, ec poecc aec coa paee cee ax, oop ye cyecye coyec. B errno aocc o o ENOTNAM, ec poecc pee sdget ay, oop cyecye, o e ee paeex ax.

AEA
cooae aa SD_UNLOCK ee cc ccee c cooecye aapao oepo.

B cyae 286 poeccopa sdget pye oepa c paee ceea ax ceye pe oo oo oe a. popoa c ao cpee oe, aec cooa paeee cee ax, aaac a exay a. Aapaypa 286 poeccopa e ooe cyae ao oe peaoa paeee cee ax, peaaee oo e. Oao, ae cee peayc oo oe.

B cyae 386 poeccopa apecoe pocpaco 32-ooe paeee cee ax oy cooac e opae, cocex 286 poeccopy.

sdget aoaec yeae pay ceea ax, ycaaa ee cpay oce paeeoo ceea ax. o oecye a oceye o sbrk brk, oope ac occao pe pay. B acoc, oa occao pay, oopa a o oa sdget, po oe.

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

Bopaaeoe aee
B cyae yceoo aepe opaaec apec pcoeeoo ceea. ae opaaec aee -1 errno aocc o o. Oa EINVAL oaae, o poecc aec pcoe ye pcoee cee. Oa EEXIST oaae, o poecc aec coa cee, oop ye cyecye coyec. Oa ENOTNAM oaae, o poecc pee sdget ay, oop cyecye, o e ee paeex ax.

Apye mode oe pcycoa epo oe sdget.

.
sdenter(3), sdgetv(3), sbrk(2)

AEA
T apyea size unsigned epc 3.0 XENIX ca long XENIX System V. Xo cooae long size peye oa cxooo eca p o c oea System V, unsigned ye oppeo eppepoac po cce popaax, copoax c oea epc 3.0.
Comments: info@citmgu.ru
Designed by Andrey Novikov
Copyright © CIT