From: Unknown <> Date: Thu, 31 Aug 2006 01:49:24 +0000 (+0000) Subject: add files for 2006-08-31T01:49:24Z X-Git-Tag: imap-2007a1~211 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=601ec0c3ef3a1558fd01fe0abd9034e9f01966e0;p=uw-imap add files for 2006-08-31T01:49:24Z --- diff --git a/src/osdep/unix/os_cyg.c b/src/osdep/unix/os_cyg.c new file mode 100644 index 0000000..c9cd2f7 --- /dev/null +++ b/src/osdep/unix/os_cyg.c @@ -0,0 +1,71 @@ +/* ======================================================================== + * Copyright 1988-2006 University of Washington + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * + * ======================================================================== + */ + +/* + * Program: Operating-system dependent routines -- Cygwin version + * + * Author: Mark Crispin + * Networks and Distributed Computing + * Computing & Communications + * University of Washington + * Administration Building, AG-44 + * Seattle, WA 98195 + * Internet: MRC@CAC.Washington.EDU + * + * Date: 1 August 1988 + * Last Edited: 30 August 2006 + */ + +#include "tcp_unix.h" /* must be before osdep includes tcp.h */ +#include "mail.h" +#include "osdep.h" +#include +#include +#include +#include +#include +#include +#include +#include +#include +extern int errno; /* just in case */ +#include +#include +#include "misc.h" + + +#define isodigit(c) (((unsigned)(c)>=060)&((unsigned)(c)<=067)) +#define toint(c) ((c)-'0') + +#include "fs_unix.c" +#include "ftl_unix.c" +#include "nl_unix.c" +#include "env_unix.c" +#include "tcp_unix.c" +#include "gr_wait.c" +#include "tz_nul.c" +#include "flockcyg.c" +#include "gethstid.c" + + +/* Emulator for geteuid() call + * Returns: effective UID + */ + +#undef geteuid + +uid_t Geteuid (void) +{ + uid_t ret = geteuid (); + return (ret == SYSTEMUID) ? 0 : ret; +}