-
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into tbody-closing-flags
- Loading branch information
Showing
87 changed files
with
423 additions
and
257 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
* File: dlib.c | ||
* | ||
* Copyright (C) 2006-2007 Jorge Arellano Cid <[email protected]> | ||
* Copyright (C) 2024 Rodrigo Arias Mallo <[email protected]> | ||
* | ||
* 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 | ||
|
@@ -24,6 +25,7 @@ | |
#include <unistd.h> | ||
#include <errno.h> | ||
#include <ctype.h> | ||
#include <time.h> | ||
|
||
#include "dlib.h" | ||
|
||
|
@@ -883,7 +885,7 @@ void dLib_show_messages(bool_t show) | |
/** | ||
* Return the current working directory in a new string | ||
*/ | ||
char *dGetcwd () | ||
char *dGetcwd (void) | ||
{ | ||
size_t size = 128; | ||
|
||
|
@@ -901,7 +903,7 @@ char *dGetcwd () | |
/** | ||
* Return the home directory in a static string (don't free) | ||
*/ | ||
char *dGethomedir () | ||
char *dGethomedir (void) | ||
{ | ||
static char *homedir = NULL; | ||
|
||
|
@@ -955,3 +957,24 @@ int dClose(int fd) | |
while (st == -1 && errno == EINTR); | ||
return st; | ||
} | ||
|
||
/** | ||
* Portable usleep() function. | ||
* | ||
* The usleep() function is deprecated in POSIX.1-2001 and removed in | ||
* POSIX.1-2008, see usleep(3). | ||
*/ | ||
int dUsleep(unsigned long usec) | ||
{ | ||
struct timespec ts; | ||
int res; | ||
|
||
ts.tv_sec = usec / 1000000UL; | ||
ts.tv_nsec = (usec % 1000000UL) * 1000UL; | ||
|
||
do { | ||
res = nanosleep(&ts, &ts); | ||
} while (res && errno == EINTR); | ||
|
||
return res; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
* Cookies server. | ||
* | ||
* Copyright 2001 Lars Clausen <[email protected]> | ||
* Jörgen Viksell <[email protected]> | ||
* Jörgen Viksell <[email protected]> | ||
* Copyright 2002-2007 Jorge Arellano Cid <[email protected]> | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
|
@@ -332,7 +332,7 @@ static void Cookies_load_cookies(FILE *stream) | |
* Initialize the cookies module | ||
* (The 'disabled' variable is writeable only within Cookies_init) | ||
*/ | ||
static void Cookies_init() | ||
static void Cookies_init(void) | ||
{ | ||
char *filename; | ||
#ifndef HAVE_LOCKF | ||
|
@@ -387,7 +387,7 @@ static void Cookies_init() | |
/* | ||
* Flush cookies to disk and free all the memory allocated. | ||
*/ | ||
static void Cookies_save_and_free() | ||
static void Cookies_save_and_free(void) | ||
{ | ||
int i, fd, saved = 0; | ||
DomainNode *node; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,7 +48,6 @@ struct dp *dpi_attr_list; | |
Dlist *services_list; | ||
int numsocks; | ||
int srs_fd; | ||
; | ||
|
||
// end of fix | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.