Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2A (XREF PATCH) 05/16/85; site neuro1.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!seismo!ut-sally!ut-ngp!shell!neuro1!sob From: sob@neuro1.UUCP (Stan Barber) Newsgroups: net.unix Subject: ustat equivalent in 4.2? Message-ID: <608@neuro1.UUCP> Date: Mon, 23-Sep-85 02:23:14 EDT Article-I.D.: neuro1.608 Posted: Mon Sep 23 02:23:14 1985 Date-Received: Wed, 25-Sep-85 03:49:42 EDT Reply-To: sob@neuro1.UUCP (Stan Barber) Organization: Neurophysiology, Baylor College of Medicine, Houston, Tx Lines: 21 I have been having problems recently with having large volumes of news fill up the partition /usr/spool is mounted on. After a little investigating I found that SYSV has this easy way to find out the number of blocks on a particular device using the ustat(2) system call (following the use of stat(2) or fstat(2)). Is there a easy way to do this on 4.2? I rooted around in /usr/include and looked through the manual. Maybe I just overlooked somthing. Please drop me a line letting me know. Anyway, I made the batching routine smart enought to stop batching when it was beginning to run out of space, and am thinking about modifying uucp to be smart about it, too. But, this code will only work on SYSV and I would love to make it work on 4.2 before I release it. Thanks -- Stan uucp:{ihnp4!shell,rice}!neuro1!sob Opinions expressed Olan ARPA:sob@rice.arpa here are ONLY mine & Barber CIS:71565,623 BBS:(713)660-9262 noone else's. Brought to you by Super Global Mega Corp .com