From owner-freebsd-ports Thu Jun 14 12:10:13 2001 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id B026037B401 for ; Thu, 14 Jun 2001 12:10:06 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.3/8.11.3) id f5EJA6m77325; Thu, 14 Jun 2001 12:10:06 -0700 (PDT) (envelope-from gnats) Date: Thu, 14 Jun 2001 12:10:06 -0700 (PDT) Message-Id: <200106141910.f5EJA6m77325@freefall.freebsd.org> To: freebsd-ports@FreeBSD.org Cc: From: Andrew MacIntyre Subject: Re: ports/28138: python os.statvfs module is not functional Reply-To: Andrew MacIntyre Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR ports/28138; it has been noted by GNATS. From: Andrew MacIntyre To: T Messmer Cc: Subject: Re: ports/28138: python os.statvfs module is not functional Date: Thu, 14 Jun 2001 22:01:17 +1000 (EST) Python (thus the port) only wraps what the system exposes. andymac@magpie$ uname -a FreeBSD magpie 4.2-RELEASE FreeBSD 4.2-RELEASE #0: Sun Dec 10 23:14:54 EST 2000 root@magpie:/usr/src/sys/compile/MAGPIE_SMP i386 andymac@magpie$ man statvfs No manual entry for statvfs A glance at the source for df turns up the fact that FreeBSD has a statfs() call. Perhaps you can synthesise the necessary wrapper, and submit the patch both to ports (so that it becomes usable ASAP) and the Python patch manager (so that eventually FreeBSD doesn't have to have a special Python patch). On Wed, 13 Jun 2001, python os.statvfs module is not functional wrote: >Number: 28138 >Category: ports >Synopsis: python os.statvfs module is not functional {...} > >>> import os > >>> dir(os) > ['F_OK', 'NGROUPS_MAX', 'O_APPEND', 'O_CREAT', 'O_EXCL', 'O_NDELAY', 'O_= NOCTTY', 'O_NONBLOCK', 'O_RDONLY', 'O_RDWR', 'O_TRUNC', 'O_WRONLY', 'P_NOWA= IT', 'P_NOWAITO', 'P_WAIT', 'R_OK', 'TMP_MAX', 'UserDict', 'WEXITSTATUS', '= WIFEXITED', 'WIFSIGNALED', 'WIFS TOPPED', 'WNOHANG', 'WSTOPSIG', 'WTERMSIG'= , 'W_OK', 'X_OK', '_Environ', '__builtins__', '__doc__', '__file__', '__nam= e__', '_execvpe', '_exists', '_exit', '_notfound', '_spawnvef', 'abort', 'a= ccess', 'altsep', 'chdir', 'chmod', 'chown', 'close', 'confstr ', 'confstr_= names', 'ctermid', 'curdir', 'defpath', 'dup', 'dup2', 'environ', 'error', = 'execl', 'execle', 'execlp', 'execlpe', 'execv', 'execve', 'execvp', 'execv= pe', 'fdopen', 'fork', 'forkpty', 'fpathconf', 'fstat', 'fsync', 'ftruncate= ', 'getcwd', 'get egid', 'getenv', 'geteuid', 'getgid', 'getgroups', 'getlo= gin', 'getpgrp', 'getpid', 'getppid', 'getuid', 'isatty', 'kill', 'linesep'= , 'link', 'listdir', 'lseek', 'lstat', 'makedirs', 'mkdir', 'mkfifo', 'name= ', 'nice', 'open', 'openpty', 'pardir', 'path', 'pathconf', 'pathconf_name= s', 'pathsep', 'pipe', 'popen', 'popen2', 'popen3', 'popen4', 'putenv', 're= ad', 'readlink', 'remove', 'removedirs', 'rename', 'renames', 'rmdir', 'sep= ', 'setegid', 'seteuid', 'setgid', 'setpgid', 'setpgrp', 'setregid', 'setre= ui d', 'setsid', 'setuid', 'spawnl', 'spawnle', 'spawnlp', 'spawnlpe', 'spa= wnv', 'spawnve', 'spawnvp', 'spawnvpe', 'stat', 'strerror', 'symlink', 'sys= ', 'sysconf', 'sysconf_names', 'system', 'tcgetpgrp', 'tcsetpgrp', 'tempnam= ', 'times', 'tmpfile', 'tmpnam', 'ttyname', 'umask', 'uname', 'unlink', 'u= time', 'wait', 'waitpid', 'write'] > >>> -- Andrew I MacIntyre "These thoughts are mine alone..." E-mail: andrew.macintyre@aba.gov.au (work) | Snail: PO Box 370 andymac@bullseye.apana.org.au (play) | Belconnen ACT 2616 andymac@pcug.org.au (play2) | Australia To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message