Gold Vision Communications / USA
 GOLDVISION.COM
Serving the Multimedia Community since 1989.
English Site | German Site 

 Web Hosting

 Virtual Dedicated Servers

 Chequeo de dominio

 Haga su pedido

 Estado del pedido

 Support

 Contáctenos

 Download

 Network

 Network Status

 Webdesign / Templates

 Efectuar pago

 Terms & Conditions

 Imprimir

 Notas Legales

 Declaración de Privacidad
  PHP / dio_fcntl
dio_fcntl

dio_fcntl

(PHP 4 >= 4.2.0)

dio_fcntl -- Ändert den Dateideskriptor

Beschreibung

mixed dio_fcntl ( resource fd, int cmd [, mixed arg])

Die Funktion dio_fcntl() führt eine Aktion cmd an der Datei fd aus. Einige Aktionen cmd benötigen das zusätzliche Argument args.

arg ist ein assoziatives Array, wenn cmd F_SETLK oder F_SETLLW ist. Es hat folgende Einträge:

  • "start" - offset an dem der Lock beginnt

  • "length" - Länge des gelockten Bereichs

  • "wenth" - Relative Position von start. Kann folgende Werte annehmen: SEEK_SET, SEEK_END and SEEK_CUR

  • "type" - Locktyp: F_RDLCK (read lock), F_WRLCK (write lock) oder F_UNLCK (unlock)

cmd ist einer der folgenden Konstanten:

  • F_SETLK - Setzt oder löscht einen Lock. Ist der Bereich bereits von einem anderen Prozess gelockt, so liefert die Funktion dio_fcntl() -1 zurück.

  • F_SETLKW - wie F_SETLK, jedoch im Falle, dass der Bereich von einem anderen Prozess gelockt wird, wartet dio_fcntl() auf die Freigabe des Locks.

  • F_GETLK - dio_fcntl() liefert ein assioziatives Array zurück (Beschreibung siehe oben), falls ein anderer Prozess den Bereich gelockt hat.


© 1998-2007 Gold Vision Communications All Rights Reserved.