Changeset 46577995 in mainline for uspace/srv/fs/udf/udf_volume.h


Ignore:
Timestamp:
2018-01-04T20:50:52Z (8 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Children:
e211ea04
Parents:
facacc71
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-01-04 20:47:53)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-01-04 20:50:52)
Message:

Use errno_t in all uspace and kernel code.

Change type of every variable, parameter and return value that holds an
<errno.h> constant to either errno_t (the usual case), or sys_errno_t
(some places in kernel). This is for the purpose of self-documentation,
as well as for type-checking with a bit of type definition hackery.

After this commit, HelenOS is free of code that mixes error codes with non-error
values on the assumption that error codes are negative.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/udf/udf_volume.h

    rfacacc71 r46577995  
    212212} __attribute__((packed)) udf_partition_header_descriptor_t;
    213213
    214 extern int udf_volume_recongnition(service_id_t);
    215 extern int udf_get_anchor_volume_descriptor(service_id_t,
     214extern errno_t udf_volume_recongnition(service_id_t);
     215extern errno_t udf_get_anchor_volume_descriptor(service_id_t,
    216216    udf_anchor_volume_descriptor_t *);
    217 extern int udf_read_volume_descriptor_sequence(service_id_t, udf_extent_t);
     217extern errno_t udf_read_volume_descriptor_sequence(service_id_t, udf_extent_t);
    218218extern fs_index_t udf_long_ad_to_pos(udf_instance_t *, udf_long_ad_t *);
    219219
Note: See TracChangeset for help on using the changeset viewer.