Deleted Added
full compact
file.h (254402) file.h (262706)
1/*
1/*
2 * Copyright (C) 2004-2007, 2009, 2011, 2012 Internet Systems Consortium, Inc. ("ISC")
2 * Copyright (C) 2004-2007, 2009, 2011-2013 Internet Systems Consortium, Inc. ("ISC")
3 * Copyright (C) 2000, 2001 Internet Software Consortium.
4 *
5 * Permission to use, copy, modify, and/or distribute this software for any
6 * purpose with or without fee is hereby granted, provided that the above
7 * copyright notice and this permission notice appear in all copies.
8 *
9 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
10 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY

--- 310 unchanged lines hidden (view full) ---

321 * Allocates memory for '*dirname', which can be freed with isc_mem_free().
322 *
323 * Returns:
324 * - ISC_R_SUCCESS on success
325 * - ISC_R_INVALIDFILE if 'path' is empty or ends with '/'
326 * - ISC_R_NOMEMORY if unable to allocate memory
327 */
328
3 * Copyright (C) 2000, 2001 Internet Software Consortium.
4 *
5 * Permission to use, copy, modify, and/or distribute this software for any
6 * purpose with or without fee is hereby granted, provided that the above
7 * copyright notice and this permission notice appear in all copies.
8 *
9 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
10 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY

--- 310 unchanged lines hidden (view full) ---

321 * Allocates memory for '*dirname', which can be freed with isc_mem_free().
322 *
323 * Returns:
324 * - ISC_R_SUCCESS on success
325 * - ISC_R_INVALIDFILE if 'path' is empty or ends with '/'
326 * - ISC_R_NOMEMORY if unable to allocate memory
327 */
328
329isc_result_t
330isc_file_getsizefd(int fd, off_t *size);
331/*%<
332 * Return the size of the file (stored in the parameter pointed
333 * to by 'size') in bytes.
334 *
335 * Returns:
336 * - ISC_R_SUCCESS on success
337 */
338
329ISC_LANG_ENDDECLS
330
331#endif /* ISC_FILE_H */
339ISC_LANG_ENDDECLS
340
341#endif /* ISC_FILE_H */