From 45bd2cb4441fa077cf910d92f9bf80a89e5a5d85 Mon Sep 17 00:00:00 2001 From: Thomas Hurst Date: Sun, 6 Jul 2008 13:45:25 +0100 Subject: [PATCH] Tidy the header on freebsd.py a bit, and give it some semblance of a license. --- terminatorlib/freebsd.py | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/terminatorlib/freebsd.py b/terminatorlib/freebsd.py index e883fdc3..6f85d902 100644 --- a/terminatorlib/freebsd.py +++ b/terminatorlib/freebsd.py @@ -1,12 +1,15 @@ #!/usr/local/bin/python +# ------------------------------------------------------------------ +# Copyright (c) 2008, Thomas Hurst # -# Use sysctl() to retrieve the cwd of an arbitrary process on FreeBSD. -# Tested on FreeBSD 7-STABLE/amd64 from April 11 2008. -# -# Be prepared for excitement if the structs are changed. -# -# Blame: Thomas Hurst +# Use of this file is unrestricted provided this notice is retained. +# If you use it, it'd be nice if you dropped me a note. Also beer. +# ------------------------------------------------------------------ # +# freebsd.get_process_cwd(pid): +# Use sysctl() to retrieve the cwd of an arbitrary process on FreeBSD +# using kern.proc.filedesc, as used by procstat(1). +# Tested on FreeBSD 7-STABLE/amd64 from April 11 2008. from ctypes import *