X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=libatalk%2Fadouble%2Fad_sendfile.c;h=db745d6447c1009158664575db0a329d168fe8bd;hb=a4772fa50378fb23354fc515ca237d9957f77ed7;hp=1b96c86226cb525ecb61bbc1268c62648eff4cea;hpb=744aba2a76a1fc13571104ec6cb9a79b360a0a66;p=netatalk.git diff --git a/libatalk/adouble/ad_sendfile.c b/libatalk/adouble/ad_sendfile.c index 1b96c862..db745d64 100644 --- a/libatalk/adouble/ad_sendfile.c +++ b/libatalk/adouble/ad_sendfile.c @@ -1,4 +1,6 @@ /* + * $Id: ad_sendfile.c,v 1.3 2001-06-29 14:14:46 rufustfirefly Exp $ + * * Copyright (c) 1999 Adrian Sun (asun@zoology.washington.edu) * All rights reserved. See COPYRIGHT. * @@ -10,10 +12,12 @@ #ifdef HAVE_CONFIG_H #include "config.h" -#endif +#endif /* HAVE_CONFIG_H */ #include +#ifdef HAVE_UNISTD_H #include +#endif /* HAVE_UNISTD_H */ #include #include #include @@ -61,16 +65,16 @@ ssize_t ad_readfile(const struct adouble *ad, const int eid, fd = ad_sendfile_init(ad, eid, &off, 0); #ifdef __linux__ cc = sendfile(sock, fd, &off, len); -#endif +#endif /* __linux__ */ #ifdef BSD4_4 if (sendfile(fd, sock, off, len, NULL, &cc, 0) < 0) return -1; -#endif +#endif /* BSD4_4 */ return cc; } -#endif +#endif /* HAVE_SENDFILE_READ */ #if 0 #ifdef HAVE_SENDFILE_WRITE @@ -91,7 +95,7 @@ ssize_t ad_writefile(struct adouble *ad, const int eid, ad_setentrylen(ad, eid, off); return cc; -#endif +#endif /* __linux__ */ } -#endif -#endif +#endif /* HAVE_SENDFILE_WRITE */ +#endif /* 0 */