[haiku-commits] r38712 - in haiku/trunk/headers/posix: net sys

  • From: scott mc <scottmc2@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sun, 19 Sep 2010 00:39:14 +0200 (CEST)

Author: scottmc
Date: 2010-09-19 00:39:14 +0200 (Sun, 19 Sep 2010)
New Revision: 38712
Changeset: http://dev.haiku-os.org/changeset/38712

Modified:
   haiku/trunk/headers/posix/net/if.h
   haiku/trunk/headers/posix/sys/socket.h
   haiku/trunk/headers/posix/sys/statvfs.h
Log:
Readded parameter names, taking them from the ones used at opengroup, except 
for sockatmark for which I used descriptor instead of "s".


Modified: haiku/trunk/headers/posix/net/if.h
===================================================================
--- haiku/trunk/headers/posix/net/if.h  2010-09-18 17:26:55 UTC (rev 38711)
+++ haiku/trunk/headers/posix/net/if.h  2010-09-18 22:39:14 UTC (rev 38712)
@@ -114,7 +114,7 @@
 #endif
 
 unsigned if_nametoindex(const char* name);
-char* if_indextoname(unsigned, char* nameBuffer);
+char* if_indextoname(unsigned ifindex, char* nameBuffer);
 struct if_nameindex* if_nameindex(void);
 void if_freenameindex(struct if_nameindex* interfaceArray);
 

Modified: haiku/trunk/headers/posix/sys/socket.h
===================================================================
--- haiku/trunk/headers/posix/sys/socket.h      2010-09-18 17:26:55 UTC (rev 
38711)
+++ haiku/trunk/headers/posix/sys/socket.h      2010-09-18 22:39:14 UTC (rev 
38712)
@@ -184,7 +184,7 @@
                        socklen_t length);
 int            shutdown(int socket, int how);
 int            socket(int domain, int type, int protocol);
-int            sockatmark(int );
+int            sockatmark(int descriptor);
 int            socketpair(int domain, int type, int protocol, int 
socketVector[2]);
 
 #if __cplusplus

Modified: haiku/trunk/headers/posix/sys/statvfs.h
===================================================================
--- haiku/trunk/headers/posix/sys/statvfs.h     2010-09-18 17:26:55 UTC (rev 
38711)
+++ haiku/trunk/headers/posix/sys/statvfs.h     2010-09-18 22:39:14 UTC (rev 
38712)
@@ -31,8 +31,8 @@
 extern "C" {
 #endif
 
-int statvfs(const char *, struct statvfs *);
-int fstatvfs(int, struct statvfs *);
+int statvfs(const char *path, struct statvfs *buf);
+int fstatvfs(int fildes, struct statvfs *buf);
 
 #ifdef __cplusplus
 }


Other related posts: