Numbers for filesys.e for SunOS or any OS?

new topic     » topic index » view thread      » older message » newer message

How do I calculate the correct numbers for STAT_ST_BLKSIZE and SIZEOF_STAT. Also, unless I comment out lines 2325 and 2326, it will not compile.

  2290	elsifdef UNIX then 
  2291			ifdef OSX then 
  2292				ifdef BITS32 then 
  2293					constant 
  2294						STAT_ST_BLKSIZE = 76, 
  2295						SIZEOF_STAT     = 108, 
  2296						$ 
  2297				elsedef 
  2298					constant 
  2299						STAT_ST_BLKSIZE = 112, 
  2300						SIZEOF_STAT     = 144, 
  2301						$ 
  2302				end ifdef 
  2303			elsifdef FREEBSD then 
  2304				ifdef BITS32 then 
  2305					constant 
  2306						STAT_ST_BLKSIZE = 64, 
  2307						SIZEOF_STAT     = 96, 
  2308						$ 
  2309				elsedef 
  2310					constant 
  2311						STAT_ST_BLKSIZE = 88, 
  2312						SIZEOF_STAT     = 120, 
  2313						$ 
  2314				end ifdef 
  2315			elsifdef OPENBSD then 
  2316				constant 
  2317					STAT_ST_BLKSIZE = 72, 
  2318					SIZEOF_STAT     = 112, 
  2319					$ 
  2320			elsifdef NETBSD then 
  2321				constant 
  2322					STAT_ST_BLKSIZE = 80, 
  2323					SIZEOF_STAT     = 100, 
  2324					$ 
  2325				stat_t_offset = 80 
  2326				stat_buf_size = 100 
  2327			end ifdef 
  2328	end ifdef 
  2329	 

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu