home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 3 / TheARMClub_PDCD3.iso / hensa / network / netlib_1 / NetLibSrc / s / getsockopt < prev    next >
Text File  |  1995-09-11  |  284b  |  20 lines

  1.         GET    hdr.Regs
  2.         GET    hdr.SocketSWIs
  3.  
  4.         AREA    |C$$code|,CODE,READONLY
  5.  
  6.         IMPORT    |__errno|
  7.  
  8.         EXPORT    getsockopt
  9. getsockopt
  10.         STMFD    sp!,{r4,lr}
  11.         LDR    r4,[sp,#8]
  12.         CallSWI    XSocket_Getsockopt
  13.         LDMVCFD    sp!,{r4,pc}^
  14.         LDR    r0,[r0]
  15.         StoreErrno r1, r2
  16.         MOV    r0,#-1
  17.         LDMFD    sp!,{r4,pc}^
  18.  
  19.         END
  20.