whitespace

This commit is contained in:
Christopher Faylor
2002-12-12 03:09:38 +00:00
parent 023a6b2aff
commit 6d14741177
8 changed files with 21 additions and 15 deletions

View File

@ -833,7 +833,7 @@ g_lstat(fn, sb, pglob)
{ {
/* FIXME: This only works as long as the application uses the old /* FIXME: This only works as long as the application uses the old
struct stat with 32 bit off_t types!!! struct stat with 32 bit off_t types!!!
As soon as we switch over to 64 bit, we have to decide by As soon as we switch over to 64 bit, we have to decide by
the applications API minor version number, whether to use the applications API minor version number, whether to use
a pointer to a __stat64 or a _stat32 struct to the a pointer to a __stat64 or a _stat32 struct to the
@ -867,7 +867,7 @@ g_stat(fn, sb, pglob)
{ {
/* FIXME: This only works as long as the application uses the old /* FIXME: This only works as long as the application uses the old
struct stat with 32 bit off_t types!!! struct stat with 32 bit off_t types!!!
As soon as we switch over to 64 bit, we have to decide by As soon as we switch over to 64 bit, we have to decide by
the applications API minor version number, whether to use the applications API minor version number, whether to use
a pointer to a __stat64 or a _stat32 struct to the a pointer to a __stat64 or a _stat32 struct to the

View File

@ -55,12 +55,12 @@ function that was not used there before, you should add a stub so it
will be autoloaded. To do so, add one of the LoadDllfunc* macros to will be autoloaded. To do so, add one of the LoadDllfunc* macros to
autoload.cc. All macros eventually resolve to the following form: autoload.cc. All macros eventually resolve to the following form:
LoadDLLfuncEx2 (function name, parameter block length, dll name, LoadDLLfuncEx2 (function name, parameter block length, dll name,
non-fatality flag , value to return if function not available) non-fatality flag , value to return if function not available)
Parameter block length is a sum of sizes (in bytes) of parameters which are Parameter block length is a sum of sizes (in bytes) of parameters which are
being passed to the function. If non-fatality flag is set to 0, then failure being passed to the function. If non-fatality flag is set to 0, then failure
to load dll and find a function will cause fatal error. If non fatality flag to load dll and find a function will cause fatal error. If non fatality flag
is set to 1, then call to the function will return default value. is set to 1, then call to the function will return default value.
You can also use shorter versions -- LoadDLLfuncEx and LoadDLLfunc, if the You can also use shorter versions -- LoadDLLfuncEx and LoadDLLfunc, if the
defaults they provide suit your needs. defaults they provide suit your needs.

View File

@ -60,7 +60,7 @@ extern int lstat64 (const char *file_name, struct __stat64 *buf);
#endif #endif
struct stat struct stat
{ {
dev_t st_dev; dev_t st_dev;
ino_t st_ino; ino_t st_ino;
mode_t st_mode; mode_t st_mode;

View File

@ -103,7 +103,7 @@ void pthread_cleanup_push (void (*routine)(void*), void *arg);
void pthread_cleanup_pop (int execute); void pthread_cleanup_pop (int execute);
*/ */
typedef void (*__cleanup_routine_type) (void *); typedef void (*__cleanup_routine_type) (void *);
typedef struct _pthread_cleanup_handler typedef struct _pthread_cleanup_handler
{ {
__cleanup_routine_type function; __cleanup_routine_type function;
void *arg; void *arg;

View File

@ -521,6 +521,8 @@ fdsock (int &fd, const char *name, SOCKET soc)
winsock2_active); winsock2_active);
fhandler_socket *fh = fhandler_socket *fh =
(fhandler_socket *) cygheap->fdtab.build_fhandler (fd, FH_SOCKET, name); (fhandler_socket *) cygheap->fdtab.build_fhandler (fd, FH_SOCKET, name);
if (!fh)
return NULL;
fh->set_io_handle ((HANDLE) soc); fh->set_io_handle ((HANDLE) soc);
fh->set_flags (O_RDWR | O_BINARY); fh->set_flags (O_RDWR | O_BINARY);
fh->set_r_no_interrupt (winsock2_active); fh->set_r_no_interrupt (winsock2_active);
@ -558,12 +560,17 @@ cygwin_socket (int af, int type, int protocol)
name = (type == SOCK_STREAM ? "/dev/streamsocket" : "/dev/dgsocket"); name = (type == SOCK_STREAM ? "/dev/streamsocket" : "/dev/dgsocket");
fh = fdsock (fd, name, soc); fh = fdsock (fd, name, soc);
if (fh) if (!fh)
{
closesocket (soc);
res = -1;
}
else
{ {
fh->set_addr_family (af); fh->set_addr_family (af);
fh->set_socket_type (type); fh->set_socket_type (type);
res = fd;
} }
res = fd;
} }
done: done:

View File

@ -92,7 +92,7 @@ public:
/* Non-zero if process was stopped by a signal. */ /* Non-zero if process was stopped by a signal. */
char stopsig; char stopsig;
/* commune */ /* commune */
pid_t hello_pid; pid_t hello_pid;
HANDLE tothem; HANDLE tothem;

View File

@ -313,7 +313,7 @@ getacl (const char *file, DWORD attr, int nentries, __aclent16_t *aclbufp)
for (i = 0; i < acl->AceCount; ++i) for (i = 0; i < acl->AceCount; ++i)
{ {
ACCESS_ALLOWED_ACE *ace; ACCESS_ALLOWED_ACE *ace;
if (!GetAce (acl, i, (PVOID *) &ace)) if (!GetAce (acl, i, (PVOID *) &ace))
continue; continue;
@ -367,7 +367,7 @@ getacl (const char *file, DWORD attr, int nentries, __aclent16_t *aclbufp)
} }
} }
/* Include DEF_CLASS_OBJ if any default ace exists */ /* Include DEF_CLASS_OBJ if any default ace exists */
if ((types_def & (USER|GROUP)) if ((types_def & (USER|GROUP))
&& ((pos = searchace (lacl, MAX_ACL_ENTRIES, DEF_CLASS_OBJ)) >= 0)) && ((pos = searchace (lacl, MAX_ACL_ENTRIES, DEF_CLASS_OBJ)) >= 0))
{ {
lacl[pos].a_type = DEF_CLASS_OBJ; lacl[pos].a_type = DEF_CLASS_OBJ;
@ -378,7 +378,7 @@ getacl (const char *file, DWORD attr, int nentries, __aclent16_t *aclbufp)
if ((pos = searchace (lacl, MAX_ACL_ENTRIES, 0)) < 0) if ((pos = searchace (lacl, MAX_ACL_ENTRIES, 0)) < 0)
pos = MAX_ACL_ENTRIES; pos = MAX_ACL_ENTRIES;
if (aclbufp) { if (aclbufp) {
if (EqualSid (owner_sid, group_sid)) if (EqualSid (owner_sid, group_sid))
lacl[0].a_perm = lacl[1].a_perm; lacl[0].a_perm = lacl[1].a_perm;
if (pos > nentries) if (pos > nentries)
{ {

View File

@ -527,7 +527,6 @@ public:
} }
}; };
#define MT_INTERFACE user_data->threadinterface #define MT_INTERFACE user_data->threadinterface
extern "C" extern "C"