Commit Graph

54 Commits

Author SHA1 Message Date
Rémi Denis-Courmont cc129a71d7 Remove old mail address from sources 2019-09-04 22:11:04 +03:00
Thomas Guillem 18ff7f39b0 filesystem: use vlc_qsort 2019-01-22 18:55:32 +01:00
Rémi Denis-Courmont e4d4a57831 filesystem: fix invalid conversions in vlc_scandir() 2019-01-15 18:39:10 +02:00
Rémi Denis-Courmont 8f2e1e57cf Use vlc_close() 2016-04-22 00:11:43 +03:00
Rémi Denis-Courmont 34d4f3135b filesystem: use native mkstemp() on POSIX 2015-08-24 20:48:17 +03:00
Rémi Denis-Courmont 558e6b78d4 filesystem: avoid potential qsort(NULL) 2014-08-25 21:35:27 +03:00
Rémi Denis-Courmont ee0b9164f9 vlc_readdir: remove string duplication, simplify 2014-01-27 18:56:15 +02:00
Rémi Denis-Courmont c4199ab677 Remove inconsistently used HAVE_UNISTD_H 2013-12-29 16:15:46 +02:00
Rémi Denis-Courmont b9761b0e2f vlc_fopen(): implement C11 "x" open flag 2012-01-04 21:20:10 +02:00
Jean-Baptiste Kempf 36ab287e77 LGPL
Re-license almost all of libVLC and libVLCcore to LGPLv2.1+

This move was authorized by the developers, either:
 - by e-mail,
 - by vote at the VideoLAN Dev Days 2011,
 - on the license website,
 - in a contract, oral or written.
No objection was raised, so far.

The developers agreeing are:
  Justus Piater
  Alexis Ballier
  Alexander Bethke
  Mohammed Adnène Trojette
  Alex Converse
  Alexey Sokolov
  Alexis de Lattre
  Andre Pang
  Anthony Loiseau
  Cyril Deguet
  André Weber
  Boris Dorès
  Brieuc Jeunhomme
  Benjamin Drung
  Hugo Beauzée-Luyssen
  Benoit Steiner
  Benjamin Pracht
  Bernie Purcell
  Przemyslaw Fiala
  Arnaud de Bossoreille de Ribou
  Brad Smith
  Nick Briggs
  Christopher Rath
  Christophe Courtaut
  Christopher Mueller
  Clement Chesnin
  Andres Krapf
  Damien Fouilleul
  David Flynn
  Sebastien Zwickert
  Antoine Cellerier
  Jérôme Decoodt
  Jérome Decoodt
  Dylan Yudaken
  Eduard Babayan
  Eugenio Jarosiewicz
  Elliot Murphy
  Eric Petit
  Erwan Tulou
  Etienne Membrives
  Ludovic Fauvet
  Fabio Ritrovato
  Tobias Güntner
  Jakub Wieczorek
  Frédéric Crozat
  Francois Cartegnie
  Laurent Aimar
  Florian G. Pflug
  Felix Paul Kühne
  Frank Enderle
  Rafaël Carré
  Simon Latapie
  Gildas Bazin
  Geoffroy Couprie
  Julien / Gellule
  Gildas Bazin
  Arnaud Schauly
  Toralf Niebuhr
  Vicente Jimenez Aguilar
  Derk-Jan Hartman
  Henri Fallon
  Ilkka Ollakka
  Olivier Teulière
  Rémi Duraffort
  Jakob Leben
  Jean-Baptiste Kempf
  Jean-Paul Saman
  Jean-Philippe Grimaldi
  Jean-François Massol
  Gaël Hendryckx
  Jakob Leben
  Jean-Marc Dressler
  Jai Menon
  Johan Bilien
  Johann Ransay
  Joris van Rooij
  JP Dinger
  Jean-Philippe André
  Adrien Grand
  Juha Jeronen
  Juho Vähä-Herttua
  Kaarlo Raiha
  Kaarlo Raiha
  Kamil Baldyga
  Keary Griffin
  Ken Self
  KO Myung-Hun
  Pierre Ynard
  Filippo Carone
  Loïc Minier
  Luca Barbato
  Lucas C. Villa Real
  Lukas Durfina
  Adrien Maglo
  Marc Ariberti
  Mark Lee
  Mark Moriarty
  Martin Storsjö
  Christophe Massiot
  Michel Kaempf
  Marian Ďurkovič
  Mirsal Ennaime
  Carlo Calabrò
  Damien Lucas
  Naohiro Koriyama
  Basos G
  Pierre Baillet
  Vincent Penquerc'h
  Olivier Aubert
  Pankaj Yadav
  Paul Corke
  Pierre d'Herbemont
  Philippe Morin
  Antoine Lejeune
  Michael Ploujnikov
  Jean-Marc Dressler
  Michael Hanselmann
  Rafaël Carré
  Ramiro Polla
  Rémi Denis-Courmont
  Renaud Dartus
  Richard Shepherd
  Faustino Osuna
  Arnaud Vallat
  Rob Jonson
  Robert Jedrzejczyk
  Steve Lhomme
  Rocky Bernstein
  Romain Goyet
  Rov Juvano
  Sam Hocevar
  Martin T. H. Sandsmark
  Sebastian Birk
  Sébastien Escudier
  Vincent Seguin
  Fabio Ritrovato
  Sigmund Augdal Helberg
  Casian Andrei
  Srikanth Raju
  Hannes Domani
  Stéphane Borel
  Stephan Krempel
  Stephan Assmus
  Tony Castley
  Pavlov Konstantin
  Eric Petit
  Tanguy Krotoff
  Dennis van Amerongen
  Michel Lespinasse
  Can Wu
  Xavier Marchesini
  Sébastien Toque
  Christophe Mutricy
  Yoann Peronneau
  Yohann Martineau
  Yuval Tze
  Scott Caudle
  Clément Stenac

