X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=APIs%2Ffilesize.api;h=89a4063365527f8cc2a35a28a8378bb8b5e4a3e3;hb=e253e10f2d1c35bd685de8c4de993653f6a8330d;hp=a8e29d87e62875123ff18bbe302c950e3ab04952;hpb=a3d742e544ffaff9fc0425cf727060be0d3a2631;p=wrappi.git diff --git a/APIs/filesize.api b/APIs/filesize.api index a8e29d8..89a4063 100644 --- a/APIs/filesize.api +++ b/APIs/filesize.api @@ -1,18 +1,34 @@ +(* wrappi -*- tuareg -*- + * Copyright (C) 2011-2012 Red Hat Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + *) + entry_point off_t filesize (pathname path) << struct stat buf; if (stat (path, &buf) == -1) { - error_errno ("stat: %s", path); + set_error_errno ("stat: %s", path); return -1; } return buf.st_size; >> -;; - (* mknod_block mkfifo