- Timestamp:
- Dec 6, 2011, 10:01:12 AM (14 years ago)
- Location:
- branches/samba-3.3.x/source
- Files:
-
- 2 edited
-
lib/os2helper.c (modified) (4 diffs)
-
utils/net_time.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.3.x/source/lib/os2helper.c
r644 r673 1 /* This file contains helper functions for OS/2 - 2 do not try to compile on other platforms! */ 1 /* This file contains Samba helper functions for eComStation (OS/2) - 2 * do not try to compile on other platforms! 3 * 4 * Copyright (C) 2007-2011 5 * Silvan Scherrer 6 * Yuri Dario 7 * Paul Smedley 8 * Herwig Bauernfeind 9 * 10 * This program is free software; you can redistribute it and/or modify 11 * it under the terms of the GNU General Public License as published by 12 * the Free Software Foundation; either version 3 of the License, or 13 * (at your option) any later version. 14 * 15 * This program is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU General Public License for more details. 19 * 20 * You should have received a copy of the GNU General Public License 21 * along with this program; if not, see <http://www.gnu.org/licenses/>. 22 */ 3 23 4 24 #ifdef __OS2__ … … 10 30 #define INCL_DOSMISC 11 31 #define INCL_DOSMODULEMGR 32 12 33 #define INCL_DOSERRORS 13 34 … … 16 37 #include <stdlib.h> 17 38 #include <errno.h> 39 18 40 #include <types.h> 19 41 #include <string.h> … … 503 525 } 504 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 505 561 #endif -
branches/samba-3.3.x/source/utils/net_time.c
r206 r673 111 111 112 112 if (t == 0) return -1; 113 113 #ifdef __OS2__ 114 /* eCS (OS/2) native "net time set" routine */ 115 result = os2_setdatetime(t); 116 #else 114 117 /* yes, I know this is cheesy. Use "net time system" if you want to 115 118 roll your own. I'm putting this in as it works on a large number … … 119 122 } 120 123 result = system(cmd); 124 121 125 if (result) 122 126 d_fprintf(stderr, "%s failed. Error was (%s)\n",
Note:
See TracChangeset
for help on using the changeset viewer.
