/*
- * "$Id$"
+ * File functions for the CUPS scheduler.
*
- * File functions for the CUPS scheduler.
+ * Copyright © 2007-2014 by Apple Inc.
+ * Copyright © 1997-2007 by Easy Software Products, all rights reserved.
*
- * Copyright 2007-2013 by Apple Inc.
- * Copyright 1997-2007 by Easy Software Products, all rights reserved.
- *
- * These coded instructions, statements, and computer programs are the
- * property of Apple Inc. and are protected by Federal copyright
- * law. Distribution and use rights are outlined in the file "LICENSE.txt"
- * "LICENSE" which should have been included with this file. If this
- * file is missing or damaged, see the license at "http://www.cups.org/".
- *
- * Contents:
- *
- * cupsdCleanFiles() - Clean out old files.
- * cupsdCloseCreatedConfFile() - Close a created configuration file and move
- * into place.
- * cupsdClosePipe() - Close a pipe as necessary.
- * cupsdCreateConfFile() - Create a configuration file safely.
- * cupsdOpenConfFile() - Open a configuration file.
- * cupsdOpenPipe() - Create a pipe which is closed on exec.
- * cupsdRemoveFile() - Remove a file securely.
- * cupsdUnlinkOrRemoveFile() - Unlink or securely remove a file depending
- * on the configuration.
- * overwrite_data() - Overwrite the data in a file.
+ * Licensed under Apache License v2.0. See the file "LICENSE" for more
+ * information.
*/
/*
else
bytes = filesize;
- if ((bytes = write(fd, buffer, bytes)) < 0)
+ if ((bytes = write(fd, buffer, (size_t)bytes)) < 0)
return (-1);
filesize -= bytes;
return (fsync(fd));
}
#endif /* HAVE_REMOVEFILE */
-
-
-/*
- * End of "$Id$".
- */