swapsex.3
来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 3 代码 · 共 206 行
3
206 行
.TH swapsex 3 RISC.SH Nameswap_word, swap_half, swap_filehdr, swap_aouthdr, swap_scnhdr, swap_hdr, swap_fd, swap_fi, swap_sym, swap_ext, swap_pd, swap_dn, swap_opt, swap_aux, swap_reloc, swap_ranlib \- swap the sex of the specified structure.SH Syntax.B "#include <sex.h>.br.B "#include <filehdr.h>.br.B "#include <aouthdr.h>.br.B "#include <scnhdr.h>.br.B "#include <sym.h>.br.B "#include <symconst.h>.br.B "#include <cmplrs/stsupport.h>.br.B "#include <reloc.h>.br.B "#include <ar.h>.PP.B "long swap_word(.I word.B ).br.B "long word;.PP.B "short swap_half(.I half.B ).br.B "short half;.PP.B "void swap_filehdr(.I pfilehdr, destsex.B ).br.B "FILHDR *pfilehdr;.br.B "long destsex;.PP.B "void swap_aouthdr(.I paouthdr, destsex.B ).br.B "AOUTHDR *paouthdr;.br.B "long destsex;.PP.B "void swap_scnhdr(.I pscnhdr, destsex.B ).br.B "SCNHDR *pscnhdr;.br.B "long destsex;.PP.B "void swap_hdr(.I phdr, destsex.B ).br.B "pHDRR phdr;.br.B "long destsex;.PP.B "void swap_fd(.I pfd, count, destsex.B ).br.B "pFDR pfd;.br.B "long count;.br.B "long destsex;.PP.B "void swap_fi(.I pfi, count, destsex.B ).br.B "pFIT pfi;.br.B "long count;.br.B "long destsex;.PP.B "void swap_sym(.I psym, count, destsex.B ).br.B "pSYMR psym;.br.B "long count;.br.B "long destsex;.PP.B "void swap_ext(.I pext, count, destsex.B ).br.B "pEXTR pext;.br.B "long count;.br.B "long destsex;.PP.B "void swap_pd(.I ppd, count, destsex.B ).br.B "pPDR ppd;.br.B "long count;.br.B "long destsex;.PP.B "void swap_dn(.I pdn, count, destsex.B ).br.B "pRNDXR pdn;.br.B "long count;.br.B "long destsex;.PP.B "void swap_opt(.I popt, count, destsex.B ).br.B "pOPTR popt;.br.B "long count;.br.B "long destsex;.PP.B "void swap_aux(.I paux, type, destsex.B ).br.B "pAUXU paux;.br.B "long type;.br.B "long destsex;.PP.B "void swap_reloc(.I preloc, count, destsex.B ).br.B "struct reloc *preloc;.br.B "long count;.br.B "long destsex;.PP.B "void swap_ranlib(.I pranlib, count, destsex.B ).br.B "struct ranlib *pranlib;.br.B "long count;.br.B "long destsex;.SH Description.PPAll .PN swapsexroutines that swap headers take a pointer to a header structure to change the byte's sex. The.I destsexargument lets the swapsex routines decide whether to swap bitfields beforeor after swapping the words in which they occur. If.I destsexequals the hostsex of the machine you are running on, the flip happensbefore the swap; otherwise, the flip happens after the swap.Althoughnot all routines swap structures containing bitfields, the destsex isrequired..PPThe.PN swap_auxroutine takes a pointer to an .I aux entry and a.IR type ,which is a ST_AUX_* constant in cmplrs/stsupport.h. The constant specifiesthe type of the aux entry to change the sex of.All other.PN swapsexroutines are passed a pointer to an array of structures and a.I countof structures to have the byte sex changed. The routines.PN swap_wordand.PN swap_halfare macros declared in.I sex.h.Only the include files that describe the structures being swappedhave to be included..SH See Alsogethostsex(3)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?