It is possible, that some minor piece of code was badly tracked, for
some reasons (SVN, mainly) or that some small developers did not answer.
However, as an "œuvre collective", defined as in "CPI 113-2 alinéa 3",
and seeing "Cour. Cass. 17 Mai 1978", and seeing that the editor and
the very vast majority of developers have agreed (> 99.99% of the code,
> 99% of developers), we are fine here.
2011-11-27 22:54:33 +01:00
Rémi Denis-Courmont 8179cfedcb Win32: default to binary mode in vlc_open() (fix #5578)
...rather than merely vlc_fopen().
2011-11-24 22:18:24 +02:00
Rémi Denis-Courmont 709b755fa8 Win32: assume binary file open mode by default 2011-11-22 18:04:52 +02:00
Rémi Denis-Courmont 7834663b7d vlc_fopen: fix append mode
In append mode, all write operations must occur at the end of the file.
Nevertheless the initial read offset is the beginning of the file.
2011-11-03 20:03:19 +02:00
Rémi Denis-Courmont 19cc40ec00 vlc_fopen: implement binary mode (useful on Windows) 2011-11-03 20:03:14 +02:00
KO Myung-Hun 3d5dcf8b0c Include missing unistd.h and time.h for OS/2
Modified-by: Rémi Denis-Courmont <remi@remlab.net>
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
2011-10-14 18:17:55 +03:00
Rémi Denis-Courmont 485d0ebd27 Split portable, POSIX and Win32 file system helpers 2010-11-03 17:48:57 +02:00
Rémi Denis-Courmont b298ce46d5 Replace vlc_fix_readdir() with FromCharset() 2010-10-26 20:19:09 +03:00
Rémi Denis-Courmont 1c1a4e4161 Fix potential overflow in vlc_readdir() 2010-09-17 06:10:17 +03:00
Rémi Denis-Courmont fc08208b88 Improve vlc_readdir documentation 2010-09-17 06:10:04 +03:00
Rémi Denis-Courmont 7214994261 vlc_loaddir: avoid realloc at every iteration 2010-08-03 21:55:49 +03:00
Rémi Denis-Courmont 1da8392047 Remove useless <dirent.h> check 2010-08-03 19:21:34 +03:00
Rémi Duraffort 4d85871d1b s/informations/information/ 2010-07-28 21:33:51 +02:00
Rémi Denis-Courmont a7c0e2a065 Typos 2010-06-05 11:10:50 +03:00
Francois Cartegnie e29b6d9c20 NAME_MAX is undefined on SunOS
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
2010-05-25 21:28:05 +03:00
Rémi Denis-Courmont 1bad2ec163 NAME_MAX requires <limits.h> 2010-04-17 21:06:00 +03:00
Rémi Denis-Courmont ed9336c9de vlc_readdir: thread-safety fix
Use readdir_r() instead of readdir().
2010-04-17 17:56:10 +03:00
Rémi Denis-Courmont 5581a1ec59 Win32: vlc_rename() needs to erase target file first, fixes #3521 2010-04-16 20:02:06 +03:00
Rémi Denis-Courmont 2c54f28911 fdopendir does not imply openat (fix #3505) 2010-04-10 13:34:22 +03:00
Erwan Tulou b77716ee84 mediadirs: better detection for recorded material
especially, also detect material recorded at the stream filter level
2010-04-03 18:57:34 +02:00
Erwan Tulou 3bb6e111d5 net: fix socket blocking if accept4 not available
same options needed for vlc_accept as those for vlc_socket
2010-04-03 18:54:14 +02:00
Rémi Denis-Courmont fa343f78a5 Compile fix 2010-03-31 23:41:55 +03:00
Rémi Denis-Courmont a2f2d51d03 vlc_accept: accept() with close-on-exec 2010-03-31 19:23:47 +03:00
Rémi Denis-Courmont 3eb3e72a31 vlc_socket: create socket with close-on-exec à la vlc_dup() 2010-03-31 19:07:47 +03:00
Rémi Denis-Courmont 6b8a408fdb utf8_lstat -> vlc_lstat for consistency 2010-03-03 23:32:21 +02:00
Rémi Denis-Courmont 37ae6248dd add vlc_openat wrapper around openat 2010-02-14 13:33:23 +02:00
Rémi Denis-Courmont bded72465e WinCE: trivial compile fix 2010-02-07 20:11:34 +02:00
Rémi Denis-Courmont 71a1c8a68f vlc_dup: dup with close-on-exec 2010-02-07 15:52:32 +02:00
Rémi Denis-Courmont 7e45ab1b28 utf8_* -> vlc_* (sed roxxors) 2010-02-07 15:25:29 +02:00
Rémi Denis-Courmont d601e4ed29 Split file path functions out of vlc_charset.h into vlc_fs.h 2010-02-07 15:19:37 +02:00
Rémi Denis-Courmont af0441e86a Build fix 2009-11-04 22:37:49 +02:00
Rémi Denis-Courmont 6dc14523d7 open: O_CLOEXEC is ignored by older kernel, fix & simplify 2009-11-04 21:45:58 +02:00
Felix Paul Kühne 4fd41d7139 Fixed crashes introduced in [aee0317592] 2009-08-18 14:33:39 +02:00
Rémi Denis-Courmont aee0317592 utf8_open: make third parameter optional 2009-08-15 21:21:44 +03:00
Rémi Duraffort d5fd751615 free(NULL) is safe. 2009-07-16 08:37:42 +02:00
Geoffroy Couprie 7ba508f8ef wince: replace _wrename by MoveFileW 2009-05-13 16:50:53 +02:00
Rémi Denis-Courmont 353cd0a004 Implement utf8_rename 2009-05-07 19:11:15 +03:00
Rémi Denis-Courmont 825731a114 Linux: (try to) set close-on-exec in open() system call
This Linux-specific extension fixes the close-on-exec race.
2009-01-27 18:12:31 +02:00
Rémi Denis-Courmont 9f59c6743b utf8_open: set the close-on-exec descriptor flag
This departs from utf8_open() being a pure open() + Unicode function.
We should really always set the flag anyway, so lets factor the code.
There is still a tiny race between open() and the second fcntl() system
call, but it cannot quite be fixed within the current POSIX standards.

By the way, the correct way to clear the flag would be _after_ fork(),
but I am not aware of any such case involving utf8_open() in the
current tree.
2009-01-27 18:06:28 +02:00
Laurent Aimar ca8b9219db Use vlc_rand_bytes for utf8_mkstemp. 2008-11-18 19:05:22 +01:00
Laurent Aimar c7a41e0c0d Added a utf8_mkstemp implementation. 2008-11-18 00:05:49 +01:00