Commit graph

43 commits

Author SHA1 Message Date
Daniel Murphy
13f343334c Remove cases where an array is used in a boolean context 2013-11-27 18:23:07 +11:00
Daniel Murphy
1754eed7f6 Fix cases where goto skips initialization of variables 2013-11-20 00:20:33 +11:00
Johannes Pfau
f989b219cc Get rid of transitional lfs API
Those kind of functions should be placed in druntime,
but the *64 (v) functions as a public interface are actually
deprecated and shouldn't be used anymore.

Druntime takes care that the normal stat, fopen, calls support
large files, if __USE_FILE_OFFSET64 is defined (which is what
the new C API does as well)

Note: It's actually important to use the functions from
core.sys.posix.stdio as the functions in core.stdc.stdio
are not large file aware. This is probably a bug in druntime.
2012-09-30 10:47:40 +02:00
alexrp
adcac57526 Use errno instead of getErrno in Phobos. 2012-07-09 01:26:02 +02:00
Denis Shelomovskij
efc9da711c Remove Windows 3.x and Win9x enforcements from std.mmfile 2012-02-10 14:28:14 +04:00
Denis Shelomovskij
99ab2b6175 Remove __file.d and it's using
* remove `useWfuncs` using
* remove std.__file using
* remove __file.d
* remove variables which have become unnecessary
* remove std.windows.charset import and alias in file.d
2012-02-10 14:27:34 +04:00
Marco Leise
b0009aaa9f Set 'fd' field to 'fildes' from within the Linux constructor that takes a file #. 2012-02-02 08:53:39 +01:00
Walter Bright
f3aa58592f make invariants const-correct 2012-01-29 14:03:39 -08:00
Daniel Green
58f4356ca2 Change version( Win32 ) to version( Windows ) when Win64 would be supported as well. 2012-01-16 22:10:18 -05:00
David Nadlinger
927f879dba Linux build fix, was missing from pull 342. 2011-12-04 21:48:43 +01:00
dsimcha
2c354d14c0 Fix trivial oversight in the enum renaming in std.mmfile. 2011-08-13 23:30:44 -04:00
jmdavis
0105bc93a0 Fixed enum in std.mmfile to follow Phobos naming conventions. 2011-08-13 00:19:32 -07:00
Walter Bright
83f99df573 remove octal literals 2011-04-01 22:34:46 -07:00
Walter Bright
046e1b36db add source links 2011-02-06 15:46:50 -08:00
Don Clugston
84477a5d3e Move Boost copyright declaration from ddoc to normal comment. Fixes ugly ddoc output. 2010-11-24 19:34:47 +00:00
Andrei Alexandrescu
7979116eb4 Replaced std.contracts with std.exception throughout 2010-07-04 22:12:18 +00:00
Masahiro Nakagawa
767b5366c5 bugzilla 4202 Changset 1517 doesn't compile. 2010-05-18 11:35:52 +00:00
Shin Fujishiro
a6738d625d Reverted my changes in std.mmfile; it was wrong to delete struct_stat64. 2010-05-17 10:42:38 +00:00
Shin Fujishiro
4e2d8f30fd Added FreeBSD code. 2010-05-17 03:02:16 +00:00
Masahiro Nakagawa
a288172908 Add @property to length method. 2010-05-04 21:54:00 +00:00
Sean Kelly
9be950356b Converted "static this" to "shared static this" where appropriate. 2010-03-09 03:54:06 +00:00
Don Clugston
0ecae3a354 Change [length] to [$] throughout Phobos. 2009-11-03 07:55:49 +00:00
Sean Kelly
747f3cf1e4 Changed Phobos to use the Boost license. Currently, all public domain modules and all licensed modules by Walter, Andrei, Bartosz, and Don have been changed to use this license (excepting std.c, for the moment). Ideally, all Phobos modules will eventually be distributed under this license, which means obtaining permission from a few more authors, deleting, or rewriting some modules.
Removed std.openrj.
2009-09-16 18:19:51 +00:00
Sean Kelly
67cf1f1be7 * Changed a few version(linux) blocks to version(Posix).
* Changed some declarations from explicit to auto.
* Changed "mkdir --parents" in Makefile to "mkdir -p" since OSX doesn't support the long version.
* REMAINING ISSUE: The "ln -sf" for installing the libraries at the end will fail if the DMD installation point is not owned by the user performing the build.  A "sudo ln..." fixes this, but it still may not be ideal to have a system-level link to a user-level file.  This should probably simply be copied instead.  Also, this copy should perhaps be done manually or in an "install" step, since a user may want to build Phobos and test it out without affecting other users.
2009-04-09 18:32:01 +00:00
Andrei Alexandrescu
5492fcbd42 minor 2009-04-06 20:43:27 +00:00
Andrei Alexandrescu
fd3c6e3daf std.c -> core.stdc fixes 2009-04-06 18:31:09 +00:00
Andrei Alexandrescu
b186767ebd minor 2009-04-06 17:15:51 +00:00
Sean Kelly
e108928d21 * Modified all std modules to use core.sys.posix in place of std.c.linux.
* Transformed std.c.linux.* into wrappers around core.sys.posix modules where appropriate.
* Added std.c.osx as the OSX equivalent of std.c.linux.
* Added std.c.osx.socket for OSX-specific socket declarations not covered by the Posix spec.
* Altered all makefiles to zip, etc, the new std.c.osx package.
2009-03-26 03:02:32 +00:00
Sean Kelly
7de36d8138 Posix targets should now build correctly against the core.stdc chages. 2009-03-25 14:53:41 +00:00
Sean Kelly
c4a3aab657 The std.c modules now simply wrap the corresponding core.stdc modules to expose standard C declarations. std.c.os remains unchanged thus far, but will likely be altered as well. This unfortunately eliminates the auto doc generation for the std.c modules, since the modules are now largely empty. If the user wants to know what they contain, how the functions work, etc, I suggest for now simply referring to a C library spec--the core.stdc modules conform almost exactly to the C99 library definition. 2009-03-20 18:52:45 +00:00
Walter Bright
d57e203dc9 fold in some OSX changes 2009-02-10 02:21:15 +00:00
Andrei Alexandrescu
1ae5300f52 * std.algorithm: Changed the map() function so that it deduces the return type
* std.contracts: Added file and line information to enforce. Added errnoEnforce that reads and formats a message according to errno. Added corresponding ErrnoException class.

