Skip to content

Commit

Permalink
Remove trailing whitespace, update copyright notices
Browse files Browse the repository at this point in the history
  • Loading branch information
johnousterhout committed Sep 10, 2022
1 parent 7c9cef6 commit a791b72
Show file tree
Hide file tree
Showing 71 changed files with 1,018 additions and 1,020 deletions.
2 changes: 1 addition & 1 deletion homa.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ struct homa_args_recv_ipv4 {
int type;
};

/* Flag bits for homa_recv (see man page for documentation):
/* Flag bits for homa_recv (see man page for documentation):
*/
#define HOMA_RECV_REQUEST 0x01
#define HOMA_RECV_RESPONSE 0x02
Expand Down
28 changes: 14 additions & 14 deletions homa_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@
* id for the incoming message.
* @msglen: If non-null, the total length of the message will be returned
* here.
*
*
* Return: The number of bytes of data returned at @buf. If an error
* occurred, -1 is returned and errno is set appropriately.
* occurred, -1 is returned and errno is set appropriately.
*/
ssize_t homa_recv(int sockfd, void *buf, size_t len, int flags,
struct sockaddr *src_addr, size_t *addrlen, uint64_t *id,
Expand Down Expand Up @@ -95,9 +95,9 @@ ssize_t homa_recv(int sockfd, void *buf, size_t len, int flags,
* id for the incoming message.
* @msglen: If non-null, the total length of the message will be returned
* here.
*
*
* Return: The number of bytes of data returned at @buf. If an error
* occurred, -1 is returned and errno is set appropriately.
* occurred, -1 is returned and errno is set appropriately.
*/
ssize_t homa_recvv(int sockfd, const struct iovec *iov, int iovcnt, int flags,
struct sockaddr *src_addr, size_t *addrlen, uint64_t *id,
Expand Down Expand Up @@ -136,13 +136,13 @@ ssize_t homa_recvv(int sockfd, const struct iovec *iov, int iovcnt, int flags,
* @dest_addr: Address of the RPC's client (returned by homa_recv when
* the message was received).
* @addrlen: Size of @dest_addr in bytes.
* @id: Unique identifier for the request, as returned by homa_recv
* @id: Unique identifier for the request, as returned by homa_recv
* when the request was received.
*
*
* @dest_addr and @id must correspond to a previously-received request
* for which no reply has yet been sent; if there is no such active request,
* then this function does nothing.
*
*
* Return: 0 means the response has been accepted for delivery. If an
* error occurred, -1 is returned and errno is set appropriately.
*/
Expand Down Expand Up @@ -174,13 +174,13 @@ ssize_t homa_reply(int sockfd, const void *response, size_t resplen,
* @dest_addr: Address of the RPC's client (returned by homa_recv when
* the message was received).
* @addrlen: Size of @dest_addr in bytes.
* @id: Unique identifier for the request, as returned by homa_recv
* @id: Unique identifier for the request, as returned by homa_recv
* when the request was received.
*
*
* @dest_addr and @id must correspond to a previously-received request
* for which no reply has yet been sent; if there is no such active request,
* then this function does nothing.
*
*
* Return: 0 means the response has been accepted for delivery. If an
* error occurred, -1 is returned and errno is set appropriately.
*/
Expand Down Expand Up @@ -211,7 +211,7 @@ ssize_t homa_replyv(int sockfd, const struct iovec *iov, int iovcnt,
* @addrlen: Size of @dest_addr in bytes.
* @id: A unique identifier for the request will be returned here;
* this can be used later to find the response for this request.
*
*
* Return: 0 means the request has been accepted for delivery. If an
* error occurred, -1 is returned and errno is set appropriately.
*/
Expand All @@ -221,7 +221,7 @@ int homa_send(int sockfd, const void *request, size_t reqlen,
{
struct homa_args_send_ipv4 args;
int result;

if (dest_addr->sa_family != AF_INET) {
errno = EAFNOSUPPORT;
return -EAFNOSUPPORT;
Expand All @@ -248,7 +248,7 @@ int homa_send(int sockfd, const void *request, size_t reqlen,
* @addrlen: Size of @dest_addr in bytes.
* @id: A unique identifier for the request will be returned here;
* this can be used later to find the response for this request.
*
*
* Return: 0 means the request has been accepted for delivery. If an
* error occurred, -1 is returned and errno is set appropriately.
*/
Expand Down Expand Up @@ -280,7 +280,7 @@ int homa_sendv(int sockfd, const struct iovec *iov, int iovcnt,
* @id: Unique identifier for the RPC to abort (return value
* from previous call to homa_send). Should be a client
* RPC.
*
*
* Return: If an error occurred, -1 is returned and errno is set
* appropriately. Otherwise zero is returned.
*/
Expand Down
Loading

0 comments on commit a791b72

Please sign in to comment.