Date: Thu, 14 Jun 2001 12:10:06 -0700 (PDT) From: Andrew MacIntyre <andymac@bullseye.apana.org.au> To: freebsd-ports@FreeBSD.org Subject: Re: ports/28138: python os.statvfs module is not functional Message-ID: <200106141910.f5EJA6m77325@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/28138; it has been noted by GNATS. From: Andrew MacIntyre <andymac@bullseye.apana.org.au> To: T Messmer <t_messmer@yahoo.com> Cc: <freebsd-gnats-submit@FreeBSD.ORG> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200106141910.f5EJA6m77325>