* std.encoding: For now commented out std.encoding.to. 

* std.file: Fixed bug 2065

* std.format: Fixed bug in raw write for arrays

* std.getopt: Added new option stopOnFirstNonOption. Also automatically expand dubious option groups with embedded in them (useful for shebang scripts)

* std.math: improved integral powers

* std.md5: Improved signature of sum so it takes multiple arrays. Added getDigestString.

* std.path: changed signatures of test functions from bool to int. Implemented rel2abs for Windows. Improved join so that it accepts multiple paths. Got rid of some gotos with the help of scope statements.

* std.process: added getenv and setenv. Improved system() so it returns the exit code correctly on Linux.

* std.random: added the dice function - a handy (possibly biased) dice.

* std.file: added support for opening large files (not yet tested)

* std.utf: added the codeLength function. Got rid of some gotos.
2008-05-06 05:08:52 +00:00
Walter Bright
7dcd24a675 applied bugzilla 1810 patch 2008-03-04 09:00:31 +00:00
Brad Roberts
8f79f3ec35 phobos 2.003 2007-09-10 07:28:23 +00:00
Brad Roberts
de971890b0 phobos 2.000 2007-09-10 06:45:08 +00:00
Brad Roberts
7371485bf8 phobos 0.177 2007-09-10 05:36:45 +00:00
Brad Roberts
b76c21ccf9 phobos 0.161 2007-09-10 05:24:49 +00:00
Brad Roberts
f3114b30a0 phobos 0.155 2007-09-10 05:19:06 +00:00
Brad Roberts
110cfd9da7 phobos 0.148 2007-09-10 05:04:40 +00:00
Brad Roberts
6b069176ba phobos 0.130 2007-09-10 04:46:26 +00:00
Brad Roberts
6cf33ed508 phobos 0.111 2007-09-10 04:28:31 +00:00
Brad Roberts
5b1e376698 phobos 0.99 2007-09-10 04:09:37 +00:00
Brad Roberts
b0ad2b2264 phobos 0.86 2007-09-10 03:54:37 +00:00