Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uflorida!ukma!rutgers!att!ulysses!sfsup!jbu From: jbu@sfsup.UUCP (+Urban J.) Newsgroups: comp.unix.questions Subject: Re: I can't find a good definition anywhere... Message-ID: <5266@sfsup.UUCP> Date: 11 May 89 17:13:24 GMT References: <1954@trantor.harris-atd.com> <10084@smoke.BRL.MIL> <1339@ncr-sd.SanDiego.NCR.COM> <10214@smoke.BRL.MIL> <849@mtxinu.UUCP> <2810@buengc.BU.EDU> <1989May10.162105.29871@utzoo.uucp> Reply-To: jbu@/guest2/jbuUUCP (xt1123-+Urban J.) Organization: AT&T Information Systems Lines: 14 In article <2810@buengc.BU.EDU> bph@buengc.bu.edu (Blair P. Houghton) writes: > What does a #pragma _do_, anyway? > I've only seen #pragma used the in following context: #pragma pack(n) This is used to create structs whose layout is compatible with other machines. On UNIX System V/386 Release 3.2 (The Merged UNIX/XENIX Product) the CSDS 4.1.5 uses this to make some structures compatible with 80286 chip layout. So that AT&T PC 6300+ UNIX Programs and XENIX 286 programs can all read the same structures in the correct order (as the 80386 creates/writes/reads 'em). Sincerely, John Ben Urban