Enlightenment CVS committal

Author  : doursse
Project : e17
Module  : proto/evil

Dir     : e17/proto/evil/src/lib


Modified Files:
        Evil.h evil.c 


Log Message:
add wrapper around GetCurrentProcessId()

===================================================================
RCS file: /cvs/e/e17/proto/evil/src/lib/Evil.h,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -3 -r1.10 -r1.11
--- Evil.h      28 Apr 2008 14:34:54 -0000      1.10
+++ Evil.h      11 May 2008 09:32:52 -0000      1.11
@@ -201,6 +201,24 @@
 EAPI int mkstemp(char *template);
 
 /**
+ * @brief Return the process identifier of the calling process.
+ *
+ * @return The process ID.
+ *
+ * Return the process identifier of the calling process. Until
+ * the process terminates, the process identifier uniquely
+ * identifies the process throughout the system.
+ *
+ * Conformity: Not appliclable.
+ *
+ * Supported OS: Windows 98, Windows Me, Windows NT, Windows 2000,
+ * Windows XP.
+ *
+ * @ingroup Evil
+ */
+EAPI pid_t getpid(void);
+
+/**
  * @brief Create a shell link.
  *
  * @param oldpath The file name to be linked.
===================================================================
RCS file: /cvs/e/e17/proto/evil/src/lib/evil.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- evil.c      28 Apr 2008 14:34:54 -0000      1.7
+++ evil.c      11 May 2008 09:32:52 -0000      1.8
@@ -118,6 +118,12 @@
    return fd;
 }
 
+pid_t
+getpid(void)
+{
+  return (pid_t)GetCurrentProcessId();
+}
+
 /* REMARK: Windows has no symbolic link. */
 /*         Nevertheless, it can create and read .lnk files */
 int



-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to