2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
5 Desc: Set a filecomment.
8 #include <proto/exec.h>
9 #include <dos/dosextens.h>
10 #include <dos/filesystem.h>
11 #include <proto/dos.h>
12 #include "dos_intern.h"
14 /*****************************************************************************
17 #include <proto/dos.h>
19 AROS_LH2(BOOL
, SetComment
,
22 AROS_LHA(STRPTR
, name
, D1
),
23 AROS_LHA(STRPTR
, comment
, D2
),
26 struct DosLibrary
*, DOSBase
, 30, Dos
)
29 Change the comment on a file or directory.
30 The comment may be any NUL terminated string. The supported
31 size varies from filesystem to filesystem.
34 name - name of the file
35 comment - new comment for the file or NULL.
38 !=0 if all went well, 0 else. IoErr() gives additional
39 information in that case.
51 *****************************************************************************/
54 AROS_LIBBASE_EXT_DECL(struct DosLibrary
*,DOSBase
)
56 /* Get pointer to I/O request. Use stackspace for now. */
57 struct IOFileSys iofs
;
59 /* Prepare I/O request. */
60 InitIOFS(&iofs
, FSA_SET_COMMENT
, DOSBase
);
64 iofs
.io_Union
.io_SET_COMMENT
.io_Comment
= comment
;
66 return !DoName(&iofs
, name
, DOSBase
);