]> git.ipfire.org Git - thirdparty/pdns.git/blobdiff - pdns/utility.hh
minicurl: correct comment
[thirdparty/pdns.git] / pdns / utility.hh
index 8ea95fadc15ce3d6fcb9ee7a8f0caedf06f5d614..024fc089fb111a5b6f66f239e60d2f32ebb39cca 100644 (file)
@@ -64,6 +64,8 @@ private:
 
 protected:
 public:
+  Semaphore(const Semaphore&) = delete;
+  void operator=(const Semaphore&) = delete;
   //! Default constructor.
   Semaphore( unsigned int value = 0 );
 
@@ -92,9 +94,6 @@ public:
   typedef int sock_t;
   typedef ::socklen_t socklen_t;
 
-  //! Closes a socket.
-  static int closesocket( sock_t socket );
-
   //! Connect with timeout
   // Returns:
   //    > 0 on success
@@ -129,11 +128,9 @@ public:
 
   //! Writes a vector.
   static int writev( Utility::sock_t socket, const iovec *vector, size_t count );
-  //! Returns a random number.
-  static long int random( void );
 
   //! Sets the random seed.
-  static void srandom( unsigned int seed );
+  static void srandom(void);
 
   //! Drops the program's group privileges.
   static void dropGroupPrivs( int uid, int gid );