aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap/lib/kernel/include
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2010-04-01 06:00:42 +0000
committerErlang/OTP <[email protected]>2010-04-01 06:00:42 +0000
commit00ee51ffa60db202fa3cf845bd59e9e208251eb1 (patch)
tree89332839b92358b197b69e97bb9cfe512d3f3224 /bootstrap/lib/kernel/include
parent263643a357e7a11724c599045ca35ba9aef2438c (diff)
downloadotp-00ee51ffa60db202fa3cf845bd59e9e208251eb1.tar.gz
otp-00ee51ffa60db202fa3cf845bd59e9e208251eb1.tar.bz2
otp-00ee51ffa60db202fa3cf845bd59e9e208251eb1.zip
Update bootstrap compiler
Diffstat (limited to 'bootstrap/lib/kernel/include')
-rw-r--r--bootstrap/lib/kernel/include/file.hrl31
1 files changed, 9 insertions, 22 deletions
diff --git a/bootstrap/lib/kernel/include/file.hrl b/bootstrap/lib/kernel/include/file.hrl
index 2273b0c5a6..b46400ca26 100644
--- a/bootstrap/lib/kernel/include/file.hrl
+++ b/bootstrap/lib/kernel/include/file.hrl
@@ -21,29 +21,18 @@
-define(FILE_HRL_, 1).
%%--------------------------------------------------------------------------
-%%-type namelist() :: [char() | atom() | namelist()].
--type namelist() :: [_]. %% XXX: GROSS OVERAPPROXIMATION -- FIX ME
--type name() :: string() | atom() | namelist().
--type posix() :: atom().
-
--type date() :: {pos_integer(), pos_integer(), pos_integer()}.
--type time() :: {non_neg_integer(), non_neg_integer(), non_neg_integer()}.
--type date_time() :: {date(), time()}.
-
-%%--------------------------------------------------------------------------
-
-record(file_info,
{size :: non_neg_integer(), % Size of file in bytes.
type :: 'device' | 'directory' | 'other' | 'regular' | 'symlink',
access :: 'read' | 'write' | 'read_write' | 'none',
- atime :: date_time(), % The local time the file was last read:
- % {{Year, Mon, Day}, {Hour, Min, Sec}}.
- mtime :: date_time(), % The local time the file was last written.
- ctime :: date_time(), % The interpretation of this time field
- % is dependent on operating system.
- % On Unix it is the last time the file or
- % or the inode was changed. On Windows,
- % it is the creation time.
+ atime :: file:date_time(), % The local time the file was last read:
+ % {{Year, Mon, Day}, {Hour, Min, Sec}}.
+ mtime :: file:date_time(), % The local time the file was last written.
+ ctime :: file:date_time(), % The interpretation of this time field
+ % is dependent on operating system.
+ % On Unix it is the last time the file
+ % or the inode was changed. On Windows,
+ % it is the creation time.
mode :: integer(), % File permissions. On Windows,
% the owner permissions will be
% duplicated for group and user.
@@ -61,10 +50,8 @@
-record(file_descriptor,
- {module :: module(), % Module that handles this kind of file
+ {module :: module(), % Module that handles this kind of file
data :: term()}). % Module dependent data
--type fd() :: pid() | #file_descriptor{}.
-
%%--------------------------------------------------------------------------
-endif.