Direct IO Funzioni

Indice dei contenuti

  • dio_close — Chiude il descrittore di file dato da fd
  • dio_fcntl — Esegue la funzione C fcntl su un descrittore di file
  • dio_open — Apre un nuovo file nella modalità specificata da flags e i permessi indicati in mode
  • dio_read — Legge n bytes da un descrittore di file
  • dio_seek — Si posiziona al byte pos del file indicato da fd
  • dio_stat — Restituisce le informazioni relative al file indicato da fd
  • dio_tcsetattr — Imposta gli attributi terminale e la velocità per una porta seriale
  • dio_truncate — Tronca il file indicato da fd ad un numero di byte specificato
  • dio_write — Scrive dati sul file indicato da fd con la possibilità di troncarne la lunghezza
add a note

User Contributed Notes 2 notes

up
1
richard d_0t cubek a_t example D0_t com
17 years ago
IMPORTANT:--enable-dio is NOT recognized as an option. After reporting a bug, i got following answer:It is not bundled anymore. See http://pecl.php.net/dio to fetch the CVS version (being unmaintained, there is no release in pecl). Not a bug > bogus.
up
-4
tom at bitworks dot de
17 years ago
to use mandatory locking on a linux system, the filesystem has to be well prepared.# /etc/fstab: static file system information.## <file system> <mount point>   <type>  <options>               <dump>  <pass>/dev/hda1       /               ext3    errors=remount-ro,mand  0       1/dev/hda2       none            swap    sw                      0       0proc            /proc           proc    defaults                0       0/dev/fd0        /floppy         auto    user,noauto             0       0/dev/cdrom      /cdrom          iso9660 ro,user,noauto          0       0 For example here the ext3 partition has been prepared for mandatory locking. Otherwise no dio_function will work on the system.
To Top