Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
74 views23 pages

Calls

system calls

Uploaded by

Arslan Azhar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
74 views23 pages

Calls

system calls

Uploaded by

Arslan Azhar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 23
81242017 ‘System Calls (Solaris Transton Gulce) Documentation Home > Solaris Ts sion Guide > Appendix 8 System Calls Reference Tele > System Calls Solaris Transition Guide Previous: Using the Reference Table Next: Appendix Library Routines Reference Table System Calls Table Bt System Cals Reference Table: accept) tough saditevc() sunos ast | svio | svre | eso release Sr Status | Notes accept) @) s w}w fs fw accossy) @y- |S s}s|s |wn sy acct) @) c# | Thetotoning symode names are valid forthe acct stncure | ce | ce | c# | wn member a2 a3 (defned in )for SunOS Taloase 4 version, but at for Sun’ release 87, AB, SVD, and S¥R4 versions COMPAT , CORE , AXSIG Alo the accounting record {ormat dies beweon SunOS fleas 4 and Sun release Sy, SID, and SVRA versione aajtine() (2) s w}s fs |w async aaenon() | N wf tw dn @ avait @) N wtw fw fw svditon() @) N w}w fw fw avaitaven @) | oN w}w fw fw psi oracle comledlE19455-01/805-6331/6;5vagSanlindex mt 28 81242017 ‘System Calls (Solaris Transton Gulce) Table 8-2 System Calls Reference Table: bind () through bri) ‘SunOS release 4 System Call ‘SunOS release 5,7 Status bingy) (2) Now bing() (N} brk() (2) Table B Systom Calls Reference Table: chair () through crest () ‘sunos ast | svio | svee | aso release 87 Status | Notes s s|s s | on ‘chmod () c# | The folowing symbole access modas ( )are c# | c# | ce | on @y) ~ sysv supported by SunOS release 4 chmod) function but not by SunOS: release 5.7, ABI, SVID, or SVR& versions: '$.JREAD (90400), $_WRITE (00200), S_IEXEC (00100). However, the equivalent SunOS release 5.7, ABI, SVID, or SVRA symbolic access modes S_IRUSR (00400), §_IWUSR (00200) and _IXUSR (00100) have the same meanings. ‘chown () c | Inthe Sun0s release 4 version, the owner and group arguments of elec e | n ew ‘Shown ()_ are of type inl. In the SunOS release 5.7 sofware, ABI, SVID, and SVRS, owner's of type ud_t, and group Is of type gid In the SunOS release 4 version, if the final component of path is a symbolic lin, the ownership of the symbolic link was charged. inthe SunOS release 5.7 version, chown) changes the ownership ofthe file or directory refered to by tho symbolic lin, Use chown) (2}t0 change the ownership ofa symbolic nk chown () s s|s s | oN (ey) - sysv enroot () s s|s s | oN @ close) s s|s s | N ey) ~ sysv connect) | sé | Now connect() (3N). no fon | se [on @ psi oracle comledlE19455-01/805-6331/6;5vag6anlindex. hm! 2123 8124/2017 ‘System Calls (Solaris Transton Guide) ‘sunos release 57 Status Notes ast | svio svRs esp exeat() ew cH Inthe Sun0 release 4 software, the mode argument to cxeat () Is of type int, while In SunOS release 5,7, ABI, SVID, and SVR& versions, the mode argument i of type mode, Also, SunOS release 5.7, AB, SVID, and SVR4 versions mckice while the SunOS release 4 version does not. “The fllowing symbolic access modes ( )a supported by SunOS release 4 version of exeat () but release 5.7, ABI, SVID, or SVR versions: §_IREAD (00400), S_IWRITE (00200), S_IEXEC (00100). However, the equivalent SunOS release 6.7. ABI, SVID, and SVR4 symbolic access modes S.|RUSR (00400), S_IWUSR (00200), and S_IXUSR (00100) do have the same definions, ae defined in SunOS release 4 ) are supported by ihe SunOS release 4 version of creat() , butnot by ‘SunOS release 5.7, AI, SVID, or SVR& versions: S_IREAD (00400), S_IWRITE (00200), $_IEXEC (00100). However, the equivalent SunOS release 6.7, ABI, SVID, and SVR4 symbolic access modes S_IRUSR (00400), $ IWUSR (00200), and S_IXUSR (00100) do have the same definitions, are defined in SunOS release 4 , and thus should be used, The following errno flags are valid forthe SunOS release 4 version ofthis system call but are not valid in SunOS 5.7, AB, SVID, or SVR4 versions: £N«10, EOPNOTSUPP. Table B-4 System Calls Reference Table: dup) through dup2() ‘SunOS release 4 System Call | SunOS release 57 Status | Notes ABI svi up () QV) Sysv aup2() QV) ~ Sysv ‘SunOS release 4 System Call s Now dup2() (8¢) s “Table 8-5 System Calls Reference Table: execve() through exit () ‘SunOS release 6.7 Status Notes | aBi svré execve() @V)-Sysv exit @V)~Sysv “Table 8-5 System Calls Reference Table: fehdix() through £eruncate() hpsiidoes oracle comledlE19455-01/805-6331/6;5vagSanlindex hm! 3123 8124/2017 ‘System Calls (Solaris Transton Guide) ‘sunos ast | svi | sves | eso release Sun0S release | 57 4Systom Call | Status | Notes fondiz() s s|s s | N ey) ~ sysv fohmod () c | The folowing symbolic access modes ( <=yys/stat.n> )are cle e | N ey) =sysv ‘supported by the SunOS release 4 version of Schmod() , bunot by SunOS release 5.7, ABI, SVID. or SVR versions: § IREAD (00400), S_IWRITE (00200), $_IEXEC (00100). However, tho equivalant SunOS release 5.7, ABI, SVID. and SVRé symbolic acsess modes S_IRUSR (00400},'§_)WUSR (00200), and _IXUSR (00100) do have the same definiions, are defines in SunOS release 4 25> , 8nd thus should be Used, fenown() @ | s|s s | on Echroot () s n Jon n [on @ genti() QW) | CG _ | InSunOS release 4, the following lags are valid forthe F_se™ elec c | N sys ‘command: -0 APPEND , -0_SYNC , and -o_NDELAY ,and the ~ SYNC , -FNDELAY , and -FWBIO flags defined in ys/ti8.h> SunOS release 6.7, ABI, SVID, and SVR4 versions support only the 0 APPEND , ~ SYNC, -o NDELAY land -0_NONBLOCK flags, Thus, -o_SYNC™ should be Used in place of -FS¥NC , and -_NONBLOGK should be used in place of “ENDELAY ang -FNBIO. -0_NONBLOCK should also De used in )_NDELAY , whic is Being phased out. SunOS release 4 fang? se70n commands are not suppored in 52 5.7, ABI, SVID, or SVR versions. stock’) (2) N n Jon nos fork() (2) C | Inthe SunOS release 4 sofware, fork() retumsavalueottype | ¢ | Cc e | N int In SunOS release 6.7, ABI, SVID, and SVR4 versions, fo=% () returns a value of type pid_t Also, SunOS release 5.7, ABI, SVID, or SVR4 versions inchide csr otc.> and wile the SunOS release 4 version does nat corey) @)- |S s|s s | on “Sy fpatheont() | s|s s | N ey) ~sysv psi oracle comledlE19455-01/805-6331/6;5vagSanlindex hm! 4123 8124/2017 ‘System Calls (Solaris Transton Guide) ‘sunos ast | svi | sves | aso release SunOS release | 57 4Systom Call | Status | Notes foray ay | Ss s|s s | N = Sys Estates() A | Tho seeatven() (2) system call provides equivalent tunctnatiy. | A | A | A @ geyne() (@) s s|s s |n ftruncate() | S| Now ¢eruncate() (80) n Jon s | on @ Table 8-7 System Calls Reference Table: getauia() through getutst) ssunos ast | svi | sve« | asp Sun0Srelease4 | 5, System Call Status | Notes getauia’) @) N n Jon n [on getdents() (2) s n Jon s | oN getdirentries() | A | The getdenta() (2) system call provides equivalent n fon nfo 2 ‘uneionaiy, getdomainnane() | A — | The eysinéo() (2) system call provides equivalent n Jon n [on @ functionality, getatablesize() | A | Now getdtablesize() (86). The getrlimit() 2) alalals @ system call wth the resource argument set to LIMIT _NOPTLE provides similar functonalty getegia() c | inthe Sunos release 4 software, getegia() retumsavaue | c | c ec | n ype int. In SunOS release 6.7, ABI, SVID, and SVR4 versions, getegid() retums.a value of ype ad_t Also, ‘SunOS release 5.7, ABI, SVID, or SVR4 versions include Suristd.h> and while the SunOS release 4 version does not. hpsiidos oracle comledlE19455-01/805-6331/6;5vagSanlindex hm! 5123 8124/2017 ‘System Calls (Solaris Transton Guide) ssunos ast | svi | sves | aso Sun0Sreleases | 5.7 System Call Status | Notes getesiay @- | Ss s|s s | N Sys geteuia() (2) | Inthe Suns release 4 software, geteuia() rotunsavalue | C ce | Nn cof fype it, In SunOS release 5.7, ABI, SVID, and SVR4 Versions, geeeusa() retums a value of ype uid_t Also, ‘SunOS release 5.7, ABI, SVID, and SVRS versions include cunseta.n> and <2ye, => while the SunOS release 4 version does not geteuiay @- | s|s s |n sys setsiayy © | inthe Sunos release 4 software, getgia() rotumsavaue | c | c e | N of type int. In SunOS release 5.7, ABI, SVID, and SVR& versions, geegia()_retums a value of ype gid_t Also, ‘SunOS release 5.7, ABI, SVID, and SVR& versions include Sunistd.h® and while the SunOS. 44 version dove nat getsia(y @V)~ s s|s s | oN sys getgroups() (2M) | C _| Inthe SunOS roloase 4 sofware, the gidset argument to cle e | N ‘getgroups () 18 of ype int, while in SunOS release 5.7, ABI, SUID, and SVRA versions, the grouplist argument is of ype gid_tAlbo, SunOS release 5.7, ABI, SVID, and SVRS versions inelude and and while the SunOS release 4 version does not setesp) @- | Ss s|s s | on SV setpiayy QM) © | inthe SunoS release 4 software, getpia() rotumsavaue | c | ¢ e | Nn of typo in. SunOS release 5.7, AB, SVID, and SVR4, getpid() retums a value of type pid. Also, SunOS release 5,7, ABI, SVID, and SVR versions inclide and while the SunOS release 4 version does rot. setpiay QM) s s|s s |N Sys setppia() @Y) c | inthe suns release 4 software, getppia() retumsavaue | c | ce | n of type int. SunOS release 5.7, ABI, SVID, and SVR4, ‘Getppid() returns a value of ype pié_t Also, SunOS release 57, ABI, SVID, and SVR4 versions include and while the SunOS release 4 version does not. hpsiides oracle comledlE19455-01/805-6331/6;5vag6anlindex hm! 8124/2017 ‘System Calls (Solaris Transton Guide) ssunos ast | svi | sves | aso Sun0Sreleases | 5.7 System Call Status | Notes setppiay) @- | Ss s|s s | N sys getpriority() A | Now getpriorsty() (SC). The pricenti() (2)system | A | A | A 2 call provides similar unctionalty geteiimit() (2) © | insunosratoase 4, sic¥=7 a55 isa supported resource | c | e | n (to maximum sizo, in bytes, to which a process's residont sot ize may grow) which isnot supported in SunOS release 57, ABI, SVID. and SVR4 versions, SunOS release 5.7, ABI, SVID, ‘and SVR4 versions addionally suppor the = 282" resource, the maximum amount of a process's address space that is defined (in bytes). Also, SunOS reloase 5.7, ABI, SVD, and SVR4 versions of rim "our (curent soft limit) and max (hard limit) eld inthe stuclure are nt rather than int serusage() (2) A | Now getseaget) (80). non n [oc getsocknane () st | The errno value ENOBUFS used by the SunOS release 4 vn ]on | st on @ geteocknane ()_ system call has been changed to ENOSR in the SVR¢ and SunOS release 5.7 version, getsockopt() (2 | S| Now gatsockopt() (3N). n Jon s | N gottinactaay () 8 | Now gettimeotday() (30), n Jos s @ setesayy QV) ¢ | inthe Suns release 4 software, getusa() retumsavaue | c | c ce | N of type int. SunOS release 5.7, ABI, SVID, and SVR4 getuid() retums a valve of type vid_L Also, SunOS release 5.7, ABI, SVID, and SVR4 versions include and “sys/typos ho while the SunOS release 4 version dows rt getid(y @V)— s s|s s | on sys “Table 8-8 System Calls Reference Table: soct() ‘SunOS release 4 System Call | SunOS release 5.7 Status | Notes asi | svio | svee | asp hpsiidos oracle comledlE19455-01/805-6331/6;5vagSanlindex hm! 8123 8124/2017 ‘System Calls (Solaris Transton Guide) sect) @) c Ses racctis Rewestes | c | c c N “Table 8-9 System Calls Reference Table: i22()_ through Kites) ‘sunos ‘sunos ast | svi | sves | asp release 4 | release System 7 call Status | Notes many) © | Inthe Sun0s release 4 softwar, ta sigal is sont toa group of cle e | Nn ew processes (as wth pid s 0 or negative), andi he process sending the Signal is a member ofthat group, the signal isnot sent tothe sending process as wel, In SunOS release 5,7, ABI, SVID, and SVR& versions, the signals sent tothe sencing process as well. In the SunOS release 4 software, the pid argument sof typ it ile in the SunOS release 6.7 ‘ABI, SVID, ard SVR versions, ths pid argument is of type pid. Also, ‘SunOS release 5 7, ABI, SVID, and SVRS versions include yay types-h> while the SunOS release 4 version does nat xy) s s|s s | oN (yy ~ Sysv xittpg) | A — | Now xit3pg() (8). The ki22() (2) system cal provides similar atalals @ functionalty. Replace ittpg() ( perp, sig) with witL() (-perp, sig) Table B-10 Systom Calls Reforonce Table: 1ink() through Istat() ‘Sunos ‘sunos ast | svio | sves | aso release 4 | release System 7 call Status | Notes Link ce In the SunOS release 57, ABI, SVID, and SVR4 version of Link () elec ce | N (vy - Sysv ifthe last component of the frst argument isa symbolic nk, twill not be follawea and a hard link will be made to the symbolic Ink Listen() S| Now aston) (ND. n Jon s | oN @ Rseek() s s|s s | on ev) sysv aetatoy s s|s s | oN avy sya “able B11 System Calls Reference Table: ct ()_ through sunnap () hpsiidos oracle comledlE19455-01/805-6331/6;5vagSanlindex hm! 9123 8124/2017 ‘System Calls (Solaris Transton Guide) ‘sunos ast | svi | sves | eso release 57 Status | Notes ctl) (2) ‘A | The mencnts() (2) system call provides similar functionalty, alalals incore() CC | Inthe Sun0s release 4 sofware, argument nis of ype int. whiten | NON e | N @ 'SVR¢ and SunOS release 5.7 versions, argument en is of type sz0_t \Which is defined to be unsigned int. The SunOS release 5.7 version falso requites Inclusion of mkdir) © | InSunos release 4, the mode argument is of type int, while insunos | © | c e | nN ow release 5.7, ABI, SVID, and SVR4, the mode argument is of ype mode_{. Also, SunOS release 8.7, ABI, SVID, and SVRé versions Inelde and cays/staz.n> whe the SunOS. release 4 version does not ‘The following symbole access modes ( ) are ‘supported by the SunOS release 4 version of mkai() . but not by SunOS release 5.7, ABI, SVID, and SVRé versions: §_IREAD (00400), $_WITE (00200), §_IEXEC (00100). However, the ‘equivalent SunOS release 5.7, AB, SVID, and SVR¢ symbolic accoss modes S_IRUSR (00400), §_iWUSR (00200), and S_IXUSR (00100) do have the same defintons, ae defined in SunOS release 4 Seys/svae.h> , and thus should be used kdie() C | Thetoilowing symbotc access modes ( )are elec e | n (av) - sysv ‘supported by the SunOS release 4 version of mkdi() , but nat by ‘SunOS release 5.7, ABI, SVID, and SVR4 versions: S_IREAD (00400), 'S_IWRITE (00200), §_IEXEC (00100), However, the equivalent ‘SunOS release 5.7, AB, SVID, and SVR¢ symbolic access modes 'S-IRUSR (00400), 5_IWUSR (00200), and S.IKUSR (00100) do have the same definitions are defined in SunOS ralease 4 Sys/seav.n> ,and thas should be used: mkeieo() | Now axestor) (8¢), s|s s | on av) = sev knod() C | Tho mode argument to mknod() is oftypeintin the SunOS release | c | ¢ e | N ey) ~ sys 4 software and of type mode_t in SunOS release 57, ABI, SVID, and 'SVR& versions. The dev argimentis of type int in the SunOS release 4 software and of lype dev_tin the SunOS release 5.7, ABI, SVID, or SSVR4 versions. The folowing symbolic access modes (Ccays/2tat.n> )are supported by the SunOS release 4 version of ‘mknod()_, But nat by SunOS release 5.7, ABI, SVID, and SVR4 versions: S"IREAD (00400), §_IWRITE (00200), S_IEXEC (00100) However, the equivalent symbolic access modes 5_IRUSR (00400), 'S_IWUSR (00200), and S-IXUSR (00100) da have the same dafitions are defined in SunOS release 4 and thus should be used. eap() (2) C | Inthe Sunds rolease 4 sofware, ~anap flag option valueincudes | ¢ | © e | N MAP_TYPE, defined in a. n> , which snot defines in SunOS release 57, ABI, SVID, and SVRA. hpsiidos oracle comledlE19455-01/805-6331/6;5vagSanlindex hm! 1023 8124/2017 ‘System Calls (Solaris Transton Guide) ‘sunos ast | svi | sves | eso release 57 Status | Notes wount() @) | C# | The SunOS release 4 version of mount() andthe SunOS release | c# | ce | c# | N 5.7, orthe ABI, SVID, or SVRA version of mount () are incompatible in a numberof respects. The frst argument in the SunOS release 4 version, tye, i the fle system type name, while in SunOS release 5,7, ABl, SVID, and SVRé versions, the fist argument, sis tre name ofthe fo systom. In SunOS release 8.7, ABI, SVID, and SVR¢ ‘versions, the file system type name, fstype, the fourth argument to ‘mount () , The SUNOS release 4 version uses a single parameter (Cossar +” data, the fourth argument) to pass type-spectic arguments, while the SunOS release 57, ABI, SVID, ang SVR4 Version uses two parameters (ve and six const char “dataptand int datalen). Also, SunOS release 57, ABI, SVID, and SVRA versions inelide Belore while the ‘SunOS release 4 version does not, The SunOS release 4 version of “ays/noune .n> defines symbalic constants forthe mowne () flags argument ( that are not defined in SunOS release 5.7, o¢ the ABI, SVID, or SVRA Seys/mount n> . Instead, replace. SDON1 with M5. RDONLY senosu=> with wS_NOSCT> and yCRFMOONT with Snevotw? . The H_NENTYSE flag is specific to the SunOS release 4 version of mount (). and no replacements required for ‘SunOS release 5.7, A, SVID, oF SVR& versions. The ‘unctionality of ‘he folowing flags, defined in , isnot supported by the SunOS release 5.7, or the ABI, SVID, or SVR versions: VENOSUB , M_GRP=D, M_MOCT: . SunOS release 4 mount () 480s the folowing errno values, which are not returned by the SunOS release 5.7, o¢ tne ABI, SVID, of SVR& Version: ENODEV, EACCES, ENFILE, ENOwE. mprotect() | s. s|s s | oN @ resto s s|s |s |n eee 8 s|s|s |n oer 8 s|s|s |n ayereeo s s|s|s |n neynot) @) |S se | se | os | on hpsiidos oracle comledlE19455-01/805-6331/6;5vagSanlindex hm! wes 8124/2017 ‘System Calls (Solaris Transton Guide) ‘sunos ast | svi | sves | aso release 57 Status | Notes munnap() s s|s s | N @ Tab nésavel) ‘SunOS release 4 SunOS release 5.7 ast | svi | sves | sso System Call Status Notes atesve() (2) A This interface is replaced in SunOS release | N | N. n [oN 5.7 by the nfssys() (N85 SVC ,..); routine Table B13 Systom Calls Reference Table: open )_tWvough open () — SysV sunos | suns ast | svio | svre | esp release 4 | release system | 5.7 call Status | Notes open) | cH .2()_ 8 of ype int in the SunOS release 4 c# | c# | ce | oN ey in SunOS release 5.7, ABI, SVID, and SVR @ sofware, i the path argument is an empty string, the Kernel maps this empty pathname tothe curent directory. In ‘SunOS release 5.7. ABI, SVID, and SVRé versione, path pains to an fempy sting an error results. I the SunOS roloase & sorware, the O_NDELAY of © NOWSLOCK flag's set on a call to open, only the ‘open() call iselfis effected, In SunOS release 5.7, ABI, SVID, and SVR4 versions, ifthe 9_NOSzAY or 9 sowDLceK flag is set on @ allo ‘open. the corresponding flags set or that file descrptor and subsequent reads and wrtes to that descriptor wil not block, ‘Also, SunOS release 5.7, ABI, SVID, ang SVR4 versions include and ‘ while the SunOS release 4 version does nat The following errno value Is vald for the SunOS 4.1 version of ths system call but isnot returned in SunOS release 5.7, ABI, SSVID, and SRA versions: EOPNOTSUPP. copent) | st | The folowing errno values vai for tne SunOS release 4 version ofthis | s# | se | s# | N @v)- system call ut isnot returmed in SunOS release 57. ABI, SVID, and SVR4 Sys versions: EOPNOTSUPP, Table B14 System Calls Reference Table: pathcont() though putaes() ‘sunos ast} svi | sves | asp ‘sunos release release 4 57 Systom Call | Status | Notes psi oracle comledlE19455-01/805-6331/6;5vagSanlindex hm! 1223 8124/2017 ‘System Calls (Solaris Transton Guide) pathoons() ey) - sysv. piped) QV) ~sysv poll) (2) profil) @ ptrace() ‘The optional acdr2 argument o the SunOS release 4 software 2 pptrace()_ system call is not supported by the SunOS release 6.7 routine. The request argument io pezace() is oflype enum ptracerss Inthe SunOS release 4 software and of type int inthe ‘SunOS release 5.7 version. ‘The pid argument to peeace()_isoftype intin the SunOS release & ‘software and of type pid_tin theSunOS release 5.7 version. Also, the SunOS release 8.7 version includes while SunOS release 4 version inchdes <2: gnal.s ‘ and ‘The following err fags vais forthe SunOS release 4 version of this systom cal, but snot valid inthe SunOS release 5.7 version: ‘See? picace (1 Request Values" for information on valid request values. “Table B15 System Calls Ret ‘SunOS release 4 ast | svi | sve« | aso System Call Notes quotact.() (2) A The g_ouOTACTE Leet () system eal alalaldn provides similar functionality, nce Table: read) through zndiz() System Call read’) @V) “The following erro Nags are valid forthe SunOS release 4 version of this systom call put are not valid in SunOS release 5.7, ABI, SVID, and 'SVR4 versions: EISDIR, EWOULDBLOCK hpsiidos oracle comledlE19455-01/805-6331/6;5vagSanlindex hm! 1323 8124/2017 ‘System Calls (Solaris Transton Guide) ‘sunos ast | svi | sves | aso release 57 Status | Notes zead() (2) | C# | Thonbyte argumentto read) Isoftype intinthe SunOS rwlease4 | ce | ce | c# | N =5y8V Sofware and of type unsigned in the SunOS release 5.7 version, ‘The SunOS release 5.7 read) system call does not support BSD 4.2 style non-blocking VO (with the FroNE~9 doct3 () request or facallto Sent () (2V)using the FICELAY fag fram 1o/f2ie-h> ofthe © NOELAY flagifom inthe 4.28SD environment) as does the SunOS release 4 read) route. ‘The following ero fags are vali forthe SunOS release 4 version of this system cal, but are not valid in the SunOS release 5.7 version: sesaiisk() |S s|s s | oN @ zeadv() c# | The folowing errne flags are valid for the SunOS release 4 versionot | c# | ce | ce | N ew this system call but are not valdin SunOS release 5.7, ABI, SVID, and SSVR¢ versions: EISOIR, ENOULDBLOCK. zeadv() c# | sun0s release 4 and SunOS release 5.7, or the SVID or SVRA c# | c# | ce | oN ey) sysv “ove. sictures (defined in .5> ) differ slight, The ‘SunOS release 4 over iov len feldis defined as integer, while SunOS reloase 57 oF he SVID or SVR4 oven is defined as Unsigned, SunOS release 5.70” the SVID oF SVRS readv() system call does not support BSO 4.2 style non-blocking VO, reboot () A | Now reboot’) (8C).The vadnin() (2) system call provides n fon n [os @ ‘similar functionality zecv() (2) ss | Now seev() (aN), n Jon s | on zecvéroa() | S| Now cecvérom() (Nl. n Jon s | on @ zecvasg() S| Now recvmeg() (3N). n Jon s | oN @ zenane() s# | The SunOS release 5:7, Al, SVID, and SVR¢ versions include se | se | st | on ey)= sysv while the SunOS release 4 version does not. The {allowing errno flag is vald forthe SunOS release 4 version of his ‘systom call but is rot valid in SunOS release 5.7, ABI, SVID, and SSVRé versions: ENOTEMPTY . SunOS release 5.7, ABI, SVID, ang SSVRé versions sel errno to flag EEXIST instoad hpsiidos oracle comledlE19455-01/805-6331/6;5vagSanlindex hm! 142s 8124/2017 ‘System Calls (Solaris Transton Guide) ‘sunos ast | svi | sves | eso release 57 u | status | Notes zedir() st | Tho sin0S rlease 5.7. AB, SUID, and SVR& versions Irlude se | s# | se | oN ey) ~sysv ssista.i> while tho SunOS release 4 vorsion doos not. Tho following errno fags val or the SunOS release & version of his ‘system call but is ro: valid in SunOS release 57, ABI, SVID, and SSVRé versions: ENOTEM®TY, SunOS release 5.7, ABI, SVID, and SVR& versions set errno to flag EEXIST instoad Table B-17 System Calls Reference Table: sbck() through syscont () ssunos ast | svi | sves | aso release 57 Status | Notes sbek() (2) s vn Ju }os [on sstect() @ s | Now sersce0 6) wn Ju |os |n soncti() @) s s|s|s |n seaget() (2) s s|s|s |n senop() @) s s|s|s |n snd) (2) st | Now sena() (3). n fon | se [on The following errno flag is vad for SunOS release 4 send) (2) system calls buts not vali in the SVR4 and SunOS release 5.7: ENOBUFS. sendnsg() (2) st | Now sendmag() (3N) n fon |ose on ‘Tne following errno fags valid for SunOS release 4 sendneg() (2) system cals but isnot valid in the SVR and ‘SunOS release 6.7: ENOBUFS, andtot) (2) st | Now sendto() (3N) n Jon | se [on The following errno flag is valid for SunOS release & sendto() (2) system calls but isnot valdin the SVR& and ‘SunOS release 5.7: ENOBUFS. setavait( (2) N n fon n [on psi oracle comledlE19455-01/805-6331/6;5vag6anlindex him! 1523 8124/2017 ‘System Calls (Solaris Transton Guide) sunos ast | svn | svee | asp Sun0S releases | 57 System Call Status | Notes eauid’) @) N oe setdomainnane() | A | The sysinto() (2)system callprovides simirfuncionaity, | N | nN | oN | oN @ setgrovps() QM) | | Inthe SunOS release 4 sofware, the gicsetargumentisoftype | ¢ | c | c | N int while n SunOS ralease 5.7, AB, SVID. and SVR versions, the groupist argument iso type git Also, SunOS release 5,7, Bl, SVID, and SVRA versions ice and sya/types n> whe the SunOS release 4 version does rot setgroups() @M) | s s|s |s |n ~sysv setnostnane () A | Now setnosenane() (80). The aysintoc) @sytem | N | N | N | 8 @ cal withthe command argument setto si ost sostuai provides similar funcional. setitinery @ | s n]|s [os |n setpsiay @M- |S s|s|s |n sp setporp() @) © | Tmesunos release version of setparp() hasarguments | cx | ce | c# | id and por. and. setpgzp ()_ sets the process group to pare OF he process indicated by pc. The SunOS release 87 version of setegsp (doesnot Scoept an argument and setpgee ()_ also creates a nw session However, arp is zo and pid refers tothe caling process, then SunOS release 4 setpgzp() calls dontcal toa SunOS ralase 87 "etPg=p (cal wth no arguments. Also, SunOS release 4 Setpazp () retusa value of type int, while SunOS release 5:7, setpgep() relums a valu of ype pid. The SunOS roleas0 5,7 vorsion incluges while the SunOS release 4 version does rot ‘The following errno flags ae vals for SunOS release 4 setpgzp()_ selon cal but are no valid in SunOS release 5:7, ABI, SVID, and SVRA versions: EACCES,EIRVAL, ESRCH tpacet) @V— | 8 | The folowing ereno lags are vais for SunOS release 4 s|s|s |n sy setpgzp0) QV) syst call buts pot vad Sun release 5.7, ABI, SVID, and SVR versions: FACCES, EIRVAL, ESRCH, psi oracle comledlE19455-01/805-6331/6;5vagSanlindex hm! 1623 8124/2017 ‘System Calls (Solaris Transton Guide) ssunos ast | svi | sves | aso Sun0Sreleases | 5.7 System Call Status | Notes setpriozity() A | Now setpriozity() (8C).The pricenti() @aystem | A | a | a | s @ call provides similar functionalty setresig() (2) 8 | Now setregiat) (8C). non n [oc setreuia() @) s | Now setreuian) (2). n Jon n |c seteLimie() (2) | Now seterimie”) (8). elec e | N estat) s s|s s | on sys setsockopt() (2) | S| Now satsockopt() (Nl. n Jon s | oN settimeosday () s | Now settimectiay() (2C). n Jos s |s @ setuseraudit() N n fon n [on @ eset) @) s | Now xde_simpie() (3h). n Jos s | on enmat() (2) s s|s s | oN shncti() @2) s s|s s | oN saedt() (2) s s|s s | on snaget() @) s s|s s | on shutdown() (2) s | Now shutdown’) (3M). n Jon s | on hpsiides oracle comledlE19455-01/805-6331/6;5vag6anlindex hm! 1723 8124/2017 ‘System Calls (Solaris Transton Guide) ‘sunos ast | svi | sves | eso Sun0Sreleases | 5.7 System Call Status | Notes sigaction(2) © | There isa fag in the Solaris 7 version, sa_s5S7AR= , that nc e | s allows a function thats interrupted by the execution ofthis Signats hanalr to be transparertly restartad by the systam. sigbleck() @) A jenask() (2) system callwith the howargument | A | A | A | Ss sello S16 LOCK provides similar functionally. signask() (2) A | The sigseteps() (8¢) routines provide simitarfunctonaity. | A | a | a | s sigpausec) (2- | $s | TheSunOSrelease4 sigpause() systemcallassignsits | c | © s |s -sysV argument (sigmask) to the set of masked signals while the ABI land SVID versions of sigpause (). remove fis argument (si) {fom the caling process's signal mask. The SVR4 and SunOS Felease 57 sigpause() Is compatble with SunOS release 4 gpavse() (2) sigpending() s s|s s | oN ev) sys sigprocmask() s s|s s | on ev) = Sysv sigeetmask() (2) | A | The sigproemasi() (2)routine with thehowargumentset | A | A | a | Ss to S1G_SE=NASK provides similar functonalty. sigstack() (2) A | Now sigetack() (80). The sigattstack() (system | A | A | A | s call provides similar functionalty. sigsuspend() s s|s s | on (ev) Sysv aigveet) @) A | The sigaction() (2) system call provides similar alalals functionality, socket () @) c# | Now sockee() (SN) n fon | oc [on The SunOS release 4 PF Pex is @ supported domain hile in SVR and SunOS release 5.7 sofware 22 suo72N is nol supported. The following errno flags are valid forthe SunOS release 4 socket ()” system call but are not vald in the SVR4 and SunOS release 5.7 version: ENDBUFS, EPROTOTYPE. hpsiidoes oracle comledlE19455-01/805-6331/6;5vagSanlindex hm! 1823 8124/2017 ‘System Calls (Solaris Transton Guide) ‘SunOS release 4 System Call 57 Status socketpair() (2) Now socketpair() (3M) spat (2) Now xdx_simpie() (3N) stati) GV) syv states’) @) The statves() (2) system call provides similar functionally svapon() @) The ewapetl ()_ (2) system call provides similar functionally symlink() (2) syscall () 2) ‘SunOS release 4 System Call Now syscen€() (86), ble: tei () though exuncate() SunOS release 5,7 Status eel () @V)-Syev exuncate() (2) Now trencate() (30) Table 8-19 Systom Cals Reference Table:_umask ()_ through _utines () ‘sunos ‘sunos release released | 5.7 System Call | Status | Notes AB svio | sve« | ssp hpsiidcs oracle comledlE19455-01/805-6331/6;5vag6anlindex hm! 1923 8124/2017 ‘System Calls (Solaris Transton Guide) yasek() “The following symbolic access modes ( are ev) - Sysv supported by the SunOS reloase 4 version of usask() , but not by ‘SunOS roloase 5.7, ABI, SVID, and SVRé versions: S_IREAD (00400), S_IWRITE (00200), S_IEXEC (00100). However, the equivalent SunOS release 5.7, ABI, SVID, and SVR4 symiboic access modes, S_IRUSR (00400), S IWUSR (00200), and S_IXUSR (00100) do have the same definitions, ae defined in SunOS release 4 < and thus should be used wunount () ey) -sysv yntink() avy sysv sunnount() ‘The umount () (2) system call provides similar functionality. @ “Table 8.20 System Calls Ref ice Table:_vadvize()_ through vaangup () ‘SunOS release 4 System Call ‘SunOS release 6.7 Status vadvice() @) veork() (2) vhangup() @) Table 8.21 Systom Calls Reference Table:_wait()_thvough NTERMSIG() ‘sunos release Sun0S releases | 57 System Call Status hpsiidcs oracle comledlE19455-01/805-6331/6;5vag6anlindex hm! 20123 8124/2017 ‘System Calls (Solaris Transton Guide) waity QV) In SunOS release 4, watt () retums a value of type int. In ‘SunOS release 5.7, AB, SVID. and SVR4, waie() rolunsa value of ype pid_t Also, SunOS release 5.7, ABI, SVID, and 'SVR¢ versions Include ==ya/zyoe=.> while the SunOS release 4 version dass not. The unton walt, supported in SunOS ase 4 for backwards compatibility with previous SunOS ‘loases, isnot supported in SunOS release 5.7, AB, SVID, and ‘SVR versions. In SunOS release 4, wait() is automaticaly rostatad whon a process receives a signal while awaiting termination, unless the sv IN 7ERSUPT_bitis satin the Nags for that signal. In SunOS release 5.7, AB, SVID, and SVR&, the wait (). system call returns prematurely fa signal is received. watey @y)~ sys ‘Tho union wait, supported inthe SunOS release 4 softwarefor backwards compatbily isnot supported in SunOS release 5.7, ‘ABI, SVID, and SVR4 versions. The SunOS release 4, wai () {2V) 's automatically restarted wnen a process receives a signal ‘while avating termination unless the. iv"==n=7 Baie setin the fags for thal signal. In the SunOS release 57, ABI, SVID, and ‘SVR4 versions, the wait) (2) function wil retum prematurely a signal is received. waits() @V) Now wait3() (86). The wait() (Q)and waitpid) (2) system calls provide similar functionality. waited) @V) Now waies() (86). The wait() (2)and waiepsa() 2) systom calls provide similar funcional watepiay) QV) ‘SunOS release 4 wattpiad() rotums a value of type int. In te ‘SunOS release 5.7, AB, SVID, and SVR versions, wasp) retums a value of type pit. The pld argument to waitpia() Is ‘of fype int inthe SunOS release 4 sofware and of ype pict in the ‘SunOS release 5.7, AB, SVID, and SVR4 versions, Als, the ‘SunOS release 5:7, ABI, SVID. and SVR4 versions include Sys/sypae.2> while the SunOS release 4 version does not The union walt, supported in the SunOS release 4 software for backwards compatiilty is not supported in SunOS release 5,7, ABI, SVID, and SVR4 versions. The SunOS release 4 aitpid{)_ Is automaticaly restarted when a process receives signal while awaiting termination unless the Sv_tNT=RRUe> bit 's sot inthe flags for that signal. n SunOS release 6.7, AB, SID, and SVR4 versions, he waitpid) system call returns prematurely if signals received wattpiay) QV) ~sysv ‘The union wait, supported in the SunOS release 4 software for backwards compatily isnot supported in SunOS release 5.7, ABI, SVID, and SVRé Versions. The SunOS release 4 waltpid() (2V) is automaticaly restarted when a process receives a signal while awaiting termination unless the Si/_13V2ERS biti set inthe flags for that signal. In SunOS release 5.7. ABI, SVIO, and SVRé versions, the wa tpia() (2) functon will return prematurely ia signal is received wexrzstarus () @ ‘The union walt, supported inthe SunOS release 4 software for backwards compatbilly, is not supported in tho SVR4 and SunOS foloase 5.7 version. hpsiidcs oracle comledlE19455-01/805-6331/6;5vagSanlindex hm! 21128 8124/2017 ‘System Calls (Solaris Transton Guide) wrrExrreD () CC —_| The union wait, supported inthe SunOS release 4 software for @ backwards compatbiiy, is not supported in the SVR4 and SunOS felease 57 version. wreszonazz() | | The union wait. supported in the SunOS release 4 software for @ backwards compatiily, snot supported in the SVR4 and SunOS roloase 5.7 vorsion. wrrSTOPPED() c _| The union wait, supported in the SunOS release 4 software for e backwards compatiilty isnot supported in the SVR4 and SunOS release 57 versions. write”) (2) c# | Inthe SunOS release 4 software the object thatthe descriptor refers fois marced for non-blocking V0, using the "0 roquestto tect () ,orusing Zenti () toset the fof © NosLAY flag, write() relums -1 and sets errnoto EWOULOBLOCK. Inthe SunOS release 5.7 sofware, on write () toa regular file,f 0 NORTAY oF 6 NOW OCK iesel, weite() retums -2 and eots errno to EXGALN On weite() requests oa pipe or FIFO with o ons: Of O_NDSLAY set, weite() does not block the process. If ‘some data can be writen without blocking the process, write.) Uwrites what ican and tums the number of bytes writen; fathers, when o-NohDLLOC ie se, i retume -1 and sats errno to EAGAIN and when © NOSLAY ig set i relums @ With o DELAY sel, weite() requests for { 2175 SUE )or fewer bytes either succeed completely and return nbytes,orretumn @.A write() request for greatr than {2122 50F }bytes ‘ther transfers what it ean and returns the numberof bytes ‘writen, o transfers no data and return @, Also, request is Greater than { 7122 _suP ) bytes and all data previously wil to tho pipe has boon road, write) transis atleast (eree BUF ) bytes. The SunOS release 5:7 write () routine does not suppor 4.2 BSD siyle non-blocking UO. The following errno fag is valid forthe SunOS release 4 version ofthis systor cal uti not valid in the SunOS release 5.7 Version: EWOULDBLOCK. weiter) (@v)~ | c# | The SunOS release 5.7, AB SVID, and SVR¢ versions of sys vwrite() does not support 42 BSD siyle non-blocking YO. The following ereno flag is valid forthe SunOS release 4 version of his system call ut isnot valid n SunOS release 5.7, ABI, SVID, ana ‘SVR4 versions: EHOULDBLOCK. weiter, 2M) | c# | SunOS release 5.7, ABI, SVID, and SVRA versions of wei tev () does net support 4.2 BSD style non-blocking VO. The folowing lerrno flag is valié for the SunOS release 4 version of ths systom tal but snot valid in the SunOS release 5.7, o the ABI, SVID, oF ‘SRS version: EwOULOBLOCK psi oracle comledlE19455-01/805-6331/6;5vagSanlindex hm! 8124/2017 ‘System Calls (Solaris Transton Guide) wsrorsrc() 2) | | The union wait, supported in the SunOS release 4 software for n]on ec | s backwards compatbiiy is not supported in the SVR4 and SunOS release 57 versions. wremusre() 2) | C —_ | The union wait. supported in the SunOS release 4 software for x ]on e | s backwards compatiily, snot supported in the SVR4 and SunOS roloase 5.7 vorsions. Next: Appendix C Library Routin ©2010, Oracle Corporation andlor its aatos hpsiides oracle comledlE19455-01/805-6331/6;5vagSanlindex hm! Reference Table 23123

You might also like