42
     �Ã¾Ä      File not found.
  "   ˆl–Ðz¾””ÔD¨ 	Å ÕÀ‚à„¦-ÿÂƒh¹¿Å      
     �Ä¿Å      File not found.
     ˆ¾Âƒh¹¿Å      
     ˆ¾Âƒh¹¿Å      0x0004
  +   ˆl–Ðz¾”êe¶¥6 ]¸&n *bÑ¿Ã„Ï>×_†I|¥�+ÁÇ ?÷     /*
 * ProFTPD - FTP server daemon
 * Copyright (c) 2016-2017 The ProFTPD Project team
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program 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 General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA.
 *
 * As a special exemption, The ProFTPD Project team and other respective
 * copyright holders give permission to link this program with OpenSSL, and
 * distribute the resulting executable, without including the source code for
 * OpenSSL in the source distribution.
 */

/* Error API */

#ifndef PR_ERROR_H
#define PR_ERROR_H

#include "os.h"
#include "pool.h"
#include "table.h"
#include "dirtree.h"
#include "modules.h"

typedef struct err_rec pr_error_t;

struct err_explain_rec {
  /* Explain accept(2) errors. */
  const char *(*explain_accept)(pool *p, int xerrno, int fd,
    struct sockaddr *addr, socklen_t *addr_len, const char **args);

  /* Explain bind(2) errors. */
  const char *(*explain_bind)(pool *p, int xerrno, int fd,
    const struct sockaddr *addr, socklen_t addr_len, const char **args);

  /* Explain chdir(2) errors. */
  const char *(*explain_chdir)(pool *p, int xerrno, const char *path,
    const char **args);

  /* Explain chmod(2) errors. */
  const char *(*explain_chmod)(pool *p, int xerrno, const char *path,
    mode_t mode, const char **args);

  /* Explain chown(2) errors. */
  const char *(*explain_chown)(pool *p, int xerrno, const char *path,
    uid_t uid, gid_t gid, const char **args);

  /* Explain chroot(2) errors. */
  const char *(*explain_chroot)(pool *p, int xerrno, const char *path,
    const char **args);

  /* Explain close(2) errors. */
  const char *(*explain_close)(pool *p, int xerrno, int fd, const char **args);

  /* Explain closedir(3) errors. */
  const char *(*explain_closedir)(pool *p, int xerrno, void *dirh,
    const char **args);

  /* Explain connect(2) errors. */
  const char *(*explain_connect)(pool *p, int xerrno, int fd,
    const struct sockaddr *addr, socklen_t addr_len, const char **args);

  /* Explain fchmod(2) errors. */
  const char *(*explain_fchmod)(pool *p, int xerrno, int fd, mode_t mode,
    const char **args);

  /* Explain fchown(2) errors. */
  const char *(*explain_fchown)(pool *p, int xerrno, int fd, uid_t uid,
    gid_t gid, const char **args);

  /* Explain fclose(3) errors. */
  const char *(*explain_fclose)(pool *p, int xerrno, FILE *fh,
    const char **args);

  /* Explain fcntl(2) errors. */
  const char *(*explain_fcntl)(pool *p, int xerrno, int fd, int oper,
    long arg, const char **args);

  /* Explain fdopen(3) errors. */
  const char *(*explain_fdopen)(pool *p, int xerrno, int fd, const char *mode,
    const char **args);

  /* Explain flock(2) errors. */
  const char *(*explain_flock)(pool *p, int xerrno, int fd, int oper,
    const char **args);

  /* Explain fopen(3) errors. */
  const char *(*explain_fopen)(pool *p, int xerrno, const char *path,
    const char *mode, const char **args);

  /* Explain fork(2) errors. */
  const char *(*explain_fork)(pool *p, int xerrno, const char **args);

  /* Explain fstat(2) errors. */
  const char *(*explain_fstat)(pool *p, int xerrno, int fd, struct stat *st,
    const char **args);

  /* Explain fstatfs(2) errors. */
  const char *(*explain_fstatfs)(